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

    Class MobileTimeLineInternal

    时间轴基类

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    $container: HTMLElement

    挂载节点

    i18n: I18n
    options: Required<T>

    配置项

    state: {
        availTimeLine: never[];
        current: null;
        end: string;
        index: number;
        start: string;
        timeArr: MobileTimeLineTimeArr[];
    } = ...
    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

    • 重置尺寸

      Parameters

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

      Returns void

    • 设置只读或取消只读

      Parameters

      • readOnly: boolean

        只读或取消只读

      Returns void

    • 改变时间轴刻度 0: 1分钟, 1: 10分钟 2: 半小时 3: 1小时 4: 2小时

      Parameters

      • timeWidth: number

        // 120: 2小时, 60:1小时, 30:半小时,10:10分钟,1:1分钟

      Returns void

    • 更新当前时间

      Parameters

      • time: string | number | Date

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

      Returns void