Miracles sometimes occur,
but one has to work terribly for them.
人生除了眼前的苟且,还有未知的 bug 和看不懂的 code
Scrolltulip-scroll是一个用于vue项目的下拉刷新和上拉加载组件。原生滚动不依赖transform属性,复杂场景更方便。
https://psrheartache.gitee.io/scroll/#/ (opens new window)
使用 yarn 安装 tulip-scroll 主题:
yarn add tulip-scroll
或者使用 npm 安装它:
npm i tulip-scroll
如果你的网络环境不佳,推荐使用 cnpm (opens new window)。
mian.js
import TulipScroll from 'tulip-scroll'
vue.use(TulipScroll)
<template>
<div>
<tulip-scroll >
</tulip-scroll>
</div>
</template>
<script>
export default {
}
</script>
<style lang="less" scoped>
</style>
<template>
<div>
<tulip-scroll >
</tulip-scroll>
</div>
</template>
<script>
import TulipScroll from 'tulip-scroll'
export default {
components:{
TulipScroll
}
}
</script>
<style lang="less" scoped>
</style>