Files
element-plus/packages/components/date-picker/src/props/basic-month-table.ts
JeremyWuuuuu 607819c54a feat(components): [date-picker] extract props (#7893)
- Extract props from basic-month-table.
- Extract common props to shared.
2022-05-25 22:39:30 +08:00

12 lines
384 B
TypeScript

import { buildProps } from '@element-plus/utils'
import { datePickerSharedProps, selectionModeWithDefault } from './shared'
import type { ExtractPropTypes } from 'vue'
export const basicMonthTableProps = buildProps({
...datePickerSharedProps,
selectionMode: selectionModeWithDefault('month'),
})
export type BasicMonthTableProps = ExtractPropTypes<typeof basicMonthTableProps>