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

* 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

View File

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

View File

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

View File

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