mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
49 lines
1.1 KiB
Plaintext
49 lines
1.1 KiB
Plaintext
<van-panel title='基本用法'>
|
|
<van-search
|
|
alignLeft="{{ true }}"
|
|
placeholder="搜索..."
|
|
keyword="{{ inputValue }}"
|
|
placeholder="搜索商品"
|
|
focus="{{ focus }}"
|
|
bindchange="searchChange"
|
|
bindsearch="searchDone"
|
|
/>
|
|
</van-panel>
|
|
|
|
<van-panel title='不可用'>
|
|
<van-search
|
|
alignLeft="{{ true }}"
|
|
placeholder="搜索..."
|
|
disabled="{{ true }}"
|
|
placeholder="搜索商品"
|
|
/>
|
|
</van-panel>
|
|
|
|
<van-panel title='自定义样式'>
|
|
<van-search
|
|
alignLeft="{{ true }}"
|
|
placeholder="搜索..."
|
|
searchStyle="height: 88rpx; padding: 0 30rpx; background: {{ searchbg || '#F2F2F2' }};"
|
|
inputStyle="height: 56rpx; border-radius: 8rpx;"
|
|
keyword="{{ inputValue }}"
|
|
placeholder="搜索商品"
|
|
focus="{{ focus }}"
|
|
bindchange="searchChange"
|
|
bindsearch="searchDone"
|
|
/>
|
|
</van-panel>
|
|
|
|
<van-panel title='取消按钮'>
|
|
<van-search
|
|
alignLeft="{{ true }}"
|
|
placeholder="搜索..."
|
|
keyword="{{ inputValue }}"
|
|
placeholder="搜索商品"
|
|
focus="{{ focus }}"
|
|
useCancel="{{ true }}"
|
|
bindchange="searchChange"
|
|
bindsearch="searchDone"
|
|
bindcancel="handleCancel"
|
|
/>
|
|
</van-panel>
|