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

6 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',
},
5 months ago
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',
},
6 months ago
flex: {
// layout: 'horizontal',
class: 'ns-flex-form ns-flex-form-horizontal',
wrapperCol: { span: 24 },
labelCol: { span: 0 },
span: 6,
6 months ago
sm: null, //≥576px <=768
lg: null, //>= 768
gutter: [20, 0],
6 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',
},
},
};