mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
[Improvement] Toast: support Vue.use to register (#690)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Waterfall from './directive.js';
|
||||
|
||||
const install = function(Vue) {
|
||||
Waterfall.install = function(Vue) {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
console.warn('[Vant warn] Waterfall is deprecated, please use List component instread.');
|
||||
}
|
||||
@@ -8,5 +8,4 @@ const install = function(Vue) {
|
||||
Vue.directive('WaterfallUpper', Waterfall('upper'));
|
||||
};
|
||||
|
||||
Waterfall.install = install;
|
||||
export default Waterfall;
|
||||
|
Reference in New Issue
Block a user