feat(Area): add swipe-duration prop (#5014)

This commit is contained in:
neverland 2019-11-14 19:16:24 +08:00 committed by GitHub
parent 4c9eb995d4
commit 438711ef82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -69,6 +69,7 @@ Set `columns-num` with 2, you'll have a 2 level picker.
| confirm-button-text | Text of confirm button | *string* | `Confirm` | - |
| cancel-button-text | Text of cancel button | *string* | `Cancel` | - |
| is-oversea-code | The method to validate oversea code | *() => boolean* | - | 2.1.4 |
| swipe-duration | Duration of the momentum animationunit `ms` | *number* | `1000` | `2.2.10` |
### Events

View File

@ -68,6 +68,7 @@ Vue.use(Area);
| confirm-button-text | 确认按钮文字 | *string* | `确认` | - |
| cancel-button-text | 取消按钮文字 | *string* | `取消` | - |
| is-oversea-code | 根据`code`校验海外地址,海外地址会划分至单独的分类 | *() => boolean* | - | 2.1.4 |
| swipe-duration | 快速滑动时惯性滚动的时长,单位`ms` | *number* | `1000` | `2.2.13` |
### Events

View File

@ -268,6 +268,7 @@ export default createComponent({
loading={this.loading}
columns={this.displayColumns}
itemHeight={this.itemHeight}
swipeDuration={this.swipeDuration}
visibleItemCount={this.visibleItemCount}
cancelButtonText={this.cancelButtonText}
confirmButtonText={this.confirmButtonText}