Table: fix column formatter not changed when new formatter is set (#10184)

pull/9251/head
Harlan 2018-03-16 11:04:44 +08:00 committed by 杨奕
parent 130007210d
commit a848b26495
1 changed files with 6 additions and 0 deletions

View File

@ -389,6 +389,12 @@ export default {
if (this.columnConfig) { if (this.columnConfig) {
this.columnConfig.index = newVal; this.columnConfig.index = newVal;
} }
},
formatter(newVal) {
if (this.columnConfig) {
this.columnConfig.formatter = newVal;
}
} }
}, },