UNPKG

ze-react-component-library

Version:
31 lines (30 loc) 813 B
import type { NsGraph } from '@antv/xflow'; /** 实体数据模型 */ export interface EntityModel { /** 实体id */ entityId: string; /** 实体name */ entityName: string; /** 实体类型 */ entityType: string; /** 实体的属性字段 */ properties: EntityProperty[]; } /** 属性字段数据模型 */ export interface EntityProperty { /** 属性id */ propertyId: string; /** 属性名称 */ propertyName: string; /** 属性类型 */ propertyType: string; /** 是否主键 */ isPK?: boolean; /** 是否外键 */ isFK?: boolean; } /** 画布实体渲染模型 */ export interface EntityCanvasModel extends EntityModel, NsGraph.INodeConfig { } /** 画布连线渲染模型 */ export declare type RelationCanvasModel = NsGraph.IEdgeConfig;