From 5ffd623b18d6ab71343b18e0324d46702d620ad0 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 15 Jun 2015 16:42:27 +0800 Subject: [PATCH] update datepicker --- components/datepicker/index.jsx | 6 ++++++ style/components/datepicker/Calendar.less | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 {