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

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

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