Browse Source

Merge branch 'master' into feature-2.7

pull/4516/head
afc163 8 years ago
parent
commit
6a8c88fd6b
  1. 10
      components/calendar/demo/notice-calendar.md
  2. 4
      site/theme/template/Content/ComponentDoc.jsx

10
components/calendar/demo/notice-calendar.md

@ -34,10 +34,10 @@ function getListData(value) {
listData = [
{ type: 'warning', content: 'This is warning event' },
{ type: 'normal', content: 'This is very long usual event。。....' },
{ type: 'error', content: 'This is error event.' },
{ type: 'error', content: 'This is error event.' },
{ type: 'error', content: 'This is error event.' },
{ type: 'error', content: 'This is error event.' },
{ type: 'error', content: 'This is error event 1.' },
{ type: 'error', content: 'This is error event 2.' },
{ type: 'error', content: 'This is error event 3.' },
{ type: 'error', content: 'This is error event 4.' },
]; break;
default:
}
@ -50,7 +50,7 @@ function dateCellRender(value) {
<ul className="events">
{
listData.map(item =>
<li key={item.type}>
<li key={item.content}>
<span className={`event-${item.type}`}></span>
{item.content}
</li>

4
site/theme/template/Content/ComponentDoc.jsx

@ -44,14 +44,14 @@ export default class ComponentDoc extends React.Component {
if (index % 2 === 0 || isSingleCol) {
leftChildren.push(
<Demo {...demoData}
key={meta.filename} utils={props.utils}
key={demoData.meta.filename} utils={props.utils}
expand={expand} pathname={location.pathname}
/>
);
} else {
rightChildren.push(
<Demo {...demoData}
key={meta.filename} utils={props.utils}
key={demoData.meta.filename} utils={props.utils}
expand={expand} pathname={location.pathname}
/>
);

Loading…
Cancel
Save