1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-06 03:57:59 +08:00

feat(Area): getArea method filter placeholder ()

This commit is contained in:
Jake 2019-10-14 19:14:05 +08:00 committed by neverland
parent 309a5bc071
commit 9beada5db0

@ -127,6 +127,10 @@ export default sfc({
}, },
onAreaConfirm(values) { onAreaConfirm(values) {
if (values.some(value => !value.code)) {
Toast(t('areaEmpty'));
return;
}
this.showAreaPopup = false; this.showAreaPopup = false;
this.assignAreaValues(); this.assignAreaValues();
this.$emit('change-area', values); this.$emit('change-area', values);