From 11800f02eec85d640229a87babf4a53b25041d60 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Thu, 6 Mar 2025 21:44:24 +0800 Subject: [PATCH] =?UTF-8?q?style(GiForm):=20=E8=B0=83=E6=95=B4=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E9=A1=B9=E5=9C=A8=E4=B8=8D=E5=90=8C=E5=B1=8F=E5=B9=95?= =?UTF-8?q?=E4=B8=8B=E7=9A=84=E5=B8=83=E5=B1=80=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 GiForm 组件的 gridItemProps 属性,调整默认布局 - 更新用户管理页面的搜索表单,优化各字段的布局方式 --- src/components/GiForm/src/GiForm.vue | 2 +- src/views/system/user/index.vue | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/GiForm/src/GiForm.vue b/src/components/GiForm/src/GiForm.vue index de83d4e..9d9b78b 100644 --- a/src/components/GiForm/src/GiForm.vue +++ b/src/components/GiForm/src/GiForm.vue @@ -113,7 +113,7 @@ const props = withDefaults(defineProps(), { scrollToFirstError: true, defaultCollapsed: false, search: false, - gridItemProps: { span: { xs: 24, sm: 12, xxl: 8 } }, + gridItemProps: { span: { xs: 24, sm: 8, xxl: 8 } }, searchBtnText: '搜索', hideFoldBtn: false, suffix: true, diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index bcdd60b..00c0146 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -113,16 +113,19 @@ const queryFormColumns: ColumnItem[] = reactive([ { type: 'input', field: 'description', + span: { xs: 24, sm: 8, xxl: 8 }, formItemProps: { hideLabel: true, }, props: { placeholder: '搜索用户名/昵称/描述', + showWordLimit: false, }, }, { type: 'select', field: 'status', + span: { xs: 24, sm: 6, xxl: 8 }, formItemProps: { hideLabel: true, }, @@ -134,6 +137,7 @@ const queryFormColumns: ColumnItem[] = reactive([ { type: 'range-picker', field: 'createTime', + span: { xs: 24, sm: 10, xxl: 8 }, formItemProps: { hideLabel: true, },