Class Progress

Progress 类是一个全局进度条,用于展示全局操作的进度。

Constructors

Properties

el: HTMLDivElement = ...
num: number = 0
timer: any = null
color: string = "rgba(64, 158, 255, 0.618)"

进度条颜色。

css: string = ...
errColor: string = "rgba(245, 108, 108, 0.618)"

错误状态下的进度条颜色。

height: string = "2px"

进度条高度。

list: Progress[] = []

进度条实例列表。

max: number = 95

进度条最大值。

speed: number = 10

进度条速度。

zIndex: number = 1000

Methods

  • 销毁进度条。

    Parameters

    • success: boolean = true

      进度条销毁状态。为 true 时表示成功,为 false 时表示失败。

    Returns void

  • 完成全局进度条。

    Parameters

    • success: boolean = true

      进度条完成状态。为 true 时表示成功,为 false 时表示失败。

    Returns void

Generated using TypeDoc