Options
All
  • Public
  • Public/Protected
  • All
Menu

公式自定义类型件窗口

Hierarchy

  • FormulaForm

Index

Constructors

constructor

  • new FormulaForm(config: IFormulaFormCmp): FormulaForm
  • Parameters

    • config: IFormulaFormCmp

    Returns FormulaForm

Properties

checkUrl

checkUrl: any

contanId

contanId: string

css

css: any

记录组件样式类型

Private editor

editor: ICodeEditor

代码编辑器

editorId

editorId: string

formulasVariablesSetting

formulasVariablesSetting: { callback: { onClick: (event: any, treeId: any, treeNode: any) => void; onDblClick: (event: any, treeId: any, treeNode: any) => void }; view: { showLine: boolean } } = ...

Type declaration

  • callback: { onClick: (event: any, treeId: any, treeNode: any) => void; onDblClick: (event: any, treeId: any, treeNode: any) => void }
    • onClick: (event: any, treeId: any, treeNode: any) => void
        • (event: any, treeId: any, treeNode: any): void
        • Parameters

          • event: any
          • treeId: any
          • treeNode: any

          Returns void

    • onDblClick: (event: any, treeId: any, treeNode: any) => void
        • (event: any, treeId: any, treeNode: any): void
        • Parameters

          • event: any
          • treeId: any
          • treeNode: any

          Returns void

  • view: { showLine: boolean }
    • showLine: boolean

Optional isFormula

isFormula: boolean

language

language: CodeEditorLang

公式的编辑的语言

md

mdId

mdId: string

page

returnType

returnType: any

公式的返回数据类型 校验公式需要用到

title

title: string

标题

types

types: FormulaBase[]

公式类型数组

url

url: string

获取公式类型,公式名,变量,公式说明的地址

value

value: any

公式值

variables

variables: Variable[]

变量数组

Methods

checkFormula

  • checkFormula(callback: (err: string) => void): void
  • 校验公式的合法

    Parameters

    • callback: (err: string) => void

      参数err为空时候合法保存通过,否则带有错误信息

        • (err: string): void
        • Parameters

          • err: string

          Returns void

    Returns void

Protected doGetCss

  • doGetCss(): { FormulaForm: { & #function-name li: { display: string }; & *: { box-sizing: string }; & .borderClass: { border: string }; & .check-btn-box: { text-align: string }; & .code: { height: string; width: string }; & .content-box: { height: string; margin-bottom: string; overflow: string; word-wrap: string }; & .content-box li & .search-result li: { cursor: string; font-size: string; padding: string }; & .content-box li.active,& .search-result li.active: { background-color: string; color: string }; & .formula-bottom: { height: string }; & .formula-explanation: { padding: string }; & .formula-search-box: { border-radius: string; overflow: string }; & .formula-search-box input: { height: string; line-height: string; vertical-align: string; width: string }; & .formula-text: { height: string; width: string }; & .formula-top: { height: string; padding: string }; & .formula-top-body: { padding: string }; & .search-result: { border: string; height: string; margin-top: string; overflow: string }; & .ztree: { overflow: string }; & custom-formula-changed: { background-color: string }; & h5: { height: string; line-height: string; padding: string }; background-color: string; padding: string } }
  • 返回的属性编辑器的样式

    Returns { FormulaForm: { & #function-name li: { display: string }; & *: { box-sizing: string }; & .borderClass: { border: string }; & .check-btn-box: { text-align: string }; & .code: { height: string; width: string }; & .content-box: { height: string; margin-bottom: string; overflow: string; word-wrap: string }; & .content-box li & .search-result li: { cursor: string; font-size: string; padding: string }; & .content-box li.active,& .search-result li.active: { background-color: string; color: string }; & .formula-bottom: { height: string }; & .formula-explanation: { padding: string }; & .formula-search-box: { border-radius: string; overflow: string }; & .formula-search-box input: { height: string; line-height: string; vertical-align: string; width: string }; & .formula-text: { height: string; width: string }; & .formula-top: { height: string; padding: string }; & .formula-top-body: { padding: string }; & .search-result: { border: string; height: string; margin-top: string; overflow: string }; & .ztree: { overflow: string }; & custom-formula-changed: { background-color: string }; & h5: { height: string; line-height: string; padding: string }; background-color: string; padding: string } }

    • FormulaForm: { & #function-name li: { display: string }; & *: { box-sizing: string }; & .borderClass: { border: string }; & .check-btn-box: { text-align: string }; & .code: { height: string; width: string }; & .content-box: { height: string; margin-bottom: string; overflow: string; word-wrap: string }; & .content-box li & .search-result li: { cursor: string; font-size: string; padding: string }; & .content-box li.active,& .search-result li.active: { background-color: string; color: string }; & .formula-bottom: { height: string }; & .formula-explanation: { padding: string }; & .formula-search-box: { border-radius: string; overflow: string }; & .formula-search-box input: { height: string; line-height: string; vertical-align: string; width: string }; & .formula-text: { height: string; width: string }; & .formula-top: { height: string; padding: string }; & .formula-top-body: { padding: string }; & .search-result: { border: string; height: string; margin-top: string; overflow: string }; & .ztree: { overflow: string }; & custom-formula-changed: { background-color: string }; & h5: { height: string; line-height: string; padding: string }; background-color: string; padding: string }
      • & #function-name li: { display: string }
        • display: string
      • & *: { box-sizing: string }
        • box-sizing: string
      • & .borderClass: { border: string }
        • border: string
      • & .check-btn-box: { text-align: string }
        • text-align: string
      • & .code: { height: string; width: string }
        • height: string
        • width: string
      • & .content-box: { height: string; margin-bottom: string; overflow: string; word-wrap: string }
        • height: string
        • margin-bottom: string
        • overflow: string
        • word-wrap: string
      • & .content-box li & .search-result li: { cursor: string; font-size: string; padding: string }
        • cursor: string
        • font-size: string
        • padding: string
      • & .content-box li.active,& .search-result li.active: { background-color: string; color: string }
        • background-color: string
        • color: string
      • & .formula-bottom: { height: string }
        • height: string
      • & .formula-explanation: { padding: string }
        • padding: string
      • & .formula-search-box: { border-radius: string; overflow: string }
        • border-radius: string
        • overflow: string
      • & .formula-search-box input: { height: string; line-height: string; vertical-align: string; width: string }
        • height: string
        • line-height: string
        • vertical-align: string
        • width: string
      • & .formula-text: { height: string; width: string }
        • height: string
        • width: string
      • & .formula-top: { height: string; padding: string }
        • height: string
        • padding: string
      • & .formula-top-body: { padding: string }
        • padding: string
      • & .search-result: { border: string; height: string; margin-top: string; overflow: string }
        • border: string
        • height: string
        • margin-top: string
        • overflow: string
      • & .ztree: { overflow: string }
        • overflow: string
      • & custom-formula-changed: { background-color: string }
        • background-color: string
      • & h5: { height: string; line-height: string; padding: string }
        • height: string
        • line-height: string
        • padding: string
      • background-color: string
      • padding: string

getCheckFormulaVariants

  • getCheckFormulaVariants(): { formula: string }
  • 获取公式的参数

    Returns { formula: string }

    • formula: string

getElemt

  • getElemt(): JQuery<HTMLElement>
  • Returns JQuery<HTMLElement>

html

  • html(): string
  • html代码

    Returns string

Private iniCss

  • iniCss(): any
  • 初始化组件的css

    Returns any

    返回组件样式对象.

initEditor

  • initEditor(): void
  • 初始化编辑器

    Returns void

initTree

  • initTree(): void
  • 初始化树

    Returns void

loadFormula

  • loadFormula(): void
  • 加载服务器端的公式&变量

    Returns void

loadPageFormula

  • loadPageFormula(): any[]
  • 加载页面的参数到公式设计器内

    Returns any[]

search

  • search(): void
  • 搜索

    Returns void

setHelp

  • setHelp(help: string): void
  • Parameters

    • help: string

    Returns void

show

  • 显示公式定义窗口

    Parameters

    Returns void

Generated using TypeDoc