| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- import { CommafyOptions } from "./commafy"
- import { FirstDayOfWeek } from "./getWhatWeek"
- import { ToDateStringFormats } from "./toDateString"
- export interface SetupDefaults {
- /**
- * 全局唯一标识
- */
- keyId?: number
- /**
- * 默认树的转换配置
- * 用于 toArrayTree()、toTreeArray()
- */
- treeOptions?: {
- strict?: boolean;
- parentKey?: string;
- key?: string;
- children?: string;
- data?: string;
- [key: string]: any;
- };
- /**
- * 默认解析的日期格式
- * 用于 toDateString()
- */
- parseDateFormat?: string;
- /**
- * 默认格式化日期的规则
- * 用于 toDateString()
- */
- parseDateRules?: ToDateStringFormats;
- /**
- * 默认周视图的起始天
- * 用于 getWhatWeek()、getYearWeek()、toDateString()
- */
- firstDayOfWeek?: FirstDayOfWeek;
- /**
- * 分隔函数配置
- * 用于 commafy()
- */
- commafyOptions?: CommafyOptions;
- /**
- * 已被 parseDateRules 替换
- * @deprecated
- */
- formatStringMatchs?: any;
- /**
- * 已被 parseDateFormat 替换
- * @deprecated
- */
- formatString?: string;
- [key: string]: any;
- }
- export default SetupDefaults
|