chore: preview field use switch

This commit is contained in:
jialin
2025-05-14 14:54:32 +08:00
parent f951358db4
commit 18cb82a0fe
8 changed files with 85 additions and 27 deletions
@@ -2,6 +2,7 @@ import { Checkbox } from 'antd';
import SealInput from '../seal-input';
import SealSelect from '../seal-select';
import Slider from '../seal-slider';
import Switch from '../seal-switch';
const components: {
InputNumber: typeof SealInput.Number;
@@ -10,13 +11,15 @@ const components: {
TextArea: typeof SealInput.TextArea;
Input: typeof SealInput.Input;
Checkbox: typeof Checkbox;
Switch: typeof Switch;
} = {
InputNumber: SealInput.Number,
Select: SealSelect,
Slider: Slider as React.ComponentType<typeof Slider>,
TextArea: SealInput.TextArea,
Input: SealInput.Input,
Checkbox: Checkbox
Checkbox: Checkbox,
Switch: Switch
};
export default components;