Explorar o código

Table: Expand rows when set `expand-row-keys`

lirilsu %!s(int64=7) %!d(string=hai) anos
pai
achega
00c5028d8d
Modificáronse 1 ficheiros con 7 adicións e 2 borrados
  1. 7 2
      packages/table/src/table.vue

+ 7 - 2
packages/table/src/table.vue

@@ -443,8 +443,13 @@
         }
       },
 
-      expandRowKeys(newVal) {
-        this.store.setExpandRowKeys(newVal);
+      expandRowKeys: {
+        immediate: true,
+        handler(newVal) {
+          if (newVal) {
+            this.store.setExpandRowKeys(newVal);
+          }
+        }
       }
     },