🔱: [client] sync upgrade with 3 commits [trident-sync]

fix: _index列 被conditionalRender影响的bug
refactor:
This commit is contained in:
GitHub Actions Bot
2023-04-19 19:24:05 +00:00
parent 1173fb1e90
commit a62230c195
3 changed files with 10 additions and 5 deletions
@@ -40,7 +40,8 @@ function install(app: any, options: any = {}) {
conditionalRender: {
match(scope) {
//不能用 !scope.value 否则switch组件设置为关之后就消失了
return scope.value == null || (scope.value instanceof Array && scope.value.length === 0);
const { value, key } = scope;
return !value && key != "_index" && value != false;
},
render() {
return "-";