mirror of https://github.com/ElemeFE/element
Table: fix column formatter not changed when new formatter is set (#10184)
parent
130007210d
commit
a848b26495
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue