Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

Protected Readonly JSON_EXCLUDED_KEYS

JSON_EXCLUDED_KEYS: Set<string>

toJSON 时需要去除的键,为了避免出现 CircularJSON

Readonly _cacheTimestamp

_cacheTimestamp: string = ...

前端记录缓存的时间戳

Protected _mutable

_mutable: boolean = true

可修改标志,内部属性 标记在构造函数结束后是否可修改

Readonly _uuid

_uuid: string = ...

唯一 uuid 目前主要用于前端 Debug 区分两个实例

Readonly builtInFuncParamValue

builtInFuncParamValue: any = ...

Readonly callInterParam

callInterParam: any = ...

Readonly callInterParamValue

callInterParamValue: any = ...

Readonly callee

callee: ExpressionNode = ...

Readonly code

code: string = ...

Readonly createdBy

createdBy: string = ...

创建人

Readonly createdTime

createdTime: string = ...

创建时间

editable

editable: boolean = true

是否可编辑

editing

editing: boolean = false

是否正在编辑 前端 UI 状态

Readonly elements

elements: ExpressionNode[] = ...

expanded

expanded: boolean = false

节点是否为展开状态 前端 UI 状态

folded

folded: boolean = false

Readonly id

id: string = ...

Id

Readonly ideVersion

ideVersion: string = ...

IDE 版本

isLeaf

isLeaf: boolean = false

是否为叶子节点 前端 UI 状态

Readonly key

key: ExpressionNode = ...

Readonly label

label: string = ...

标题

Readonly left

left: LogicItem = ...

Readonly level

level: LEVEL_ENUM = ...

概念类型

loading

loading: boolean = false

是否正在请求 前端 UI 状态

Readonly logic

logic: Logic = ...

Readonly logicId

logicId: string = ...

Readonly name

name: string = ...

名称

Readonly object

object: ExpressionNode = ...

Readonly offsetX

offsetX: string = ...

OffsetX

Readonly offsetY

offsetY: string = ...

OffsetY

Readonly operator

operator: string = ...

Readonly pageParamKey

pageParamKey: any = ...

Readonly pageParamKeyValue

pageParamKeyValue: any = ...

Readonly parent

parent: LogicItem = ...

Readonly parentAttr

parentAttr: string = ...

所属父级属性

Readonly parentId

parentId: string = ...

父级 Id

Readonly properties

properties: ExpressionNode[] = ...

Readonly property

property: ExpressionNode = ...

Readonly refTarget

refTarget: any = ...

Ref

Readonly right

right: LogicItem = ...

Readonly schemaRef

schemaRef: string = ...

SchemaRef

Readonly type

type: LOGIC_TYPE = ...

逻辑节点类型

typeCheckNote

typeCheckNote: any = ...

类型校验结果

Readonly updatedBy

updatedBy: string = ...

修改人

Readonly updatedTime

updatedTime: string = ...

修改时间

Readonly value

value: string | ExpressionNode = ...

Methods

addIn

  • addIn(parent: LogicItem, parentId: string, parentAttr: string, _posIndex: number): void
  • 纯前端添加

    Parameters

    • parent: LogicItem
    • parentId: string
    • parentAttr: string
    • _posIndex: number

    Returns void

assign

  • assign(source: any): void
  • Parameters

    • source: any

    Returns void

checkType

  • checkType(): Promise<void>
  • 校验类型

    Returns Promise<void>

createOrMove

  • createOrMove(parent: LogicItem, parentId: string, parentAttr: string, _posIndex?: number, cache?: boolean): Promise<void>
  • 创建或移动

    requires

    this.logic

    Parameters

    • parent: LogicItem
    • parentId: string
    • parentAttr: string
    • Optional _posIndex: number
    • Optional cache: boolean

      在前端不处理节点

    Returns Promise<void>

deepPick

  • deepPick(source: any, keys?: string[]): void
  • 从对象中深度获取

    example

    比如一般后端返回只是添加了个 id

    this.deepPick(result, ['id'])
    

    Parameters

    • source: any
    • keys: string[] = ...

    Returns void

delete

  • delete(cache?: boolean): Promise<void>
  • 删除逻辑节点

    Parameters

    • Optional cache: boolean

      在前端不处理节点

    Returns Promise<void>

emit

  • emit(eventName: string, ...args: any[]): void
  • 触发事件

    Parameters

    • eventName: string

      事件名

    • Rest ...args: any[]

      事件参数

    Returns void

emitVertexIdToNameChange

  • emitVertexIdToNameChange(): void

findUsage

  • findUsage(): Promise<any>
  • 查找引用

    Returns Promise<any>

off

  • 取消监听事件

    Parameters

    Returns void

on

  • 监听事件

    Parameters

    Returns void

once

  • 只监听一次事件

    Parameters

    Returns void

pick

  • pick(source: any, keys?: string[]): void
  • Parameters

    • source: any
    • keys: string[] = ...

    Returns void

plainAssign

  • plainAssign(source: any): void
  • Parameters

    • source: any

    Returns void

preprocess

  • preprocess(body: any): void
  • temp

    临时的

    Parameters

    • body: any

    Returns void

remove

  • remove(): void
  • 纯前端删除

    Returns void

replaceWith

  • LogicItem 有选择框的情况,为了减少变量变更,使用 replaceWith 的方式

    Parameters

    Returns Promise<ExpressionNode>

setLabel

  • setLabel(label: string): Promise<void>
  • 设置逻辑项标题

    Parameters

    • label: string

      标题

    Returns Promise<void>

toJSON

  • toJSON(parentKey?: string, excludedKeys?: string[]): any
  • 去除循环依赖,转为纯 JSON

    Parameters

    • Optional parentKey: string

      外面的 key

    • excludedKeys: string[] = ...

      需要额外排除的 keys

    Returns any

toPlainJSON

  • toPlainJSON(parentKey?: string, excludedKeys?: string[]): any
  • 转为单层的 JSON

    Parameters

    • Optional parentKey: string

      外面的 key

    • excludedKeys: string[] = ...

      需要额外排除的 keys

    Returns any

update

virtualCreate

  • virtualCreate(parent: LogicItem, parentId: string, parentAttr: string, _posIndex?: number, cache?: boolean): void
  • 纯前端创建

    Parameters

    • parent: LogicItem
    • parentId: string
    • parentAttr: string
    • Optional _posIndex: number
    • Optional cache: boolean

    Returns void

virtualReplaceWith

Static assignTypeCheckResult

Static from

  • 从后端 JSON 生成规范的 ExpressionNode 对象

    Parameters

    • source: any

      JSON

    • logic: Logic

      父级 logic

    • parent: LogicItem
    • shouldCreateNewItem: boolean = true

    Returns LogicItem

Static getVertexByRef

  • getVertexByRef(ref: string): Vertex

Generated using TypeDoc