import React from "react"; import classNames from "classnames"; import { StyledProps } from "../_type"; import { JustifyProps, Justify } from "../justify"; import { useConfig } from "../_util/config-context"; /** * 日历面板 */ type ContainerProps = StyledProps & { children: React.ReactNode }; export const CalendarPanel = React.forwardRef(function CalendarPanel( { className, children, rangeMode = false, timeMode = false, ...props }: ContainerProps & { rangeMode?: boolean; timeMode?: boolean }, ref: React.Ref ) { const { classPrefix } = useConfig(); return (
{children}
); }); CalendarPanel.displayName = "CalendarPanel"; export function CalendarHeader({ style, className, children }: ContainerProps) { const { classPrefix } = useConfig(); return (
{children}
); } CalendarHeader.displayName = "CalendarHeader"; export function CalendarBody({ style, className, children }: ContainerProps) { const { classPrefix } = useConfig(); return (
{children}
); } CalendarBody.displayName = "CalendarBody"; export function CalendarFooter({ style, className, left, right, }: StyledProps & JustifyProps) { const { classPrefix } = useConfig(); return (
); } CalendarFooter.displayName = "CalendarFooter"; export default { Panel: CalendarPanel, Header: CalendarHeader, Body: CalendarBody, Footer: CalendarFooter, };