瀑布流加载功能实现 && 文档补全

This commit is contained in:
pangxie1991
2017-02-26 17:22:53 +08:00
parent 846f555861
commit 787ff255b8
8 changed files with 271 additions and 22 deletions

View File

@@ -0,0 +1,14 @@
import Waterfall from './directive.js';
import Vue from 'vue';
const install = function(Vue) {
Vue.directive('WaterfallLower', Waterfall('lower'));
Vue.directive('WaterfallUpper', Waterfall('upper'));
};
if (!Vue.prototype.$isServer) {
Vue.use(install);
}
Waterfall.install = install;
export default Waterfall;