File tree 2 files changed +8
-5
lines changed
uni_modules/uview-ui/components
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 3
3
<u-popup
4
4
:show =" show"
5
5
mode =" bottom"
6
- @close =" close"
7
- :closeOnClickOverlay =" closeOnClickOverlay"
6
+ @close =" closeHandler"
8
7
:safeAreaInsetBottom =" safeAreaInsetBottom"
9
8
:round =" round"
10
9
>
100
99
:hover-stay-time =" 150"
101
100
v-if =" cancelText"
102
101
class =" u-action-sheet__cancel-text"
103
- @tap =" close "
102
+ @tap =" cancel "
104
103
>{{cancelText}}</text >
105
104
</view >
106
105
</view >
167
166
},
168
167
},
169
168
methods: {
170
- close () {
169
+ closeHandler () {
171
170
// 允许点击遮罩关闭时,才发出close事件
172
171
if (this .closeOnClickOverlay ) {
173
172
this .$emit (' close' )
174
173
}
175
174
},
175
+ // 点击取消按钮
176
+ cancel () {
177
+ this .$emit (' close' )
178
+ },
176
179
selectHandler (index ) {
177
180
const item = this .actions [index]
178
181
if (item && ! item .disabled && ! item .loading ) {
Original file line number Diff line number Diff line change 139
139
// 滚动到底部时触发,非nvue有效
140
140
scrolltoupper (e ) {
141
141
uni .$u .sleep (30 ).then (() => {
142
- this .$emit (' scrolltolower ' )
142
+ this .$emit (' scrolltoupper ' )
143
143
// 这一句很重要,能绝对保证在性功能障碍的webview,滚动条到顶时,取消偏移值,让页面置顶
144
144
this .offset = 0
145
145
})
You can’t perform that action at this time.
0 commit comments