Sfoglia il codice sorgente

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

Harlan 7 anni fa
parent
commit
a848b26495
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      packages/table/src/table-column.js

+ 6 - 0
packages/table/src/table-column.js

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