mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(Area): add swipe-duration prop (#5014)
This commit is contained in:
parent
4c9eb995d4
commit
438711ef82
@ -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 animation,unit `ms` | *number* | `1000` | `2.2.10` |
|
||||
|
||||
### Events
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user