Options
All
  • Public
  • Public/Protected
  • All
Menu

组件树

Hierarchy

  • ObjectTree

Index

Constructors

constructor

  • Returns ObjectTree

Properties

Private ahandle

ahandle: (cmps: ComponentBase[]) => void = ...

Type declaration

autoExpandNode

autoExpandNode: ITreeNode

autoExpandTrigger

autoExpandTrigger: boolean

Private bhandle

bhandle: () => void = ...

Type declaration

    • (): void
    • Returns void

Private chandle

chandle: () => void = ...

Type declaration

    • (): void
    • Returns void

css

css: ObjectTreeStyle

curDragNodes

curDragNodes: ITreeNode[]

defType

Private dhandle

dhandle: (param: { cmpid: string; newValue: string }) => void = ...

Type declaration

    • (param: { cmpid: string; newValue: string }): void
    • Parameters

      • param: { cmpid: string; newValue: string }
        • cmpid: string
        • newValue: string

      Returns void

eTreeId

eTreeId: string

eTreeObj

eTreeObj: IzTreeObj

Private isClosed

isClosed: boolean = false

Private isInit

isInit: boolean

防止方法在初始化时候多次调用

page

stopComponentEvent

stopComponentEvent: boolean

treeId

treeId: string

treeObj

treeObj: IzTreeObj

Private Static obj

obj: ObjectTree = ...

Methods

Private activeCmp

  • activeCmp(node: any): void
  • Parameters

    • node: any

    Returns void

Private cmpBtnClick

  • cmpBtnClick(): void
  • Returns void

doGetCss

  • doGetCss(): ObjectTreeStyle
  • Returns ObjectTreeStyle

Protected doRenderEvenTree

  • doRenderEvenTree(): void
  • Returns void

Protected doRenderObjectTree

  • doRenderObjectTree(): void
  • Returns void

dropInner

  • dropInner(treeId: string, nodes: ITreeNode[], targetNode: ITreeNode): boolean
  • Parameters

    • treeId: string
    • nodes: ITreeNode[]
    • targetNode: ITreeNode

    Returns boolean

dropNext

  • dropNext(treeId: string, nodes: ITreeNode[], targetNode: any): boolean
  • Parameters

    • treeId: string
    • nodes: ITreeNode[]
    • targetNode: any

    Returns boolean

dropPrev

  • dropPrev(treeId: string, nodes: ITreeNode[], targetNode: ITreeNode): boolean
  • Parameters

    • treeId: string
    • nodes: ITreeNode[]
    • targetNode: ITreeNode

    Returns boolean

Private eBtnClick

  • eBtnClick(): void
  • Returns void

Private getCompnentByNode

  • Parameters

    • node: ITreeNode

    Returns ComponentBase

Private getComponentIcon

  • 得到字体

    Parameters

    Returns string

Private getEditorHtml

  • getEditorHtml(): string
  • Returns string

Private iniCss

  • iniCss(): ObjectTreeStyle
  • 初始化css

    Returns ObjectTreeStyle

    返回组件样式对象.

initEvent

  • Parameters

    Returns void

Private isFontIcon

  • 判断是否字体图标

    Parameters

    Returns boolean

Private nameChangeHanle

  • nameChangeHanle(param: { cmpid: string; newValue: string }): void
  • Parameters

    • param: { cmpid: string; newValue: string }
      • cmpid: string
      • newValue: string

    Returns void

offEvent

  • offEvent(): void
  • Returns void

onBeforeDrag

  • onBeforeDrag(treeId: string, treeNodes: ITreeNode[]): boolean
  • Parameters

    • treeId: string
    • treeNodes: ITreeNode[]

    Returns boolean

onBeforeDragOpen

  • onBeforeDragOpen(treeId: string, treeNode: ITreeNode): boolean
  • Parameters

    • treeId: string
    • treeNode: ITreeNode

    Returns boolean

onBeforeDrop

  • onBeforeDrop(treeId: string, treeNodes: ITreeNode[], targetNode: ITreeNode, moveType: string, isCopy: boolean): boolean
  • Parameters

    • treeId: string
    • treeNodes: ITreeNode[]
    • targetNode: ITreeNode
    • moveType: string
    • isCopy: boolean

    Returns boolean

onDrag

  • onDrag(event: Event, treeId: string, treeNodes: ITreeNode[]): void
  • Parameters

    • event: Event
    • treeId: string
    • treeNodes: ITreeNode[]

    Returns void

onDrop

  • onDrop(event: Event, treeId: string, treeNodes: ITreeNode[], targetNode: ITreeNode, moveType: string, isCopy: boolean): boolean
  • Parameters

    • event: Event
    • treeId: string
    • treeNodes: ITreeNode[]
    • targetNode: ITreeNode
    • moveType: string
    • isCopy: boolean

    Returns boolean

render

  • 渲染组件树

    Parameters

    Returns void

Private renderTree

  • renderTree(): void
  • Returns void

Private sectionChange

  • Parameters

    Returns void

Protected setActive

  • 设置高亮选择的组件 如果传递的是null则清除所有选择

    Parameters

    Returns void

Static getInstance

  • Returns ObjectTree

Generated using TypeDoc