import moment from 'moment'; export interface PickerValueType { key: any; value: any; } export interface PickerRadioOptions { key: string; setValue?: () => Date[]; } export const pickerProps = { pickerValue: { type: Object as PropType | undefined, }, radioOptions: { type: Array as PropType, default: () => { return [ { key: '今天', setValue: () => { return [moment().startOf('day'), moment()]; }, }, { key: '近24小时', setValue: () => { return [moment().subtract(24, 'hour'), moment()]; }, }, { key: '近3天', setValue: () => { return [moment().subtract(3, 'day'), moment()]; }, }, { key: '近7天', setValue: () => { return [moment().subtract(7, 'day'), moment()]; }, }, ]; }, }, radioProps: { type: Object as PropType, }, };