Skip to content

Commit 864be5f

Browse files
committed
feat: i18n 页面路由
1 parent a609cbc commit 864be5f

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

src/pages/demo/i18n.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<script setup lang="ts"></script>
2+
3+
<template>
4+
<van-empty description="作者正在努力,点个 Star 为作者加速!" />
5+
</template>

src/router/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,20 @@ export const demoRoutes: RouteRecordRaw[] = [
140140
}
141141
}
142142
}
143+
},
144+
{
145+
path: "/i18n",
146+
component: () => import("@/pages/demo/i18n.vue"),
147+
name: "I18n",
148+
meta: {
149+
title: "国际化 / 多语言",
150+
layout: {
151+
navBar: {
152+
showNavBar: true,
153+
showLeftArrow: true
154+
}
155+
}
156+
}
143157
}
144158
]
145159

types/auto/components.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ declare module 'vue' {
1515
VanCellGroup: typeof import('vant/es')['CellGroup']
1616
VanConfigProvider: typeof import('vant/es')['ConfigProvider']
1717
VanDivider: typeof import('vant/es')['Divider']
18+
VanEmpty: typeof import('vant/es')['Empty']
1819
VanField: typeof import('vant/es')['Field']
1920
VanForm: typeof import('vant/es')['Form']
2021
VanIcon: typeof import('vant/es')['Icon']

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy