Sleep

Vue- horizontal-timeline: Horizontal timeline component for Vue.js #.\n\nVue-horizontal-timeline is actually a straightforward horizontal timetable part created with Vue.js (team up with Vue 2 &amp Vue 3).\nTrial.\nInteract with a functioning Demo on https:\/\/codesandbox.io\/s\/o4o10xynoz.\nStorybook.\nMost likely to https:\/\/vue-horizontal-timeline.netlify.com.\nJust how to put up.\nnpm.\n$ npm put in vue-horizontal-timeline-- conserve.\nanecdote (recommended).\n$ anecdote include vue-horizontal-timeline.\nFlying start.\nVue.js.\nYou may import in your main.js file.\nbring in Vue from \"vue\".\nbring in VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline)'.\n\nOr even regionally in any kind of element.\n\n' import VueHorizontalTimeline coming from \"vue-horizontal-timeline\".\n\/\/ In v0.8+ you don't need to have the brackets over.\n\nexport nonpayment \nelements: \nVueHorizontalTimeline,.\n,.\n.\nNuxt.js.\nYou can easily import as a Nuxt.js plugin.\n~\/ plugins\/vue-horizontal-timeline. js'.\n\n' import Vue from \"vue\".\nimport VueHorizontalTimeline coming from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline).\n\nand after that import it in your 'nuxt.config.js' report.\n\nplugins: [~\/ plugins\/vue-horizontal-timeline. js\"].\nStandard usage.\n\n\n\n\n\nProps.\nitems.\nStyle: Range.\nNonpayment: null.\nExplanation: Array of objects to be actually presented. Should have at minimum a content home.\nitem-selected.\nKind: Item.\nDefault: {-String.Split- -}\nSummary: Item that is actually specified when it is actually clicked. Take note that clickable uphold have to be readied to accurate.\nitem-unique-key.\nKind: Cord.\nNonpayment: \".\nDescription: Key to set a blue boundary to the memory card when it is actually clicked on (clickable.\nuphold must be readied to true).\ntitle-attr.\nStyle: String.\nDefault: 'headline'.\nSummary: Call of the property inside the things, that are in the products collection, to establish the cards title.\ntitle-centered.\nStyle: Boolean.\nNonpayment: untrue.\nDescription: Systematizes the cards title.\ntitle-class.\nType: Strand.\nNonpayment: \".\nDescription: If you desire to establish a customized course to the cards title, prepared it below.\ntitle-substr.\nKind: Strand.\nDefault: 18.\nClassification: Amount of figures to display inside the memory cards label. Over this, will certainly set a '...' hide.\ncontent-attr.\nStyle: Strand.\nNonpayment: 'information'.\nDescription: Name of the property inside the items, that reside in the products variety, to establish the cards material.\ncontent-centered.\nStyle: Boolean.\nNonpayment: false.\nDescription: Rationalizes all the memory cards material message.\ncontent-class.\nKind: String.\nNonpayment: \".\nDescription: If you wish to set a personalized training class to the cards web content, set it right here.\ncontent-substr.\nStyle: Strand.\nDefault: 250.\nDescription: Number of personalities to display inside the memory cards web content. Over this, will definitely place a '...' hide.\nmin-width.\nType: String.\nNonpayment: '200px'.\nClassification: Min-width of the timeline.\nmin-height.\nType: Cord.\nNonpayment: \".\nDescription: Min-height of the timetable.\ntimeline-padding.\nType: Cord.\nDefault: \".\nClassification: Extra padding of the timeline.\ntimeline-background.\nKind: String.\nDefault: '#E 9E9E9'.\nClassification: History shade of the entire timetable.\nline-color.\nKind: Chain.\nDefault: '

03A9F4'.Description: Colour of the line inside the timeline.clickable.Style: Boolean.Nonpayment: accurate.Explanation: Produces the card clickable that returns the things.You can also alter the action different colors and also the style of each product utilizing the stepCssClass and boxCssClass characteristics inside each product:.const example1 = headline: "Label instance 1",.web content:." Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ex-boyfriend dolor, malesuada luctus scelerisque air conditioner, auctor vitae risus. Vivamus risus dolor, faucibus a bibendum quis, facilisis eget odio.",.stepCssClass: 'has-step-green',.boxCssClass: 'has-color-red'..Progression.Take note: Additions are very accepted, however is quite crucial to open up a brand new issue utilizing the concern template prior to you begin working with anything, so our company may discuss it prior to hand.Fork the venture and also enter this influences in your terminal.$ git clone https://github.com/YOUR_GITHUB_USERNAME/vue-horizontal-timeline.git.$ cd vue-horizontal-timeline.$ anecdote.Storybook.For graphic testing, this task consists of storybook which you may function by carrying out the upcoming command.$ yarn storybook.Jest.Before helping make the public relations, if you changed one thing that needs to have to be checked, please create the examinations inside the tests/unit directory.To manage the exams, you can easily use the upcoming demand.$ anecdote test: device.CSS.All the CSS goes to src/assets/css/ style.scss.If you create any improvements because file, you will definitely require to operate anecdote build to create it, since the element uses the minified model at src/assets/css/ style.min.css.Commitlint.This task observes the commitlint rules, with small changes.You can dedicate utilizing npm operate devote to help you with that said.There is actually a pre-push hook that rushes all the unit checks just before you can push it.If an error occurs, you can utilize the npm run dedicate: retry command that dashes the previous npm run dedicate that you already filled.

Articles You Can Be Interested In