Skip to content

Commit f48ff45

Browse files
committed
uview update to 20220324
1 parent 089bc24 commit f48ff45

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

uni_modules/uview-ui/components/u-action-sheet/u-action-sheet.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
<u-popup
44
:show="show"
55
mode="bottom"
6-
@close="close"
7-
:closeOnClickOverlay="closeOnClickOverlay"
6+
@close="closeHandler"
87
:safeAreaInsetBottom="safeAreaInsetBottom"
98
:round="round"
109
>
@@ -100,7 +99,7 @@
10099
:hover-stay-time="150"
101100
v-if="cancelText"
102101
class="u-action-sheet__cancel-text"
103-
@tap="close"
102+
@tap="cancel"
104103
>{{cancelText}}</text>
105104
</view>
106105
</view>
@@ -167,12 +166,16 @@
167166
},
168167
},
169168
methods: {
170-
close() {
169+
closeHandler() {
171170
// 允许点击遮罩关闭时,才发出close事件
172171
if(this.closeOnClickOverlay) {
173172
this.$emit('close')
174173
}
175174
},
175+
// 点击取消按钮
176+
cancel() {
177+
this.$emit('close')
178+
},
176179
selectHandler(index) {
177180
const item = this.actions[index]
178181
if (item && !item.disabled && !item.loading) {

uni_modules/uview-ui/components/u-list/u-list.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
// 滚动到底部时触发,非nvue有效
140140
scrolltoupper(e) {
141141
uni.$u.sleep(30).then(() => {
142-
this.$emit('scrolltolower')
142+
this.$emit('scrolltoupper')
143143
// 这一句很重要,能绝对保证在性功能障碍的webview,滚动条到顶时,取消偏移值,让页面置顶
144144
this.offset = 0
145145
})

0 commit comments

Comments
 (0)