Skip to main content

Timeline 时间轴

垂直展示的时间流信息。

何时使用

  • 当有一系列信息需要从上至下按时间排列时。
  • 需要有一条时间轴进行视觉上的串联时。

组件示例

组件属性

属性说明类型默认值
animation

是否开启动画

boolean

true

dataSource

用于配置时间轴数据

TimelineDataSource[]

[
  {
    title: {
      zh_CN: "春天",
      en_US: "Spring",
      type: "i18n",
    },
    time: "2021-03-10",
  },
  {
    title: {
      zh_CN: "夏天",
      en_US: "Summer",
      type: "i18n",
    },
    time: "2016-06-11",
  },
  {
    title: {
      zh_CN: "秋天",
      en_US: "Autumn",
      type: "i18n",
    },
    time: "2016-09-09",
  },
  {
    title: {
      zh_CN: "冬天",
      en_US: "Winter",
      type: "i18n",
    },
    time: "2016-12-08",
  },
]
fold

用于配置数据折叠

any[]

[
  {
    foldArea: [1, 2],
    foldShow: false,
  },
]
This doc is generated using machine translation. Any discrepancies or differences created in the translation are not binding and have no legal effect for compliance or enforcement purposes.
Copyright © 2024钉钉(中国)信息技术有限公司和/或其关联公司浙ICP备18037475号-4