2021-12-21 09:51:43 +08:00

46 lines
1.1 KiB
Plaintext

<van-cell center title="基础用法">
<van-stepper value="{{ 1 }}" />
</van-cell>
<van-cell center title="步长设置">
<van-stepper value="{{ 1 }}" step="2" />
</van-cell>
<vanpackages/stepper/demo/index.less-cell center title="限制输入范围">
<van-stepper value="{{ 1 }}" min="5" max="8" />
</van-cell>
<van-cell center title="限制输入整数">
<van-stepper value="{{ 1 }}" integer />
</van-cell>
<van-cell center title="禁用状态">
<van-stepper value="{{ 1 }}" disabled />
</van-cell>
<van-cell center title="禁用长按">
<van-stepper value="{{ 1 }}" long-press="{{ false }}" />
</van-cell>
<van-cell center title="固定小数位数">
<van-stepper value="{{ 1 }}" step="0.2" decimal-length="{{ 1 }}" />
</van-cell>
<van-cell center title="异步变更">
<van-stepper
value="{{ value }}"
async-change
bind:change="onChange"
/>
</van-cell>
<van-cell center title="自定义大小">
<van-stepper value="{{ 1 }}" input-width="40px" button-size="32px" />
</van-cell>
<van-cell center title="圆角风格">
<van-stepper value="{{ 1 }}" theme="round" button-size="22px" />
</van-cell>
<van-toast id="van-toast" />