mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-25 06:57:12 +08:00
style(GiForm): 调整表单项在不同屏幕下的布局方式
- 修改 GiForm 组件的 gridItemProps 属性,调整默认布局 - 更新用户管理页面的搜索表单,优化各字段的布局方式
This commit is contained in:
@@ -113,7 +113,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|||||||
scrollToFirstError: true,
|
scrollToFirstError: true,
|
||||||
defaultCollapsed: false,
|
defaultCollapsed: false,
|
||||||
search: false,
|
search: false,
|
||||||
gridItemProps: { span: { xs: 24, sm: 12, xxl: 8 } },
|
gridItemProps: { span: { xs: 24, sm: 8, xxl: 8 } },
|
||||||
searchBtnText: '搜索',
|
searchBtnText: '搜索',
|
||||||
hideFoldBtn: false,
|
hideFoldBtn: false,
|
||||||
suffix: true,
|
suffix: true,
|
||||||
|
@@ -113,16 +113,19 @@ const queryFormColumns: ColumnItem[] = reactive([
|
|||||||
{
|
{
|
||||||
type: 'input',
|
type: 'input',
|
||||||
field: 'description',
|
field: 'description',
|
||||||
|
span: { xs: 24, sm: 8, xxl: 8 },
|
||||||
formItemProps: {
|
formItemProps: {
|
||||||
hideLabel: true,
|
hideLabel: true,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
placeholder: '搜索用户名/昵称/描述',
|
placeholder: '搜索用户名/昵称/描述',
|
||||||
|
showWordLimit: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'select',
|
type: 'select',
|
||||||
field: 'status',
|
field: 'status',
|
||||||
|
span: { xs: 24, sm: 6, xxl: 8 },
|
||||||
formItemProps: {
|
formItemProps: {
|
||||||
hideLabel: true,
|
hideLabel: true,
|
||||||
},
|
},
|
||||||
@@ -134,6 +137,7 @@ const queryFormColumns: ColumnItem[] = reactive([
|
|||||||
{
|
{
|
||||||
type: 'range-picker',
|
type: 'range-picker',
|
||||||
field: 'createTime',
|
field: 'createTime',
|
||||||
|
span: { xs: 24, sm: 10, xxl: 8 },
|
||||||
formItemProps: {
|
formItemProps: {
|
||||||
hideLabel: true,
|
hideLabel: true,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user