Lindy 33c11facff feat(Stepper): add disable-long-press feature (#2691)
* feat(Stepper): add disable-long-press feature

* feat(Stepper):  name the same as Vant
2020-01-19 20:23:05 +08:00

42 lines
1019 B
Plaintext

<van-cell center title="基础用法">
<van-stepper value="{{ 1 }}" />
</van-cell>
<van-cell center title="步长设置">
<van-stepper value="{{ 1 }}" step="2" />
</van-cell>
<van-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-toast id="van-toast" />