import Select from './select' ; import Upload from './upload' ; import Cascader from './cascader' ; import TreeSelect from './treeselect' ; import CheckboxGroup from './checkboxgroup' ; import RadioGroup from './radiogroup' ; import DatePicker from './datepicker' ; import RangePicker from './rangepicker' ; import TimePicker from './timepicker' ; import Editable from './editable' ; import { registerFieldPlugin } from './plugin' ; import { Switch , Checkbox , Input , InputNumber , Rate , Radio , Slider } from 'antd' ; function registerFieldPlugins ( ) { registerFieldPlugin ( 'input' ) ( Input ) ; registerFieldPlugin ( 'textarea' ) ( Input . TextArea ) ; registerFieldPlugin ( 'password' ) ( Input . Password ) ; registerFieldPlugin ( 'inputnumber' ) ( InputNumber ) ; registerFieldPlugin ( 'rate' ) ( Rate ) ; registerFieldPlugin ( 'switch' ) ( Switch ) ; registerFieldPlugin ( 'checkbox' ) ( Checkbox ) ; registerFieldPlugin ( 'radio' ) ( Radio ) ; registerFieldPlugin ( 'slider' ) ( Slider ) ; registerFieldPlugin ( 'cascader' ) ( Cascader , true ) ; registerFieldPlugin ( 'treeselect' ) ( TreeSelect , true ) ; registerFieldPlugin ( 'datepicker' ) ( DatePicker ) ; registerFieldPlugin ( 'rangepicker' ) ( RangePicker ) ; registerFieldPlugin ( 'timepicker' ) ( TimePicker ) ; registerFieldPlugin ( 'upload' ) ( Upload , false , true ) ; registerFieldPlugin ( 'select' ) ( Select , true ) ; registerFieldPlugin ( 'checkboxgroup' ) ( CheckboxGroup , true ) ; registerFieldPlugin ( 'radiogroup' ) ( RadioGroup , true ) ; registerFieldPlugin ( 'editable' ) ( Editable , false , true ) ; } export { Select , CheckboxGroup , TimePicker , DatePicker , RangePicker , Cascader , TreeSelect , RadioGroup , Upload , registerFieldPlugins , registerFieldPlugin } ;