Merge pull request #8276 from dataease/pr@dev@refactor_table

refactor(仪表板): 修改表格类组件放大显示字体等样式与明细放大保持一致
This commit is contained in:
王嘉豪 2024-03-01 17:35:30 +08:00 committed by GitHub
commit 254a280d7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 12 deletions

View File

@ -508,24 +508,25 @@ export default {
},
deep: true
},
mainHeight: {
handler(newVal, oldVla) {
this.$nextTick(() => {
this.reloadWatermark()
})
},
deep: true
},
canvasInfoTempStyle: {
handler(newVal, oldVla) {
const _this = this
_this.$nextTick(() => {
if (_this.screenShotStatues) {
_this.initWatermark('preview-temp-canvas-main')
} else {
_this.initWatermark()
}
this.$nextTick(() => {
this.reloadWatermark()
})
},
deep: true
},
screenShotStatues: {
handler(newVal, oldVla) {
if (this.screenShotStatues) {
this.initWatermark('preview-temp-canvas-main')
}
this.reloadWatermark()
}
}
},
@ -564,6 +565,13 @@ export default {
bus.$off('trigger-reset-button', this.triggerResetButton)
},
methods: {
reloadWatermark() {
if (this.screenShotStatues) {
this.initWatermark('preview-temp-canvas-main')
} else {
this.initWatermark()
}
},
filterLoaded(p) {
buildAfterFilterLoaded(this.filterMap, p)
this.filterMapCache = {}

View File

@ -1114,9 +1114,9 @@ export default {
tableChart.customAttr.color.tableFontColor = '#7c7e81'
tableChart.customAttr.color.enableTableCrossBG = false
tableChart.customAttr.size.showTableHeader = true
tableChart.customAttr.size.tableTitleFontSize = 14
tableChart.customAttr.size.tableItemFontSize = 14
}
tableChart.customAttr.size.tableTitleFontSize = 14
tableChart.customAttr.size.tableItemFontSize = 14
tableChart.customAttr.size.tableColumnFreezeHead = 0
tableChart.customAttr.size.tableRowFreezeHead = 0
tableChart.customAttr.color.tableStripe = true