Sleep

Vue- horizontal-timeline: Horizontal timeline component for Vue.js #.\n\nVue-horizontal-timeline is actually a straightforward parallel timetable element created with Vue.js (partner with Vue 2 &amp Vue 3).\nTrial.\nInteract along with a functioning Demo on https:\/\/codesandbox.io\/s\/o4o10xynoz.\nStorybook.\nHead to https:\/\/vue-horizontal-timeline.netlify.com.\nJust how to put up.\nnpm.\n$ npm install vue-horizontal-timeline-- save.\nyarn (suggested).\n$ yarn add vue-horizontal-timeline.\nFlying start.\nVue.js.\nYou may import in your main.js file.\nbring in Vue coming from \"vue\".\nimport VueHorizontalTimeline coming from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline)'.\n\nOr in your area in any sort of part.\n\n' import VueHorizontalTimeline coming from \"vue-horizontal-timeline\".\n\/\/ In v0.8+ you don't need the brackets over.\n\nexport nonpayment \ncomponents: \nVueHorizontalTimeline,.\n,.\n.\nNuxt.js.\nYou can easily import as a Nuxt.js plugin.\n~\/ plugins\/vue-horizontal-timeline. js'.\n\n' import Vue coming from \"vue\".\nimport VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline).\n\nand after that import it in your 'nuxt.config.js' documents.\n\nplugins: [~\/ plugins\/vue-horizontal-timeline. js\"].\nStandard use.\n\n\n\n\n\nProps.\nproducts.\nKind: Variety.\nDefault: null.\nExplanation: Variety of objects to be actually presented. Need to have at the very least a material building.\nitem-selected.\nType: Things.\nDefault: {-String.Split- -}\nSummary: Object that is actually established when it is clicked. Note that clickable prop have to be set to real.\nitem-unique-key.\nStyle: String.\nNonpayment: \".\nDescription: Trick to specify a blue border to the card when it is actually clicked on (clickable.\nuphold should be readied to correct).\ntitle-attr.\nStyle: String.\nNonpayment: 'title'.\nSummary: Call of the building inside the items, that are in the products selection, to place the memory cards title.\ntitle-centered.\nStyle: Boolean.\nNonpayment: inaccurate.\nClassification: Centralizes the memory cards title.\ntitle-class.\nStyle: Cord.\nDefault: \".\nClassification: If you would like to establish a customized training class to the cards label, specified it below.\ntitle-substr.\nType: String.\nNonpayment: 18.\nClassification: Amount of characters to display inside the memory cards headline. Above this, will definitely set a '...' cover-up.\ncontent-attr.\nType: Cord.\nNonpayment: 'material'.\nSummary: Name of the building inside the things, that remain in the products collection, to set the cards web content.\ncontent-centered.\nType: Boolean.\nDefault: untrue.\nClassification: Centralizes all the cards content text.\ncontent-class.\nStyle: Cord.\nNonpayment: \".\nClassification: If you wish to specify a custom-made course to the cards content, set it right here.\ncontent-substr.\nKind: String.\nNonpayment: 250.\nDescription: Variety of personalities to feature inside the cards web content. Above this, will definitely establish a '...' mask.\nmin-width.\nKind: Strand.\nDefault: '200px'.\nClassification: Min-width of the timetable.\nmin-height.\nType: Strand.\nNonpayment: \".\nDescription: Min-height of the timetable.\ntimeline-padding.\nKind: Strand.\nNonpayment: \".\nClassification: Stuffing of the timeline.\ntimeline-background.\nKind: String.\nNonpayment: '#E 9E9E9'.\nClassification: History colour of the entire timeline.\nline-color.\nType: Chain.\nNonpayment: '

03A9F4'.Classification: Shade of the line inside the timeline.clickable.Type: Boolean.Default: correct.Explanation: Makes the card clickable that returns the item.You may likewise transform the action colour and also the style of each product utilizing the stepCssClass and also boxCssClass features inside each thing:.const example1 = label: "Headline example 1",.content:." Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ex lover 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'..Development.Note: Contributions are actually quite accepted, nevertheless is extremely necessary to open up a brand-new concern making use of the problem theme before you begin working on just about anything, so we can easily discuss it just before hand.Fork the job and 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 visual testing, this job contains storybook which you may function by doing the upcoming order.$ yarn storybook.Jest.Just before creating the PR, if you modified one thing that requires to be examined, satisfy help make the exams inside the tests/unit folder.To run the examinations, you may use the following demand.$ yarn examination: device.CSS.All the CSS goes to src/assets/css/ style.scss.If you produce any kind of changes because documents, you will certainly need to manage anecdote build to build it, due to the fact that the part utilizes the minified version at src/assets/css/ style.min.css.Commitlint.This project complies with the commitlint tips, with minor adjustments.You may devote making use of npm operate dedicate to assist you with that said.There is actually a pre-push hook that dashes all the unit evaluates prior to you may press it.If a mistake takes place, you can utilize the npm run commit: retry demand that jogs the previous npm run devote that you actually filled up.

Articles You Can Be Interested In