all files / packages/waterfall/src/ main.js

100% Statements 14/14
83.33% Branches 5/6
100% Functions 2/2
100% Lines 9/9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16                
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;