mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
feat(cli): pc 组件预览支持 i18n (#8346)
This commit is contained in:
12
docs/site/entry.js
Normal file
12
docs/site/entry.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { DemoLocaleMixin } from './demo-locale';
|
||||
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