update Cascader

update Cascader
This commit is contained in:
梁灏 2017-01-04 15:01:58 +08:00
parent ba3e34e087
commit 3b00586338
3 changed files with 65 additions and 1 deletions

View file

@ -141,6 +141,7 @@
emitValue (val, oldVal) {
if (JSON.stringify(val) !== oldVal) {
this.$emit('on-change', this.value, JSON.parse(JSON.stringify(this.selected)));
this.$dispatch('on-form-change', this.value, JSON.parse(JSON.stringify(this.selected)));
}
}
},
@ -168,6 +169,12 @@
if (lastValue && !fromInit) {
this.handleClose();
}
},
'on-form-blur' () {
return false;
},
'on-form-change' () {
return false;
}
},
watch: {