ant-design/index.js

29 lines
1.3 KiB
JavaScript
Raw Normal View History

/* eslint no-console:0 */
2016-01-14 19:38:07 +08:00
// this file is not used if use https://github.com/ant-design/babel-plugin-antd
import {
Rate, Affix, DatePicker, Tooltip, Tag, Carousel, Tabs, Modal, Dropdown, Progress, Popover, Select,
Breadcrumb, Popconfirm, Pagination, Steps, InputNumber, Switch, Checkbox, Table, Collapse, message,
Slider, QueueAnim, Radio, notification, Alert, Validation, Tree, TreeSelect, Upload,
Badge, Menu, Timeline, Button, Icon, Row, Col, Spin, Form, Input, Calendar, TimePicker,
Card, LocaleProvider, Transfer, Cascader,
} from 'antd';
// copy from above
2015-08-17 15:17:04 +08:00
const antd = {
Rate, Affix, DatePicker, Tooltip, Tag, Carousel, Tabs, Modal, Dropdown, Progress, Popover, Select,
Breadcrumb, Popconfirm, Pagination, Steps, InputNumber, Switch, Checkbox, Table, Collapse, message,
Slider, QueueAnim, Radio, notification, Alert, Validation, Tree, TreeSelect, Upload,
Badge, Menu, Timeline, Button, Icon, Row, Col, Spin, Form, Input, Calendar, TimePicker,
Card, LocaleProvider, Transfer, Cascader,
2015-05-21 20:36:13 +08:00
};
2015-05-25 17:20:49 +08:00
2016-04-30 11:06:55 +08:00
if (process.env.NODE_ENV !== 'production') {
if (typeof console !== 'undefined' && console.warn) {
console.warn(`you are using prebuild antd,
2016-04-28 11:14:01 +08:00
please use https://github.com/ant-design/babel-plugin-antd to reduce app bundle size.`);
2016-04-30 11:06:55 +08:00
}
2016-04-28 11:19:13 +08:00
}
2016-04-28 11:14:01 +08:00
export default antd;