mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
MessageBox: add inputValue (#2909)
This commit is contained in:
@@ -174,9 +174,14 @@
|
||||
},
|
||||
|
||||
watch: {
|
||||
inputValue(val) {
|
||||
if (this.$type === 'prompt' && val !== null) {
|
||||
this.validate();
|
||||
inputValue: {
|
||||
immediate: true,
|
||||
handler(val) {
|
||||
this.$nextTick(_ => {
|
||||
if (this.$type === 'prompt' && val !== null) {
|
||||
this.validate();
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user