sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
32 lines (31 loc) • 1.15 kB
TypeScript
import { type StyleValue } from 'vue';
import { type DefaultProps } from '../config';
import { type CalendarDay, type CalendarType } from '../calendar';
export interface DateStripProps {
rootStyle?: StyleValue;
rootClass?: string;
type?: CalendarType;
modelValue?: Date | Date[] | string | string[];
min?: Date;
max?: Date;
currentDate?: Date;
disabledDate?: (date: Date) => boolean;
maxDays?: number;
overMaxDays?: () => void;
formatter?: (day: CalendarDay) => void;
filter?: (date: Date) => boolean;
allowSameDay?: boolean;
valueFormat?: string;
startDateText?: string;
endDateText?: string;
sameDateText?: string;
showLunar?: boolean;
}
export declare const defaultDateStripProps: () => DefaultProps<DateStripProps>;
export interface DateStripEmits {
(e: 'update:model-value', value: Date | Date[] | string | string[]): void;
(e: 'change', value: Date | Date[] | string | string[]): void;
}
export declare const getMinDate: (date?: Date) => Date;
export declare const getMaxDate: (date?: Date) => Date;
export declare const sortDates: (dates: Date[]) => Date[];