提交 56623a72 编写于 作者: taohebin@dcloud.io's avatar taohebin@dcloud.io

fix: 1. 去除不支持的css样式 2. 修复scroll-view示例rebound无效的问题

上级 94467668
......@@ -91,7 +91,6 @@
.input-wrapper_image {
width: 22px;
height: 22px;
align-self: center;
margin-right: 10rpx;
}
</style>
\ No newline at end of file
......@@ -8,8 +8,8 @@
<scroll-view v-if="scrollX" :scroll-x="true" :scroll-top="scrollTop" :scroll-left="scrollLeft"
:upper-threshold="upperThreshold" :lower-threshold="lowerThreshold" :scroll-into-view="scrollIntoView"
:enable-back-to-top="enableBackToTop" :scroll-with-animation="scrollWithAnimation"
:show-scrollbar="showScrollbar" @scrolltoupper="scrolltoupper" @scrolltolower="scrolltolower"
@scroll="scroll" @scrollend="scrollend">
:show-scrollbar="showScrollbar" :rebound="rebound" @scrolltoupper="scrolltoupper"
@scrolltolower="scrolltolower" @scroll="scroll" @scrollend="scrollend">
<view class="item" :id="'horizontal_'+item.id" v-for="(item,_) in items">
<text class="uni-text">{{item.label}}</text>
</view>
......@@ -17,8 +17,8 @@
<scroll-view v-else :scroll-x="false" :scroll-top="scrollTop" :scroll-left="scrollLeft"
:upper-threshold="upperThreshold" :lower-threshold="lowerThreshold" :scroll-into-view="scrollIntoView"
:enable-back-to-top="enableBackToTop" :scroll-with-animation="scrollWithAnimation"
:show-scrollbar="showScrollbar" @scrolltoupper="scrolltoupper" @scrolltolower="scrolltolower"
@scroll="scroll" @scrollend="scrollend">
:show-scrollbar="showScrollbar" :rebound="rebound" @scrolltoupper="scrolltoupper"
@scrolltolower="scrolltolower" @scroll="scroll" @scrollend="scrollend">
<view class="item" :id="item.id" v-for="(item,_) in items">
<text class="uni-text">{{item.label}}</text>
</view>
......@@ -32,7 +32,7 @@
</view>
<view class="uni-option">
<text>是否有反弹效果</text>
<switch :checked="bounces" @change="bounces=!bounces"></switch>
<switch :checked="rebound" @change="rebound=!rebound"></switch>
</view>
<view class="uni-option">
<text>是否开启滚动时使用动画过渡</text>
......@@ -89,7 +89,7 @@
return {
items: [] as Item[],
scrollX: false,
bounces: false,
rebound: false,
scrollTop: 0,
scrollLeft: 0,
scrollIntoView: "",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册