1、样式调整

This commit is contained in:
Jerry
2024-09-26 15:01:08 +08:00
parent e9d724e3a2
commit 14d0bd8c5d
52 changed files with 482 additions and 451 deletions

View File

@@ -80,7 +80,11 @@ const showText = computed(() => {
? 'XXXXX 至 XXXXX'
: undefined;
case SysCustomWidgetType.Switch:
return props.value ? '是' : '否';
if (typeof props.value === 'boolean') {
return props.value ? '是' : '否';
} else {
return props.value;
}
default:
return '';
}