mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
07387e4ded
* develop-0.11.0: (52 commits) remove unused code improve home js badge can be use like <Badge />, ref #413 fix: `rowKey` should work with Radio #697 update deps remove scripts/clip.js fix ie8 babel bug via es3ify-loader, ref ant-tool/atool-build#28 small change Fix ie8 error caused by clipboard.js Add basic English doc for install update demos update tabs style Add tip, #692 update demo text update background-color of common layout demo update tabs demo update tabs doc Add card tabs on container top update tabs style update card tabs style ...
60 lines
2.3 KiB
JavaScript
60 lines
2.3 KiB
JavaScript
import React from 'react';
|
|
|
|
const antd = {
|
|
Affix: require('./components/affix'),
|
|
DatePicker: require('./components/date-picker'),
|
|
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'),
|
|
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'),
|
|
QueueAnim: require('./components/queue-anim'),
|
|
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'),
|
|
Button: require('./components/button'),
|
|
Icon: require('./components/icon'),
|
|
Row: require('./components/row'),
|
|
Col: require('./components/col'),
|
|
Spin: require('./components/spin'),
|
|
Form: require('./components/form'),
|
|
Input: require('./components/input'),
|
|
Calendar: require('./components/calendar'),
|
|
Timepicker: require('./components/time-picker'),
|
|
Transfer: require('./components/transfer'),
|
|
};
|
|
|
|
antd.version = require('./package.json').version;
|
|
|
|
const ReactVersion = React.version;
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
const warning = require('warning');
|
|
const semver = require('semver');
|
|
const reactVersionInDeps = require('./package.json').devDependencies.react;
|
|
warning(semver.satisfies(ReactVersion, reactVersionInDeps) || semver.gtr(ReactVersion, reactVersionInDeps),
|
|
`antd@${antd.version} need react@${reactVersionInDeps} or higher, which is react@${ReactVersion} now.`);
|
|
}
|
|
|
|
module.exports = antd;
|