mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
remove antd.confirm, please use antd.Modal.confirm
This commit is contained in:
parent
a69aae8696
commit
bd8c903e08
4
index.js
4
index.js
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user