v2-dev
xiaojunnuo 2025-08-15 19:02:59 +08:00
parent 798a48aa96
commit af9120fc7a
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ function install(app: App, options: any = {}) {
//不能用 !scope.value 否则switch组件设置为关之后就消失了
const { value, key, props } = scope;
return !value && key != "_index" && value != false;
return value != null && key != "_index" && value != "";
},
render() {
return "-";