更新记录

1.0.0(2026-01-04)

首次提交


平台兼容性

uni-app(4.83)

Vue2 Vue3 Chrome Safari app-vue app-nvue Android iOS 鸿蒙
- - - -
微信小程序 支付宝小程序 抖音小程序 百度小程序 快手小程序 京东小程序 鸿蒙元服务 QQ小程序 飞书小程序 快应用-华为 快应用-联盟
- - - - - - - - - - -

picker-select

该组件采用vue3的composition api编写,支持v-model双向绑定,可以自定义选项字段名,禁用属性等,基于uview的picker组件封装

1.引入

```
import pickerSelect from '@/uni_modules/pickerSelect/components/pickerSelect/index.vue'
```

2.注册

components:{
    pickerSelect
},

3.使用

```
<picker-select :disabled="disabled" v-model="selectedValue" @change="getCheckProject"
    :optionsList="optionsList"></picker-select>
```

4.方法

    <script setup>
        import { ref } from 'vue'
        import PickerSelect from '@/uni_modules/pickerSelect/components/pickerSelect/index.vue'

        // 选择器选项
        const optionsList = ref([
        { value: '1', label: '选项1' },
        { value: '2', label: '选项2' },
        { value: '3', label: '选项3' }
        ])

        const disabled = ref(false);//禁用属性
        // 选中的值
        const selectedValue = ref('')

        // 选择变化事件处理
        const handleChange = (e) => {
            console.log('选中的值:', e)
        }
    </script>

5.传参说明 属性名 类型 默认值 必填 说明 optionsList Array [] 是 选择器的选项列表 valueKey String 'value' 否 选项中值的字段名 labelKey String 'label' 否 选项中标签的字段名 modelValue String '' 否 当前选中的值(支持 v-model 双向绑定) placeholder String '请选择' 否 未选择时的占位文本 disabled Boolean

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

暂无用户评论。