Merge pull request #8299 from dataease/pr@dev@fix_table_freeze_col_row
fix(视图): 视图属性变更防抖,防止属性和实际效果不一致
This commit is contained in:
commit
1f6a4c6568
@ -1302,6 +1302,12 @@ export default {
|
|||||||
this.fontSize = arr
|
this.fontSize = arr
|
||||||
},
|
},
|
||||||
changeBarSizeCase(modifyName) {
|
changeBarSizeCase(modifyName) {
|
||||||
|
if (!this.doChange) {
|
||||||
|
this.doChange = _.debounce(() => this.debounceChange(modifyName), 200)
|
||||||
|
}
|
||||||
|
this.doChange()
|
||||||
|
},
|
||||||
|
debounceChange(modifyName) {
|
||||||
this.sizeForm['modifyName'] = modifyName
|
this.sizeForm['modifyName'] = modifyName
|
||||||
if (this.sizeForm.gaugeMax <= this.sizeForm.gaugeMin) {
|
if (this.sizeForm.gaugeMax <= this.sizeForm.gaugeMin) {
|
||||||
this.$message.error(this.$t('chart.max_more_than_mix'))
|
this.$message.error(this.$t('chart.max_more_than_mix'))
|
||||||
|
|||||||
@ -1897,6 +1897,12 @@ export default {
|
|||||||
this.fontSize = arr
|
this.fontSize = arr
|
||||||
},
|
},
|
||||||
changeBarSizeCase(modifyName) {
|
changeBarSizeCase(modifyName) {
|
||||||
|
if (!this.doChange) {
|
||||||
|
this.doChange = _.debounce(() => this.debounceChange(modifyName), 200)
|
||||||
|
}
|
||||||
|
this.doChange()
|
||||||
|
},
|
||||||
|
debounceChange(modifyName) {
|
||||||
this.sizeForm['modifyName'] = modifyName
|
this.sizeForm['modifyName'] = modifyName
|
||||||
if (this.sizeForm.gaugeMax <= this.sizeForm.gaugeMin) {
|
if (this.sizeForm.gaugeMax <= this.sizeForm.gaugeMin) {
|
||||||
this.$message.error(this.$t('chart.max_more_than_mix'))
|
this.$message.error(this.$t('chart.max_more_than_mix'))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user