MessageBox: add inputValue (#2909)

This commit is contained in:
杨奕
2017-02-22 15:15:16 +08:00
committed by baiyaaaaa
parent f2fc8b5fb6
commit c4367604ab
4 changed files with 14 additions and 5 deletions

View File

@@ -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();
}
});
}
},