Commit b73f087c authored by wangxl's avatar wangxl

22

parent 40e7c861
......@@ -65,8 +65,9 @@ export default {
},
onChange (value, selectedOptions) {
this.selected = value
if (!!this.selected && this.selected.length == 3) {
this.$emit("input", this.selected[2])
if (!!this.selected && this.selected.length > 0) {
var len = this.selected.length - 1
this.$emit("input", this.selected[len])
this.$emit("change");
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment