File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
uni_modules/uview-ui/components Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 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 >
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 >
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 ) {
Original file line number Diff line number Diff line change 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 })
You can’t perform that action at this time.
0 commit comments