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: {
|
watch: {
|
||||||
|
value() {
|
||||||
|
this.syncCheckedValue();
|
||||||
|
this.checkStrictly && this.calculateCheckedNodePaths();
|
||||||
|
},
|
||||||
options: {
|
options: {
|
||||||
handler: function() {
|
handler: function() {
|
||||||
this.initStore();
|
this.initStore();
|
||||||
@ -143,10 +147,6 @@ export default {
|
|||||||
immediate: true,
|
immediate: true,
|
||||||
deep: true
|
deep: true
|
||||||
},
|
},
|
||||||
value() {
|
|
||||||
this.syncCheckedValue();
|
|
||||||
this.checkStrictly && this.calculateCheckedNodePaths();
|
|
||||||
},
|
|
||||||
checkedValue(val) {
|
checkedValue(val) {
|
||||||
if (!isEqual(val, this.value)) {
|
if (!isEqual(val, this.value)) {
|
||||||
this.checkStrictly && this.calculateCheckedNodePaths();
|
this.checkStrictly && this.calculateCheckedNodePaths();
|
||||||
|
Loading…
Reference in New Issue
Block a user