riku
2026-04-02 3282e95db0207ee133d1e98d9771dec9d83b0fc4
miniprogram_npm/tdesign-miniprogram/calendar/type.d.ts
@@ -1,5 +1,9 @@
import { ButtonProps } from '../button/index';
export interface TdCalendarProps {
    allowSameDay?: {
        type: BooleanConstructor;
        value?: boolean;
    };
    autoClose?: {
        type: BooleanConstructor;
        value?: boolean;
@@ -7,10 +11,6 @@
    confirmBtn?: {
        type: null;
        value?: string | ButtonProps | null;
    };
    style?: {
        type: StringConstructor;
        value?: string;
    };
    firstDayOfWeek?: {
        type: NumberConstructor;
@@ -20,6 +20,10 @@
        type: undefined;
        value?: CalendarFormatType;
    };
    localeText?: {
        type: ObjectConstructor;
        value?: CalendarLocaleText;
    };
    maxDate?: {
        type: NumberConstructor;
        value?: number;
@@ -27,6 +31,14 @@
    minDate?: {
        type: NumberConstructor;
        value?: number;
    };
    readonly?: {
        type: BooleanConstructor;
        value?: boolean;
    };
    switchMode?: {
        type: StringConstructor;
        value?: 'none' | 'month' | 'year-month';
    };
    title?: {
        type: StringConstructor;
@@ -37,6 +49,10 @@
        value?: 'single' | 'multiple' | 'range';
    };
    usePopup?: {
        type: BooleanConstructor;
        value?: boolean;
    };
    usingCustomNavbar?: {
        type: BooleanConstructor;
        value?: boolean;
    };
@@ -63,3 +79,10 @@
    prefix?: string;
    suffix?: string;
}
export interface CalendarLocaleText {
    title?: string;
    weekdays?: string[];
    monthTitle?: string;
    months?: string[];
    confirm?: string;
}