mirror of
https://gitee.com/JavaLionLi/plus-ui.git
synced 2026-09-16 00:38:19 +08:00
Pre Merge pull request !240 from 蓝梦/Bug修复
This commit is contained in:
commit
6243ea310c
@ -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