From e7fd922429e05c412818335acdd89075340c5aa1 Mon Sep 17 00:00:00 2001 From: zhujun24 Date: Thu, 30 Jul 2015 11:20:14 +0800 Subject: [PATCH] modify icon and text --- components/alert/demo/basic.md | 2 +- components/alert/demo/closable.md | 4 ++-- components/alert/demo/close-type.md | 2 +- components/alert/demo/description.md | 14 +++++++------- components/alert/demo/style.md | 6 +++--- components/alert/index.jsx | 6 ++++-- components/alert/index.md | 6 +++--- 7 files changed, 21 insertions(+), 19 deletions(-) diff --git a/components/alert/demo/basic.md b/components/alert/demo/basic.md index 552cb6cc9c..bf76f68760 100644 --- a/components/alert/demo/basic.md +++ b/components/alert/demo/basic.md @@ -9,6 +9,6 @@ ````jsx var Alert = require('antd/lib/alert'); -React.render( +React.render( , document.getElementById('components-alert-demo-basic')); ```` diff --git a/components/alert/demo/closable.md b/components/alert/demo/closable.md index ec023b3ccc..24f7ca06f6 100644 --- a/components/alert/demo/closable.md +++ b/components/alert/demo/closable.md @@ -18,8 +18,8 @@ React.render(
type="warn" closable onClose={onClose} /> - diff --git a/components/alert/demo/close-type.md b/components/alert/demo/close-type.md index 1c80a181be..5917333727 100644 --- a/components/alert/demo/close-type.md +++ b/components/alert/demo/close-type.md @@ -11,6 +11,6 @@ var Alert = require('antd/lib/alert'); var link = 不再提醒 React.render( - + , document.getElementById('components-alert-demo-close-type')); ```` diff --git a/components/alert/demo/description.md b/components/alert/demo/description.md index 1adc39f013..b479d8e825 100644 --- a/components/alert/demo/description.md +++ b/components/alert/demo/description.md @@ -10,19 +10,19 @@ var Alert = require('antd/lib/alert'); React.render(
- -
, document.getElementById('components-alert-demo-description')); ```` diff --git a/components/alert/demo/style.md b/components/alert/demo/style.md index 519501bc66..e54ae3fe91 100644 --- a/components/alert/demo/style.md +++ b/components/alert/demo/style.md @@ -10,10 +10,10 @@ var Alert = require('antd/lib/alert'); React.render(
- - + + - +
, document.getElementById('components-alert-demo-style')); ```` diff --git a/components/alert/index.jsx b/components/alert/index.jsx index 663789bff1..cb8e54a07b 100644 --- a/components/alert/index.jsx +++ b/components/alert/index.jsx @@ -27,11 +27,13 @@ export default React.createClass({ iconClass += 'check-circle'; break; case 'info': - iconClass += 'question-circle'; + iconClass += 'info-circle'; break; case 'error': + iconClass += 'exclamation-circle'; + break; case 'warn': - iconClass += 'info-circle'; + iconClass += 'question-circle'; break; default: iconClass += 'default'; diff --git a/components/alert/index.md b/components/alert/index.md index b96c30153a..e2b5ec4a69 100644 --- a/components/alert/index.md +++ b/components/alert/index.md @@ -17,8 +17,8 @@ | 参数 | 说明 | 类型 | 默认值 | |----------- |--------------------------------------------------------- | ---------- |-------| | type | 必选参数,指定警告提示的样式,有四种选择`success`、`info`、`warn`、`error` | String | 无 | -| closable | 可选参数,值为字符串`true`时显示关闭按钮,默认不显示 | String | 无 | -| closeText | 可选参数,自定义关闭 | String | 无 | +| closable | 可选参数,默认不显示关闭按钮 | Boolean | 无 | +| closeText | 可选参数,自定义关闭按钮 | String | 无 | | message | 必选参数,警告提示内容 | String | 无 | | description | 可选参数,警告提示的辅助性文字介绍 | String | 无 | -| onClose | 可选参数,关闭时触发的回调函数 | Function | 无 | +| onClose | 可选参数,关闭时触发的回调函数 | Function | 无 |