You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-6Lines changed: 24 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,17 @@
3
3
## Introduction
4
4
A simple timeline component similar to [Ant Timeline](https://www.antdv.com/components/timeline/) based on [Bootstrap-Vue](https://bootstrap-vue.org/).
5
5
6
-
**Note**: This component assumes you use [Bootstrap-Vue (v4)](https://bootstrap-vue.org/) in your project and have installed [the dependencies](https://bootstrap-vue.org/docs).
|`items`|`Array`| A list of timeline items to display. Supported keys include: `timestamp`, `title`, `content`. |
99
+
|`reverse`|`Boolean`| The component displays a vertical timeline in the order of the `items` prop. If `reserve` is set to false, it displays items in reverse order.<br/> Default: false. |
100
+
|`loading`|`Boolean`| If true, display a loading spinner in the last item. |
101
+
|`date-format`|`String`| Controls the date format in the tooltip when you hover the human friendly time. Default: 'yyyy-MM-dd HH:mm:ss' |
102
+
|`variant`|`String`| Color variant. It supports [Bootstrap color variants](https://bootstrap-vue.org/docs/reference/color-variants#color-variants-and-css-class-mapping), including 'primary', 'success'. Default: 'primary' |
90
103
### Slots
91
-
TBD
104
+
N/A
92
105
### Events
93
-
TBD
106
+
N/A
94
107
95
108
## Development
96
109
@@ -114,6 +127,11 @@ yarn serve
114
127
yarn lint
115
128
```
116
129
130
+
**Generate component documentation**:
131
+
```bash
132
+
yarn doc src/bootstrap-vue-timeline.vue
133
+
```
134
+
117
135
## License
118
136
119
137
Released under the MIT [License](./LICENSE). Copyright (c) Bootstrap-vue-timeline.
* A list of timeline items to display. Supported keys include: `timestamp`, `title`, `content`.
16
+
*/
14
17
items:Array,
18
+
/**
19
+
* The component displays a vertical timeline in the order of the `items` prop.
20
+
* If `reserve` is set to false, it displays items in reverse order.
21
+
*
22
+
* Default: false.
23
+
*/
15
24
reverse:Boolean,
25
+
/**
26
+
* If true, display a loading spinner in the last item.
27
+
*/
16
28
loading:Boolean,
29
+
/**
30
+
* Controls the date format in the tooltip when you hover the human friendly time.
31
+
* Default: 'yyyy-MM-dd HH:mm:ss'
32
+
*/
17
33
dateFormat:String,
34
+
/**
35
+
* Color variant. It supports [Bootstrap color variants](https://bootstrap-vue.org/docs/reference/color-variants#color-variants-and-css-class-mapping), including 'primary', 'success'.
0 commit comments