import { useLocalization } from '/@/hooks/abp/useLocalization'; import { FormProps } from '/@/components/Form'; const { L } = useLocalization('AbpAuditLogging'); export function getSearchFormSchemas(): Partial { return { labelWidth: 100, fieldMapToTime: [ ['dateRange', ['startTime', 'endTime'], ['YYYY-MM-DDT00:00:00', 'YYYY-MM-DDT00:00:00']], ], schemas: [ { field: 'applicationName', component: 'Input', label: L('ApplicationName'), colProps: { span: 6 }, }, { field: 'userName', component: 'Input', label: L('UserName'), colProps: { span: 6 }, }, { field: 'clientId', component: 'Input', label: L('ClientId'), colProps: { span: 6 }, }, { field: 'identity', component: 'Input', label: L('Identity'), colProps: { span: 6 }, }, { field: 'actionName', component: 'Input', label: L('ActionName'), colProps: { span: 6 }, }, { field: 'correlationId', component: 'Input', label: L('CorrelationId'), colProps: { span: 6 }, }, { field: 'dateRange', component: 'RangePicker', label: L('StartTime'), colProps: { span: 12 }, componentProps: { style: { width: '100%', }, }, }, ], }; }