Skip to content

Adaptive Stepper ​

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

预览 ​

1

用法 ​

vue
<script setup lang="ts">
import { ref } from 'vue'
import { AdaptiveStepper } from 'beui-vue'
const quantity = ref(1)
</script>
<template><div class="quantity"><label>Quantity</label><AdaptiveStepper v-model="quantity" :min="0" :max="5" /></div></template>
<style scoped>.quantity { display:grid; justify-items:center; gap:.7rem; } label { font-size:.8rem; color:var(--beui-muted-foreground); }</style>

API ​

v-model 为数值。min、max 和 step 约束步进,达到边界时收起对应按钮。name 支持表单提交。

还原验收 ​

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