Skip to content

Picker 选择器

Form · Interactive component

Basic option picker.

On-demand importwbbb-ui/components/picker

Basic Usage

Example code
<script setup lang="ts">
import { ref } from 'vue'
import { WbbbPicker } from 'wbbb-ui/components/picker'
import 'wbbb-ui/styles/picker'

const value = ref('')
</script>

<template>
  <WbbbPicker v-model="value" />
</template>
Live mobile previewOpen in a new tab ↗

States and Interaction

All listed states can be operated and verified in the live Playground preview.

DefaultFilledFocusDisabledError

API Reference

Props

PropertyDescriptionTypeDefaultRequired
disabledPrevents user interaction with the component.booleanfalseNo
localeOverrides the locale used for built-in display copy.WbbbLocaleInputNo
modelValueProvides the current value used by v-model.string \| number''No
optionsProvides selectable option data.WbbbPickerOption[]() => []No
placeholderSets placeholder text when no value is present.string由 locale 决定No

Events

  • update:modelValue
  • change

Slots

None

Two-way binding

Supports v-model (modelValue).

Platform Notes

Build verification: H5, App Vue, WeChat Mini Program, Alipay Mini Program, and Douyin Mini Program.

Runtime differences: H5 supports keyboard focus and reduced motion. Mini Programs provide equivalent touch interaction; verify upload, date selection, and overlays on target platforms.

Usage note: Use Playground to verify further state combinations and cross-platform behavior.

Wbbb UI · Built for uni-app product experiences