Skip to content

Commit

Permalink
improved onclick card to open it
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Sep 11, 2023
1 parent 47496c0 commit b22a9d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/atoms/SheetModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ function open(smooth = false) {
if (smooth) {
const source = ref(0)
const output = useTransition(source, {
duration: 500,
duration: 300,
transition: TransitionPresets.easeOutQuart,
})
source.value = 1
const stop = watch(output, () => {
emit('update:progress', output.value / 1)
emit('update:progress', output.value)
if (output.value >= 1) {
source.value = 0
stop()
Expand Down

0 comments on commit b22a9d3

Please sign in to comment.