Эх сурвалжийг харах

Cascader: fix unexpected error (#21759)

Co-authored-by: louie <liguanzhi@youxin.cloud>
louiebb 3 жил өмнө
parent
commit
934826c177

+ 4 - 4
packages/cascader-panel/src/cascader-panel.vue

@@ -136,6 +136,10 @@ export default {
   },
 
   watch: {
+    value() {
+      this.syncCheckedValue();
+      this.checkStrictly && this.calculateCheckedNodePaths();
+    },
     options: {
       handler: function() {
         this.initStore();
@@ -143,10 +147,6 @@ export default {
       immediate: true,
       deep: true
     },
-    value() {
-      this.syncCheckedValue();
-      this.checkStrictly && this.calculateCheckedNodePaths();
-    },
     checkedValue(val) {
       if (!isEqual(val, this.value)) {
         this.checkStrictly && this.calculateCheckedNodePaths();