/** * 数字类型的基本设置 */ export interface NumberBaseSet { /** * 小数位,默认为:2 */ decimal?: number; /** * 显示格式,默认为:thousands * (normal:普通不做任何处理样式,thousands:千分位样式,percent:百分比样式) */ format?: "normal" | "thousands" | "percent"; } /** * 日期类型的基本设置 */ export interface DatetimeBaseSet { /** * 日期显示格式。默认为YYYY-MM-dd */ format?: "yyyy" | "yyyy-MM" | "yyyy-MM-dd" | "yyyy-MM-dd HH:mm" | "yyyy-MM-dd HH:mm:ss" | "HH:mm" | "HH:mm:ss"; } /** * 开关类型的基本设置 */ export interface SwitchBaseSet { /** * 启用时的文本值,默认不显示文本 */ trueText?: string; /** * 禁用时的文本值,默认不显示文本 */ falseText?: string; /** * 是否显示文本,默认 false */ showText?: boolean; } /** * 服务 */ export interface ServiceType { /** * 服务id */ id: string; /** * 所属模块id,默认为当前模块 */ moduleId?: string; /** * 所属系统id,通用服务为:common;默认为当前系统 */ systemId?: string; /** * 服务参数 */ params?: { [k: string]: any; }; } export interface RbColSize { span?: number; order?: number; offset?: number; push?: number; pull?: number; } export interface RbColType { span?: number; order?: number; offset?: number; push?: number; pull?: number; xs?: number | RbColSize; sm?: number | RbColSize; md?: number | RbColSize; lg?: number | RbColSize; xl?: number | RbColSize; xxl?: number | RbColSize; }