zr-vue-ui
v1.0.8
Published
A Vue.js project
Downloads
15
Readme
zr-vue-ui
UI components based on Vue
Install
npm install zr-vue-ui --save
Components
Loading
import Vue from 'vue';
import { Loading } from 'zr-vue-ui';
Vue.use(Loading);
// or
Vue.use(Loading ,{type : 'b'});
Scroll
Scroll
组件默认开启阻止ios设备上滚动回弹效果,封装了滚动触底事件,便于实现上拉加载效果。
// main.js
import Vue from 'vue';
import { Scroll } from 'zr-vue-ui';
Vue.use(Scroll);
<!-- *.vue -->
<template>
<Scroll ref="scroll" @reachBottom="onReachBottom" :threshold="30" :pullUpLoad="true">
</Scroll>
</template>