Browse Source

Merge pull request #176 from zhujun24/format

Format Demo
pull/177/head
偏右 9 years ago
parent
commit
b77191e1ed
  1. 2
      components/alert/demo/basic.md
  2. 2
      components/alert/demo/closable.md
  3. 2
      components/alert/demo/close-type.md
  4. 2
      components/alert/demo/description.md
  5. 2
      components/alert/demo/style.md
  6. 2
      components/notification/demo/basic.md
  7. 2
      components/notification/demo/duration.md
  8. 2
      components/notification/demo/onclose.md
  9. 2
      components/notification/demo/with-btn.md
  10. 2
      components/notification/demo/with-icon.md

2
components/alert/demo/basic.md

@ -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'));

2
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, '我要被关闭啦!');

2
components/alert/demo/close-type.md

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

2
components/alert/demo/description.md

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

2
components/alert/demo/style.md

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

2
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({

2
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 = {

2
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("我被默认的关闭按钮关闭了!");

2
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('我被默认的关闭按钮关闭了!');

2
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(){

Loading…
Cancel
Save