瀏覽代碼

Table: fix class-name & label-class-name prop not reactive (#11626)

Jikkai Xiao 7 年之前
父節點
當前提交
25ffe8c97e
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      packages/table/src/table-column.js

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

@@ -405,6 +405,18 @@ export default {
       if (this.columnConfig) {
         this.columnConfig.formatter = newVal;
       }
+    },
+
+    className(newVal) {
+      if (this.columnConfig) {
+        this.columnConfig.className = newVal;
+      }
+    },
+
+    labelClassName(newVal) {
+      if (this.columnConfig) {
+        this.columnConfig.labelClassName = newVal;
+      }
     }
   },