File tree Expand file tree Collapse file tree
mobile/components/numeric/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 <tiny-button @click =" fn" >click me!</tiny-button >
44 <tiny-action-sheet
55 :visible =" boxVisibility"
6- @update:visible =" boxVisibility = $event"
76 @cancel =" cancelFn"
87 @confirm =" confirmFn"
98 >
@@ -25,10 +24,12 @@ const activeName = ref('')
2524const boxVisibility = ref (false )
2625
2726function cancelFn() {
27+ boxVisibility .value = false
2828 console .log (' 取消' )
2929}
3030
3131function confirmFn(msg ) {
32+ boxVisibility .value = false
3233 console .log (' 确定:' , msg )
3334}
3435
Original file line number Diff line number Diff line change 2929 v-repeat-click =" decrease"
3030 :class =" { 'is-disabled': state.minDisabled }"
3131 @keydown.enter =" decrease"
32+ @touchstart.stop.prevent =" decrease"
3233 >
3334 <component :is =" state.controlsAtRight ? 'icon-chevron-down' : 'icon-minus'" />
3435 </span >
3940 v-repeat-click =" increase"
4041 :class =" { 'is-disabled': state.maxDisabled }"
4142 @keydown.enter =" increase"
43+ @touchstart.stop.prevent =" increase"
4244 >
4345 <component :is =" state.controlsAtRight ? 'icon-chevron-up' : 'icon-plus'" />
4446 </span >
You can’t perform that action at this time.
0 commit comments