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

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

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

Loading…
Cancel
Save