mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 19:41:45 +08:00
40 lines
700 B
Plaintext
40 lines
700 B
Plaintext
<demo-block title="基础用法">
|
|
<van-picker
|
|
columns="{{ column1 }}"
|
|
bind:change="onChange1"
|
|
/>
|
|
</demo-block>
|
|
|
|
<demo-block title="禁用选项">
|
|
<van-picker
|
|
columns="{{ column2 }}"
|
|
/>
|
|
</demo-block>
|
|
|
|
<demo-block title="展示顶部栏">
|
|
<van-picker
|
|
show-toolbar
|
|
title="标题"
|
|
columns="{{ column1 }}"
|
|
bind:change="onChange1"
|
|
bind:confirm="onConfirm"
|
|
bind:cancel="onCancel"
|
|
/>
|
|
</demo-block>
|
|
|
|
<demo-block title="多列联动">
|
|
<van-picker
|
|
columns="{{ column4 }}"
|
|
bind:change="onChange2"
|
|
/>
|
|
</demo-block>
|
|
|
|
<demo-block title="加载状态">
|
|
<van-picker
|
|
loading
|
|
columns="{{ column4 }}"
|
|
/>
|
|
</demo-block>
|
|
|
|
<van-toast id="van-toast" />
|