You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.5 KiB

import React from 'react';
9 years ago
const antd = {
9 years ago
Affix: require('./components/affix'),
DatePicker: require('./components/date-picker'),
Tooltip: require('./components/tooltip'),
9 years ago
Carousel: require('./components/carousel'),
Tabs: require('./components/tabs'),
10 years ago
Modal: require('./components/modal'),
10 years ago
Dropdown: require('./components/dropdown'),
Progress: require('./components/progress'),
Popover: require('./components/popover'),
10 years ago
Select: require('./components/select'),
Breadcrumb: require('./components/breadcrumb'),
Popconfirm: require('./components/popconfirm'),
Pagination: require('./components/pagination'),
10 years ago
Steps: require('./components/steps'),
10 years ago
InputNumber: require('./components/input-number'),
9 years ago
Switch: require('./components/switch'),
Checkbox: require('./components/checkbox'),
Table: require('./components/table'),
Tag: require('./components/tag'),
Collapse: require('./components/collapse'),
message: require('./components/message'),
9 years ago
Slider: require('./components/slider'),
9 years ago
QueueAnim: require('./components/queue-anim'),
9 years ago
Radio: require('./components/radio'),
notification: require('./components/notification'),
Alert: require('./components/alert'),
Validation: require('./components/validation'),
9 years ago
Tree: require('./components/tree'),
9 years ago
TreeSelect: require('./components/tree-select'),
9 years ago
Upload: require('./components/upload'),
Badge: require('./components/badge'),
9 years ago
Menu: require('./components/menu'),
Timeline: require('./components/timeline'),
Button: require('./components/button'),
9 years ago
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'),
9 years ago
TimePicker: require('./components/time-picker'),
Transfer: require('./components/transfer'),
9 years ago
Cascader: require('./components/cascader'),
};
10 years ago
9 years ago
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.`
);
}
10 years ago
module.exports = antd;