Files
number_zj/20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/setupDefaults.d.ts
毛财君 197b38ca6f 1
2023-07-06 17:37:33 +08:00

53 lines
1.1 KiB
TypeScript

import { CommafyOptions } from "./commafy"
import { FirstDayOfWeek } from "./getWhatWeek"
import { ToDateStringFormats } from "./toDateString"
export interface SetupDefaults {
/**
* 默认树的转换配置
* 用于 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