[Improvement] Area: add reset method (#1427)

This commit is contained in:
neverland
2018-07-06 20:04:38 +08:00
committed by GitHub
parent e34c940063
commit 0718339c81
6 changed files with 105 additions and 1 deletions

View File

@@ -154,6 +154,11 @@ export default create({
getValues() {
return this.$refs.picker ? this.$refs.picker.getValues() : [];
},
reset() {
this.code = '';
this.setValues();
}
}
});