22 lines
585 B
TypeScript
22 lines
585 B
TypeScript
import { Checkbox, Slider } from 'antd';
|
|
import SealInput from '../seal-input';
|
|
import SealSelect from '../seal-select';
|
|
|
|
const components: {
|
|
InputNumber: typeof SealInput.Number;
|
|
Select: typeof SealSelect;
|
|
Slider: React.ComponentType<typeof Slider>;
|
|
TextArea: typeof SealInput.TextArea;
|
|
Input: typeof SealInput.Input;
|
|
Checkbox: typeof Checkbox;
|
|
} = {
|
|
InputNumber: SealInput.Number,
|
|
Select: SealSelect,
|
|
Slider: Slider as React.ComponentType<typeof Slider>,
|
|
TextArea: SealInput.TextArea,
|
|
Input: SealInput.Input,
|
|
Checkbox: Checkbox
|
|
};
|
|
|
|
export default components;
|