forked from ommocity/ant-design
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
59 lines (55 loc) · 2.34 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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;