From 09498ec02e49c8d36faabaa34ea41ed6fdc0b7eb Mon Sep 17 00:00:00 2001 From: juetan Date: Thu, 26 Oct 2023 22:42:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E5=8F=B3=E4=BE=A7?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/breadcrumb/bread-page.vue | 12 ++-- src/components/editor/panel-header/index.vue | 2 +- src/components/form/form-modal.tsx | 1 + src/components/table/table.tsx | 4 +- src/pages/_layout/components/menu.vue | 2 +- src/pages/_layout/index.vue | 15 +++-- src/pages/post/media/index.vue | 65 ++++++++++++------- src/pages/system/role/index.vue | 4 +- src/pages/system/user/components/password.tsx | 2 +- src/pages/system/user/index.vue | 39 +++++++---- src/styles/css-unocss.less | 4 ++ src/types/auto-component.d.ts | 2 +- 12 files changed, 99 insertions(+), 53 deletions(-) diff --git a/src/components/breadcrumb/bread-page.vue b/src/components/breadcrumb/bread-page.vue index 3c5c75f..34bcc86 100644 --- a/src/components/breadcrumb/bread-page.vue +++ b/src/components/breadcrumb/bread-page.vue @@ -1,5 +1,5 @@ @@ -20,4 +22,4 @@ import BreadCrumb from "./bread-crumb.vue"; - \ No newline at end of file + diff --git a/src/components/editor/panel-header/index.vue b/src/components/editor/panel-header/index.vue index bb02207..aaa5e9f 100644 --- a/src/components/editor/panel-header/index.vue +++ b/src/components/editor/panel-header/index.vue @@ -16,7 +16,7 @@ 保存为图片 - 退出 + 退出 diff --git a/src/components/form/form-modal.tsx b/src/components/form/form-modal.tsx index 92e264f..9ac0159 100644 --- a/src/components/form/form-modal.tsx +++ b/src/components/form/form-modal.tsx @@ -176,6 +176,7 @@ export const FormModal = defineComponent({ onBeforeOk={this.onBeforeOk} onClose={this.onClose} title={this.modalTitle} + class="ani-form-modal" > {this.visible && (
(this.formRef = el)} {...this.formProps} model={this.model} items={this.items}> diff --git a/src/components/table/table.tsx b/src/components/table/table.tsx index 357e03c..d4690ad 100644 --- a/src/components/table/table.tsx +++ b/src/components/table/table.tsx @@ -162,12 +162,12 @@ export const Table = defineComponent({ return (
{!this.inlined && ( -
+
)} -
+
{this.create && ( diff --git a/src/pages/_layout/components/menu.vue b/src/pages/_layout/components/menu.vue index be4f13b..98b5226 100644 --- a/src/pages/_layout/components/menu.vue +++ b/src/pages/_layout/components/menu.vue @@ -31,7 +31,7 @@ export default defineComponent({ const icon = route.icon ? () => : null; const node: any = route.children?.length ? ( <> -
+
{this.renderItem(route?.children)} ) : ( diff --git a/src/pages/_layout/index.vue b/src/pages/_layout/index.vue index 3e70dc9..ff0a982 100644 --- a/src/pages/_layout/index.vue +++ b/src/pages/_layout/index.vue @@ -3,17 +3,17 @@ -
- +
+

{{ appStore.title }} - 本地版 - + -->

@@ -35,7 +35,7 @@ - + + diff --git a/src/pages/post/media/index.vue b/src/pages/post/media/index.vue index 9b21899..16ce054 100644 --- a/src/pages/post/media/index.vue +++ b/src/pages/post/media/index.vue @@ -15,6 +15,7 @@ +
@@ -22,27 +23,22 @@ diff --git a/src/pages/system/role/index.vue b/src/pages/system/role/index.vue index 848ec93..7276a56 100644 --- a/src/pages/system/role/index.vue +++ b/src/pages/system/role/index.vue @@ -21,7 +21,7 @@ const [roleTable, roleCtx] = useAniTable({ return (
{record.name} - @{record.slug} + #{record.slug}
); }, @@ -74,7 +74,7 @@ const [roleTable, roleCtx] = useAniTable({ create: { title: "新建角色", modalProps: { - width: 1080, + width: 580, maskClosable: false, }, formProps: { diff --git a/src/pages/system/user/components/password.tsx b/src/pages/system/user/components/password.tsx index e54c677..1995fe8 100644 --- a/src/pages/system/user/components/password.tsx +++ b/src/pages/system/user/components/password.tsx @@ -17,7 +17,7 @@ export const usePassworModal = () => { field: "password", label: ({ model }) => ( - {model.nickname} 的新密码: + 设置 {model.nickname} 的新密码: ), type: "input", diff --git a/src/pages/system/user/index.vue b/src/pages/system/user/index.vue index 9317aa1..eeb5db3 100644 --- a/src/pages/system/user/index.vue +++ b/src/pages/system/user/index.vue @@ -48,7 +48,7 @@ const table = useTable({ { title: "操作", type: "button", - width: 180, + width: 200, buttons: [ { type: "modify", @@ -76,22 +76,39 @@ const table = useTable({ { field: "nickname", label: "用户昵称", - type: "search", - searchable: true, - enterable: true, - itemProps: { - hideLabel: true, - }, - nodeProps: { - placeholder: "用户昵称", - }, + type: "input", + }, + { + field: "nickname", + label: "用户昵称", + type: "input", + }, + { + field: "nickname", + label: "用户昵称", + type: "input", + }, + { + field: "nickname", + label: "用户昵称", + type: "input", + }, + { + field: "nickname", + label: "用户昵称", + type: "input", + }, + { + field: "nickname", + label: "用户昵称", + type: "input", }, ], }, create: { title: "新建用户", modalProps: { - width: 732, + width: 820, maskClosable: false, }, formProps: { diff --git a/src/styles/css-unocss.less b/src/styles/css-unocss.less index 5a2420a..5c8655d 100644 --- a/src/styles/css-unocss.less +++ b/src/styles/css-unocss.less @@ -13,5 +13,9 @@ .table .arco-form-item-layout-inline { margin-right: 8px; + margin-bottom: 18px; +} + +div.toolbar .arco-form-item-layout-inline { margin-bottom: 0; } diff --git a/src/types/auto-component.d.ts b/src/types/auto-component.d.ts index 329418a..ce2c22d 100644 --- a/src/types/auto-component.d.ts +++ b/src/types/auto-component.d.ts @@ -27,6 +27,7 @@ declare module '@vue/runtime-core' { AForm: typeof import('@arco-design/web-vue')['Form'] AFormItem: typeof import('@arco-design/web-vue')['FormItem'] AImage: typeof import('@arco-design/web-vue')['Image'] + AImagePreview: typeof import('@arco-design/web-vue')['ImagePreview'] AInput: typeof import('@arco-design/web-vue')['Input'] AInputNumber: typeof import('@arco-design/web-vue')['InputNumber'] AInputPassword: typeof import('@arco-design/web-vue')['InputPassword'] @@ -44,7 +45,6 @@ declare module '@vue/runtime-core' { AModal: typeof import('@arco-design/web-vue')['Modal'] APagination: typeof import('@arco-design/web-vue')['Pagination'] APopover: typeof import('@arco-design/web-vue')['Popover'] - AProgress: typeof import('@arco-design/web-vue')['Progress'] ARadio: typeof import('@arco-design/web-vue')['Radio'] ARadioGroup: typeof import('@arco-design/web-vue')['RadioGroup'] AScrollbar: typeof import('@arco-design/web-vue')['Scrollbar']