Explorar o código

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

Jikkai Xiao %!s(int64=7) %!d(string=hai) anos
pai
achega
25ffe8c97e
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  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;
+      }
     }
   },