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.
44 lines
933 B
44 lines
933 B
import { useLocalization } from '/@/hooks/abp/useLocalization';
|
|
import { FormProps, FormSchema } from '/@/components/Form';
|
|
|
|
const { L } = useLocalization('AbpSaas');
|
|
|
|
export function getSearchFormSchemas(): Partial<FormProps> {
|
|
return {
|
|
labelWidth: 120,
|
|
schemas: [
|
|
{
|
|
field: 'filter',
|
|
component: 'Input',
|
|
label: L('Search'),
|
|
colProps: { span: 24 },
|
|
},
|
|
],
|
|
};
|
|
}
|
|
|
|
export function getModalFormSchemas(): FormSchema[] {
|
|
return [
|
|
{
|
|
field: 'id',
|
|
component: 'Input',
|
|
label: 'id',
|
|
show: false,
|
|
dynamicDisabled: true,
|
|
},
|
|
{
|
|
field: 'concurrencyStamp',
|
|
component: 'Input',
|
|
label: 'concurrencyStamp',
|
|
show: false,
|
|
dynamicDisabled: true,
|
|
},
|
|
{
|
|
field: 'displayName',
|
|
component: 'Input',
|
|
label: L('DisplayName:EditionName'),
|
|
colProps: { span: 24 },
|
|
required: true,
|
|
},
|
|
];
|
|
}
|
|
|