|
本帖最后由 杨永安 于 2022-6-30 10:39 编辑
我测试是可以触发的。测试代码:
- <template>
- <view>
- <text class="title">垂直滚动</text>
- <scroll-view class="scroll-view" scroll-y>
- <view class="item red"></view>
- <view class="item green"></view>
- <view class="item blue"></view>
- </scroll-view>
- </view>
- </template>
- <style>
- .scroll-view {
- width: 100%;
- height: 150px;
- }
- .title {
- padding: 10px 0;
- font-size: 20px;
- }
- .item {
- width: 100%;
- height: 100%;
- }
- .red {
- background-color: #f00;
- }
- .green {
- background-color: #0f0;
- }
- .blue {
- background-color: #00f;
- }
- </style>
- <script>
- export default {
- name: 'test',
- onscrolltolower(e) {
- console.log('onscrolltolower', e);
- }
- }
- </script>
复制代码
|
|