1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 1× 1× 1× 1× 1× 1× 1× 1× | import Waterfall from './directive.js';
import Vue from 'vue';
const install = function(Vue) {
Vue.directive('WaterfallLower', Waterfall('lower'));
Vue.directive('WaterfallUpper', Waterfall('upper'));
};
Eif (!Vue.prototype.$isServer) {
Vue.use(install);
}
Waterfall.install = install;
export default Waterfall;
|