From bd8c903e086dacbe1814478a56688e07f4935f01 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 19 Oct 2015 13:58:33 +0800 Subject: [PATCH] remove antd.confirm, please use antd.Modal.confirm --- index.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/index.js b/index.js index 4e4c2e3b79..e4491c35f9 100644 --- a/index.js +++ b/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;