uniapp 下拉选择器picker
<picker mode="selector" :range="options" @change="onPickerChange">
<div style="border: 1px solid #ccc;">选择品牌</div>
</picker>
let options = reactive(['选项1', '选项2', '选项3', '选项4']);
const onPickerChange = (e) => {
const index = e.detail.value;
console.log('index',index);
}
原文地址:https://blog.csdn.net/weixin_46256404/article/details/143568798
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!