test: fixed array bug

This commit is contained in:
daniel-dx
2019-03-19 00:30:26 +08:00
parent 3c18a1ee0e
commit c248887f8f
@@ -89,10 +89,10 @@
},
_supportItemsCollapse() {
if (!this.$data.mergeConfig.disableItemCollapse) {
if (!this.mergeConfig.disableItemCollapse) {
this.schema.value.forEach(dataItem => {
if (dataItem.__dataSchema._expand === undefined)
this.$set(dataItem.__dataSchema, '_expand', !this.$data.mergeConfig.itemCollapse);
this.$set(dataItem.__dataSchema, '_expand', !this.mergeConfig.itemCollapse);
})
}
}