下载安装vant时没有附带下载地址列表,需要自己下载
npm i @vant/area-data -D
使用:
1.页面导入
import { areaList } from '@vant/area-data';
<van-address-edit
:area-list="areaList"
show-delete
show-set-default
show-search-result
:address-info="addressInfo"
:detail-rows="3"
:area-columns-placeholder="['请选择', '请选择', '请选择']"
@save="onSave"
@delete="onDelete"
@change-detail="onChangeDetail"
/>
网友评论