mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-29 18:57:36 +08:00
Cascader: fix unexpected error (#21759)
Co-authored-by: louie <liguanzhi@youxin.cloud>
This commit is contained in:
parent
13ef966487
commit
934826c177
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user