[new feature] Area: add confirm-button-text prop (#2556)

This commit is contained in:
neverland 2019-01-19 08:59:50 +08:00 committed by GitHub
parent 5d17b5e643
commit 3b57367249
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,8 @@ Set `columns-num` with 2, you'll have a 2 level picker.
| item-height | Option height | `Number` | `44` |
| loading | Whether to show loading prompt | `Boolean` | `false` |
| visible-item-count | Count of visible columns | `Number` | `5` |
| confirm-button-text | Text of confirm button | `String` | `Confirm` |
| cancel-button-text | Text of cancel button | `String` | `Cancel` |
### Event

View File

@ -195,6 +195,8 @@ export default sfc({
columns={this.displayColumns}
itemHeight={this.itemHeight}
visibleItemCount={this.visibleItemCount}
cancelButtonText={this.cancelButtonText}
confirmButtonText={this.confirmButtonText}
{...{ on }}
/>
);

View File

@ -46,6 +46,8 @@ Vue.use(Area);
| loading | 是否显示加载状态 | `Boolean` | `false` | - |
| item-height | 选项高度 | `Number` | `44` | - |
| visible-item-count | 可见的选项个数 | `Number` | `5` | - |
| confirm-button-text | 确认按钮文字 | `String` | `确认` | 1.5.3 |
| cancel-button-text | 取消按钮文字 | `String` | `取消` | 1.5.3 |
### Event