1.0.7 • Published 4 years ago
vue-flip-page v1.0.7
vue-flip-page
vue翻页组件
博客:https://blog.csdn.net/qq_38188485/article/details/104169249
方法 change (改变页面) tap (点击) turning (正在翻页) prev (前一页) next (后一页) 翻到指定页面:
handleSwitchManual(index) { if (index === this.currentIndex) return; this.$refs"turn".toPage(index); this.currentIndex = index; this.goods_id = this.manualsthis.currentIndex.goods_id; this.show = false; },
传入参数:
npm包 npm install vue-flip-page
在需要用到的页面中(注意 一个页面目前只能引入一次)
import flipPage from "vue-flip-page";
components: { flipPage }
例子:
效果: