Skip to content

Commit

Permalink
feat(projects): ✨ sync add VTableGantt (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfeiz authored Dec 21, 2024
1 parent fc7bdf2 commit f32b675
Show file tree
Hide file tree
Showing 11 changed files with 1,549 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/locales/langs/en-us.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ const local: App.I18n.Schema = {
plugin_excel: 'Excel',
plugin_pdf: 'PDF preview',
plugin_gantt: 'Gantt Chart',
plugin_gantt_dhtmlx: 'dhtmlxGantt',
plugin_gantt_vtable: 'VTableGantt',
plugin_typeit: 'Typeit',
plugin_tables: 'Tables',
plugin_tables_vtable: 'VTable'
Expand Down
2 changes: 2 additions & 0 deletions src/locales/langs/zh-cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ const local: App.I18n.Schema = {
plugin_excel: 'Excel',
plugin_pdf: 'PDF 预览',
plugin_gantt: '甘特图',
plugin_gantt_dhtmlx: 'dhtmlxGantt',
plugin_gantt_vtable: 'VTableGantt',
plugin_typeit: '打字机',
plugin_tables: '表格',
plugin_tables_vtable: 'VTable'
Expand Down
3 changes: 2 additions & 1 deletion src/router/elegant/imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export const views: Record<LastLevelRouteKey, RouteComponent | (() => Promise<Ro
plugin_editor_markdown: () => import("@/views/plugin/editor/markdown/index.vue"),
plugin_editor_quill: () => import("@/views/plugin/editor/quill/index.vue"),
plugin_excel: () => import("@/views/plugin/excel/index.vue"),
plugin_gantt: () => import("@/views/plugin/gantt/index.vue"),
plugin_gantt_dhtmlx: () => import("@/views/plugin/gantt/dhtmlx/index.vue"),
plugin_gantt_vtable: () => import("@/views/plugin/gantt/vtable/index.vue"),
plugin_icon: () => import("@/views/plugin/icon/index.vue"),
plugin_map: () => import("@/views/plugin/map/index.vue"),
plugin_pdf: () => import("@/views/plugin/pdf/index.vue"),
Expand Down
25 changes: 23 additions & 2 deletions src/router/elegant/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -492,12 +492,33 @@ export const generatedRoutes: GeneratedRoute[] = [
{
name: 'plugin_gantt',
path: '/plugin/gantt',
component: 'view.plugin_gantt',
meta: {
title: 'plugin_gantt',
i18nKey: 'route.plugin_gantt',
icon: 'ant-design:bar-chart-outlined'
}
},
children: [
{
name: 'plugin_gantt_dhtmlx',
path: '/plugin/gantt/dhtmlx',
component: 'view.plugin_gantt_dhtmlx',
meta: {
title: 'plugin_gantt_dhtmlx',
i18nKey: 'route.plugin_gantt_dhtmlx',
icon: 'gridicons:posts'
}
},
{
name: 'plugin_gantt_vtable',
path: '/plugin/gantt/vtable',
component: 'view.plugin_gantt_vtable',
meta: {
title: 'plugin_gantt_vtable',
i18nKey: 'route.plugin_gantt_vtable',
localIcon: 'visactor'
}
}
]
},
{
name: 'plugin_icon',
Expand Down
2 changes: 2 additions & 0 deletions src/router/elegant/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ const routeMap: RouteMap = {
"plugin_editor_quill": "/plugin/editor/quill",
"plugin_excel": "/plugin/excel",
"plugin_gantt": "/plugin/gantt",
"plugin_gantt_dhtmlx": "/plugin/gantt/dhtmlx",
"plugin_gantt_vtable": "/plugin/gantt/vtable",
"plugin_icon": "/plugin/icon",
"plugin_map": "/plugin/map",
"plugin_pdf": "/plugin/pdf",
Expand Down
5 changes: 4 additions & 1 deletion src/typings/elegant-router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ declare module "@elegant-router/types" {
"plugin_editor_quill": "/plugin/editor/quill";
"plugin_excel": "/plugin/excel";
"plugin_gantt": "/plugin/gantt";
"plugin_gantt_dhtmlx": "/plugin/gantt/dhtmlx";
"plugin_gantt_vtable": "/plugin/gantt/vtable";
"plugin_icon": "/plugin/icon";
"plugin_map": "/plugin/map";
"plugin_pdf": "/plugin/pdf";
Expand Down Expand Up @@ -194,7 +196,8 @@ declare module "@elegant-router/types" {
| "plugin_editor_markdown"
| "plugin_editor_quill"
| "plugin_excel"
| "plugin_gantt"
| "plugin_gantt_dhtmlx"
| "plugin_gantt_vtable"
| "plugin_icon"
| "plugin_map"
| "plugin_pdf"
Expand Down
2 changes: 1 addition & 1 deletion src/views/alova/user/modules/user-search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function search() {

<template>
<ElCard class="card-wrapper">
<ElCollapse :default-expanded-names="['user-search']">
<ElCollapse>
<ElCollapseItem :title="$t('common.search')" name="user-search">
<ElForm ref="formRef" :model="model" :rules="rules" label-position="right" :label-width="80">
<ElRow :gutter="24">
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit f32b675

Please sign in to comment.