mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 03:44:48 +00:00
瀑布流加载功能实现 && 文档补全
This commit is contained in:
14
packages/waterfall/src/main.js
Normal file
14
packages/waterfall/src/main.js
Normal 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;
|
Reference in New Issue
Block a user