Sleep

Vue- horizontal-timeline: Parallel timetable component for Vue.js #.\n\nVue-horizontal-timeline is actually a simple straight timeline element created along with Vue.js (deal with Vue 2 &amp Vue 3).\nTrial.\nCommunicate with a functioning Trial on https:\/\/codesandbox.io\/s\/o4o10xynoz.\nStorybook.\nHead to https:\/\/vue-horizontal-timeline.netlify.com.\nJust how to mount.\nnpm.\n$ npm mount vue-horizontal-timeline-- save.\nanecdote (suggested).\n$ yarn include vue-horizontal-timeline.\nFlying start.\nVue.js.\nYou can import in your main.js data.\nimport Vue coming from \"vue\".\nimport VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline)'.\n\nOr locally in any element.\n\n' bring in VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\/\/ In v0.8+ you do not need to have the braces over.\n\nexport default \nelements: \nVueHorizontalTimeline,.\n,.\n.\nNuxt.js.\nYou may import as a Nuxt.js plugin.\n~\/ plugins\/vue-horizontal-timeline. js'.\n\n' import Vue from \"vue\".\nimport VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline).\n\nand afterwards import it in your 'nuxt.config.js' data.\n\nplugins: [~\/ plugins\/vue-horizontal-timeline. js\"].\nStandard use.\n\n\n\n\n\nProps.\nthings.\nType: Assortment.\nDefault: null.\nDescription: Array of contest be actually presented. Must have at least an information property.\nitem-selected.\nKind: Item.\nNonpayment: {-String.Split- -}\nSummary: Item that is set when it is actually clicked. Keep in mind that clickable uphold should be actually readied to accurate.\nitem-unique-key.\nKind: String.\nDefault: \".\nExplanation: Secret to specify a blue border to the memory card when it is clicked (clickable.\nset need to be actually set to correct).\ntitle-attr.\nType: String.\nNonpayment: 'label'.\nSummary: Name of the property inside the items, that remain in the things assortment, to set the cards label.\ntitle-centered.\nStyle: Boolean.\nNonpayment: incorrect.\nClassification: Systematizes the memory cards label.\ntitle-class.\nType: String.\nDefault: \".\nClassification: If you want to establish a customized lesson to the memory cards headline, established it right here.\ntitle-substr.\nType: Cord.\nNonpayment: 18.\nDescription: Variety of figures to display inside the cards headline. Over this, are going to put a '...' hide.\ncontent-attr.\nStyle: Cord.\nNonpayment: 'web content'.\nExplanation: Call of the residential property inside the things, that remain in the products selection, to establish the memory cards content.\ncontent-centered.\nStyle: Boolean.\nDefault: untrue.\nDescription: Centralizes all the cards material message.\ncontent-class.\nStyle: String.\nNonpayment: \".\nClassification: If you would like to establish a custom-made training class to the cards content, established it listed below.\ncontent-substr.\nType: Strand.\nDefault: 250.\nClassification: Amount of personalities to show inside the cards material. Above this, will definitely place a '...' face mask.\nmin-width.\nKind: String.\nNonpayment: '200px'.\nClassification: Min-width of the timeline.\nmin-height.\nKind: String.\nNonpayment: \".\nClassification: Min-height of the timetable.\ntimeline-padding.\nKind: String.\nNonpayment: \".\nClassification: Padding of the timeline.\ntimeline-background.\nKind: Cord.\nDefault: '#E 9E9E9'.\nClassification: History different colors of the whole timetable.\nline-color.\nKind: String.\nDefault: '

03A9F4'.Description: Colour of the line inside the timeline.clickable.Style: Boolean.Default: true.Description: Helps make the memory card clickable that returns the things.You can easily additionally modify the measure shade as well as the style of each product utilizing the stepCssClass and boxCssClass qualities inside each product:.const example1 = label: "Title instance 1",.material:." Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ex-spouse dolor, malesuada luctus scelerisque a/c, auctor vitae risus. Vivamus risus dolor, faucibus a bibendum quis, facilisis eget odio.",.stepCssClass: 'has-step-green',.boxCssClass: 'has-color-red'..Development.Keep in mind: Additions are extremely accepted, however is actually very vital to open a brand new issue utilizing the concern theme prior to you start servicing everything, so we may review it prior to hand.Fork the job and enter this regulates in your terminal.$ git duplicate https://github.com/YOUR_GITHUB_USERNAME/vue-horizontal-timeline.git.$ cd vue-horizontal-timeline.$ anecdote.Storybook.For aesthetic testing, this project contains storybook which you can easily run by doing the following demand.$ anecdote storybook.Jest.Just before helping make the PR, if you modified something that needs to have to become tested, satisfy help make the examinations inside the tests/unit file.To run the exams, you may use the upcoming order.$ yarn examination: system.CSS.All the CSS goes to src/assets/css/ style.scss.If you help make any kind of modifications during that report, you will certainly need to manage anecdote develop to build it, due to the fact that the part utilizes the minified version at src/assets/css/ style.min.css.Commitlint.This venture adheres to the commitlint guidelines, with slight adjustments.You can easily dedicate making use of npm operate commit to help you with that said.There's a pre-push hook that jogs all the system tests prior to you may drive it.If an error happens, you can easily utilize the npm run dedicate: retry order that rushes the previous npm operate dedicate that you currently filled.

Articles You Can Be Interested In