大屏表格组件bug
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
}"
|
}"
|
||||||
v-for="(item, index) in componentList"
|
v-for="(item, index) in componentList"
|
||||||
:key="index">
|
:key="index">
|
||||||
<ai-dv-render :instance="instance" :data="item" :index="index" :theme="dashboard.theme"/>
|
<ai-dv-render :instance="instance" :key="index" :data="item" :index="index" :theme="dashboard.theme"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<components v-else :is="component" :dict="dict" :instance="instance" :nav="meta"/>
|
<components v-else :is="component" :dict="dict" :instance="instance" :nav="meta"/>
|
||||||
|
|||||||
@@ -88,7 +88,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const headerKey = Object.keys(value[0])[0]
|
const headerKey = Object.keys(value[0])[0]
|
||||||
console.log(Object.keys(value[0]))
|
|
||||||
const bodyKey = Object.keys(value[0]).filter(v => {
|
const bodyKey = Object.keys(value[0]).filter(v => {
|
||||||
return v !== headerKey && ['color', 'width', 'align'].indexOf(v) === -1
|
return v !== headerKey && ['color', 'width', 'align'].indexOf(v) === -1
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -218,8 +218,18 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
watch: {
|
||||||
|
config: {
|
||||||
|
handler (v) {
|
||||||
|
this.data = v[v.dataType]
|
||||||
|
},
|
||||||
|
deep: true,
|
||||||
|
immediate: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
this.data = this.config[this.config.dataType]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user