diff --git a/src/components/table/table.config.tsx b/src/components/table/table.config.tsx index 1dde085..dab70d6 100644 --- a/src/components/table/table.config.tsx +++ b/src/components/table/table.config.tsx @@ -1,4 +1,4 @@ -import { Button, Link } from "@arco-design/web-vue"; +import { Button } from "@arco-design/web-vue"; import { IconRefresh, IconSearch } from "@arco-design/web-vue/es/icon"; export const config = { @@ -25,7 +25,7 @@ export const config = { {{ icon: () => , default: () => "重置" }} )} - diff --git a/src/components/table/table.tsx b/src/components/table/table.tsx index 2c0d781..93de0a6 100644 --- a/src/components/table/table.tsx +++ b/src/components/table/table.tsx @@ -166,9 +166,13 @@ export const Table = defineComponent({ )}
-
+
{this.create && ( - + )} {this.modify && ( -
{this.inlined &&
}
+
+ {this.inlined &&
} +
全部选择 - - - + +
+
+ + + + +
+
+
+
+
+
diff --git a/src/pages/post/index.vue b/src/pages/post/index.vue index b8f5e99..6febff8 100644 --- a/src/pages/post/index.vue +++ b/src/pages/post/index.vue @@ -69,13 +69,10 @@ const table = useTable({ return api.post.getPosts({ ...model, ...paging }); }, columns: [ - { - type: "index", - }, { title: "文章名称", dataIndex: "title", - width: 200, + width: 240, }, { title: "文章描述", @@ -112,6 +109,9 @@ const table = useTable({ }, ], search: { + formProps: { + layout: 'inline', + }, items: [ { extend: "title", diff --git a/src/pages/system/login-log/index.vue b/src/pages/system/login-log/index.vue index c5f76d1..c2da3ae 100644 --- a/src/pages/system/login-log/index.vue +++ b/src/pages/system/login-log/index.vue @@ -18,7 +18,7 @@ const table = useTable({ { title: "登陆账号", dataIndex: "nickname", - width: 200, + width: 140, }, { title: "操作描述", @@ -37,20 +37,23 @@ const table = useTable({ { title: "登陆地址", dataIndex: "ip", + width: 200, render: ({ record }) => `${record.addr || "未知"}(${record.ip})`, }, { title: "操作系统", dataIndex: "os", + width: 160, }, { title: "浏览器", dataIndex: "browser", + width: 160, }, { title: "登陆时间", dataIndex: "createdAt", - width: 200, + width: 120, render: ({ record }) => dayjs(record.createdAt).fromNow(), }, ], diff --git a/src/pages/system/permission/index.vue b/src/pages/system/permission/index.vue index 28945fa..580b4a8 100644 --- a/src/pages/system/permission/index.vue +++ b/src/pages/system/permission/index.vue @@ -60,6 +60,12 @@ const table = useTable({ label: "权限名称", type: "input", required: false, + nodeProps: { + placeholder: '请输入名称关键字' + }, + itemProps: { + hideLabel: true, + } }, ], }, @@ -72,6 +78,14 @@ const table = useTable({ type: "input", required: true, }, + { + field: 'order', + label: '排序', + type: 'number', + nodeProps: { + min: 0, + } + }, { field: "slug", label: "角色标识", diff --git a/src/pages/system/role/index.vue b/src/pages/system/role/index.vue index 3b8b0f7..8cb4737 100644 --- a/src/pages/system/role/index.vue +++ b/src/pages/system/role/index.vue @@ -17,7 +17,7 @@ const table = useTable({ { title: "角色名称", dataIndex: "username", - width: 200, + width: 180, render({ record }) { return (
@@ -67,6 +67,12 @@ const table = useTable({ { extend: "name", required: false, + nodeProps: { + placeholder: '请输入角色名称' + }, + itemProps: { + hideLabel: true, + } }, ], }, diff --git a/src/pages/system/user/index.vue b/src/pages/system/user/index.vue index a418f2c..ae2e5f7 100644 --- a/src/pages/system/user/index.vue +++ b/src/pages/system/user/index.vue @@ -3,7 +3,15 @@