feat:修复系统组件渲染问题

main
liu.shiyi 2 years ago
parent 41294a1b04
commit 19b9752a1d

@ -84,11 +84,22 @@ export default {
})
}
},
chartInit () {
// keycode/chart/data/list
async chartInit () {
let config = this.config
// keycodelist
if (this.config.code === this.config.key || this.isPreview) {
//
this.updateChart()
//
config = this.changeStyle(config) ? this.changeStyle(config) : config
//
config = await this.changeDataByCode(config)
} else {
// changeStylekey,chart
// TODO prop
try {
this.config = await this.changeData(config)
} catch (e) {
console.error(e)
}
}
},
linkEvent (formData) {
@ -121,22 +132,6 @@ export default {
setting
}
},
/**
* @description: 只更新数据
*/
updateData () {
this.updateChart()
},
/**
* 更新组件
*/
updateChart () {
if (this.isPreview) {
this.changeDataByCode()
} else {
this.changeData(this.config)
}
},
/**
* 组件的配置
* @returns {Promise<unknown>}

Loading…
Cancel
Save