const antd = {
Affix: require('./components/affix'),
Datepicker: require('./components/datepicker'),
Tooltip: require('./components/tooltip'),
Carousel: require('./components/carousel'),
Tabs: require('./components/tabs'),
Modal: require('./components/modal'),
Dropdown: require('./components/dropdown'),
Progress: require('./components/progress'),
Popover: require('./components/popover'),
Select: require('./components/select'),
Breadcrumb: require('./components/breadcrumb'),
Popconfirm: require('./components/popconfirm'),
Pagination: require('./components/pagination'),
confirm: require('./components/modal/confirm'),
Steps: require('./components/steps'),
InputNumber: require('./components/input-number'),
Switch: require('./components/switch'),
Checkbox: require('./components/checkbox'),
Table: require('./components/table'),
Tag: require('./components/tag'),
Collapse: require('./components/collapse'),
message: require('./components/message'),
Slider: require('./components/slider'),
EnterAnimation: require('./components/enter-animation'),
Radio: require('./components/radio'),
notification: require('./components/notification'),
Alert: require('./components/alert'),
Validation: require('./components/validation'),
Tree: require('./components/tree'),
Upload: require('./components/upload'),
Badge: require('./components/badge'),
Menu: require('./components/menu'),
Timeline: require('./components/timeline')
};
大写是 React.Component 类型组件,小写用于一般性的方法或实例对象。
message 的使用方式如下,并非 React 组件的形式。
antd.message('内容');
@afc163 ok,明白了。
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
Most helpful comment
大写是 React.Component 类型组件,小写用于一般性的方法或实例对象。
message 的使用方式如下,并非 React 组件的形式。