Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(swiper): add image-props property #1411

Merged
merged 1 commit into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/common/template/image.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
showMenuByLongpress="{{showMenuByLongpress}}"
bind:error="{{binderror}}"
bind:load="{{bindload}}"
class="{{class}}"
t-class="{{tClass}}"
t-class-load="{{tClassLoad}}"
/>
Expand Down
1 change: 1 addition & 0 deletions src/swiper/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ display-multiple-items | Number | 1 | `0.32.0` | N
duration | Number | 300 | \- | N
easing-function | String | default | `0.32.0`。options:default/linear/easeInCubic/easeOutCubic/easeInOutCubic | N
height | String / Number | 192 | \- | N
image-props | Object | - | `0.34.0` | N
interval | Number | 5000 | \- | N
list | Array | - | `0.32.0`。Typescript:`string[]` | N
loop | Boolean | true | \- | N
Expand Down
1 change: 1 addition & 0 deletions src/swiper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ display-multiple-items | Number | 1 | `0.32.0`。同时显示的滑块数量 | N
duration | Number | 300 | 滑动动画时长 | N
easing-function | String | default | `0.32.0`。指定 swiper 切换缓动动画类型。可选项:default/linear/easeInCubic/easeOutCubic/easeInOutCubic | N
height | String / Number | 192 | 轮播的高度;默认单位 `px` | N
image-props | Object | - | `0.34.0`。透传至 Image 组件 | N
interval | Number | 5000 | 轮播间隔时间 | N
list | Array | - | `0.32.0`。图片列表。TS 类型:`string[]` | N
loop | Boolean | true | 是否循环播放 | N
Expand Down
10 changes: 10 additions & 0 deletions src/swiper/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ exports[`Swiper Swiper cards demo works fine 1`] = `
autoplay="{{false}}"
current="{{0}}"
duration="{{500}}"
imageProps="{{
Object {
"shape": "round",
}
}}"
interval="{{5000}}"
list="{{
Array [
Expand Down Expand Up @@ -64,6 +69,11 @@ exports[`Swiper Swiper cards demo works fine 1`] = `
class="scale-card-theme"
current="{{0}}"
duration="{{500}}"
imageProps="{{
Object {
"shape": "round",
}
}}"
interval="{{5000}}"
list="{{
Array [
Expand Down
Loading