/** * AMTool auto generate model */ import { AMModel, AMProp } from "../../decorator"; @AMModel({ ref: "AmMenu", showName: "菜单", manageable:true, editable:true, }) export class MdlAmMenu { @AMProp({ showName: "菜单Id", showInGrid: true, showInDetail: true, isId: true, editable: false, type: "int" }) public menuId; @AMProp({ showName: "父菜单", showInGrid: true, showInDetail: true, editable: true, type:'ref', ref:'MdlAmMenu', editOption: { type: "select", option: { multi: false, refModel: "MdlAmMenu", valueProp: "menuId", displayProp: "menuName" } } }) public amMenu; @AMProp({ showName: "菜单名称", showInGrid: true, showInDetail: true, editable: true, width:150, showInRef: true, editOption: { type: "text" }, validator: ["require", "maxLength:128"], type: "string" }) public menuName; @AMProp({ showName: "菜单url", width:400, showInGrid: true, showInDetail: true, editable: true, editOption: { type: "textarea" }, validator: ["maxlength:512"], type: "string" }) public menuUrl; @AMProp({ showName: "所属组", showInGrid: true, showInDetail: true, editable: true, type:'ref', ref:'MdlAmGroup', editOption: { type: "select", option: { multi: true, refModel: "MdlAmGroup", valueProp: "groupId", displayProp: "groupName" } }, validator: ["require"] }) public amGroups; }