Browse Source

Fix tag margin right

pull/457/head
afc163 9 years ago
parent
commit
3a941f2bfd
  1. 2
      src/components/NoticeIcon/demo/popover.md
  2. 2
      src/layouts/BasicLayout.js

2
src/components/NoticeIcon/demo/popover.md

@ -28,7 +28,7 @@ const data = [{
title: '标题', title: '标题',
description: '这种模板用于提醒谁与你发生了互动,左侧放『谁』的头像', description: '这种模板用于提醒谁与你发生了互动,左侧放『谁』的头像',
datetime: moment('2017-08-07').fromNow(), datetime: moment('2017-08-07').fromNow(),
extra: <Tag color="red">标签</Tag>, extra: <Tag color="red" style={{ marginRight: 0 }}>标签</Tag>,
}]; }];
function onItemClick(item, tabProps) { function onItemClick(item, tabProps) {

2
src/layouts/BasicLayout.js

@ -186,7 +186,7 @@ class BasicLayout extends React.PureComponent {
urgent: 'red', urgent: 'red',
doing: 'gold', doing: 'gold',
})[newNotice.status]; })[newNotice.status];
newNotice.extra = <Tag color={color}>{newNotice.extra}</Tag>; newNotice.extra = <Tag color={color} style={{ marginRight: 0 }}>{newNotice.extra}</Tag>;
} }
return newNotice; return newNotice;
}); });

Loading…
Cancel
Save