跳到主要内容

主题配置

本节内容为时间轴范式组件的主题配置文档。

时间轴范式组件通过 option.theme 配置主题。示例:

const timeline = new Timeline(dom, { theme: 'mobile' });

提供以下几种主题。(默认为 mobile

主题预览

移动端

mobile

mobile

mobile-dark

v0.0.6+

mobile-dark

mobile-withValueOuter

v0.0.5+

mobile-withValueOuter

mobile-withValueOuter-dark

v0.0.6+

mobile-withValueOuter-dark

mobile-compact

v0.2.0+

mobile-compact

mobile-compact-dark

v0.2.0+

mobile-compact-dark

mobile-compact-withValueOuter

v0.2.0+

mobile-compact-withValueOuter

mobile-compact-withValueOuter-dark

v0.2.0+

mobile-compact-withValueOuter-dark

mobile-simple

v0.2.0+

mobile-simple

mobile-simple-dark

v0.2.0+

mobile-simple-dark

mobile-ainvest-light

v0.4.0+

mobile-ainvest-light

mobile-ainvest-dark

v0.4.0+

mobile-ainvest-dark

PC 端

pc

pc

pc-dark

pc-dark

pc-simple

v0.4.0+

pc-simple

pc-simple-dark

v0.4.0+

pc-simple-dark