36 lines
1.5 KiB
TypeScript
36 lines
1.5 KiB
TypeScript
|
|
// 基础组件导出
|
||
|
|
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];
|
||
|
|
|