UNPKG

birdpaper-ui

Version:

一个通用的 vue3 UI组件库。A common vue3 UI component library.

89 lines (88 loc) 3.31 kB
import { DayType, LangsType } from "./types"; import dayjs from "dayjs"; export declare const useDayJs: (lang: LangsType, modelValue: string) => { toDay: string; current: import("vue").Ref<{ clone: () => dayjs.Dayjs; isValid: () => boolean; year: { (): number; (value: number): dayjs.Dayjs; }; month: { (): number; (value: number): dayjs.Dayjs; }; date: { (): number; (value: number): dayjs.Dayjs; }; day: { (): number; (value: number): dayjs.Dayjs; }; hour: { (): number; (value: number): dayjs.Dayjs; }; minute: { (): number; (value: number): dayjs.Dayjs; }; second: { (): number; (value: number): dayjs.Dayjs; }; millisecond: { (): number; (value: number): dayjs.Dayjs; }; set: (unit: dayjs.UnitType, value: number) => dayjs.Dayjs; get: (unit: dayjs.UnitType) => number; add: (value: number, unit?: dayjs.ManipulateType) => dayjs.Dayjs; subtract: (value: number, unit?: dayjs.ManipulateType) => dayjs.Dayjs; startOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs; endOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs; format: (template?: string) => string; diff: (date?: string | number | Date | dayjs.Dayjs, unit?: "D" | "M" | "date" | "year" | "month" | "day" | "hour" | "minute" | "second" | "millisecond" | "milliseconds" | "seconds" | "minutes" | "hours" | "days" | "months" | "years" | "dates" | "d" | "y" | "h" | "m" | "s" | "ms" | "week" | "weeks" | "w" | "quarter" | "quarters" | "Q", float?: boolean) => number; valueOf: () => number; unix: () => number; daysInMonth: () => number; toDate: () => Date; toJSON: () => string; toISOString: () => string; toString: () => string; utcOffset: () => number; isBefore: (date?: string | number | Date | dayjs.Dayjs, unit?: dayjs.OpUnitType) => boolean; isSame: (date?: string | number | Date | dayjs.Dayjs, unit?: dayjs.OpUnitType) => boolean; isAfter: (date?: string | number | Date | dayjs.Dayjs, unit?: dayjs.OpUnitType) => boolean; locale: { (): string; (preset: string | ILocale, object?: Partial<ILocale>): dayjs.Dayjs; }; localeData: () => dayjs.InstanceLocaleDataReturn; }>; currentMonth: import("vue").ComputedRef<number>; currentYear: import("vue").ComputedRef<number>; dates: import("vue").Ref<{ type?: DayType; value: string; label?: string; }[][]>; setDates: (valueFormat: string) => void; weeks: dayjs.WeekdayNames; months: dayjs.MonthNames; monthCell: import("vue").Ref<{ value: string; label?: string; }[]>; setMonthCell: (valueFormat: string) => void; changeMonth: (m: number) => dayjs.Dayjs; changeYear: (y: number) => dayjs.Dayjs; yearCell: import("vue").Ref<{ value: string; label?: string; }[]>; firstYear: import("vue").Ref<number>; setYearCell: (valueFormat: string) => void; };