Skip to content

Commit

Permalink
feat(projects): ✨ add link to ElementPlus document (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfeiz authored Dec 12, 2024
1 parent 397f67a commit 4a4b877
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 3 deletions.
1 change: 1 addition & 0 deletions build/plugins/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export function setupElegantRouter() {
'document_unocss',
'document_naive',
'document_antd',
'document_element-plus',
'document_alova'
]
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@sa/elp",
"type": "module",
"version": "1.3.8",
"description": "A fresh and elegant admin template, based on Vue3、Vite3、TypeScript、NaiveUI and UnoCSS. 一个基于Vue3、Vite3、TypeScript、NaiveUI and UnoCSS的清新优雅的中后台模版。",
"description": "A fresh and elegant admin template, based on Vue3、Vite3、TypeScript、ElementPlus and UnoCSS. 一个基于Vue3、Vite3、TypeScript、ElementPlus and UnoCSS的清新优雅的中后台模版。",
"author": {
"name": "Soybean",
"email": "[email protected]",
Expand Down
1 change: 1 addition & 0 deletions src/locales/langs/en-us.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ const local: App.I18n.Schema = {
document_unocss: 'UnoCSS Document',
document_naive: 'Naive UI Document',
document_antd: 'Ant Design Vue Document',
'document_element-plus': 'Element Plus Document',
document_alova: 'Alova Document',
'user-center': 'User Center',
about: 'About',
Expand Down
1 change: 1 addition & 0 deletions src/locales/langs/zh-cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ const local: App.I18n.Schema = {
document_unocss: 'UnoCSS文档',
document_naive: 'Naive UI文档',
document_antd: 'Ant Design Vue文档',
'document_element-plus': 'Element Plus文档',
document_alova: 'Alova文档',
'user-center': '个人中心',
about: '关于',
Expand Down
1 change: 1 addition & 0 deletions src/router/elegant/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ const routeMap: RouteMap = {
"document_unocss": "/document/unocss",
"document_naive": "/document/naive",
"document_antd": "/document/antd",
"document_element-plus": "/document/element-plus",
"document_alova": "/document/alova",
"403": "/403",
"404": "/404",
Expand Down
18 changes: 16 additions & 2 deletions src/router/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,21 @@ const customRoutes: CustomRoute[] = [
title: 'document_naive',
i18nKey: 'route.document_naive',
order: 6,
icon: 'logos:NativeUI'
icon: 'logos:naiveui'
}
},
{
name: 'document_element-plus',
path: '/document/element-plus',
component: 'view.iframe-page',
props: {
url: 'https://element-plus.org/zh-CN/'
},
meta: {
title: 'document_element-plus',
i18nKey: 'route.document_element-plus',
order: 7,
icon: 'ep:element-plus'
}
},
{
Expand All @@ -101,7 +115,7 @@ const customRoutes: CustomRoute[] = [
meta: {
title: 'document_alova',
i18nKey: 'route.document_alova',
order: 7,
order: 8,
localIcon: 'alova'
}
},
Expand Down
3 changes: 3 additions & 0 deletions src/typings/elegant-router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ declare module "@elegant-router/types" {
"document_unocss": "/document/unocss";
"document_naive": "/document/naive";
"document_antd": "/document/antd";
"document_element-plus": "/document/element-plus";
"document_alova": "/document/alova";
"403": "/403";
"404": "/404";
Expand Down Expand Up @@ -114,6 +115,7 @@ declare module "@elegant-router/types" {
| "document_unocss"
| "document_naive"
| "document_antd"
| "document_element-plus"
| "document_alova"
>;

Expand Down Expand Up @@ -219,6 +221,7 @@ declare module "@elegant-router/types" {
| "document_unocss"
| "document_naive"
| "document_antd"
| "document_element-plus"
| "document_alova"
>;

Expand Down

0 comments on commit 4a4b877

Please sign in to comment.