Browse Source

update datepicker

pull/26/head
afc163 10 years ago
parent
commit
5ffd623b18
  1. 6
      components/datepicker/index.jsx
  2. 2
      style/components/datepicker/Calendar.less

6
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 {

2
style/components/datepicker/Calendar.less

@ -154,7 +154,7 @@
}
&-today &-date {
background: #FFE3CA;
color: #3fc7fa;
}
&-selected-day &-date {

Loading…
Cancel
Save