Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Lottie

Index

Constructors

constructor

Properties

Static lottieJsPath

lottieJsPath: string = "base/lottie/lottie.min.js"

lottie.min.js文件的路径

Methods

Static getLottie

  • getLottie(cmb: any): any
  • 获取cmb已加载渲染的lottie对象

    Parameters

    • cmb: any

    Returns any

Static getLottieByEl

  • getLottieByEl(el: any): any

Static getLottieByElId

  • getLottieByElId(elId: any): any

Static loadJsonAnim

  • loadJsonAnim(cmb: any, jsonPath: any, callBack?: any): void
  • 渲染lottie json动画到指定的组件中

    Parameters

    • cmb: any

      组件

    • jsonPath: any

      lottie动画的json数据地址

    • Optional callBack: any

      加载成后的回调

    Returns void

Static loadJsonAnimByEl

  • loadJsonAnimByEl(el: any, jsonPath: string, callBack?: any): void
  • 渲染lottie json动画到指定的组件中

    Parameters

    • el: any

      HtmlElement

    • jsonPath: string

      lottie动画的json数据地址

    • Optional callBack: any

      加载成后的回调

    Returns void

Static showLottie

  • showLottie(obj: any, jsonPath: any): void
  • 查看lottie动效

    Parameters

    • obj: any

      弹框动画对象

    • jsonPath: any

      lottie的json文件路径

    Returns void

Static unloadJsonAnim

  • unloadJsonAnim(cmb: any): void

Static unloadJsonAnimByEl

  • unloadJsonAnimByEl(el: any): void

Static unloadJsonAnimById

  • unloadJsonAnimById(elId: any): void