Options
All
  • Public
  • Public/Protected
  • All
Menu

数据渲染器,支持column或符合格式的数据

Hierarchy

  • Renders

Index

Constructors

constructor

Methods

Static bigText

  • bigText(): any

Static bigText2

  • bigText2(): any

Static code

  • code(): (val: any, m: any, record: any, rowIndex: any, colIndex: any, store: any, view: any, details: any) => any
  • 代码渲染器

    Returns (val: any, m: any, record: any, rowIndex: any, colIndex: any, store: any, view: any, details: any) => any

      • (val: any, m: any, record: any, rowIndex: any, colIndex: any, store: any, view: any, details: any): any
      • Parameters

        • val: any
        • m: any
        • record: any
        • rowIndex: any
        • colIndex: any
        • store: any
        • view: any
        • details: any

        Returns any

Static color

  • color(): any

Static dateFormat

  • dateFormat(format?: string): any
  • 将日期数据进行格式化

    Parameters

    • Optional format: string

      日期格式 默认:Y-m-d H:i:s

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static dateFormatTip

  • dateFormatTip(format: string, appendWeek?: boolean): any
  • 将日期格式化为生活日期提示,例如:1个小时前、1天前、1个月等

    Parameters

    • format: string

      当超出汉字描述的范围后,使用指定的格式格式化日期 默认:Y-m-d H:i:s

    • Optional appendWeek: boolean

      是否追加 周几

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static duration

  • duration(): any
  • 将毫秒格式的数据格式渲染,例如:1秒或1分20秒

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static enum

  • enum(enumName: string, enumValue: string, enumText: string): any
  • 渲染枚举数据,如果枚举返回的实体中包含color属性,则会使用color值进行颜色渲染

    Parameters

    • enumName: string

      枚举名称

    • enumValue: string

      枚举值的属性名

    • enumText: string

      枚举值的显示文本属性

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static exception

  • exception(): any

Static file

  • file(fileNameAttr?: any): any
  • 文件数据渲染

    Parameters

    • Optional fileNameAttr: any

      文件名称的属性,只对record有效

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static fileSize

  • fileSize(): any
  • 将数据格式为单位大小后渲染,例如10kb

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static files

  • files(): any
  • 多文件渲染

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static Private getRenderColumn

  • getRenderColumn(obj: any, colIndex: any): any

Static getRenderFunStr

  • getRenderFunStr(column: any): any

Static Private getRenderKey

  • getRenderKey(colIndex: any, rowIndex: any, store: any): any
  • 获取当前列渲染的key

    Parameters

    • colIndex: any
    • rowIndex: any
    • store: any

    Returns any

Static href

  • href(url?: string): any
  • 将数据以超链接格式渲染

    Parameters

    • Optional url: string

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static html

  • html(): any
  • 网页内容渲染

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static html2

  • html2(): any
  • 网页内容渲染为存文本格式

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static image

  • image(height?: number, width?: number, justDetails?: boolean, clickable?: boolean): any
  • 图片数据渲染

    Parameters

    • Optional height: number

      设置渲染图片的高度

    • Optional width: number

      设置渲染图片的宽度

    • Optional justDetails: boolean

      只应用到详情窗体中

    • Optional clickable: boolean

      是否允许点击图片查看

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static image2

  • image2(): (val: any, m: any, record: any, rowIndex: any, colIndex: any, store: any, view: any) => any
  • 图片渲染2

    Returns (val: any, m: any, record: any, rowIndex: any, colIndex: any, store: any, view: any) => any

      • (val: any, m: any, record: any, rowIndex: any, colIndex: any, store: any, view: any): any
      • Parameters

        • val: any
        • m: any
        • record: any
        • rowIndex: any
        • colIndex: any
        • store: any
        • view: any

        Returns any

Static images

  • images(): any
  • 多图片渲染

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static json

  • json(): any
  • JSON内容渲染

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static json2

  • json2(): any
  • JSON内容渲染

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static link

  • link(name: string, entityCode: string, entityId: string): any
  • 渲染关联实体格式

    Parameters

    • name: string

      关联的属性,多个属性使用@符号分割

    • entityCode: string

      实体编号

    • entityId: string

      实体ID属性,多个属性使用@符号分割

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static map

  • map(lngName: string, latName: string, titleName: string): any
  • 渲染地图格式的数据

    Parameters

    • lngName: string

      经度属性名

    • latName: string

      纬度属性名

    • titleName: string

      链接的标题属性名

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static mapImgLayer

  • mapImgLayer(imgUrlName: string, southWestLngLatName: string, northEastLngLatName: string, rotateName: string, zIndexName: string, minZoomName: string, maxZoomName: string): any
  • 渲染图层格式的数据

    Parameters

    • imgUrlName: string

      图层图片的地址 数据属性名

    • southWestLngLatName: string

      西南角度经纬度(左下角)

    • northEastLngLatName: string

      东北角度经纬度 (右上角)

    • rotateName: string

      图片旋转的角度

    • zIndexName: string

      图层顺序

    • minZoomName: string

      最小显示级别

    • maxZoomName: string

      最大显示级别

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static money

  • money(): any
  • 价格或金钱格式渲染

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static mp3

  • mp3(): any

Static mp4

  • mp4(nickName?: boolean, download?: boolean): any
  • MP4视频渲染

    Parameters

    • Optional nickName: boolean
    • Optional download: boolean

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static normal

  • normal(append?: string, position?: string): any
  • 常规的渲染

    see

    FastEnum.AppendPosition

    Parameters

    • Optional append: string

      追加的单位或其他字符

    • Optional position: string

      字符追加的位置

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static office

  • office(): any
  • word、excel、pdf等office办公软件渲染

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static onClickFromDataClick

  • onClickFromDataClick(obj: any): void

Static password

  • password(): any
  • 将数据以密码格式渲染

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static qrCode

  • qrCode(): (val: any, m: any, record: any, rowIndex: any, colIndex: any) => any
  • 查看二维码渲染器

    Returns (val: any, m: any, record: any, rowIndex: any, colIndex: any) => any

      • (val: any, m: any, record: any, rowIndex: any, colIndex: any): any
      • Parameters

        • val: any
        • m: any
        • record: any
        • rowIndex: any
        • colIndex: any

        Returns any

Static target

  • target(targetId: string, targetType: string, targetFunction?: string): any
  • 渲染target格式的数据

    Parameters

    • targetId: string

      目标ID

    • targetType: string

      目标类型

    • Optional targetFunction: string

      获取目标实体的函数。默认为:getTargetEntity

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static text

  • text(): any
  • 纯文本渲染器

    Returns any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

Static timestamp

  • timestamp(format?: string): (val: any, m: any, record: any, rowIndex: any, colIndex: any) => any
  • 格式化时间戳

    Parameters

    • Optional format: string

      日期格式 默认:Y-m-d H:i:s

    Returns (val: any, m: any, record: any, rowIndex: any, colIndex: any) => any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

      • (val: any, m: any, record: any, rowIndex: any, colIndex: any): any
      • Parameters

        • val: any
        • m: any
        • record: any
        • rowIndex: any
        • colIndex: any

        Returns any

Static timestampTip

  • timestampTip(format?: string, appendWeek?: boolean): (val: any, m: any, record: any, rowIndex: any, colIndex: any) => any
  • 将时间戳格式化为生活日期提示,例如:1个小时前、1天前、1个月等

    Parameters

    • Optional format: string

      当超出汉字描述的范围后,使用指定的格式格式化日期 默认:Y-m-d H:i:s

    • Optional appendWeek: boolean

      是否追加 周几

    Returns (val: any, m: any, record: any, rowIndex: any, colIndex: any) => any

    渲染函数 function (val, m, record, rowIndex, colIndex, store, view, details)

      • (val: any, m: any, record: any, rowIndex: any, colIndex: any): any
      • Parameters

        • val: any
        • m: any
        • record: any
        • rowIndex: any
        • colIndex: any

        Returns any

Static toClickText

  • toClickText(text: string, clickFunctionStr: string): string
  • 返回可点击的文本样式

    Parameters

    • text: string

      显示的文本

    • clickFunctionStr: string

      点击触发的函数字符串

    Returns string

Static toEmpty

  • toEmpty(tipValue: string): string
  • 根据提示内容返回灰色提示

    Parameters

    • tipValue: string

    Returns string

Static Private toEmptyTip

  • toEmptyTip(): string

Static Private toHtmlContent

  • toHtmlContent(val: any): any

Static toLinkUrlText

  • toLinkUrlText(text: string, url: string): string
  • 返回点击跳转的样式

    Parameters

    • text: string
    • url: string

    Returns string

Static Private toSingleLineText

  • toSingleLineText(val: any): any
  • 格式化为单行的文本,包括网页换行和符号换行等

    Parameters

    • val: any

    Returns any