Skip to content

Commit e97c839

Browse files
authored
fix: update problem (#34)
1 parent d5d2a69 commit e97c839

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

packages/demos/app/actionsheet/custom-content.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
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('')
2524
const boxVisibility = ref(false)
2625
2726
function cancelFn() {
27+
boxVisibility.value = false
2828
console.log('取消')
2929
}
3030
3131
function confirmFn(msg) {
32+
boxVisibility.value = false
3233
console.log('确定:', msg)
3334
}
3435

packages/mobile/components/numeric/src/mobile.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
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>
@@ -39,6 +40,7 @@
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>

0 commit comments

Comments
 (0)