Skip to content

Commit 11800f0

Browse files
committed
style(GiForm): 调整表单项在不同屏幕下的布局方式
- 修改 GiForm 组件的 gridItemProps 属性,调整默认布局 - 更新用户管理页面的搜索表单,优化各字段的布局方式
1 parent b0c76c4 commit 11800f0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/components/GiForm/src/GiForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const props = withDefaults(defineProps<Props>(), {
113113
scrollToFirstError: true,
114114
defaultCollapsed: false,
115115
search: false,
116-
gridItemProps: { span: { xs: 24, sm: 12, xxl: 8 } },
116+
gridItemProps: { span: { xs: 24, sm: 8, xxl: 8 } },
117117
searchBtnText: '搜索',
118118
hideFoldBtn: false,
119119
suffix: true,

src/views/system/user/index.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,19 @@ const queryFormColumns: ColumnItem[] = reactive([
113113
{
114114
type: 'input',
115115
field: 'description',
116+
span: { xs: 24, sm: 8, xxl: 8 },
116117
formItemProps: {
117118
hideLabel: true,
118119
},
119120
props: {
120121
placeholder: '搜索用户名/昵称/描述',
122+
showWordLimit: false,
121123
},
122124
},
123125
{
124126
type: 'select',
125127
field: 'status',
128+
span: { xs: 24, sm: 6, xxl: 8 },
126129
formItemProps: {
127130
hideLabel: true,
128131
},
@@ -134,6 +137,7 @@ const queryFormColumns: ColumnItem[] = reactive([
134137
{
135138
type: 'range-picker',
136139
field: 'createTime',
140+
span: { xs: 24, sm: 10, xxl: 8 },
137141
formItemProps: {
138142
hideLabel: true,
139143
},

0 commit comments

Comments
 (0)