diff --git a/src/lang/modules/enUS.ts b/src/lang/modules/enUS.ts
index c5f5f8f..bd40c6e 100644
--- a/src/lang/modules/enUS.ts
+++ b/src/lang/modules/enUS.ts
@@ -2,11 +2,11 @@ export default {
language: {
["login"]: "login",
["home"]: "home",
- ["basic-table"]: "basic table",
+ ["table-management"]: "table management",
["common-table"]: "common table",
["custom-table"]: "custom table",
- ["common-components"]: "common components",
- ["form-component"]: "form components",
+ ["form-management"]: "form management",
+ ["common-form"]: "common form",
["dynamic-form"]: "dynamic form",
["multilevel-menu"]: "multilevel menu",
["second-menu-1"]: "second-menu-1",
diff --git a/src/lang/modules/zhCN.ts b/src/lang/modules/zhCN.ts
index bc53200..1bed652 100644
--- a/src/lang/modules/zhCN.ts
+++ b/src/lang/modules/zhCN.ts
@@ -2,11 +2,11 @@ export default {
language: {
["login"]: "登录",
["home"]: "首页",
- ["basic-table"]: "表格 Table",
- ["common-table"]: "普通表格",
- ["custom-table"]: "自定义表格",
- ["common-components"]: "常用组件",
- ["form-component"]: "表单组件",
+ ["table-management"]: "列表管理",
+ ["common-table"]: "普通列表",
+ ["custom-table"]: "自定义列表",
+ ["form-management"]: "表单管理",
+ ["common-form"]: "普通表单",
["dynamic-form"]: "动态表单",
["multilevel-menu"]: "多级菜单",
["second-menu-1"]: "二级菜单-1",
diff --git a/src/router/route.ts b/src/router/route.ts
index 9316918..d6fb1fa 100644
--- a/src/router/route.ts
+++ b/src/router/route.ts
@@ -66,11 +66,11 @@ export const dynamicRoutes: RouteRecordRaw[] = [
}
},
{
- path: "/basic-table",
- name: "basic-table",
- redirect: "/basic-table/common-table",
+ path: "/table-management",
+ name: "table-management",
+ redirect: "/table-management/common-table",
meta: {
- title: "basic-table",
+ title: "table-management",
link: "",
hide: false,
keepAlive: true,
@@ -81,9 +81,9 @@ export const dynamicRoutes: RouteRecordRaw[] = [
},
children: [
{
- path: "/basic-table/common-table",
+ path: "/table-management/common-table",
name: "common-table",
- component: () => import("@/views/basic-table/common-table/common-table.vue"),
+ component: () => import("@/views/table-management/common-table/common-table.vue"),
meta: {
title: "common-table",
link: "",
@@ -96,9 +96,9 @@ export const dynamicRoutes: RouteRecordRaw[] = [
}
},
{
- path: "/basic-table/custom-table",
+ path: "/table-management/custom-table",
name: "custom-table",
- component: () => import("@/views/basic-table/custom-table/custom-table.vue"),
+ component: () => import("@/views/table-management/custom-table/custom-table.vue"),
meta: {
title: "custom-table",
link: "",
@@ -113,11 +113,11 @@ export const dynamicRoutes: RouteRecordRaw[] = [
]
},
{
- path: "/common-components",
- name: "common-components",
- redirect: "/common-components/form-component",
+ path: "/form-management",
+ name: "form-management",
+ redirect: "/form-management/common-form",
meta: {
- title: "common-components",
+ title: "form-management",
link: "",
hide: false,
keepAlive: true,
@@ -128,11 +128,11 @@ export const dynamicRoutes: RouteRecordRaw[] = [
},
children: [
{
- path: "/common-components/form-component",
- name: "form-component",
- component: () => import("@/views/common-components/form-component/form-component.vue"),
+ path: "/form-management/common-form",
+ name: "common-form",
+ component: () => import("@/views/form-management/common-form/common-form.vue"),
meta: {
- title: "form-component",
+ title: "common-form",
link: "",
hide: false,
keepAlive: true,
@@ -143,9 +143,9 @@ export const dynamicRoutes: RouteRecordRaw[] = [
}
},
{
- path: "/common-components/dynamic-form",
+ path: "/form-management/dynamic-form",
name: "dynamic-form",
- component: () => import("@/views/common-components/dynamic-form/dynamic-form.vue"),
+ component: () => import("@/views/form-management/dynamic-form/dynamic-form.vue"),
meta: {
title: "dynamic-form",
link: "",
diff --git a/src/views/common-components/form-component/form-component.vue b/src/views/common-components/form-component/form-component.vue
deleted file mode 100644
index 0209cce..0000000
--- a/src/views/common-components/form-component/form-component.vue
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/views/form-management/common-form/common-form.vue b/src/views/form-management/common-form/common-form.vue
new file mode 100644
index 0000000..bc7bc36
--- /dev/null
+++ b/src/views/form-management/common-form/common-form.vue
@@ -0,0 +1,188 @@
+
+
+
+
+
+ 迷你
+ 偏小
+ 中等
+ 偏大
+
+
+
+
+
+
+
+
+
+
+ Section One
+ Section Two
+ Section Three
+
+
+
+
+
+
+
+ 听歌
+ 看电影
+ 旅游
+ 电竞
+
+
+
+
+
+
+
+
+
+
+ 男
+ 女
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 多选一
+ 多选二
+ 多选三
+
+
+
+
+
+
+
+ 提交
+ 重置
+
+
+
+ {{ form }}
+
+
+
+
+
+
diff --git a/src/views/common-components/dynamic-form/dynamic-form.vue b/src/views/form-management/dynamic-form/dynamic-form.vue
similarity index 100%
rename from src/views/common-components/dynamic-form/dynamic-form.vue
rename to src/views/form-management/dynamic-form/dynamic-form.vue
diff --git a/src/views/basic-table/common-table/common-table.vue b/src/views/table-management/common-table/common-table.vue
similarity index 100%
rename from src/views/basic-table/common-table/common-table.vue
rename to src/views/table-management/common-table/common-table.vue
diff --git a/src/views/basic-table/custom-table/custom-table.vue b/src/views/table-management/custom-table/custom-table.vue
similarity index 95%
rename from src/views/basic-table/custom-table/custom-table.vue
rename to src/views/table-management/custom-table/custom-table.vue
index 2b39e8f..f648912 100644
--- a/src/views/basic-table/custom-table/custom-table.vue
+++ b/src/views/table-management/custom-table/custom-table.vue
@@ -140,12 +140,11 @@
@page-change="pageChange"
@page-size-change="pageSizeChange"
>
-
-
+
-
-
+
+
{{ record.content }}
@@ -208,7 +207,7 @@ const columns = ref([
title: "内容载体",
dataIndex: "content",
checked: true,
- slotName: "content",
+ slotName: "content"
},
{
title: "筛选方式",
@@ -390,7 +389,6 @@ const popupVisibleChange = (visible: boolean) => {
onEnd(e: any) {
// 移动结束后,获得新旧下标,这里不会实际更改原始值
const { oldIndex, newIndex } = e;
- console.log("移动",columns.value, columnsShow.value);
// 根据新旧下标更改原始值,更改弹窗columns和列表columns
exchangeArray(columns.value, oldIndex, newIndex);
exchangeArray(columnsShow.value, oldIndex, newIndex);