mirror of https://github.com/ElemeFE/element
parent
92822706e5
commit
ef74ee05b3
|
@ -224,10 +224,6 @@
|
||||||
} else {
|
} else {
|
||||||
prop.o[prop.k] = this.initialValue;
|
prop.o[prop.k] = this.initialValue;
|
||||||
}
|
}
|
||||||
/* Select 的值被代码改变时不会触发校验,
|
|
||||||
这里需要强行触发一次,刷新 validateDisabled 的值,
|
|
||||||
确保 Select 下一次值改变时能正确触发校验 */
|
|
||||||
this.broadcast('ElSelect', 'fieldReset');
|
|
||||||
|
|
||||||
this.broadcast('ElTimeSelect', 'fieldReset', this.initialValue);
|
this.broadcast('ElTimeSelect', 'fieldReset', this.initialValue);
|
||||||
},
|
},
|
||||||
|
|
|
@ -851,9 +851,6 @@
|
||||||
|
|
||||||
this.$on('handleOptionClick', this.handleOptionSelect);
|
this.$on('handleOptionClick', this.handleOptionSelect);
|
||||||
this.$on('setSelected', this.setSelected);
|
this.$on('setSelected', this.setSelected);
|
||||||
this.$on('fieldReset', () => {
|
|
||||||
this.dispatch('ElFormItem', 'el.form.change');
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
Loading…
Reference in New Issue