|
@@ -1,8 +1,6 @@
|
1
|
1
|
import React from 'react';
|
2
|
2
|
import { Row, Col, Radio, DatePicker } from 'antd';
|
3
|
3
|
import moment from 'moment';
|
4
|
|
-import 'moment/locale/zh-cn';
|
5
|
|
-import locale from 'antd/es/date-picker/locale/zh_CN';
|
6
|
4
|
|
7
|
5
|
const { RangePicker } = DatePicker;
|
8
|
6
|
const radioDateOptions = [
|
|
@@ -82,7 +80,7 @@ export default (props) => {
|
82
|
80
|
}, [dateRange, unitValue, props.onChange]);
|
83
|
81
|
|
84
|
82
|
return (
|
85
|
|
- <Row style={{ width: '500px' }} gutter={8}>
|
|
83
|
+ <Row style={{ width: '560px' }} gutter={8}>
|
86
|
84
|
<Col span={7}>
|
87
|
85
|
{
|
88
|
86
|
!props.hideUnit && (
|
|
@@ -95,7 +93,7 @@ export default (props) => {
|
95
|
93
|
}
|
96
|
94
|
</Col>
|
97
|
95
|
<Col span={10}>
|
98
|
|
- <RangePicker locale={locale} value={dateRange} onChange={onPickerChange} />
|
|
96
|
+ <RangePicker value={dateRange} onChange={onPickerChange} />
|
99
|
97
|
</Col>
|
100
|
98
|
<Col span={7}>
|
101
|
99
|
<Radio.Group
|