fix(Swipe): failed to render when inside popup (#11162)

* fix(Swipe): failed to render when inside popup

* chore: upd
This commit is contained in:
neverland
2022-10-22 22:58:42 +08:00
committed by GitHub
parent ff34eb73fd
commit 859e5ee32c
3 changed files with 85 additions and 86 deletions
+3 -1
View File
@@ -101,7 +101,9 @@ export default defineComponent({
});
const maxCount = computed(() =>
Math.ceil(Math.abs(minOffset.value) / size.value)
size.value
? Math.ceil(Math.abs(minOffset.value) / size.value)
: count.value
);
const trackSize = computed(() => count.value * size.value);