From adfcfcccef24699511c761c90b24ab6fb004de61 Mon Sep 17 00:00:00 2001 From: wuyuxi <980025512@qq.com> Date: Sun, 12 May 2024 23:32:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E5=BC=B9=E5=87=BA?= =?UTF-8?q?=E5=B1=82=E8=A1=A8=E5=8D=95=E3=80=81=E6=90=9C=E7=B4=A2=E8=A1=A8?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/AsideView.vue | 22 +++++++--- src/router/index.ts | 56 ++++++++++++++++++-------- src/views/admin/FormAdvanced.vue | 8 ++-- src/views/admin/FormAdvancedModal.vue | 49 ++++++++++++++++++++++ src/views/admin/FormAdvancedSearch.vue | 56 ++++++++++++++++++++++++++ src/views/admin/FormBase.vue | 37 +++++++---------- 6 files changed, 179 insertions(+), 49 deletions(-) create mode 100644 src/views/admin/FormAdvancedModal.vue create mode 100644 src/views/admin/FormAdvancedSearch.vue diff --git a/src/layout/AsideView.vue b/src/layout/AsideView.vue index f34344b..e243c5c 100644 --- a/src/layout/AsideView.vue +++ b/src/layout/AsideView.vue @@ -57,14 +57,14 @@ const defaultItems: IMenuItem[] = [ key: 'advanced-form', children: [ { - title: '文件上传', - key: 'file-upload', - index: '/admin/advanced-form/file-upload' + title: '弹出层表单', + key: 'modal', + index: '/admin/advanced-form/modal' }, { - title: '图片裁剪', - key: 'img-crop', - index: '/admin/advanced-form/img-crop' + title: '搜索表单', + key: 'search', + index: '/admin/advanced-form/search' } ] } @@ -77,6 +77,16 @@ const defaultItems: IMenuItem[] = [ icon: rawComponent(IconMenu), key: '2', children: [ + { + title: '文件上传', + key: 'file-upload', + index: '/admin/file-upload' + }, + { + title: '图片裁剪', + key: 'img-crop', + index: '/admin/img-crop' + }, { title: '水印', key: 'watermark', diff --git a/src/router/index.ts b/src/router/index.ts index 01a6c48..012f980 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -77,14 +77,6 @@ const routes: RouteRecordRaw[] = [ path: 'index', name: 'base-form-index', component: () => import('@/views/admin/FormBase.vue') - }, - { - path: 'text-ellipsis', - name: 'text-ellipsis', - component: () => import('@/views/admin/TableBase.vue'), - meta: { - title: '文本省略' - } } ] }, @@ -98,23 +90,55 @@ const routes: RouteRecordRaw[] = [ }, children: [ { - path: 'file-upload', - name: 'file-upload', - component: () => import('@/views/admin/TableBase.vue'), + path: 'modal', + name: 'modal', + component: () => import('@/views/admin/FormAdvancedModal.vue'), + meta: { + title: '弹出层表单' + } + }, + { + path: 'search', + name: 'search', + component: () => import('@/views/admin/FormAdvancedSearch.vue'), + meta: { + title: '搜索表单' + } + }, + { + path: 'step', + name: 'step', + component: () => import('@/views/admin/FormAdvancedModal.vue'), meta: { - title: '文件上传' + title: '分步表单' } }, { - path: 'img-crop', - name: 'img-crop', - component: () => import('@/views/admin/TableBase.vue'), + path: 'dynamic', + name: 'dynamic', + component: () => import('@/views/admin/FormAdvancedModal.vue'), meta: { - title: '图片裁剪' + title: '动态增减嵌套表单' } } ] }, + { + path: 'file-upload', + name: 'file-upload', + component: () => import('@/views/admin/TableBase.vue'), + meta: { + title: '文件上传' + } + }, + { + path: 'img-crop', + name: 'img-crop', + component: () => import('@/views/admin/TableBase.vue'), + meta: { + title: '图片裁剪' + } + }, { path: 'watermark', name: 'watermark', diff --git a/src/views/admin/FormAdvanced.vue b/src/views/admin/FormAdvanced.vue index 87ab4b8..3c81ef7 100644 --- a/src/views/admin/FormAdvanced.vue +++ b/src/views/admin/FormAdvanced.vue @@ -7,10 +7,10 @@ import { RouterView } from 'vue-router'