Sleep

Vue- horizontal-timeline: Parallel timeline component for Vue.js #.\n\nVue-horizontal-timeline is a basic horizontal timeline component brought in with Vue.js (works with Vue 2 &amp Vue 3).\nDemonstration.\nSocialize along with a working Demo on https:\/\/codesandbox.io\/s\/o4o10xynoz.\nStorybook.\nHead to https:\/\/vue-horizontal-timeline.netlify.com.\nExactly how to set up.\nnpm.\n$ npm install vue-horizontal-timeline-- spare.\nyarn (recommended).\n$ yarn add vue-horizontal-timeline.\nFlying start.\nVue.js.\nYou can easily import in your main.js file.\nbring in Vue from \"vue\".\nimport VueHorizontalTimeline coming from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline)'.\n\nOr even regionally in any component.\n\n' bring in VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\/\/ In v0.8+ you don't require the brackets above.\n\nexport default \nparts: \nVueHorizontalTimeline,.\n,.\n.\nNuxt.js.\nYou can easily import as a Nuxt.js plugin.\n~\/ plugins\/vue-horizontal-timeline. js'.\n\n' bring in Vue from \"vue\".\nbring in VueHorizontalTimeline coming from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline).\n\nand then import it in your 'nuxt.config.js' documents.\n\nplugins: [~\/ plugins\/vue-horizontal-timeline. js\"].\nSimple utilization.\n\n\n\n\n\nProps.\nitems.\nStyle: Selection.\nDefault: null.\nSummary: Variety of contest be presented. Need to have at the very least a content residential or commercial property.\nitem-selected.\nStyle: Object.\nDefault: {-String.Split- -}\nExplanation: Things that is established when it is actually clicked on. Note that clickable uphold must be readied to correct.\nitem-unique-key.\nStyle: Cord.\nNonpayment: \".\nExplanation: Trick to specify a blue border to the card when it is actually clicked on (clickable.\nset should be actually readied to true).\ntitle-attr.\nType: Strand.\nDefault: 'title'.\nExplanation: Call of the residential or commercial property inside the objects, that remain in the items collection, to place the memory cards title.\ntitle-centered.\nType: Boolean.\nDefault: inaccurate.\nClassification: Streamlines the cards headline.\ntitle-class.\nType: String.\nNonpayment: \".\nDescription: If you intend to specify a custom lesson to the memory cards headline, established it here.\ntitle-substr.\nKind: Strand.\nNonpayment: 18.\nDescription: Amount of personalities to feature inside the cards headline. Over this, will certainly put a '...' hide.\ncontent-attr.\nType: Cord.\nNonpayment: 'material'.\nSummary: Name of the property inside the things, that remain in the things collection, to set the memory cards content.\ncontent-centered.\nKind: Boolean.\nNonpayment: incorrect.\nDescription: Streamlines all the cards material text message.\ncontent-class.\nType: Cord.\nDefault: \".\nClassification: If you want to set a custom-made lesson to the cards web content, set it right here.\ncontent-substr.\nType: Cord.\nDefault: 250.\nDescription: Variety of characters to feature inside the memory cards web content. Over this, will definitely set a '...' cover-up.\nmin-width.\nKind: String.\nDefault: '200px'.\nClassification: Min-width of the timeline.\nmin-height.\nStyle: Cord.\nNonpayment: \".\nDescription: Min-height of the timeline.\ntimeline-padding.\nKind: Strand.\nDefault: \".\nClassification: Extra padding of the timetable.\ntimeline-background.\nKind: Strand.\nDefault: '#E 9E9E9'.\nClassification: Background different colors of the whole timeline.\nline-color.\nStyle: Chain.\nNonpayment: '

03A9F4'.Description: Colour of the line inside the timetable.clickable.Type: Boolean.Nonpayment: real.Explanation: Creates the memory card clickable that returns the item.You can easily additionally alter the measure shade as well as the style of each thing using the stepCssClass and boxCssClass qualities inside each thing:.const example1 = label: "Headline example 1",.web content:." Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ex lover 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'..Growth.Note: Additions are incredibly accepted, nevertheless is extremely vital to open a brand-new problem utilizing the problem template prior to you start working with just about anything, so our experts can easily cover it before palm.Fork the job and also enter this regulates in your terminal.$ git clone https://github.com/YOUR_GITHUB_USERNAME/vue-horizontal-timeline.git.$ cd vue-horizontal-timeline.$ anecdote.Storybook.For graphic screening, this project includes storybook which you may run through doing the next order.$ anecdote storybook.Banter.Just before helping make the public relations, if you changed something that needs to be tested, feel free to help make the tests inside the tests/unit directory.To operate the exams, you can use the following command.$ anecdote exam: device.CSS.All the CSS is at src/assets/css/ style.scss.If you produce any sort of changes because documents, you will need to manage anecdote create to construct it, due to the fact that the element utilizes the minified version at src/assets/css/ style.min.css.Commitlint.This job follows the commitlint tips, along with slight improvements.You can easily commit utilizing npm operate dedicate to assist you with that.There is actually a pre-push hook that jogs all the device examines prior to you can drive it.If an inaccuracy takes place, you can use the npm operate dedicate: retry command that rushes the previous npm run dedicate that you presently filled up.

Articles You Can Be Interested In