feat(form): add form field components and configuration updates
refactor(knowledge): restructure configuration components to use common items
This commit is contained in:
35
src/components/FormField/index.ts
Normal file
35
src/components/FormField/index.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
// 基础组件导出
|
||||
export { SliderInputFormField } from './SliderInputFormField';
|
||||
export { SwitchFormField } from './SwitchFormField';
|
||||
export { SelectFormField } from './SelectFormField';
|
||||
export { MultilineTextFormField } from './MultilineTextFormField';
|
||||
export { NumberInputFormField } from './NumberInputFormField';
|
||||
export { ChipListFormField } from './ChipListFormField';
|
||||
export { SliderFormField } from './SliderFormField';
|
||||
export { TextFormField } from './TextFormField';
|
||||
export { DatePickerFormField } from './DatePickerFormField';
|
||||
export { CheckboxFormField } from './CheckboxFormField';
|
||||
|
||||
// 类型导出
|
||||
export type { SliderInputFormFieldProps } from './SliderInputFormField';
|
||||
export type { SwitchFormFieldProps } from './SwitchFormField';
|
||||
export type { SelectFormFieldProps, SelectOption } from './SelectFormField';
|
||||
export type { MultilineTextFormFieldProps } from './MultilineTextFormField';
|
||||
export type { NumberInputFormFieldProps } from './NumberInputFormField';
|
||||
export type { ChipListFormFieldProps } from './ChipListFormField';
|
||||
export type { SliderFormFieldProps } from './SliderFormField';
|
||||
export type { TextFormFieldProps } from './TextFormField';
|
||||
export type { DatePickerFormFieldProps } from './DatePickerFormField';
|
||||
export type { CheckboxFormFieldProps } from './CheckboxFormField';
|
||||
|
||||
export type IFormLayoutType = {
|
||||
layout?: FormLayout;
|
||||
};
|
||||
|
||||
export const FORM_LAYOUTS = {
|
||||
Vertical: 'vertical',
|
||||
Horizontal: 'horizontal',
|
||||
} as const;
|
||||
|
||||
export type FormLayout = (typeof FORM_LAYOUTS)[keyof typeof FORM_LAYOUTS];
|
||||
|
||||
Reference in New Issue
Block a user