Skip to content

Commit

Permalink
doc: swiper add prop
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyan0205 committed Dec 25, 2018
1 parent 93187c8 commit bf3af86
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions components/swiper/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Vue.component(SwiperItem.name, SwiperItem)
|---|---|---|---|---|
|autoplay|the interval (ms) of autoplay; set `0` to disable autoplay|Number|`3000`|`0`, `[500, +Int.Max)`|
|transition|animation effects|String|`slide`|`slide`, `slideY`, `fade`, `fade`|
|transition-duration|animation effects duration|Number|`250`|unit `ms`|
|default-index|default selected index|Number|`0`|`[0, length - 1]`|
|has-dots|display the indication dots|Boolean|`true`|-|
|is-prevent|prevent the default event|Boolean|`true`|set it to `false` when binding click event to `swiper-item`|
Expand Down
1 change: 1 addition & 0 deletions components/swiper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Vue.component(SwiperItem.name, SwiperItem)
|---|---|---|---|---|
|autoplay|自动切换间隔时长(毫秒), 禁用可设置为`0`|Number|`3000`|`0`, `[500, +Int.Max)`|
|transition|面板切换动画效果|String|`slide`|`slide`, `slideY`, `fade`, `fade`|
|transition-duration|面板切换动画时长|Number|`250`|单位`ms`|
|default-index|第一屏面板索引值|Number|`0`|`[0, length - 1]`|
|has-dots|控制面板指示点|Boolean|`true`|-|
|is-prevent|阻止默认的事件,如页面滚动事件|Boolean|`true`|`swiper-item`绑定点击事件需将其设置为`false`|
Expand Down
6 changes: 5 additions & 1 deletion site/docs/migration.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ title: Migration from 1.x
- Features and Improvements
- 🔅 New prop `direction`, used to set the step bar display direction and default value is `horizontal`.
- 🔅 New prop `transition`, used for progress change effects.


#### Swiper
- Features and Improvements
- 🔅 New prop `transition-duration`

#### TabBar

- Breaking Changes
Expand Down
6 changes: 5 additions & 1 deletion site/docs/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ title: 从 1.x 迁移
- 新增功能
- 🔅 新增属性`direction`,用于设置步骤条展示方向,默认为`horizontal`
- 🔅 新增属性`transition`,用于进度变化动效


#### Swiper
- 新增功能
- 🔅 新增属性`transition-duration`

#### TabBar

- 不兼容改动
Expand Down

0 comments on commit bf3af86

Please sign in to comment.