You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.4 KiB

7 months ago
export const formConfig = {
formLayout: {
vertical: {
layout: 'horizontal',
class: 'ns-vertical-form',
wrapperCol: { span: 16 },
labelCol: { span: 6 },
span: 24,
sm: null, //≥576px <=768
lg: null, //>= 768
gutter: [0, 0],
justify: 'space-around',
},
formVertical: {
layout: 'horizontal',
class: 'ns-vertical-form',
wrapperCol: { span: 24 },
labelCol: { span: 0 },
span: 24,
sm: null, //≥576px <=768
lg: null, //>= 768
gutter: [0, 0],
justify: 'space-around',
},
7 months ago
flex: {
// layout: 'horizontal',
class: 'ns-flex-form ns-flex-form-horizontal',
wrapperCol: { span: 24 },
labelCol: { span: 0 },
span: 6,
7 months ago
sm: null, //≥576px <=768
lg: null, //>= 768
gutter: [20, 0],
7 months ago
justify: 'space-between',
},
flexv2: {
// layout: 'horizontal',
class: 'ns-flex-form ns-flex-form-horizontal',
wrapperCol: { span: 16 },
span: 6,
sm: 8, //≥576px <=768
lg: 6, //>= 768
gutter: [16, 16],
justify: 'space-between',
},
flexVertical: {
layout: 'vertical',
class: 'ns-flex-form ns-flex-form-vertical',
wrapperCol: {},
span: 7,
sm: null, //≥576px <=768
lg: null, //>= 768
gutter: [0, 0],
justify: 'space-between',
},
},
};