1. 修复 DictTag 对 boolean 的 false 处理不展示

2. vue 重构:增加配置管理的 form 表单
This commit is contained in:
YunaiV
2023-03-08 22:51:07 +08:00
parent 4c47ca9166
commit 64b249e743
5 changed files with 147 additions and 173 deletions

View File

@ -34,7 +34,7 @@ export default defineComponent({
return null
}
// 解决自定义字典标签值为零时标签不渲染的问题
if (!props.value && props.value !== 0) {
if (props.value === undefined) {
return null
}
getDictObj(props.type, props.value.toString())