remove antd.confirm, please use antd.Modal.confirm

This commit is contained in:
afc163 2015-10-19 13:58:33 +08:00
parent a69aae8696
commit bd8c903e08

View File

@ -24,7 +24,6 @@ const antd = {
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'),
@ -49,9 +48,6 @@ const antd = {
Icon: require('./components/iconfont')
};
// deprecate antd.confirm
antd.confirm = require('util-deprecate')(antd.confirm, 'antd.confirm() is deprecated, use antd.Modal.confirm() instead');
module.exports = antd;
antd.version = require('./package.json').version;