this.curIndex = this.swiper.activeIndex; }, }, }; </script> Swiper 在 Vue3 的 setup 语法糖中的写法 如果是在TypeScript语法环境下Vue3.x的setup语法糖中的写法,如果通过new Swiper()创建的时候配置属性,会报TypeScript class constructor without ‘new’ cannot be invoked类似的错误,主要还是因为写法的...
"swiper-next": "^0.1.1", "t-comm": "latest", Expand Down 14 changes: 7 additions & 7 deletions 14 pnpm-lock.yaml Show comments View file Edit file Delete file Load diff Some generated files are not rendered by default. Learn more about how customized files appear on GitHub....