diff --git a/components/alert/demo/basic.md b/components/alert/demo/basic.md index bf76f68760..cecb3263d6 100644 --- a/components/alert/demo/basic.md +++ b/components/alert/demo/basic.md @@ -7,7 +7,7 @@ --- ````jsx -var Alert = require('antd/lib/alert'); +var Alert = antd.Alert; React.render( , document.getElementById('components-alert-demo-basic')); diff --git a/components/alert/demo/closable.md b/components/alert/demo/closable.md index dfa86160b7..2f7067e900 100644 --- a/components/alert/demo/closable.md +++ b/components/alert/demo/closable.md @@ -7,7 +7,7 @@ --- ````jsx -var Alert = require('antd/lib/alert'); +var Alert = antd.Alert; var onClose = function(e) { console.log(e, '我要被关闭啦!'); diff --git a/components/alert/demo/close-type.md b/components/alert/demo/close-type.md index 5917333727..079156a2b1 100644 --- a/components/alert/demo/close-type.md +++ b/components/alert/demo/close-type.md @@ -7,7 +7,7 @@ --- ````jsx -var Alert = require('antd/lib/alert'); +var Alert = antd.Alert; var link = 不再提醒 React.render( diff --git a/components/alert/demo/description.md b/components/alert/demo/description.md index b479d8e825..3a83e3d457 100644 --- a/components/alert/demo/description.md +++ b/components/alert/demo/description.md @@ -7,7 +7,7 @@ --- ````jsx -var Alert = require('antd/lib/alert'); +var Alert = antd.Alert; React.render(
diff --git a/components/notification/demo/basic.md b/components/notification/demo/basic.md index 37fdbf1e98..83abb67bfc 100644 --- a/components/notification/demo/basic.md +++ b/components/notification/demo/basic.md @@ -7,7 +7,7 @@ --- ````jsx -var notification = require('antd/lib/notification'); +var notification = antd.Notification; var openNotification = function() { notification.open({ diff --git a/components/notification/demo/duration.md b/components/notification/demo/duration.md index 11f35ba847..aea84cb004 100644 --- a/components/notification/demo/duration.md +++ b/components/notification/demo/duration.md @@ -7,7 +7,7 @@ --- ````jsx -var notification = require('antd/lib/notification'); +var notification = antd.Notification; var openNotification = function() { var args = { diff --git a/components/notification/demo/onclose.md b/components/notification/demo/onclose.md index c994656f00..f1a2c62d91 100644 --- a/components/notification/demo/onclose.md +++ b/components/notification/demo/onclose.md @@ -7,7 +7,7 @@ --- ````jsx -var notification = require('antd/lib/notification'); +var notification = antd.Notification; var close = function() { console.log("我被默认的关闭按钮关闭了!"); diff --git a/components/notification/demo/with-btn.md b/components/notification/demo/with-btn.md index 94fb28b333..ae28cbbefb 100644 --- a/components/notification/demo/with-btn.md +++ b/components/notification/demo/with-btn.md @@ -7,7 +7,7 @@ --- ````jsx -var notification = require('antd/lib/notification'); +var notification = antd.Notification; var close = function(){ console.log('我被默认的关闭按钮关闭了!'); diff --git a/components/notification/demo/with-icon.md b/components/notification/demo/with-icon.md index 155a7fc894..6c8940ac36 100644 --- a/components/notification/demo/with-icon.md +++ b/components/notification/demo/with-icon.md @@ -7,7 +7,7 @@ --- ````jsx -var notification = require('antd/lib/notification'); +var notification = antd.Notification; var openNotificationWithIcon = function(type) { return function(){