Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
5255116
feat(路由): 新增'/my/'路由配置
kerthans Aug 10, 2025
f551721
feat: 基础UI搭建
Mebius1916 Aug 10, 2025
56d6dfc
feat: 基础UI搭建完成
Mebius1916 Aug 10, 2025
38ba973
feat: add first page and tab components
sym-666 Aug 11, 2025
5ad52ee
feat: just test
lyra-planet Aug 13, 2025
9c69394
feat: 交互优化
Mebius1916 Aug 17, 2025
781cbf9
feat: 交互优化
Mebius1916 Aug 17, 2025
fb73b6d
feat: 用户信息持久化 && mock后端接口
Mebius1916 Aug 19, 2025
ab17077
feat: mostly finish the second page and fix the first page
sym-666 Aug 20, 2025
5a21f51
feat: add the function to connect these pages
sym-666 Aug 20, 2025
2e70996
fix: fix the error of the connection of the two pages
sym-666 Aug 20, 2025
f719cd8
feat: add a data.js,and all of data import this file to load data
sym-666 Aug 20, 2025
b0d3c0b
feat: 删除冗余页面
Mebius1916 Aug 20, 2025
8915ab7
feat: 用户信息持久化优化
Mebius1916 Aug 21, 2025
44a6b72
feat: 手机号采用E.164 标准格式
Mebius1916 Aug 21, 2025
1e48da2
feat: 接口问题修复
Mebius1916 Aug 21, 2025
af620f3
feat: test
lyra-planet Aug 22, 2025
ee806ed
feat(ui): 添加iOS风格状态栏图标并优化布局样式
kerthans Aug 23, 2025
7aeef68
feat(用户中心): 新增个人信息编辑和设置页面
kerthans Aug 23, 2025
273e448
refactor(views): 优化用户信息页面样式和布局
kerthans Aug 24, 2025
9d54a68
feat(my): 更新个人中心页面样式和功能
kerthans Aug 24, 2025
cab0076
fix: fix some bugs and improve the page structure
sym-666 Aug 24, 2025
d9becc6
feat: perfect the function of list and add the funcion of submitting.…
sym-666 Aug 24, 2025
0a8533c
feat: finish
lyra-planet Aug 24, 2025
9945a19
feat: finish
lyra-planet Aug 24, 2025
42ce835
feat: finish
lyra-planet Aug 24, 2025
3aa4299
feat(编辑页): 重构个人信息编辑页面并添加地址数据
kerthans Aug 25, 2025
e709bf4
Merge pull request #2 from lyra-planet/KaiCheng
lyra-planet Aug 26, 2025
478642c
feat: finish
lyra-planet Aug 26, 2025
1a9b70c
Merge pull request #3 from lyra-planet/KaiCheng
lyra-planet Aug 26, 2025
31acdfc
docs: 添加文档系统和个人中心模块文档
kerthans Aug 26, 2025
3ead66e
feat: 添加个人中心模块和文档网站
kerthans Aug 26, 2025
09a7c22
build: 添加项目依赖项
kerthans Aug 26, 2025
e8fb31c
build: 添加 vitepress 依赖
kerthans Aug 26, 2025
cac8d93
Merge branch 'main' of github.com:lyra-planet/tdesign-mobile-vue-star…
Mebius1916 Aug 26, 2025
da892b0
feat: 分支合并
Mebius1916 Aug 26, 2025
483b333
feat: 添加临时navbar
Mebius1916 Aug 26, 2025
76e9e86
feat: merge messagepage branch with chat functionality and status bar
sym-666 Aug 26, 2025
90ff566
refactor(router): 重构路由结构以使用布局组件
kerthans Aug 26, 2025
836d488
feat: 整合了代码
sym-666 Aug 26, 2025
b6e82fe
Merge pull request #4 from lyra-planet/messagepage
sym-666 Aug 26, 2025
23ad179
feat: 重构navbar布局,统一页面导航栏样式
Aug 27, 2025
fdf410a
feat: 消息页数据mock
Mebius1916 Aug 28, 2025
77714d2
feat: 分支合并
Mebius1916 Aug 28, 2025
de099f9
Merge remote-tracking branch 'origin/main' into mebius
Mebius1916 Aug 28, 2025
f752cff
feat: layout公共组件代码优化
Mebius1916 Aug 28, 2025
cdbbcbe
feat: mock-server代码结构优化
Mebius1916 Aug 28, 2025
ba07195
feat: 消息相关api搭建
Mebius1916 Aug 28, 2025
b529ebd
feat: 添加了深色模式,适配了大部分界面
sym-666 Aug 29, 2025
0d21391
feat: i18n插件应用及性能优化
Mebius1916 Aug 29, 2025
0a25187
feat: fix [home&publish]router&css
lyra-planet Aug 30, 2025
c078469
feat: i18n插件应用及性能优化
Mebius1916 Aug 30, 2025
ecab601
Merge branch 'main' of github.com:lyra-planet/tdesign-mobile-vue-star…
Mebius1916 Aug 30, 2025
7ee05c0
feat: 完善了暗黑模式
sym-666 Aug 31, 2025
df849b5
feat: 完善了暗黑模式
sym-666 Aug 31, 2025
2350fbf
feat: merge
sym-666 Aug 31, 2025
fc759db
feat: merge all change init main
sym-666 Aug 31, 2025
fbad062
feat: finish merge
sym-666 Aug 31, 2025
41837d5
feat: 组装深色模式到设置
sym-666 Sep 1, 2025
b129d93
fix: 修复了重新进入界面的时候深色模式显示错误,更新了组件
sym-666 Sep 1, 2025
c2916dd
fix: 严格根据设计图重新实现了页面布局
sym-666 Sep 1, 2025
03147d1
fix: layout代码优化
Mebius1916 Sep 1, 2025
1b82839
Merge branch 'main' of github.com:lyra-planet/tdesign-mobile-vue-star…
Mebius1916 Sep 1, 2025
1161e52
fix(登录): 修改登录处理逻辑,未登录时跳转登录页
kerthans Sep 1, 2025
af240d6
feat: 创建了搜索页
sym-666 Sep 1, 2025
e640754
fix: 深色bug
sym-666 Sep 1, 2025
5694436
feat(用户编辑): 重构用户信息编辑页面,使用TDesign表单组件
kerthans Sep 1, 2025
06d33d6
feat: add menu
lyra-planet Sep 1, 2025
634e533
feat: 完成了搜索页
sym-666 Sep 1, 2025
ee4aca6
feat: 完成了搜索页
sym-666 Sep 1, 2025
f30916c
feat: 完成了搜索页
sym-666 Sep 1, 2025
f2a5997
fix: 修复了一些交互上的问题
Mebius1916 Sep 1, 2025
e3b29e1
feat: layout界面代码结构优化
Mebius1916 Sep 1, 2025
164f1ab
feat: 启动主应用同时启动mock服务
Mebius1916 Sep 1, 2025
723494b
fix: 深色模式适配bug修复
Mebius1916 Sep 2, 2025
28dd4f4
fix: 深色模式适配bug修复
Mebius1916 Sep 2, 2025
81c11f3
fix: 首页弹窗偏移量修复
Mebius1916 Sep 2, 2025
57940b8
feat: components文件夹代码结构优化
Mebius1916 Sep 2, 2025
37460ee
style: 删除冗余代码
Mebius1916 Sep 2, 2025
06da08d
feat: 代码结构优化、与交互稿对其、业务功能优化等
Mebius1916 Sep 2, 2025
4f0b8e0
fix: edit页面使用layout并移除自定义navbar
Mebius1916 Sep 2, 2025
7a3a048
feat: 添加数据中心页面功能
Sep 3, 2025
c0e43bc
Merge remote-tracking branch 'origin/Linmingjian' into mebius
Mebius1916 Sep 3, 2025
18fd930
feat: 对其样式稿
Mebius1916 Sep 3, 2025
f865f44
feat: 对其样式稿
Mebius1916 Sep 3, 2025
9d80a1d
feat: 对其交互稿交互逻辑及其UI样式
Mebius1916 Sep 3, 2025
04f2a07
feat: i18n优化工作
Mebius1916 Sep 3, 2025
6ab8266
feat: mock数据提取 && api抽象
Mebius1916 Sep 3, 2025
333896a
refactor: 参考开源项目vue-admin-better对项目进行重构优化
Mebius1916 Sep 3, 2025
69e831b
fix: i18n翻译优化
Mebius1916 Sep 3, 2025
781950a
fix: 消息页底部输入框及按钮对其样式稿
Mebius1916 Sep 3, 2025
ebb2e8b
fix: 消息页avatar对其样式稿
Mebius1916 Sep 3, 2025
1e6edfe
style: 冗余代码删除
Mebius1916 Sep 3, 2025
41059b5
style: 代码结构优化 && 删除冗余代码
Mebius1916 Sep 4, 2025
06c84f6
feat: 对接消息页api接口
Mebius1916 Sep 4, 2025
2ae3b15
refactor: mock-server代码优化
Mebius1916 Sep 4, 2025
6358820
fix: loading样式优化
Mebius1916 Sep 4, 2025
61e35aa
feat: 消息页时间戳优化
Mebius1916 Sep 4, 2025
f42e41b
refactor: datacenter代码结构优化
Mebius1916 Sep 5, 2025
ba8a796
refactor: layout组件代码结构优化
Mebius1916 Sep 5, 2025
f80fdc2
feat: 创建统一的消息封装并在生产环境去除console
Mebius1916 Sep 5, 2025
c550373
refactor: 将express重构为msw
Mebius1916 Sep 6, 2025
ef1cd53
feat: 唤醒数字键盘优化
Mebius1916 Sep 6, 2025
da2efb8
refactor: 代码结构优化:删除mock-server与将public下的svg移动到assets
Mebius1916 Sep 6, 2025
22eab72
feat: i18n缓存优化
Mebius1916 Sep 6, 2025
c2474ae
build: vite打包优化:
Mebius1916 Sep 6, 2025
6168224
perf: 首屏优化
Mebius1916 Sep 6, 2025
e8df1fc
perf: datacenter数据mock抽象api
Mebius1916 Sep 6, 2025
b256f0b
perf: 验证码登录页逻辑优化
Mebius1916 Sep 6, 2025
dfe5fe4
perf: 搜索页性能优化
Mebius1916 Sep 6, 2025
24c55c5
perf: 消息列表页虚拟滚动优化
Mebius1916 Sep 6, 2025
209531f
perf: 一些优化如下
Mebius1916 Sep 6, 2025
f775a60
feat: 新增httpCode页面
Mebius1916 Sep 6, 2025
906015a
perf: i18n持久化优化
Mebius1916 Sep 7, 2025
dcd09ee
docs: 文档完成
Mebius1916 Sep 7, 2025
f519645
docs: 英文文档补全
Mebius1916 Sep 7, 2025
29ffaea
docs: 文档优化
Mebius1916 Sep 7, 2025
fb5f3fb
fix: 修复一个路由跳转bug
Mebius1916 Sep 7, 2025
c257d66
perf: css按需引入
Mebius1916 Sep 7, 2025
844b87c
polish: vitpress dark模式logo适配
Mebius1916 Sep 7, 2025
3e2d0f0
docs: 英文文档补全
Mebius1916 Sep 7, 2025
94d84ca
perf: 路由全部转为手动方便维护
Mebius1916 Sep 8, 2025
4997cf6
feat: 更新环境配置,移除网络配置文件并调整API基础路径
Mebius1916 Sep 8, 2025
6940594
feat: 添加超时取消功能
Mebius1916 Sep 8, 2025
b4808d2
feat: 增加认证token管理及业务成功码白名单功能
Mebius1916 Sep 8, 2025
3d3d84e
fix: 环境变量问题修复
Mebius1916 Sep 9, 2025
3ec7dab
perf: auth api的params对齐type.ts
Mebius1916 Sep 9, 2025
0703925
feat: 添加下拉刷新功能的多语言支持,并删除不再使用的SVG图标文件
Mebius1916 Sep 9, 2025
a273993
feat: 优化消息显示组件,调整偏移量和响应式布局,更新首页和搜索页样式
Mebius1916 Sep 9, 2025
1d5999e
feat: 更新多语言支持,优化底部导航组件样式,调整首页布局和响应式设计
Mebius1916 Sep 9, 2025
03bcd0c
feat: 添加 vue-virtual-scroller 组件支持,优化虚拟列表的实现方式,更新相关属性和样式
Mebius1916 Sep 9, 2025
c7b00c9
feat: 添加编辑页面及相关组件,优化地址选择器和表单处理逻辑,更新多语言支持和样式
Mebius1916 Sep 9, 2025
2314098
feat: 更新多语言支持,添加错误和空状态提示,优化组件中的文本处理逻辑
Mebius1916 Sep 9, 2025
96aea0c
feat: 更新虚拟列表组件,优化属性配置和事件处理,调整消息列表展示方式
Mebius1916 Sep 10, 2025
8928cb9
feat: 优化首页内容加载逻辑,添加虚拟列表支持,重构组件以提升性能和可维护性
Mebius1916 Sep 10, 2025
cd4ab75
feat: 更新多语言支持,简化描述文本,优化发布组件样式
Mebius1916 Sep 10, 2025
a8f1099
fix: 调整message偏移量
Mebius1916 Sep 10, 2025
76ac73e
feat: 添加搜索历史清空功能,更新多语言支持,优化搜索页面样式
Mebius1916 Sep 10, 2025
4a39737
feat: 补充了详细的项目文档
sym-666 Sep 10, 2025
b1d0777
feat: 补充了详细的项目文档
sym-666 Sep 10, 2025
4ff06b4
feat: 更新文档,添加个人信息编辑和设置页面,优化列表三态处理,调整主题切换逻辑
Mebius1916 Sep 10, 2025
e0f9d5c
feat: 更新文档,调整目录结构和命名规范,优化错误处理和状态管理部分
Mebius1916 Sep 10, 2025
4b5e14d
feat: 更新多语言支持,添加生产环境告警配置和空闲时间预取功能,优化代码分割策略
Mebius1916 Sep 10, 2025
9f8c1ae
feat: 添加lightningcss支持,更新vite配置以替代传统PostCSS流程,删除postcss.config.js文件,集…
Mebius1916 Sep 21, 2025
3b03807
feat: 更新index.html的viewport设置,启用TypeScript严格模式,优化handlers.ts中的用户信息处理,…
Mebius1916 Sep 21, 2025
a1136d4
feat: 更新VirtualList组件,添加mode属性以支持动态和回收模式,优化文档说明和示例代码
Mebius1916 Sep 24, 2025
4065cd4
feat: 优化多语言加载逻辑,移除冗余缓存机制。
Mebius1916 Sep 26, 2025
91e3371
feat: 添加请求取消功能,优化HttpClient类以支持请求ID管理,更新搜索功能以使用请求取消机制
Mebius1916 Oct 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@
VITE_BASE_PATH = '/'

# 开发环境路由模式,推荐 hash
VITE_ROUTER_MODE = 'hash'
VITE_ROUTER_MODE = 'hash'

DEV = 'true'

#MSW
VITE_MSW=true

#baseUrl
VITE_API_BASE='/api'
8 changes: 7 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@
VITE_BASE_PATH = '/'

# 打包环境路由模式,推荐 history
VITE_ROUTER_MODE = 'history'
VITE_ROUTER_MODE = 'history'

# MSW
VITE_MSW=true

#baseUrl
VITE_API_BASE='/api'
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ npm-debug.log*
.pnpm-error.log*
.pnpm-debug.log

.idea
.idea

# VitePress
docs/.vitepress/dist
docs/.vitepress/cache
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

# shellcheck source=./_/husky.sh
. "$(dirname "$0")/_/husky.sh"
# . "$(dirname "$0")/_/husky.sh"

PATH="/usr/local/bin:$PATH"

Expand Down
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"

[ -n "$CI" ] && exit 0
Expand Down
4 changes: 2 additions & 2 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"*.{js,jsx,ts,tsx}": [
"eslint --cache --fix"
"eslint --cache --fix --ignore-pattern public/mockServiceWorker.js"
],
"{!(package)*.json,*.code-snippets,.!({browserslist,npm,nvm})*rc}": [
"eslint --cache --fix"
],
"package.json": ["eslint --cache --fix"],
"*.vue": [
"eslint --cache --fix"
"eslint --cache --fix --ignore-pattern public/mockServiceWorker.js"
],
"*.md": ["eslint --cache --fix"]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"editor.formatOnPaste": true,
"editor.guides.bracketPairs": "active",
"typescript.tsdk": "node_modules\\typescript\\lib",
"files.autoSave": "off",
"files.autoSave": "afterDelay",
"git.confirmSync": false,
"files.associations": {
"editor.snippetSuggestions": "top"
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,18 @@

- 在 `.vue` 空文件里输入 `vue` 可弹出代码片段,快速搭建基础文件结构(仅限 `vscode`)

### 🧪 前端 Mock(MSW)

项目内置 [MSW](https://mswjs.io) 用于在浏览器端拦截 `fetch`/XHR 请求并返回模拟数据。

- 开启:
- 开发:在 `.env.local` 设置 `VITE_MSW=true`,或在控制台执行 `window.__MSW_ENABLED__=true` 后刷新。
- 生产:同样设置 `VITE_MSW=true` 并确保 `public/mockServiceWorker.js` 已随站点发布。
- 关闭:将开关设为 `false` 或移除,刷新页面。
- 约定:
- handlers 位于 `src/mocks/handlers.ts`,已覆盖 `/api` 开头接口(使用 `*/api/...` 通配)。
- 启动逻辑在 `src/mocks/index.ts`,于 `src/main.ts` 初始化阶段调用。

## 📑 Git 提交规范

以下基于 [vue](https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md#git-commit-message-convention) 提交规范编写
Expand Down
82 changes: 75 additions & 7 deletions build/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ import { TDesignResolver } from 'unplugin-vue-components/resolvers'
import Components from 'unplugin-vue-components/vite'
import { VueRouterAutoImports } from 'unplugin-vue-router'
import VueRouter from 'unplugin-vue-router/vite'
import { compression, defineAlgorithm } from 'vite-plugin-compression2'
import { VitePWA } from 'vite-plugin-pwa'
import vsharp from 'vite-plugin-vsharp'
import svgLoader from 'vite-svg-loader'

import { buildInfo } from './info'
Expand Down Expand Up @@ -42,27 +45,92 @@ export function usePlugins(): PluginOption[] {
dts: './types/vue-router.d.ts',
routesFolder: ['src/views'],
exclude: [
'**/!(index).vue', // 排除非 index.vue 文件
'**/components/**/*',
'**/composables/**/*',
'**/hooks/**/*',
'**/shared/**/*',
],
}),
// i18n 支持
VueI18nPlugin({
include: [processPath('../locales/**')],
compositionOnly: true,
runtimeOnly: true,
fullInstall: false,
}),
vue(),
// 支持 JSX 语法
vueJsx(),
// 处理 SVG 图标
svgLoader(),
svgLoader({
defaultImport: 'url',
svgo: true,
svgoConfig: {
plugins: [
{ name: 'removeViewBox', active: false },
{ name: 'removeDimensions', active: true },
],
},
include: [/\.svg\?component$/],
exclude: [/\/public\//],
} as any),
// 图片压缩(JPG/PNG/WebP/GIF)
vsharp(),
// TailwindCSS 4 新增
Tailwindcss(),
// 代码定位工具,按住 alt + shift 点击页面上的组件可直接跳转到 vscode 对应代码段哦 😍
codeInspectorPlugin({
bundler: 'vite',
hideConsole: true,
}),
// 代码定位工具(仅开发启用,生产禁用)
process.env.NODE_ENV !== 'production'
? codeInspectorPlugin({
bundler: 'vite',
hideConsole: true,
})
: null,
// 手搓 vite 构建信息 plugin 😎
buildInfo(),
// 预压缩静态资源(仅生产环境)
process.env.NODE_ENV === 'production'
? compression({
algorithms: [
defineAlgorithm('brotliCompress'), // 优先使用brotli算法
defineAlgorithm('gzip'), // gzip兜底
],
include: /\.(js|mjs|css|html|svg|json|txt|xml|wasm)$/i,
threshold: 1024,
skipIfLargerOrEqual: true,
})
: null,
// PWA 缓存(仅生产环境生效)
VitePWA({
registerType: 'autoUpdate',
injectRegister: 'auto',
manifest: {
name: 'tdesign-mobile-vue-starter',
short_name: 'tdesign-mobile',
theme_color: '#ffffff',
background_color: '#ffffff',
display: 'standalone',
icons: [
// 使用已有资源,避免缺少 /public/icons 目录导致 404
{ src: '/favicon.ico', sizes: '16x16 32x32 48x48 64x64', type: 'image/x-icon' },
{ src: '/logo.svg', sizes: 'any', type: 'image/svg+xml', purpose: 'any maskable' },
],
},
workbox: {
globPatterns: ['**/*.{js,css,html,svg,png,jpg,jpeg,webp,avif,woff2}'],
navigateFallback: '/index.html',
clientsClaim: true,
skipWaiting: true,
maximumFileSizeToCacheInBytes: 8 * 1024 * 1024,
runtimeCaching: [
{
urlPattern: /\/assets\/.*\.(?:png|jpg|jpeg|svg|webp|avif)$/,
handler: 'StaleWhileRevalidate',
options: { cacheName: 'image-cache', expiration: { maxEntries: 200, maxAgeSeconds: 60 * 60 * 24 * 30 } },
},
],
},
disable: process.env.NODE_ENV !== 'production',
}),
// 打包分析,看看哪个老六最占打包体积 😠
lifecycle === 'report'
? visualizer({ brotliSize: true, open: true, filename: 'report.html' })
Expand Down
87 changes: 87 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
import { defineConfig } from 'vitepress'
import { navZh, navEn } from './nav'
import { sidebarZh, sidebarEn } from './sidebar'

export default defineConfig({
title: 'TDesign Mobile Starter',
description: '企业级、移动端优先的 TDesign Mobile Vue 应用模板',
base: '/',
lastUpdated: true,
ignoreDeadLinks: true,
cleanUrls: true,
appearance: true,
head: [
['link', { rel: 'icon', href: '/favicon.ico' }],
['meta', { name: 'theme-color', content: '#41d1ff' }],
],

locales: {
root: {
label: '简体中文',
lang: 'zh-CN',
themeConfig: {
siteTitle: '',
logo: '/logo.svg',
search: { provider: 'local' },
nav: navZh,
sidebar: sidebarZh,
outline: [2, 4],
outlineTitle: '本页导航',
docFooter: { prev: '上一页', next: '下一页' },
sidebarMenuLabel: '目录',
returnToTopLabel: '回到顶部',
darkModeSwitchLabel: '外观',
lightModeSwitchTitle: '切换到浅色主题',
darkModeSwitchTitle: '切换到深色主题',
externalLinkIcon: false,
lastUpdated: {
text: '上次更新',
formatOptions: { dateStyle: 'short', timeStyle: 'short' },
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/TDesignOteam/tdesign-mobile-vue-starter-community' },
],
footer: {
message: '基于 TDesign Mobile Vue 构建',
copyright: 'Copyright © 2024-2025',
},
},
},
en: {
label: 'English',
lang: 'en-US',
link: '/en/',
themeConfig: {
siteTitle: '',
logo: '/logo.svg',
search: { provider: 'local' },
nav: navEn,
sidebar: sidebarEn,
outline: [2, 4],
outlineTitle: 'On this page',
docFooter: { prev: 'Previous', next: 'Next' },
sidebarMenuLabel: 'Menu',
returnToTopLabel: 'Back to top',
darkModeSwitchLabel: 'Appearance',
lightModeSwitchTitle: 'Switch to light theme',
darkModeSwitchTitle: 'Switch to dark theme',
externalLinkIcon: false,
editLink: {
pattern: 'https://github.com/OWNER/REPO/edit/main/docs/:path',
text: 'Edit this page on GitHub',
},
lastUpdated: {
text: 'Last updated',
formatOptions: { dateStyle: 'short', timeStyle: 'short' },
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/TDesignOteam/tdesign-mobile-vue-starter-community' },
],
footer: {
message: 'Powered by TDesign Mobile Vue',
copyright: 'Copyright © 2024-2025',
},
},
},
},
})
12 changes: 12 additions & 0 deletions docs/.vitepress/nav.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export const navZh = [
{ text: '首页', link: '/' },
{ text: '指南', link: '/guide/' },
{ text: '页面', link: '/pages/' },
]

export const navEn = [
{ text: 'Home', link: '/en/' },
{ text: 'Guide', link: '/en/guide/' },
{ text: 'Pages', link: '/en/pages/' },
]

Loading