diff --git a/components/datepicker/index.jsx b/components/datepicker/index.jsx index f39b548a97..1fc9c1a2cb 100644 --- a/components/datepicker/index.jsx +++ b/components/datepicker/index.jsx @@ -7,9 +7,15 @@ var GregorianCalendar = require('gregorian-calendar'); var zhCn = require('gregorian-calendar/lib/locale/zh-cn'); var CalendarLocale = require('rc-calendar/lib/locale/zh-cn'); var DateTimeFormat = require('gregorian-calendar-format'); +// 和顶部文案保持一致 +require('gregorian-calendar-format/lib/locale/zh-cn').shortMonths = + ['1月', '2月', '3月', '4月', '5月', '6月', + '7月', '8月', '9月', '10月', '11月', '12月']; var defaultCalendarValue = new GregorianCalendar(zhCn); defaultCalendarValue.setTime(Date.now()); +console.log(DateTimeFormat); + module.exports = React.createClass({ getInitialState: function () { return { diff --git a/style/components/datepicker/Calendar.less b/style/components/datepicker/Calendar.less index e8483fac6d..f45cf0a8fa 100644 --- a/style/components/datepicker/Calendar.less +++ b/style/components/datepicker/Calendar.less @@ -154,7 +154,7 @@ } &-today &-date { - background: #FFE3CA; + color: #3fc7fa; } &-selected-day &-date {