Commit 8e5aa13e authored by XieZhiXiong's avatar XieZhiXiong

fix: 添加列表检索框 FormItem 宽度限制

parent 41341175
import { ISchema } from '@formily/antd'; import { ISchema } from '@formily/antd';
import { FORM_FILTER_PATH } from '@/formSchema/const'; import { FORM_FILTER_PATH } from '@/formSchema/const';
export const listSearchSchema: ISchema = { export const listSearchSchema: ISchema = {
type: 'object', type: 'object',
properties: { properties: {
megaLayout: { megaLayout: {
type: 'object', type: 'object',
'x-component': 'mega-layout', 'x-component': 'mega-layout',
properties: { properties: {
TOPLAYOUT: { TOPLAYOUT: {
type: 'object', type: 'object',
'x-component': 'Mega-Layout', 'x-component': 'Mega-Layout',
'x-component-props': { 'x-component-props': {
grid: true, grid: true,
}, },
properties: { properties: {
ctl: { ctl: {
type: 'object', type: 'object',
'x-component': 'Children', 'x-component': 'Children',
'x-component-props': { 'x-component-props': {
children: '{{controllerBtns}}', children: '{{controllerBtns}}',
}, },
}, },
product: { product: {
type: 'string', type: 'string',
'x-component': 'Search', 'x-component': 'Search',
'x-component-props': { 'x-component-props': {
placeholder: '搜索', placeholder: '搜索',
tip: '输入 交易商品 进行搜索', tip: '输入 交易商品 进行搜索',
}, },
}, },
}, },
}, },
[FORM_FILTER_PATH]: { [FORM_FILTER_PATH]: {
type: 'object', type: 'object',
'x-component': 'Flex-Layout', 'x-component': 'Flex-Layout',
'x-component-props': { 'x-component-props': {
colStyle: { colStyle: {
marginLeft: 20, marginLeft: 20,
}, },
}, },
properties: { properties: {
subMemberName: { subMemberName: {
type: 'string', type: 'string',
default: undefined, default: undefined,
'x-component-props': { 'x-component-props': {
placeholder: '被评价方', placeholder: '被评价方',
allowClear: true, allowClear: true,
}, style: {
}, width: 160,
memberName: { },
type: 'string', },
default: undefined, },
'x-component-props': { memberName: {
placeholder: '评价方', type: 'string',
allowClear: true, default: undefined,
}, 'x-component-props': {
}, placeholder: '评价方',
star: { allowClear: true,
type: 'string', style: {
default: undefined, width: 160,
enum: [ },
{ },
label: '一星', },
value: 1, star: {
}, type: 'string',
{ default: undefined,
label: '二星', enum: [
value: 2, {
}, label: '一星',
{ value: 1,
label: '三星', },
value: 3, {
}, label: '二星',
{ value: 2,
label: '四星', },
value: 4, {
}, label: '三星',
{ value: 3,
label: '五星', },
value: 5, {
}, label: '四星',
], value: 4,
'x-component-props': { },
placeholder: '评价星级(全部)', {
allowClear: true, label: '五星',
}, value: 5,
}, },
'[createTimeStart, createTimeEnd]': { ],
type: 'string', 'x-component-props': {
default: '', placeholder: '评价星级(全部)',
'x-component': 'dateSelect', allowClear: true,
'x-component-props': { style: {
placeholder: '评价时间(全部)', width: 160,
allowClear: true, },
}, },
}, },
'[dealTimeStart, dealTimeEnd]': { '[createTimeStart, createTimeEnd]': {
type: 'string', type: 'string',
default: '', default: '',
'x-component': 'dateSelect', 'x-component': 'dateSelect',
'x-component-props': { 'x-component-props': {
placeholder: '交易时间(全部)', placeholder: '评价时间(全部)',
allowClear: true, allowClear: true,
}, style: {
}, width: 160,
'comment': { },
type: 'string', },
default: '', },
'x-component-props': { '[dealTimeStart, dealTimeEnd]': {
placeholder: '评价内容', type: 'string',
allowClear: true, default: '',
}, 'x-component': 'dateSelect',
}, 'x-component-props': {
submit: { placeholder: '交易时间(全部)',
'x-component': 'Submit', allowClear: true,
'x-mega-props': { style: {
span: 1, width: 160,
}, },
'x-component-props': { },
children: '查询', },
}, 'comment': {
}, type: 'string',
}, default: '',
}, 'x-component-props': {
}, placeholder: '评价内容',
}, allowClear: true,
}, style: {
width: 160,
},
},
},
submit: {
'x-component': 'Submit',
'x-mega-props': {
span: 1,
},
'x-component-props': {
children: '查询',
},
},
},
},
},
},
},
}; };
\ No newline at end of file
...@@ -43,6 +43,9 @@ export const levelSchema: ISchema = { ...@@ -43,6 +43,9 @@ export const levelSchema: ISchema = {
'x-component-props': { 'x-component-props': {
placeholder: '角色名称', placeholder: '角色名称',
allowClear: true, allowClear: true,
style: {
width: 160,
},
}, },
}, },
submit: { submit: {
......
...@@ -50,6 +50,9 @@ export const importSchema: ISchema = { ...@@ -50,6 +50,9 @@ export const importSchema: ISchema = {
'x-component-props': { 'x-component-props': {
placeholder: '会员类型(全部)', placeholder: '会员类型(全部)',
allowClear: true, allowClear: true,
style: {
width: 160,
},
}, },
}, },
roleId: { roleId: {
...@@ -59,6 +62,9 @@ export const importSchema: ISchema = { ...@@ -59,6 +62,9 @@ export const importSchema: ISchema = {
'x-component-props': { 'x-component-props': {
placeholder: '会员角色(全部)', placeholder: '会员角色(全部)',
allowClear: true, allowClear: true,
style: {
width: 160,
},
}, },
}, },
level: { level: {
...@@ -68,6 +74,9 @@ export const importSchema: ISchema = { ...@@ -68,6 +74,9 @@ export const importSchema: ISchema = {
'x-component-props': { 'x-component-props': {
placeholder: '会员等级(全部)', placeholder: '会员等级(全部)',
allowClear: true, allowClear: true,
style: {
width: 160,
},
}, },
}, },
source: { source: {
...@@ -77,6 +86,9 @@ export const importSchema: ISchema = { ...@@ -77,6 +86,9 @@ export const importSchema: ISchema = {
'x-component-props': { 'x-component-props': {
placeholder: '申请来源(全部)', placeholder: '申请来源(全部)',
allowClear: true, allowClear: true,
style: {
width: 160,
},
}, },
}, },
innerStatus: { innerStatus: {
...@@ -86,6 +98,9 @@ export const importSchema: ISchema = { ...@@ -86,6 +98,9 @@ export const importSchema: ISchema = {
'x-component-props': { 'x-component-props': {
placeholder: '内部状态(全部)', placeholder: '内部状态(全部)',
allowClear: true, allowClear: true,
style: {
width: 160,
},
}, },
}, },
outerStatus: { outerStatus: {
...@@ -95,6 +110,9 @@ export const importSchema: ISchema = { ...@@ -95,6 +110,9 @@ export const importSchema: ISchema = {
'x-component-props': { 'x-component-props': {
placeholder: '外部状态(全部)', placeholder: '外部状态(全部)',
allowClear: true, allowClear: true,
style: {
width: 160,
},
}, },
}, },
status: { status: {
...@@ -104,6 +122,9 @@ export const importSchema: ISchema = { ...@@ -104,6 +122,9 @@ export const importSchema: ISchema = {
'x-component-props': { 'x-component-props': {
placeholder: '会员状态(全部)', placeholder: '会员状态(全部)',
allowClear: true, allowClear: true,
style: {
width: 160,
},
}, },
}, },
'[startDate, endDate]': { '[startDate, endDate]': {
...@@ -113,6 +134,9 @@ export const importSchema: ISchema = { ...@@ -113,6 +134,9 @@ export const importSchema: ISchema = {
'x-component-props': { 'x-component-props': {
placeholder: '时间范围(全部)', placeholder: '时间范围(全部)',
allowClear: true, allowClear: true,
style: {
width: 160,
},
}, },
}, },
submit: { submit: {
......
...@@ -48,6 +48,9 @@ export const auditSchema: ISchema = { ...@@ -48,6 +48,9 @@ export const auditSchema: ISchema = {
'x-component-props': { 'x-component-props': {
placeholder: '会员类型(全部)', placeholder: '会员类型(全部)',
allowClear: true, allowClear: true,
style: {
width: 160,
},
}, },
}, },
// status: { // status: {
...@@ -66,6 +69,9 @@ export const auditSchema: ISchema = { ...@@ -66,6 +69,9 @@ export const auditSchema: ISchema = {
'x-component-props': { 'x-component-props': {
placeholder: '会员角色(全部)', placeholder: '会员角色(全部)',
allowClear: true, allowClear: true,
style: {
width: 160,
},
}, },
}, },
level: { level: {
...@@ -75,6 +81,9 @@ export const auditSchema: ISchema = { ...@@ -75,6 +81,9 @@ export const auditSchema: ISchema = {
'x-component-props': { 'x-component-props': {
placeholder: '会员等级(全部)', placeholder: '会员等级(全部)',
allowClear: true, allowClear: true,
style: {
width: 160,
},
}, },
}, },
source: { source: {
...@@ -84,6 +93,9 @@ export const auditSchema: ISchema = { ...@@ -84,6 +93,9 @@ export const auditSchema: ISchema = {
'x-component-props': { 'x-component-props': {
placeholder: '申请来源(全部)', placeholder: '申请来源(全部)',
allowClear: true, allowClear: true,
style: {
width: 160,
},
}, },
}, },
'[startDate, endDate]': { '[startDate, endDate]': {
...@@ -93,6 +105,9 @@ export const auditSchema: ISchema = { ...@@ -93,6 +105,9 @@ export const auditSchema: ISchema = {
'x-component-props': { 'x-component-props': {
placeholder: '时间范围(全部)', placeholder: '时间范围(全部)',
allowClear: true, allowClear: true,
style: {
width: 160,
},
}, },
}, },
submit: { submit: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment