mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +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` |
|
||||
| item-height | 选项高度 | `Number` | `44` |
|
||||
| visible-item-count | 可见的选项个数 | `Number` | `5` |
|
||||
| confirm-button-text | 确认按钮文字 | `String` | `确认` |
|
||||
| cancel-button-text | 取消按钮文字 | `String` | `取消` |
|
||||
|
||||
### Event
|
||||
|
||||
|
@ -12,6 +12,8 @@ VantComponent({
|
||||
title: String,
|
||||
value: String,
|
||||
loading: Boolean,
|
||||
cancelButtonText: String,
|
||||
confirmButtonText: String,
|
||||
itemHeight: {
|
||||
type: Number,
|
||||
value: 44
|
||||
|
@ -10,6 +10,8 @@
|
||||
columns="{{ displayColumns }}"
|
||||
item-height="{{ itemHeight }}"
|
||||
visible-item-count="{{ visibleItemCount }}"
|
||||
cancel-button-text="{{ cancelButtonText }}"
|
||||
confirm-button-text="{{ confirmButtonText }}"
|
||||
bind:change="onChange"
|
||||
bind:confirm="onConfirm"
|
||||
bind:cancel="onCancel"
|
||||
|
Loading…
x
Reference in New Issue
Block a user