timeline-vuejs
Advanced tools
Comparing version 0.3.0 to 1.0.0
{ | ||
"name": "timeline-vuejs", | ||
"version": "0.3.0", | ||
"version": "1.0.0", | ||
"main": "dist/timeline-vuejs.common.js", | ||
@@ -5,0 +5,0 @@ "description": "Minimalist Timeline with VueJS", |
@@ -53,22 +53,26 @@ <h1 style="text-align: center;">Timeline Vuejs</h1> | ||
messageWhenNoItems: 'There are not items', | ||
timelineItems: [ | ||
dataTimeline: [ | ||
{ | ||
year: { | ||
from: '2017', | ||
to: '2018' | ||
}, | ||
items: [ | ||
{ | ||
nameMonth: 'February', | ||
title: 'Five', | ||
description: | ||
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Eius earum architecto dolor, vitae magnam voluptate accusantium assumenda numquam error mollitia, officia facere consequuntur reprehenderit cum voluptates, ea tempore beatae unde.' | ||
}, | ||
{ | ||
nameMonth: 'January', | ||
title: 'Five', | ||
description: | ||
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Eius earum architecto dolor, vitae magnam voluptate accusantium assumenda numquam error mollitia, officia facere consequuntur reprehenderit cum voluptates, ea tempore beatae unde.' | ||
} | ||
] | ||
from: new Date(2018, 7), | ||
title: 'Name', | ||
description: | ||
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Eius earum architecto dolor, vitae magnam voluptate accusantium assumenda numquam error mollitia, officia facere consequuntur reprehenderit cum voluptates, ea tempore beatae unde.' | ||
}, | ||
{ | ||
from: new Date(2016, 1), | ||
title: 'Name', | ||
description: | ||
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Eius earum architecto dolor, vitae magnam voluptate accusantium assumenda numquam error mollitia, officia facere consequuntur reprehenderit cum voluptates, ea tempore beatae unde.' | ||
}, | ||
{ | ||
from: new Date(2016, 6), | ||
title: 'Name', | ||
description: | ||
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Eius earum architecto dolor, vitae magnam voluptate accusantium assumenda numquam error mollitia, officia facere consequuntur reprehenderit cum voluptates, ea tempore beatae unde.' | ||
}, | ||
{ | ||
from: new Date(2012, 1), | ||
title: 'Name', | ||
description: | ||
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Eius earum architecto dolor, vitae magnam voluptate accusantium assumenda numquam error mollitia, officia facere consequuntur reprehenderit cum voluptates, ea tempore beatae unde.' | ||
} | ||
@@ -80,1 +84,37 @@ ] | ||
``` | ||
## Example with order | ||
```html | ||
<template> | ||
<Timeline | ||
:timeline-items="timelineItems" | ||
:message-when-no-items="messageWhenNoItems" | ||
order="desc"/> | ||
</template> | ||
... | ||
``` | ||
## Example with unique year | ||
```html | ||
<template> | ||
<Timeline | ||
:timeline-items="timelineItems" | ||
:message-when-no-items="messageWhenNoItems" | ||
:unique-year="true" | ||
order="asc"/> | ||
</template> | ||
... | ||
``` | ||
## Available props | ||
| **Props** | **Type** | **Default** | **Description** | | ||
| :----------------- | :------------------: | :----------------------------------------------------- | :---------------------------------------------------------- | | ||
| timelineItems | Array | [ ] | Items value of the timeline | | ||
| messageWhenNoItems | String | | Message when there are no items | | ||
| colorDots | String | <span style="background-color:#2da1bf;">#2da1bf</span> | Color of the dots | | ||
| uniqueTimeline | Boolean | false | If true, the timeline isn't separated | | ||
| uniqueYear | Boolean | false | If true, the timeline isn't separated when is the same year | | ||
| order | String (desc or asc) | | Type of order | |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
348468
1
119