Timeline 时间线
Display · Display component
Timeline events.
On-demand import
wbbb-ui/components/timelineBasic Usage
<script setup lang="ts">
import { WbbbTimeline } from 'wbbb-ui/components/timeline'
import 'wbbb-ui/styles/timeline'
</script>
<template>
<WbbbTimeline />
</template>States and Interaction
All listed states can be operated and verified in the live Playground preview.
DefaultSuccessInfoNo trailing connector
API Reference
Props
| Property | Description | Type | Default | Required |
|---|---|---|---|---|
items | Provides the data items rendered by the component. | WbbbTimelineItem[] | () => [] | No |
Events
None
Slots
None
Two-way binding
Does not support v-model.
Platform Notes
Build verification: H5, App Vue, WeChat Mini Program, Alipay Mini Program, and Douyin Mini Program.
Runtime differences: H5 supports keyboard focus and reduced motion. Mini Programs provide equivalent touch interaction; verify upload, date selection, and overlays on target platforms.
Usage note: Use Playground to verify further state combinations and cross-platform behavior.
