代码生成:增加 one 情况下的示例代码

This commit is contained in:
YunaiV
2023-11-12 19:50:38 +08:00
parent 55f6e4ca25
commit 72c5eaae31
9 changed files with 702 additions and 109 deletions

View File

@ -144,7 +144,7 @@ watch(
} else if (isArray(props.modelValue)) {
// 情况2字符串
files.concat(props.modelValue)
} else if (props.modelValue === undefined) {
} else if (props.modelValue == null) {
// 情况3undefined 不处理
} else {
throw new Error('不支持的 modelValue 类型')