大屏表格组件bug

This commit is contained in:
yanran200730
2023-03-15 11:02:13 +08:00
parent d66760f9c2
commit 999f6190dc
3 changed files with 12 additions and 3 deletions

View File

@@ -218,8 +218,18 @@ export default {
}
},
watch: {
config: {
handler (v) {
this.data = v[v.dataType]
},
deep: true,
immediate: true
}
},
created() {
this.data = this.config[this.config.dataType]
}
}
</script>