mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: label为布尔时,显示错误 (#10934)
Co-authored-by: hezhihang <hezhihang@baidu.com>
This commit is contained in:
parent
ad77f24feb
commit
f21be3d37b
@ -6,6 +6,8 @@ export function labelToString(label: any): string {
|
||||
return label;
|
||||
} else if (type === 'number') {
|
||||
return `${label}`;
|
||||
} else if (label === 'boolean') {
|
||||
return String(label);
|
||||
}
|
||||
|
||||
if (isPlainObject(label)) {
|
||||
|
Loading…
Reference in New Issue
Block a user