chore: remove @demo alias

This commit is contained in:
chenjiahan 2021-09-05 12:49:04 +08:00
parent f144a6e2cd
commit f7f5c6e9b5
95 changed files with 102 additions and 109 deletions

View File

@ -22,5 +22,6 @@
</head>
<body ontouchstart>
<div id="app"></div>
<script type="module" src="/mobile/main.js"></script>
</body>
</html>

View File

@ -10,7 +10,7 @@
</template>
<script>
import DemoNav from './components/DemoNav';
import DemoNav from './components/DemoNav.vue';
export default {
components: { DemoNav },

View File

@ -21,7 +21,7 @@
<script>
import { config } from 'site-mobile-shared';
import DemoHomeNav from './DemoHomeNav';
import DemoHomeNav from './DemoHomeNav.vue';
export default {
components: {

View File

@ -16,7 +16,7 @@
</template>
<script>
import ArrowRight from './ArrowRight';
import ArrowRight from './ArrowRight.vue';
export default {
components: {

View File

@ -1,9 +1,9 @@
import { createApp } from 'vue';
import DemoBlock from './components/DemoBlock';
import DemoSection from './components/DemoSection';
import DemoBlock from './components/DemoBlock.vue';
import DemoSection from './components/DemoSection.vue';
import { router } from './router';
import { packageEntry } from 'site-mobile-shared';
import App from './App';
import App from './App.vue';
import '@vant/touch-emulator';
window.app = createApp(App)

View File

@ -1,6 +1,6 @@
import { watch, nextTick } from 'vue';
import { createRouter, createWebHashHistory } from 'vue-router';
import DemoHome from './components/DemoHome';
import DemoHome from './components/DemoHome.vue';
import { decamelize } from '../common';
import { demos, config } from 'site-mobile-shared';
import { getLang, setDefaultLang } from '../common/locales';

View File

@ -6,6 +6,7 @@ import {
getVantConfig,
smartOutputFile,
normalizePath,
isDev,
} from '../common';
import {
SRC_DIR,
@ -79,12 +80,13 @@ function resolveDocuments(components: string[]): DocumentItem[] {
function genImportDocuments(items: DocumentItem[]) {
return items
.map(
(item) =>
`const ${
item.name
} = defineAsyncComponent(() => import('${normalizePath(item.path)}'));`
)
.map((item) => {
const path = normalizePath(item.path);
if (isDev()) {
return `const ${item.name} = defineAsyncComponent(() => import('${path}'));`;
}
return `import ${item.name} from '${path}';`;
})
.join('\n');
}

View File

@ -18,7 +18,7 @@ type DemoItem = {
function genInstall() {
return `import packageEntry from './package-entry';
import './package-style';
import './package-style.less';
`;
}

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref, computed } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { ActionSheetAction } from '..';
import { Toast } from '../../toast';

View File

@ -1,7 +1,7 @@
<script setup lang="ts">
import { ref } from 'vue';
import { areaList } from '@vant/area-data';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -2,7 +2,7 @@
import { ref } from 'vue';
import { areaList } from '@vant/area-data';
import { areaListEn } from './area-en';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,5 +1,5 @@
<script setup>
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const minDate = new Date(2012, 0, 10);
const maxDate = new Date(2012, 2, 20);

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { reactive } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import TiledDisplay from './TiledDisplay.vue';
import type { CalendarDayItem } from '../types';

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, reactive } from 'vue';
import { CascaderOption } from '..';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { deepClone } from '../../utils/deep-clone';
import zhCNOptions from './area-zh-CN';
import enUSOptions from './area-en-US';

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref, reactive } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { useRefs } from '../../composables/use-refs';
import type { CheckboxInstance } from '../types';
import type { CheckboxGroupInstance } from '../../checkbox-group';

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { computed } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
import type { CountDownInstance } from '../CountDown';

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref, computed } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { CouponInfo } from '../../coupon';
import { Toast } from '../../toast';

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { reactive } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Dialog } from '..';
import type { DialogAction } from '../Dialog';

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { computed, ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import type { DropdownItemInstance } from '../../dropdown-item';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { FieldValidateError } from '../../field/types';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import FieldTypeArea from './FieldTypeArea.vue';
import FieldTypePicker from './FieldTypePicker.vue';
import FieldTypeCalendar from './FieldTypeCalendar.vue';

View File

@ -1,7 +1,7 @@
<script setup lang="ts">
import { ref } from 'vue';
import { areaList } from '@vant/area-data';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { AreaColumnOption } from '../../area';
import { areaListEn } from '../../area/demo/area-en';

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { FieldValidateError } from '../../field/types';
import { Toast } from '../../toast';

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,7 +1,7 @@
<script setup lang="ts">
import icons from '@vant/icons';
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Notify } from '../../notify';
// from https://30secondsofcode.org

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { ImagePreview, ImagePreviewOptions } from '..';
import { Toast } from '../../toast';

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Notify } from '..';
import { NotifyType } from '../Notify';

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,7 +1,7 @@
<script setup lang="ts">
import { ref, watch } from 'vue';
import { ComponentInstance } from '../../utils';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,7 +1,7 @@
<script setup lang="ts">
import { ref, computed } from 'vue';
import { dateColumns, cascadeColumns, cascadeColumnsCustomKey } from './data';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { computed, onMounted, ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref, computed } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { ShareSheetOption, ShareSheetOptions } from '..';
import { Toast } from '../../toast';

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Dialog } from '../../dialog';
const t = useTranslate({

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Dialog } from '../../dialog';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '../../toast';
const t = useTranslate({

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
const t = useTranslate({
'zh-CN': {

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { Toast } from '..';
import type { LoadingType } from '../../loading';

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref, computed } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { zhCNData } from './data-zh';
import { enUSData } from './data-en';
import { deepClone } from '../../utils/deep-clone';

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import { useTranslate } from '../../../docs/site/use-translate';
import { UploaderFileListItem } from '../types';
import { Toast } from '../../toast';

View File

@ -10,9 +10,6 @@
"noImplicitThis": true,
"esModuleInterop": true,
"moduleResolution": "node",
"paths": {
"@demo/*": ["docs/site/*"]
}
},
"include": ["src/**/*", "types/**/*", "docs/**/*", "test/**/*"]
}

View File

@ -1,5 +1,3 @@
const { join } = require('path');
module.exports = function () {
if (process.env.BUILD_TARGET === 'package') {
return {};
@ -11,10 +9,5 @@ module.exports = function () {
'site-mobile': ['./docs/site/entry'],
'site-desktop': ['./docs/site/entry'],
},
resolve: {
alias: {
'@demo': join(__dirname, 'docs', 'site'),
},
},
};
};