Options
All
  • Public
  • Public/Protected
  • All
Menu

组件的静态渲染服务 由于html会吧大写属性变成小写属性.对于驼峰命名的属性大写字母前需要用横杠代替 例子:

```typescript let htm=[ '', '', ].join('')

ComponentRenderService.render(that.getPage(), { el: $('#' + that.formId) })


Hierarchy

Index

Constructors

constructor

Methods

Private Static each

  • each(elem: JQuery<HTMLElement>, callback: (el: JQuery<HTMLElement>) => boolean): void
  • Parameters

    • elem: JQuery<HTMLElement>
    • callback: (el: JQuery<HTMLElement>) => boolean
        • (el: JQuery<HTMLElement>): boolean
        • Parameters

          • el: JQuery<HTMLElement>

          Returns boolean

    Returns void

Static getInstance

  • getInstance<T>(): T
  • Type parameters

    • T: {}

    Returns T

Static render

Private Static renderComponent

  • renderComponent(page: DesignerPageBase, clazz: any, el: HTMLElement, values?: any): any
  • 创建组件实例

    Parameters

    • page: DesignerPageBase

      页面实例e

    • clazz: any

      组件类

    • el: HTMLElement

      关联的html元素

    • Optional values: any

    Returns any

Private Static toHump

  • toHump(name: any): string
  • -线转换驼峰内的大写字母

    Parameters

    • name: any

    Returns string

Generated using TypeDoc