2018-12-14 14:24:23 +08:00

12 lines
354 B
JavaScript

import Waterfall from './directive';
Waterfall.install = function (Vue) {
if (process.env.NODE_ENV !== 'production') {
console.warn('[Vant] Waterfall is deprecated, please use List component instread');
}
Vue.directive('WaterfallLower', Waterfall('lower'));
Vue.directive('WaterfallUpper', Waterfall('upper'));
};
export default Waterfall;