UNPKG

@quanxi/ui

Version:

全悉组件库

37 lines (36 loc) 1.27 kB
import { OpUnitType } from "dayjs"; import { DateOptionsType, TimeOptionsType } from "./type"; export type UnitType = "m" | "h" | "d" | "w" | "M" | "y"; export type PresetValueKey = keyof typeof PresetValue; export type DurationUnitType = Exclude<OpUnitType, "date" | "dates">; declare enum UNIT_MAP { m = "\u5206\u949F", h = "\u5C0F\u65F6", d = "\u5929", w = "\u5468", M = "\u6708", y = "\u5E74" } declare enum PresetValue { TODAY = "TODAY", YESTERDAY = "YESTERDAY", THIS_WEEK = "THIS_WEEK", LAST_WEEK = "LAST_WEEK", THIS_MONTH = "THIS_MONTH", LAST_MONTH = "LAST_MONTH", ALL_TIME = "ALL_TIME" } declare const PRESET_ITEMS_TRANSLATION: { TODAY: string; YESTERDAY: string; THIS_WEEK: string; LAST_WEEK: string; THIS_MONTH: string; LAST_MONTH: string; ALL_TIME: string; }; export declare const DEFAULT_PRESET_ITEMS_DATA: PresetValue[]; declare const defaultQuickSelectTimeOptions: TimeOptionsType[]; declare const defaultQuickSelectDateOptions: DateOptionsType[]; declare const RELATIVE_ITEM_TRANSLATION: (durationISOString: string) => string; export { UNIT_MAP, PresetValue, defaultQuickSelectTimeOptions, defaultQuickSelectDateOptions, PRESET_ITEMS_TRANSLATION, RELATIVE_ITEM_TRANSLATION, };