update less file and use variables; rename TimePicker to Timepicker

This commit is contained in:
MG12 2015-11-17 18:11:46 +08:00 committed by afc163
parent bf4afae270
commit cdb40fbbd2
11 changed files with 17 additions and 23 deletions

View File

@ -8,9 +8,9 @@
---
````jsx
import { TimePicker } from 'antd';
import { Timepicker } from 'antd';
ReactDOM.render(
<TimePicker defaultValue="12:08:23" />
<Timepicker defaultValue="12:08:23" />
, document.getElementById('components-timepicker-demo-basic'));
````

View File

@ -8,9 +8,9 @@
---
````jsx
import { TimePicker } from 'antd';
import { Timepicker } from 'antd';
ReactDOM.render(
<TimePicker defaultValue="12:08:23" disabled />
<Timepicker defaultValue="12:08:23" disabled />
, document.getElementById('components-timepicker-demo-disabled'));
````

View File

@ -8,9 +8,9 @@
---
````jsx
import { TimePicker } from 'antd';
import { Timepicker } from 'antd';
ReactDOM.render(
<TimePicker defaultValue="12:30:23" format="HH:mm" minuteOptions={[0, 30]} />
<Timepicker defaultValue="12:30:23" format="HH:mm" minuteOptions={[0, 30]} />
, document.getElementById('components-timepicker-demo-special-minutes'));
````

View File

@ -8,9 +8,9 @@
---
````jsx
import { TimePicker } from 'antd';
import { Timepicker } from 'antd';
ReactDOM.render(
<TimePicker defaultValue="12:08:23" format="HH:mm" />
<Timepicker defaultValue="12:08:23" format="HH:mm" />
, document.getElementById('components-timepicker-demo-without-seconds'));
````

View File

@ -8,7 +8,7 @@ import TimePanel from 'rc-time-picker/lib/TimePanel';
// import defaultLocale from './locale';
import TimePickerLocale from 'rc-time-picker/lib/locale/zh_CN';
const AntTimePicker = React.createClass({
const AntTimepicker = React.createClass({
getDefaultProps() {
return {
@ -69,4 +69,4 @@ const AntTimePicker = React.createClass({
});
export default AntTimePicker;
export default AntTimepicker;

View File

@ -1,4 +1,4 @@
TimePicker
Timepicker
==========
- category: Components
@ -18,7 +18,7 @@ API
---
```html
<TimePicker value="13:30:56" />
<Timepicker value="13:30:56" />
```
| 参数 | 说明 | 类型 | 默认值 |

View File

@ -59,7 +59,7 @@ const antd = {
Form: require('./components/form').Form,
Input: require('./components/form').Input,
Calendar: require('./components/calendar'),
TimePicker: require('./components/timepicker'),
Timepicker: require('./components/timepicker'),
};
antd.version = require('./package.json').version;

View File

@ -11,5 +11,4 @@
@import "timepicker/Picker";
@import "timepicker/TimePanel";
@import "timepicker/Header";
@import "timepicker/Combobox";
@import "timepicker/Select";

View File

@ -1,4 +0,0 @@
.@{timepicker-prefix-cls} {
&-combobox {
}
}

View File

@ -39,12 +39,12 @@
user-select: none;
&.selected {
background: #edfaff;
color: #2db7f5;
background: tint(@primary-color, 90%);
color: @link-color;
}
&:hover {
background: #edfaff;
background: tint(@primary-color, 90%);
}
}
}

View File

@ -2,13 +2,12 @@
display: inline-block;
position: relative;
outline: none;
font-family: Arial, "Hiragino Sans GB", "Microsoft Yahei", "Microsoft Sans Serif", "WenQuanYi Micro Hei", sans-serif;
border: 1px solid #ccc;
list-style: none;
font-size: 12px;
text-align: left;
background-color: #fff;
border-radius: 6px;
border-radius: @border-radius-base;
box-shadow: 0 1px 5px #ccc;
background-clip: padding-box;
border: 1px solid #ccc;