【代码优化】DictTag 的 render 方法的命名,属性的命名

pull/495/head
YunaiV 2024-08-13 22:56:58 +08:00
parent f45c255073
commit aaa5e146f1
1 changed files with 3 additions and 3 deletions

View File

@ -29,15 +29,15 @@ export default defineComponent({
},
setup(props) {
const valueArr: any = computed(() => {
// 1.NumberBoolean
// 1. Number Boolean
if (isNumber(props.value) || isBoolean(props.value)) {
return [String(props.value)]
}
// 2. -> props.sepSymbol
// 2. -> props.sepSymbol
else if (isString(props.value)) {
return props.value.split(props.separator)
}
// 3.
// 3.
else if (isArray(props.value)) {
return props.value.map(String)
}