UNPKG

@jrj-front-end/tools

Version:

jrj前端工具包

31 lines (30 loc) 1.1 kB
import moment from 'moment'; export declare class Jrjobject { key: string; type: string; id: number; mogokey: string; properties: any; hasChild: boolean; constructor(jsonObj?: Partial<Jrjobject>); GetDeletePropObj(): Jrjobject; toShortObj(): Jrjobject; spCopy(obj: Jrjobject): this; copy(obj: Jrjobject): this; hasProp(prop: string): boolean; copyProp(obj: Jrjobject): void; appendProp(obj: Jrjobject): void; overRideProp(obj: Jrjobject): void; addPropSuffix(obj: Jrjobject, suffix: string): void; SetValue(key: string, value: string | number | undefined): void; SetObjValue(key: string, obj: Jrjobject): void; SetBool(key: string, value: boolean): void; SetNumber(key: string, value: number): void; GetPropVal(key: string): string; GetMomentTime(key: string): moment.Moment; GetPropTime(key: string, format?: string): string; GetPropInt(key: string): number; GetPropFloat(key: string): number; GetPropFloatPrecise(key: string, precise: number): number; GetPropBool(key: string): boolean; }