Skip to content

Commit

Permalink
feat(swiper): 优化swiper
Browse files Browse the repository at this point in the history
  • Loading branch information
novlan1 committed Nov 29, 2024
1 parent af38ffd commit bcc0c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/swiper/swiper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default defineComponent({
const root = ref();
const items = ref<any>([]);
const { current: value, modelValue } = toRefs(props);
const [currentIndex, setCurrent] = useVModel(value, modelValue, props.defaultCurrent, props.onChange, 'current');
const [currentIndex, setCurrent] = useVModel(value, modelValue, props.defaultCurrent);
const swiperContainer = ref<HTMLElement | null>(null);
const previous = ref(currentIndex.value ?? 0);

Expand Down

0 comments on commit bcc0c55

Please sign in to comment.