mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
15 lines
320 B
JavaScript
15 lines
320 B
JavaScript
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;
|