1
0
mirror of https://gitee.com/vant-contrib/vant-weapp.git synced 2025-04-06 03:58:05 +08:00

feat(Area): add show-toolbar prop default true ()

* feat(Area): add show-toolbar prop default true

* fix(Area): fix default value
This commit is contained in:
nemo-shen 2022-02-07 09:51:06 +08:00 committed by GitHub
parent befa6f08bd
commit 1e7cbe30fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

@ -138,6 +138,7 @@ db.collection('region')
| visible-item-count | 可见的选项个数 | _number_ | `6` |
| confirm-button-text | 确认按钮文字 | _string_ | `确认` |
| cancel-button-text | 取消按钮文字 | _string_ | `取消` |
| show-toolbar `1.10.3` | 是否显示顶部栏 | _boolean_ | `true` |
### Events

@ -14,6 +14,10 @@ VantComponent({
props: {
...pickerProps,
showToolbar: {
type: Boolean,
value: true,
},
value: {
type: String,
observer(value: string) {

@ -5,7 +5,7 @@
active-class="active-class"
toolbar-class="toolbar-class"
column-class="column-class"
show-toolbar
show-toolbar="{{ showToolbar }}"
value-key="name"
title="{{ title }}"
loading="{{ loading }}"