diff --git a/docs/site/demo-locale.js b/docs/site/demo-locale.js index e9df61e0e..f37be8300 100644 --- a/docs/site/demo-locale.js +++ b/docs/site/demo-locale.js @@ -5,15 +5,6 @@ Locale.add({ 'en-US': enUS, }); -export const DemoLocaleMixin = { - computed: { - // flag for vant-weapp demos - isWeapp() { - return location.search.indexOf('weapp=1') !== -1; - }, - }, -}; - // switch lang after routing if (window.vueRouter) { window.vueRouter.afterEach((to) => { diff --git a/docs/site/entry.js b/docs/site/entry.js index a1f425679..853c6a18e 100644 --- a/docs/site/entry.js +++ b/docs/site/entry.js @@ -1,11 +1,8 @@ -import { DemoLocaleMixin } from './demo-locale'; +import './demo-locale'; import Lazyload from '../../src/lazyload'; const { app } = window; if (app) { - // helper for demo locales - app.mixin(DemoLocaleMixin); - app.use(Lazyload, { lazyComponent: true, }); diff --git a/src/action-bar/demo/index.vue b/src/action-bar/demo/index.vue index add8ccea1..86cfd3e13 100644 --- a/src/action-bar/demo/index.vue +++ b/src/action-bar/demo/index.vue @@ -72,7 +72,7 @@ const onClickButton = () => Toast(t('clickButton')); - + diff --git a/src/button/demo/index.vue b/src/button/demo/index.vue index d1019475e..8e88ea1e1 100644 --- a/src/button/demo/index.vue +++ b/src/button/demo/index.vue @@ -124,7 +124,7 @@ const t = useTranslate(i18n); {{ t('blockElement') }} - + diff --git a/src/calendar/demo/index.vue b/src/calendar/demo/index.vue index f6f8d3923..c938806a1 100644 --- a/src/calendar/demo/index.vue +++ b/src/calendar/demo/index.vue @@ -282,7 +282,6 @@ const onConfirm = (date: Date | Date[]) => { /> - + @@ -66,7 +66,7 @@ const t = useTranslate(i18n); - + diff --git a/src/checkbox/demo/index.vue b/src/checkbox/demo/index.vue index 3f6b9f243..93b4fb01c 100644 --- a/src/checkbox/demo/index.vue +++ b/src/checkbox/demo/index.vue @@ -126,7 +126,7 @@ const toggleAll = () => { - + {{ t('checkbox') }} a {{ t('checkbox') }} b @@ -141,7 +141,7 @@ const toggleAll = () => { - + {{ t('checkbox') }} a {{ t('checkbox') }} b diff --git a/src/col/demo/index.vue b/src/col/demo/index.vue index 396ce67e1..c3ea3f180 100644 --- a/src/col/demo/index.vue +++ b/src/col/demo/index.vue @@ -41,7 +41,7 @@ const t = useTranslate(i18n); - + span: 6 span: 6 diff --git a/src/datetime-picker/demo/index.vue b/src/datetime-picker/demo/index.vue index a94dd59aa..68f6acb4d 100644 --- a/src/datetime-picker/demo/index.vue +++ b/src/datetime-picker/demo/index.vue @@ -89,7 +89,7 @@ const formatter = (type: string, value: string) => { /> - + { /> - + { /> - + value.replace(/\d/g, ''); - +