Skip to content

Commit

Permalink
fix(Swiper): resolved loading style (#2246)
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao authored Aug 4, 2023
1 parent e13bada commit e232fe0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 26 deletions.
14 changes: 2 additions & 12 deletions src/swiper/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ exports[`Swiper Swiper vertical demo works fine 1`] = `
class="option"
>
<t-slider
label=""
label="{{true}}"
max="{{5000}}"
min="{{1000}}"
step="{{500}}"
Expand All @@ -288,11 +288,6 @@ exports[`Swiper Swiper vertical demo works fine 1`] = `
value="{{5000}}"
bind:change="onIntervalChange"
/>
<wx-view
class="option-desc"
>
5000
</wx-view>
</wx-view>
</wx-view>
<wx-view
Expand All @@ -307,7 +302,7 @@ exports[`Swiper Swiper vertical demo works fine 1`] = `
class="option"
>
<t-slider
label=""
label="{{true}}"
max="{{2000}}"
min="{{200}}"
step="{{100}}"
Expand All @@ -316,11 +311,6 @@ exports[`Swiper Swiper vertical demo works fine 1`] = `
value="{{500}}"
bind:change="onDurationChange"
/>
<wx-view
class="option-desc"
>
500
</wx-view>
</wx-view>
</wx-view>
</wx-view>
Expand Down
6 changes: 2 additions & 4 deletions src/swiper/_example/vertical/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@
value="{{interval}}"
min="{{1000}}"
max="{{5000}}"
label=""
label="{{true}}"
step="{{500}}"
bindchange="onIntervalChange"
></t-slider>
<view class="option-desc">{{interval}}</view>
</view>
</view>
<view class="cell">
Expand All @@ -45,11 +44,10 @@
value="{{duration}}"
min="{{200}}"
max="{{2000}}"
label=""
label="{{true}}"
step="{{100}}"
bindchange="onDurationChange"
></t-slider>
<view class="option-desc">{{duration}}</view>
</view>
</view>
</view>
10 changes: 1 addition & 9 deletions src/swiper/_example/vertical/index.wxss
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,12 @@
margin-right: 20rpx;
}

.cell .option {
display: flex;
flex-direction: row;
justify-content: start;
align-items: center;
}

.cell .option-desc {
width: 68rpx;
padding-left: 32rpx;
}

.cell .swiper-slider {
flex: 1;
margin: 32rpx 0;
}

.swiper-box-vertical .item {
Expand Down
1 change: 0 additions & 1 deletion src/swiper/swiper.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
transition: all 0.3s ease;

&-host {
display: block;
width: 100%;
}
}
Expand Down

0 comments on commit e232fe0

Please sign in to comment.