@ezuikit/control-time-line - v1.0.0
    Preparing search index...

    Class BaseTimeLine<T>Internal

    时间轴基类

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    $container: HTMLElement

    挂载节点

    i18n: I18n
    options: Required<T>

    配置项

    LOCALES: {
        en: { foldTitle: string; title: string };
        zh: { foldTitle: string; title: string };
    } = _$TIMELINE_LOCALES$_

    语言包

    Accessors

    • get current(): Date

      当前时间

      Returns Date

    • set current(current: Date): void

      当前时间

      Parameters

      Returns void

    • get height(): number

      获取 TimeLine 的高度

      Returns number

    • get readOnly(): boolean

      只读状态

      Returns boolean

    • set readOnly(readOnly: boolean): void

      Parameters

      • readOnly: boolean

      Returns void

    • get timeWidth(): number

      Returns number

    • get width(): number

      获取 TimeLine 的宽度

      Returns number

    Methods

    • 销毁

      Returns void

    • 重置尺寸

      Parameters

      • Optionalwidth: string | number
      • Optionalheight: string | number

      Returns void

    • 设置只读或取消只读, 推荐使用 timeLine.readOnly = false

      Parameters

      • readOnly: boolean

        只读或取消只读

      Returns void

    • 改变时间轴刻度 移动端间距: 0:1分钟,1:10分钟,2:半小时,3:1小时,4:2小时, 5:4小时 PC间距:

      Parameters

      • timeWidth: number

        时间轴刻度

      Returns void

    • 更新当前时间

      Parameters

      • current: Date

        能转成时间的值, 如 时间对象 Date, 时间戳,时间戳字符串

      Returns void