mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
feat: add @vant/lazyload pacakge
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
import { DemoLocaleMixin } from './demo-locale';
|
||||
// import Lazyload from '../../src/lazyload';
|
||||
|
||||
// TODO
|
||||
// Vue.use(Lazyload, {
|
||||
// lazyComponent: true,
|
||||
// });
|
||||
import Lazyload from '../../src/lazyload';
|
||||
|
||||
const { app } = window;
|
||||
if (app) {
|
||||
// helper for demo locales
|
||||
app.mixin(DemoLocaleMixin);
|
||||
|
||||
app.use(Lazyload, {
|
||||
lazyComponent: true,
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user