官方文档:uni-app官网
1.使用HBuilder导入插件.uni-data-picker 数据驱动的picker选择器 - DCloud 插件市场
2.导入成功后,在src文件夹下多一个uni_modules的文件夹
3.引入插件
import uniDataPicker from '@/uni_modules/uni-data-picker/components/uni-data-picker/keypress.js';
4.在页面中使用
<uni-data-picker
:localdata="items"
placeholder="点击选择"
popup-title="请选择地区"
v-model="area"
@change="bindPickerChange"
>
<text class="word13" v-if="!area.length">点击选择</text>
<text class="word13" v-else&