Files
SaaS-lib/lib/saas/config/form.config.ts

58 lines
1.4 KiB
TypeScript
Raw Permalink Normal View History

2024-05-15 17:29:42 +08:00
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',
},
2024-07-05 12:04:17 +08:00
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',
},
2024-05-15 17:29:42 +08:00
flex: {
// layout: 'horizontal',
class: 'ns-flex-form ns-flex-form-horizontal',
2024-06-25 11:21:35 +08:00
wrapperCol: { span: 24 },
labelCol: { span: 0 },
span: 6,
2024-05-15 17:29:42 +08:00
sm: null, //≥576px <=768
lg: null, //>= 768
2024-06-25 11:21:35 +08:00
gutter: [20, 0],
2024-05-15 17:29:42 +08:00
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',
},
},
};