diff --git a/components/calendar/demo/basic.md b/components/calendar/demo/basic.md index 3c2918998b..1d3f783e50 100644 --- a/components/calendar/demo/basic.md +++ b/components/calendar/demo/basic.md @@ -11,21 +11,21 @@ import { Calendar } from 'antd'; function getDateData(value) { - let listdata; + let listData; switch (value.getDayOfMonth()) { case 8: - listdata = [ + listData = [ { type: 'warn', content: '这里是警告事项.' }, { type: 'normal', content: '这里是普通事项.' } ]; break; case 10: - listdata = [ + listData = [ { type: 'warn', content: '这里是警告事项.' }, { type: 'normal', content: '这里是普通事项.' }, { type: 'error', content: '这里是错误事项.' } ]; break; case 15: - listdata = [ + listData = [ { type: 'warn', content: '这里是警告事项.' }, { type: 'normal', content: '这里是普通事项.' }, { type: 'error', content: '这里是错误事项.' }, @@ -33,7 +33,7 @@ function getDateData(value) { ]; break; } - return listdata; + return listData; } diff --git a/components/calendar/demo/fullscreen.md b/components/calendar/demo/fullscreen.md index da9d90a5cb..8b0535034c 100644 --- a/components/calendar/demo/fullscreen.md +++ b/components/calendar/demo/fullscreen.md @@ -10,28 +10,28 @@ import { Calendar } from 'antd'; function getDateData(value) { - let listdata; + let listData; switch (value.getDayOfMonth()) { case 8: - listdata = [ + listData = [ { type: 'warn', content: '这里是警告事项.' }, { type: 'normal', content: '这里是普通事项.' } ]; break; case 10: - listdata = [ + listData = [ { type: 'warn', content: '这里是警告事项.' }, { type: 'normal', content: '这里是普通事项.' }, { type: 'error', content: '这里是错误事项.' } ]; break; case 15: - listdata = [ + listData = [ { type: 'warn', content: '这里是警告事项.' }, { type: 'normal', content: '这里是普通事项好长啊。。.' }, { type: 'error', content: '这里是错误事项.' }, { type: 'error', content: '这里是错误事项.' } ]; break; } - return listdata; + return listData; } function getMonthData(value) { if (value.getMonth() === 8) {