From 8b12cced775a4a296886a81e729b914366dbbffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=9B=84?= Date: Sun, 7 Apr 2024 15:09:38 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=AE=BE=E7=BD=AEts=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E5=88=AB=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsconfig.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 9e03e60..1c1fd1b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,7 +18,17 @@ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, - "noFallthroughCasesInSwitch": true + "noFallthroughCasesInSwitch": true, + + // 路径别名 + "paths": { + "@/*": [ + "./src/*" + ], + "@common/*": [ + "./common-vue3/*" + ] + } }, "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"], "references": [{ "path": "./tsconfig.node.json" }] -- Gitee From b57a48fd8f950e0923e3ba6dfd52183c6cb35591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BB=BA=E9=9B=84?= Date: Tue, 9 Apr 2024 08:50:31 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E9=9D=99?= =?UTF-8?q?=E6=80=81=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common-vue3 | 2 +- src/components.d.ts | 5 + src/views/registration/index.vue | 1 + src/views/supplier/component/updateDialog.vue | 185 +++++++++++++++ src/views/supplier/index.vue | 170 ++++++++++++++ src/views/supplier/mockData.ts | 220 ++++++++++++++++++ src/views/supplier/types.ts | 39 ++++ 7 files changed, 621 insertions(+), 1 deletion(-) create mode 100644 src/views/supplier/component/updateDialog.vue create mode 100644 src/views/supplier/index.vue create mode 100644 src/views/supplier/mockData.ts create mode 100644 src/views/supplier/types.ts diff --git a/common-vue3 b/common-vue3 index c9a3fa4..80df44c 160000 --- a/common-vue3 +++ b/common-vue3 @@ -1 +1 @@ -Subproject commit c9a3fa424429ba824b86a9ddf4a94e10d79529a0 +Subproject commit 80df44c74f019217741217a12f9955faf08da497 diff --git a/src/components.d.ts b/src/components.d.ts index b752764..65c66d0 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -10,7 +10,11 @@ declare module 'vue' { ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem'] ElButton: typeof import('element-plus/es')['ElButton'] ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] + ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup'] + ElDialog: typeof import('element-plus/es')['ElDialog'] ElDivider: typeof import('element-plus/es')['ElDivider'] + ElForm: typeof import('element-plus/es')['ElForm'] + ElFormItem: typeof import('element-plus/es')['ElFormItem'] ElImput: typeof import('element-plus/es')['ElImput'] ElInput: typeof import('element-plus/es')['ElInput'] ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] @@ -26,6 +30,7 @@ declare module 'vue' { ElTabPane: typeof import('element-plus/es')['ElTabPane'] ElTabs: typeof import('element-plus/es')['ElTabs'] ElTimePicker: typeof import('element-plus/es')['ElTimePicker'] + ElTree: typeof import('element-plus/es')['ElTree'] Footer: typeof import('./components/footer.vue')['default'] HelloWorld: typeof import('./components/HelloWorld.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/registration/index.vue b/src/views/registration/index.vue index 69d599e..52706e1 100644 --- a/src/views/registration/index.vue +++ b/src/views/registration/index.vue @@ -16,6 +16,7 @@ function go() {