From ce6ee800d572c829a0502f6df97d47a3e82e1f27 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 10 Jun 2015 19:46:41 +0800 Subject: [PATCH] datepicker prefix className --- components/datepicker/index.jsx | 6 ++++-- components/datepicker/index.md | 2 +- style/components/datepicker.less | 2 +- style/components/datepicker/Time.less | 4 ++-- style/mixins/input.less | 4 ++-- 5 files changed, 10 insertions(+), 8 deletions(-) diff --git a/components/datepicker/index.jsx b/components/datepicker/index.jsx index b757536ff4..7496ca4b14 100644 --- a/components/datepicker/index.jsx +++ b/components/datepicker/index.jsx @@ -43,16 +43,18 @@ module.exports = React.createClass({ orient={['top', 'left']} defaultValue={defaultCalendarValue} showTime={this.props.showTime} + prefixCls="ant-calendar" showClear={false} /> ); return ( } + trigger={} calendar={calendar} formatter={new DateTimeFormat(this.props.format)} value={this.state.value} + prefixCls="ant-calendar-picker" onChange={this.props.onSelect}> - + ); } diff --git a/components/datepicker/index.md b/components/datepicker/index.md index dafbd97a26..83e84721a5 100644 --- a/components/datepicker/index.md +++ b/components/datepicker/index.md @@ -22,7 +22,7 @@ | showTime | 显示时间选择条 | boolean | false | diff --git a/style/components/datepicker.less b/style/components/datepicker.less index 3242437335..6ff05f9a26 100644 --- a/style/components/datepicker.less +++ b/style/components/datepicker.less @@ -1,4 +1,4 @@ -@prefixCalendarClass: rc-calendar; +@prefixCalendarClass: ant-calendar; .@{prefixCalendarClass} { box-sizing: border-box; diff --git a/style/components/datepicker/Time.less b/style/components/datepicker/Time.less index 4d8dc29eb3..4afd0d92c0 100644 --- a/style/components/datepicker/Time.less +++ b/style/components/datepicker/Time.less @@ -3,5 +3,5 @@ .@{prefixCalendarClass}-time-input { height: 25px; width: 40px; - .rc-input; -} \ No newline at end of file + .ant-input; +} diff --git a/style/mixins/input.less b/style/mixins/input.less index 9fc11fa401..ff8ac39168 100644 --- a/style/mixins/input.less +++ b/style/mixins/input.less @@ -1,4 +1,4 @@ -.rc-input(){ +.ant-input(){ position: relative; display: inline-block; margin: 0 0; @@ -19,4 +19,4 @@ border-color: #23c0fa; box-shadow: 0 0 3px #23c0fa; } -} \ No newline at end of file +}