- 为什么swiper中嵌套horizontal-drag手势时,真机调试时不触发手势?
<swiper> <swiper-item> <horizontal-drag-gesture-handler> <view></view> </horizontal-drag-gesture-handler> </swiper-item> </swiper> 上面这种写法,在模拟器中调试是OK的,内层的水平拖拽可以正常响应。但是真机调试时,内层拖拽不会响应,而是响应swiper的拖拽。
2天前 - 为什么sticky-header不生效呢?
请问一下大佬们,我就写了下面这一个很简单的demo,但是为啥吸顶不生效呢? <scroll-view class="scroll-area" scroll-y type="custom"> <sticky-section push-pinned-header="{{false}}"> <sticky-header> <view class="day-container">{{wedDay}},剩余:{{remain}}天</view> </sticky-header> <text> a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a</text> </sticky-section> </scroll-view>
10-27