/** * IndexView 部件模型 * * @export * @class IndexViewModel */ export default class IndexViewModel { /** * 菜单项集合 * * @private * @type {any[]} * @memberof IndexViewModel */ private items: any[] = [ { id: '03f56b6fe30900d072521e1845cc57a5', name: 'menuitem1', text: '菜单项', type: 'MENUITEM', counterid: '', tooltip: '菜单项', expanded: false, separator: false, hidden: false, hidesidebar: false, opendefault: false, iconcls: '', icon: '', textcls: '', appfunctag: '', resourcetag: '', }, ]; /** * 应用功能集合 * * @private * @type {any[]} * @memberof IndexViewModel */ private funcs: any[] = [ ]; /** * 获取所有菜单项集合 * * @returns {any[]} * @memberof IndexViewModel */ public getAppMenuItems(): any[] { return this.items; } /** * 获取所有应用功能集合 * * @returns {any[]} * @memberof IndexViewModel */ public getAppFuncs(): any[] { return this.funcs; } }