Skip to content

Wheel Picker ​

Vue 已实现 · 还原验收 0/1 · 上游演示 · 固定版本源码

预览 ​

北京
上海
广州
深圳
杭州
成都
上海

用法 ​

vue
<script setup lang="ts">
import { ref } from 'vue'
import { WheelPicker } from 'beui-vue'
const city = ref('上海')
</script>
<template><WheelPicker v-model="city" label="城市" :options="['北京','上海','广州','深圳','杭州','成都']"/><output>{{ city }}</output></template>

API ​

options 支持字符串或 {label,value},v-model 同步选中值。滚轮、触摸与键盘均可操作,itemHeight、visibleCount 控制尺寸。

还原验收 ​

基于 beUI 的独立 Vue 移植,依 MIT 许可证分发。