Skip to content

Commit 273ae19

Browse files
author
preschooler
committed
🐞 fix:修复邮件模块搜索栏元素宽度
1 parent a4d19cc commit 273ae19

File tree

3 files changed

+86
-11
lines changed

3 files changed

+86
-11
lines changed

src/views/system/mail/account/account.data.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,26 @@ const crudSchemas = reactive<CrudSchema[]>([
2525
{
2626
label: '邮箱',
2727
field: 'mail',
28-
isSearch: true
28+
isSearch: true,
29+
search: {
30+
componentProps: {
31+
style: {
32+
width: '240px'
33+
}
34+
}
35+
}
2936
},
3037
{
3138
label: '用户名',
3239
field: 'username',
33-
isSearch: true
40+
isSearch: true,
41+
search: {
42+
componentProps: {
43+
style: {
44+
width: '240px'
45+
}
46+
}
47+
}
3448
},
3549
{
3650
label: '密码',

src/views/system/mail/log/log.data.ts

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ const crudSchemas = reactive<CrudSchema[]>([
2121
componentProps: {
2222
valueFormat: 'YYYY-MM-DD HH:mm:ss',
2323
type: 'daterange',
24-
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
24+
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')],
25+
style: {
26+
width: '240px'
27+
}
2528
}
2629
},
2730
detail: {
@@ -36,15 +39,29 @@ const crudSchemas = reactive<CrudSchema[]>([
3639
label: '用户编号',
3740
field: 'userId',
3841
isSearch: true,
39-
isTable: false
42+
isTable: false,
43+
search: {
44+
componentProps: {
45+
style: {
46+
width: '240px'
47+
}
48+
}
49+
}
4050
},
4151
{
4252
label: '用户类型',
4353
field: 'userType',
4454
dictType: DICT_TYPE.USER_TYPE,
4555
dictClass: 'number',
4656
isSearch: true,
47-
isTable: false
57+
isTable: false,
58+
search: {
59+
componentProps: {
60+
style: {
61+
width: '240px'
62+
}
63+
}
64+
}
4865
},
4966
{
5067
label: '邮件标题',
@@ -65,7 +82,14 @@ const crudSchemas = reactive<CrudSchema[]>([
6582
field: 'sendStatus',
6683
dictType: DICT_TYPE.SYSTEM_MAIL_SEND_STATUS,
6784
dictClass: 'string',
68-
isSearch: true
85+
isSearch: true,
86+
search: {
87+
componentProps: {
88+
style: {
89+
width: '240px'
90+
}
91+
}
92+
}
6993
},
7094
{
7195
label: '邮箱账号',
@@ -79,6 +103,9 @@ const crudSchemas = reactive<CrudSchema[]>([
79103
optionsAlias: {
80104
labelField: 'mail',
81105
valueField: 'id'
106+
},
107+
style: {
108+
width: '240px'
82109
}
83110
}
84111
}
@@ -93,7 +120,14 @@ const crudSchemas = reactive<CrudSchema[]>([
93120
{
94121
label: '模板编号',
95122
field: 'templateId',
96-
isSearch: true
123+
isSearch: true,
124+
search: {
125+
componentProps: {
126+
style: {
127+
width: '240px'
128+
}
129+
}
130+
}
97131
},
98132
{
99133
label: '模板编码',

src/views/system/mail/template/template.data.ts

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,26 @@ const crudSchemas = reactive<CrudSchema[]>([
2222
{
2323
label: '模板编码',
2424
field: 'code',
25-
isSearch: true
25+
isSearch: true,
26+
search: {
27+
componentProps: {
28+
style: {
29+
width: '240px'
30+
}
31+
}
32+
}
2633
},
2734
{
2835
label: '模板名称',
2936
field: 'name',
30-
isSearch: true
37+
isSearch: true,
38+
search: {
39+
componentProps: {
40+
style: {
41+
width: '240px'
42+
}
43+
}
44+
}
3145
},
3246
{
3347
label: '模板标题',
@@ -59,6 +73,9 @@ const crudSchemas = reactive<CrudSchema[]>([
5973
optionsAlias: {
6074
labelField: 'mail',
6175
valueField: 'id'
76+
},
77+
style: {
78+
width: '240px'
6279
}
6380
}
6481
},
@@ -82,7 +99,14 @@ const crudSchemas = reactive<CrudSchema[]>([
8299
field: 'status',
83100
isSearch: true,
84101
dictType: DICT_TYPE.COMMON_STATUS,
85-
dictClass: 'number'
102+
dictClass: 'number',
103+
search: {
104+
componentProps: {
105+
style: {
106+
width: '240px'
107+
}
108+
}
109+
}
86110
},
87111
{
88112
label: '备注',
@@ -100,7 +124,10 @@ const crudSchemas = reactive<CrudSchema[]>([
100124
componentProps: {
101125
valueFormat: 'YYYY-MM-DD HH:mm:ss',
102126
type: 'daterange',
103-
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
127+
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')],
128+
style: {
129+
width: '240px'
130+
}
104131
}
105132
}
106133
},

0 commit comments

Comments
 (0)