change listdata to listData

This commit is contained in:
血诺 2015-11-11 14:32:58 +08:00
parent a2e7ff51fb
commit 6c5a051d92
2 changed files with 10 additions and 10 deletions

View File

@ -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;
}

View File

@ -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) {