2018-03-15 21:40:34 +08:00
|
|
|
import VcCalendar from '../vc-calendar'
|
|
|
|
import MonthCalendar from '../vc-calendar/src/MonthCalendar'
|
|
|
|
import createPicker from './createPicker'
|
|
|
|
import wrapPicker from './wrapPicker'
|
|
|
|
import RangePicker from './RangePicker'
|
|
|
|
import WeekPicker from './WeekPicker'
|
2018-04-07 14:29:59 +08:00
|
|
|
import { DatePickerProps, MonthPickerProps, WeekPickerProps, RangePickerProps } from './interface'
|
2018-03-15 21:40:34 +08:00
|
|
|
|
2018-04-08 21:17:20 +08:00
|
|
|
const DatePicker = wrapPicker({ ...createPicker(VcCalendar, DatePickerProps()), name: 'ADatePicker' }, DatePickerProps())
|
2018-03-15 21:40:34 +08:00
|
|
|
|
2018-04-08 21:17:20 +08:00
|
|
|
const MonthPicker = wrapPicker({ ...createPicker(MonthCalendar, MonthPickerProps()), name: 'AMonthPicker' }, MonthPickerProps(), 'YYYY-MM')
|
2018-03-15 21:40:34 +08:00
|
|
|
|
|
|
|
Object.assign(DatePicker, {
|
2018-03-16 11:19:02 +08:00
|
|
|
RangePicker: wrapPicker(RangePicker, RangePickerProps()),
|
2018-03-15 21:40:34 +08:00
|
|
|
MonthPicker,
|
2018-04-07 14:29:59 +08:00
|
|
|
WeekPicker: wrapPicker(WeekPicker, WeekPickerProps(), 'gggg-wo'),
|
2018-03-15 21:40:34 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
export default DatePicker
|