mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
[Improvement] Area: add reset method (#1427)
This commit is contained in:
@@ -154,6 +154,11 @@ export default create({
|
||||
|
||||
getValues() {
|
||||
return this.$refs.picker ? this.$refs.picker.getValues() : [];
|
||||
},
|
||||
|
||||
reset() {
|
||||
this.code = '';
|
||||
this.setValues();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user