mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-26 19:36:39 +08:00
[new feature] Area: add confirm-button-text prop (#1296)
This commit is contained in:
parent
a0bfe6959b
commit
7b9432a51c
@ -47,6 +47,8 @@
|
|||||||
| loading | 是否显示加载状态 | `Boolean` | `false` |
|
| loading | 是否显示加载状态 | `Boolean` | `false` |
|
||||||
| item-height | 选项高度 | `Number` | `44` |
|
| item-height | 选项高度 | `Number` | `44` |
|
||||||
| visible-item-count | 可见的选项个数 | `Number` | `5` |
|
| visible-item-count | 可见的选项个数 | `Number` | `5` |
|
||||||
|
| confirm-button-text | 确认按钮文字 | `String` | `确认` |
|
||||||
|
| cancel-button-text | 取消按钮文字 | `String` | `取消` |
|
||||||
|
|
||||||
### Event
|
### Event
|
||||||
|
|
||||||
|
@ -12,6 +12,8 @@ VantComponent({
|
|||||||
title: String,
|
title: String,
|
||||||
value: String,
|
value: String,
|
||||||
loading: Boolean,
|
loading: Boolean,
|
||||||
|
cancelButtonText: String,
|
||||||
|
confirmButtonText: String,
|
||||||
itemHeight: {
|
itemHeight: {
|
||||||
type: Number,
|
type: Number,
|
||||||
value: 44
|
value: 44
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
columns="{{ displayColumns }}"
|
columns="{{ displayColumns }}"
|
||||||
item-height="{{ itemHeight }}"
|
item-height="{{ itemHeight }}"
|
||||||
visible-item-count="{{ visibleItemCount }}"
|
visible-item-count="{{ visibleItemCount }}"
|
||||||
|
cancel-button-text="{{ cancelButtonText }}"
|
||||||
|
confirm-button-text="{{ confirmButtonText }}"
|
||||||
bind:change="onChange"
|
bind:change="onChange"
|
||||||
bind:confirm="onConfirm"
|
bind:confirm="onConfirm"
|
||||||
bind:cancel="onCancel"
|
bind:cancel="onCancel"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user