Browse Source

use filled icons

pull/2108/head
afc163 8 years ago
parent
commit
c1e9e800b1
  1. 4
      src/components/Result/demo/classic.md
  2. 4
      src/components/Result/demo/error.md
  3. 4
      src/components/Result/index.js

4
src/components/Result/demo/classic.md

@ -15,7 +15,7 @@ const desc1 = (
<div style={{ fontSize: 14, position: 'relative', left: 38 }}>
<div style={{ marginTop: 8, marginBottom: 4 }}>
曲丽丽
<Icon type="dingding-o" style={{ marginLeft: 8 }} />
<Icon type="dingding" style={{ marginLeft: 8 }} />
</div>
<div style={{ marginTop: 8, marginBottom: 4 }}>2016-12-12 12:32</div>
</div>
@ -25,7 +25,7 @@ const desc2 = (
<div style={{ fontSize: 14, position: 'relative', left: 38 }}>
<div style={{ marginTop: 8, marginBottom: 4 }}>
周毛毛
<Icon type="dingding-o" style={{ color: '#00A0E9', marginLeft: 8 }} />
<Icon type="dingding" style={{ color: '#00A0E9', marginLeft: 8 }} />
</div>
<div style={{ marginTop: 8, marginBottom: 4 }}><a href="">催一下</a></div>
</div>

4
src/components/Result/demo/error.md

@ -15,11 +15,11 @@ const extra = (
您提交的内容有如下错误:
</div>
<div style={{ marginBottom: 16 }}>
<Icon style={{ color: '#f5222d', marginRight: 8 }} type="close-circle-o" />您的账户已被冻结
<Icon style={{ color: '#f5222d', marginRight: 8 }} type="close-circle" />您的账户已被冻结
<a style={{ marginLeft: 16 }}>立即解冻 <Icon type="right" /></a>
</div>
<div>
<Icon style={{ color: '#f5222d', marginRight: 8 }} type="close-circle-o" />您的账户还不具备申请资格
<Icon style={{ color: '#f5222d', marginRight: 8 }} type="close-circle" />您的账户还不具备申请资格
<a style={{ marginLeft: 16 }}>立即升级 <Icon type="right" /></a>
</div>
</div>

4
src/components/Result/index.js

@ -13,8 +13,8 @@ export default function Result({
...restProps
}) {
const iconMap = {
error: <Icon className={styles.error} type="close-circle" />,
success: <Icon className={styles.success} type="check-circle" />,
error: <Icon className={styles.error} type="close-circle" theme="filled" />,
success: <Icon className={styles.success} type="check-circle" theme="filled" />,
};
const clsString = classNames(styles.result, className);
return (

Loading…
Cancel
Save