[Deprecate] add Waterfall deprecate tip (#683)

This commit is contained in:
neverland 2018-03-13 16:22:28 +08:00 committed by GitHub
parent 5592db2cb2
commit c45cbb632f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,9 @@
import Waterfall from './directive.js';
const install = function(Vue) {
if (process.env.NODE_ENV !== 'production') {
console.warn('[Vant warn] Waterfall is deprecated, please use List component instread.');
}
Vue.directive('WaterfallLower', Waterfall('lower'));
Vue.directive('WaterfallUpper', Waterfall('upper'));
};