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.
65 lines
1.5 KiB
65 lines
1.5 KiB
import { useLocalization } from '/@/hooks/abp/useLocalization';
|
|
import { FormProps, FormSchema } from '/@/components/Form';
|
|
|
|
const { L } = useLocalization(['LocalizationManagement', 'AbpUi']);
|
|
|
|
export function getSearchFormSchemas(): Partial<FormProps> {
|
|
return {
|
|
labelWidth: 100,
|
|
schemas: [
|
|
{
|
|
field: 'filter',
|
|
component: 'Input',
|
|
label: L('Search'),
|
|
colProps: { span: 24 },
|
|
defaultValue: '',
|
|
},
|
|
],
|
|
};
|
|
}
|
|
|
|
export function getModalFormSchemas(): FormSchema[] {
|
|
return [
|
|
{
|
|
field: 'id',
|
|
component: 'Input',
|
|
label: 'id',
|
|
colProps: { span: 24 },
|
|
ifShow: false,
|
|
},
|
|
{
|
|
field: 'enable',
|
|
component: 'Checkbox',
|
|
label: L('DisplayName:Enable'),
|
|
colProps: { span: 24 },
|
|
defaultValue: true,
|
|
renderComponentContent: L('DisplayName:Enable'),
|
|
},
|
|
{
|
|
field: 'name',
|
|
component: 'Input',
|
|
label: L('DisplayName:Name'),
|
|
colProps: { span: 24 },
|
|
required: true,
|
|
},
|
|
{
|
|
field: 'displayName',
|
|
component: 'Input',
|
|
label: L('DisplayName:DisplayName'),
|
|
colProps: { span: 24 },
|
|
required: true,
|
|
},
|
|
{
|
|
field: 'description',
|
|
component: 'InputTextArea',
|
|
label: L('DisplayName:Description'),
|
|
colProps: { span: 24 },
|
|
},
|
|
{
|
|
field: 'description',
|
|
component: 'InputTextArea',
|
|
label: L('DisplayName:Description'),
|
|
colProps: { span: 24 },
|
|
},
|
|
];
|
|
}
|
|
|