From f292db55af7c7ee21949c7109537a96dbf6443cc Mon Sep 17 00:00:00 2001 From: Charles7c Date: Thu, 12 Dec 2024 20:52:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(generator):=20=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90=E3=80=81=E9=A2=84=E8=A7=88=E6=94=AF=E6=8C=81=E6=89=B9?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/code/generator.ts | 4 +-- src/components/GiTable/index.vue | 8 +++++ src/views/code/generator/GenPreviewModal.vue | 14 ++++---- src/views/code/generator/index.vue | 37 +++++++++++++++++--- 4 files changed, 50 insertions(+), 13 deletions(-) diff --git a/src/apis/code/generator.ts b/src/apis/code/generator.ts index 06147f8..d8c0a2a 100644 --- a/src/apis/code/generator.ts +++ b/src/apis/code/generator.ts @@ -27,8 +27,8 @@ export function saveGenConfig(tableName: string, req: T.GeneratorConfigResp) { } /** @desc 生成预览 */ -export function genPreview(tableName: string) { - return http.get(`${BASE_URL}/preview/${tableName}`) +export function genPreview(tableNames: Array) { + return http.get(`${BASE_URL}/preview/${tableNames}`) } /** @desc 生成代码 */ diff --git a/src/components/GiTable/index.vue b/src/components/GiTable/index.vue index e7312c4..713592a 100644 --- a/src/components/GiTable/index.vue +++ b/src/components/GiTable/index.vue @@ -72,6 +72,9 @@ + + +
void 'toolbar-left': () => void 'toolbar-right': () => void + 'toolbar-bottom': () => void [propsName: string]: (props: { key: string, record: T, column: TableColumnData, rowIndex: number }) => void }>() @@ -364,6 +368,10 @@ defineExpose({ tableRef }) :deep(.arco-form-layout-inline .arco-form-item) { margin-bottom: 0; } + + &-bottom { + margin-bottom: 8px; + } } &__draggable { diff --git a/src/views/code/generator/GenPreviewModal.vue b/src/views/code/generator/GenPreviewModal.vue index 28cce5e..d6e9ac6 100644 --- a/src/views/code/generator/GenPreviewModal.vue +++ b/src/views/code/generator/GenPreviewModal.vue @@ -1,7 +1,7 @@