import { Utils } from "../common/utils"; interface ISmallLevelItem { nest: string; } export class SmallLevelItem { id: number; data: ISmallLevelItem; constructor(id, data){ this.id = id; this.data = data; } getNestId(){ let arr = Utils.str2arr(this.data.nest+"", ';'); return arr; } }