Timeline
在同一时间刻度上的区块泳道和章节条带,带有播放头、章节和图例。
可用框架- Angular: 可用
- Vue: 可用
- React: 可用
- React Native: 暂不可用
用法
0:003:006:009:0012:00
Speakers4:154:153:30
Ada Park0:00–1:35Ada Park4:20–5:10Ada Park10:10–12:00
others-11:35–4:20others-18:40–10:10
Leo Ruiz5:10–8:40
TopicsJump to a chapter
IntroIntro0:00–1:00Launch checklistLaunch checklist1:00–5:30Pricing pagePricing page5:30–9:20Next stepsNext steps9:20–12:00
Playhead at 290 s — click a block or chapter to seek. <div class="demo-stack" style="max-width: 760px; width: 100%">
<sone-timeline
[data]="data"
[total]="720"
[currentTime]="currentTime()"
[suggestions]="suggestions"
(seek)="currentTime.set($event)"
/>
<span style="color: var(--text-secondary); font-size: var(--font-size-sm)">
Playhead at {{ currentTime() }} s — click a block or chapter to seek.
</span>
</div>
导入
import {
SoneTimelineChaptersComponent,
SoneTimelineComponent,
SoneTimelineLegendComponent,
} from "@surface-one/angular/timeline";
API 参考
SoneTimelineChaptersComponent组件
- 选择器
sone-timeline-chapters
SoneTimelineComponent组件
- 选择器
sone-timeline
SoneTimelineLegendComponent组件
- 选择器
sone-timeline-legend