使用 vue-recyclerview 处理大型列表
如果您需要直接从 GitHub 进行克隆并自行构建 vue-recyclerview,
你想使用最新的开发版本。
$ git clone [email protected]:hilongjw/vue-recyclerview.git node_modules/vue-recyclerview
$ cd node_modules/vue-recyclerview
$ npm install
$ npm run build
我们将在指南中的代码示例中使用 ES2015。
// If using a module system (e.g. via vue-cli), import Vue and RecyclerView and then call Vue.use(RecyclerView).
// import Vue from 'vue'
// import RecyclerView from 'vue-recyclerview'
// import App from './App.vue'
// Vue.use(RecyclerView)
// Now the app has started!
new Vue({
render: h => h(App)
}).$mount('#app')<template>
</template>
<script>
导入 MiItem 组件: import MiItem from './MiItem.vue'
import MiTomstone from './MiTombstone.vue'
import MiFetch from './mi-fetch'
export default {
name: 'app',
data() {
return {
Mi
[https://hilongjw.github.io/vue-recyclerview/](https://hilongjw.github.io/vue-recyclerview/)暂无开放 Issues,或尚未同步最近议题。