mirror of
https://gitee.com/JavaLionLi/plus-ui.git
synced 2026-09-15 00:25:07 +08:00
fix(UserSelect): 修复 用户选择组件 回显异常问题
This commit is contained in:
parent
f84e95d735
commit
5ffe2e2949
@ -173,7 +173,7 @@ const computedIds = (data) => {
|
|||||||
} else if (typeof data === 'string') {
|
} else if (typeof data === 'string') {
|
||||||
return data.split(',');
|
return data.split(',');
|
||||||
} else if (typeof data === 'number') {
|
} else if (typeof data === 'number') {
|
||||||
return [data];
|
return [String(data)];
|
||||||
} else {
|
} else {
|
||||||
console.warn('<UserSelect> The data type of data should be array or string or number, but I received other');
|
console.warn('<UserSelect> The data type of data should be array or string or number, but I received other');
|
||||||
return [];
|
return [];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user