Browse Source

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

Harlan 7 năm trước cách đây
mục cha
commit
a848b26495
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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;
+      }
     }
   },