format alert & notification demo var xxx = antd.xxx

pull/176/head
zhujun24 10 years ago
parent 29b9088788
commit fefd039242

@ -7,7 +7,7 @@
---
````jsx
var Alert = require('antd/lib/alert');
var Alert = antd.Alert;
React.render(<Alert message="成功提示的文案" type="success" />
, document.getElementById('components-alert-demo-basic'));

@ -7,7 +7,7 @@
---
````jsx
var Alert = require('antd/lib/alert');
var Alert = antd.Alert;
var onClose = function(e) {
console.log(e, '我要被关闭啦!');

@ -7,7 +7,7 @@
---
````jsx
var Alert = require('antd/lib/alert');
var Alert = antd.Alert;
var link = <a href="javascript:;">不再提醒</a>
React.render(

@ -7,7 +7,7 @@
---
````jsx
var Alert = require('antd/lib/alert');
var Alert = antd.Alert;
React.render(<div>
<Alert message="成功提示的文案"

@ -7,7 +7,7 @@
---
````jsx
var Alert = require('antd/lib/alert');
var Alert = antd.Alert;
React.render(<div>
<Alert message="成功提示的文案" type="success" />

@ -7,7 +7,7 @@
---
````jsx
var notification = require('antd/lib/notification');
var notification = antd.Notification;
var openNotification = function() {
notification.open({

@ -7,7 +7,7 @@
---
````jsx
var notification = require('antd/lib/notification');
var notification = antd.Notification;
var openNotification = function() {
var args = {

@ -7,7 +7,7 @@
---
````jsx
var notification = require('antd/lib/notification');
var notification = antd.Notification;
var close = function() {
console.log("我被默认的关闭按钮关闭了!");

@ -7,7 +7,7 @@
---
````jsx
var notification = require('antd/lib/notification');
var notification = antd.Notification;
var close = function(){
console.log('我被默认的关闭按钮关闭了!');

@ -7,7 +7,7 @@
---
````jsx
var notification = require('antd/lib/notification');
var notification = antd.Notification;
var openNotificationWithIcon = function(type) {
return function(){

Loading…
Cancel
Save