UNPKG

@farris/ui-vue

Version:

Farris Vue, a Farris Design based Vue3 component library.

83 lines (82 loc) 1.84 kB
/** * 组件类型 */ export declare enum ComponentType { /** * 表单 */ Frame = "frame", /** * 列表/树表类 */ dataGrid = "data-grid", /** * 列表视图 */ listView = "list-view", /** * 卡片类 */ form = "form", /** * 附件 */ attachmentPanel = "attachment-panel" } /** * 控件树节点 */ export interface ControlTreeNode { id?: string; data: { /** 节点标识 */ id: string; /** 节点名称 */ name?: string; /** 隶属组件节点标识 */ componentId?: string; }; /** * 在节点中保存的表单原始DOM对象(注意:在收折起来的控件树上rawElement并非原始DOM对象,所以针对这个属性的修改不会映射到DOM中。) */ rawElement?: any; /** * 子节点集合 */ children?: ControlTreeNode[]; /** * 节点类型,包括:组件、视图模型、控件集合、控件四种类型。 */ type?: string; /** 是否展开 */ expanded?: boolean; /** 叶子节点图标 */ icon?: any; /** 节点展开图标 */ expandedIcon?: any; /** 节点折叠图标 */ collapsedIcon?: any; /** 树节点在其父节点下的索引号 */ index?: number; /** 父节点标识 */ parentNodeId?: string; /** 父节点 */ parent?: ControlTreeNode; controlIcon?: string; hideContextMenuIcon?: boolean; dependentParentControl?: string; tips?: string; rawParentNodeId?: string; } /** * 控件树右键菜单配置 */ export declare class ControlTreeContextMenuConfig { command?: string; name: string; controlType?: string; isUnique?: boolean; subMenus?: any; divider?: boolean; [propName: string]: any; }