perf: 优化 detail formatter

This commit is contained in:
ibuler
2021-09-16 11:27:44 +08:00
committed by 老广
parent abe176831b
commit 35c793785c
2 changed files with 10 additions and 3 deletions

View File

@@ -25,8 +25,16 @@ export default {
data() {
const formatterArgs = Object.assign(this.formatterArgsDefault, this.col.formatterArgs)
return {
formatterArgs: formatterArgs,
iTitle: formatterArgs.getTitle({ col: this.col, row: this.row, cellValue: this.cellValue })
formatterArgs: formatterArgs
}
},
computed: {
iTitle() {
return this.formatterArgs.getTitle({
col: this.col,
row: this.row,
cellValue: this.cellValue
})
}
},
methods: {

View File

@@ -95,7 +95,6 @@ export default {
computed: {
iVisible: {
set(val) {
console.log('set val: ', val)
this.$emit('update:visible', val)
},
get() {