mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-02-17 17:40:31 +08:00
refactor(formcontrol): restore the grid layout properties of fromcontrol
This commit is contained in:
parent
40e5af4f06
commit
96b3c98cad
@ -35,6 +35,14 @@ const exampleProperties: Static<typeof FormControlPropsSpec> = {
|
||||
labelAlign: 'left',
|
||||
colon: false,
|
||||
help: '',
|
||||
labelCol: {
|
||||
span: 3,
|
||||
offset: 0,
|
||||
},
|
||||
wrapperCol: {
|
||||
span: 21,
|
||||
offset: 0,
|
||||
},
|
||||
};
|
||||
|
||||
export const FormControl = implementRuntimeComponent({
|
||||
|
@ -36,5 +36,25 @@ export const FormControlPropsSpec = {
|
||||
colon: Type.Boolean({
|
||||
title: 'Colon',
|
||||
category: Category.Style,
|
||||
})
|
||||
}),
|
||||
labelCol: Type.Object(
|
||||
{
|
||||
span: Type.Number(),
|
||||
offset: Type.Number(),
|
||||
},
|
||||
{
|
||||
title: 'Label Col',
|
||||
category: Category.Layout,
|
||||
}
|
||||
),
|
||||
wrapperCol: Type.Object(
|
||||
{
|
||||
span: Type.Number(),
|
||||
offset: Type.Number(),
|
||||
},
|
||||
{
|
||||
title: 'Wrapper Col',
|
||||
category: Category.Layout,
|
||||
}
|
||||
),
|
||||
};
|
||||
|
@ -13,6 +13,10 @@ export const InputPropsSpec = {
|
||||
category: Category.Basic,
|
||||
weight: 1,
|
||||
}),
|
||||
updateWhenDefaultValueChanges: Type.Boolean({
|
||||
title: 'Update When Default Value Changes',
|
||||
category: 'Basic',
|
||||
}),
|
||||
allowClear: Type.Boolean({
|
||||
title: 'Allow Clear',
|
||||
category: Category.Basic,
|
||||
|
Loading…
Reference in New Issue
Block a user