Sleep

Vue- horizontal-timeline: Straight timeline element for Vue.js #.\n\nVue-horizontal-timeline is an easy horizontal timeline component made with Vue.js (partner with Vue 2 &amp Vue 3).\nDemo.\nInteract along with a working Trial on https:\/\/codesandbox.io\/s\/o4o10xynoz.\nStorybook.\nVisit https:\/\/vue-horizontal-timeline.netlify.com.\nHow to install.\nnpm.\n$ npm put in vue-horizontal-timeline-- save.\nanecdote (recommended).\n$ anecdote include vue-horizontal-timeline.\nFlying start.\nVue.js.\nYou can easily import in your main.js report.\nbring in Vue from \"vue\".\nimport VueHorizontalTimeline from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline)'.\n\nOr even regionally in any sort 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 may 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 after that import it in your 'nuxt.config.js' documents.\n\nplugins: [~\/ plugins\/vue-horizontal-timeline. js\"].\nSimple consumption.\n\n\n\n\n\nProps.\nproducts.\nType: Variety.\nDefault: null.\nDescription: Variety of objects to be shown. Should have at least an information residential property.\nitem-selected.\nType: Item.\nNonpayment: {-String.Split- -}\nDescription: Things that is actually specified when it is actually clicked on. Note that clickable uphold have to be set to correct.\nitem-unique-key.\nType: Strand.\nDefault: \".\nExplanation: Trick to specify a blue border to the memory card when it is clicked on (clickable.\nset need to be actually readied to true).\ntitle-attr.\nStyle: String.\nNonpayment: 'label'.\nSummary: Name of the property inside the objects, that remain in the things assortment, to establish the memory cards label.\ntitle-centered.\nType: Boolean.\nDefault: inaccurate.\nDescription: Streamlines the cards label.\ntitle-class.\nStyle: String.\nNonpayment: \".\nDescription: If you want to prepare a personalized training class to the cards label, set it listed below.\ntitle-substr.\nKind: String.\nNonpayment: 18.\nClassification: Number of personalities to display inside the memory cards title. Over this, will definitely put a '...' face mask.\ncontent-attr.\nStyle: String.\nDefault: 'web content'.\nDescription: Call of the residential property inside the items, that are in the things assortment, to put the cards content.\ncontent-centered.\nType: Boolean.\nDefault: inaccurate.\nDescription: Centralizes all the cards content text message.\ncontent-class.\nKind: String.\nNonpayment: \".\nDescription: If you intend to specify a custom course to the memory cards material, specified it listed below.\ncontent-substr.\nStyle: String.\nNonpayment: 250.\nDescription: Variety of personalities to display inside the cards material. Above this, will definitely set a '...' disguise.\nmin-width.\nType: Cord.\nDefault: '200px'.\nClassification: Min-width of the timeline.\nmin-height.\nType: String.\nNonpayment: \".\nClassification: Min-height of the timeline.\ntimeline-padding.\nKind: String.\nNonpayment: \".\nDescription: Extra padding of the timeline.\ntimeline-background.\nKind: Strand.\nDefault: '#E 9E9E9'.\nDescription: Background color of the entire timeline.\nline-color.\nKind: String.\nDefault: '

03A9F4'.Classification: Shade of the line inside the timeline.clickable.Kind: Boolean.Default: true.Explanation: Creates the card clickable that returns the item.You may likewise modify the measure shade and also the design of each product using the stepCssClass and boxCssClass features inside each product:.const example1 = title: "Title example 1",.material:." Lorem ipsum dolor rest amet, consectetur adipiscing elit. Ut ex-boyfriend dolor, malesuada luctus scelerisque hvac, auctor vitae risus. Vivamus risus dolor, faucibus a bibendum quis, facilisis eget odio.",.stepCssClass: 'has-step-green',.boxCssClass: 'has-color-red'..Advancement.Note: Additions are really accepted, having said that is actually really important to open up a brand-new problem using the problem template just before you begin focusing on anything, so we can easily cover it just before hand.Fork the venture as well as 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 aesthetic testing, this task contains storybook which you can easily run through doing the next demand.$ yarn storybook.Banter.Just before making the PR, if you altered something that needs to be examined, feel free to make the exams inside the tests/unit directory.To operate the examinations, you can make use of the following command.$ yarn test: system.CSS.All the CSS is at src/assets/css/ style.scss.If you make any type of adjustments during that file, you will need to operate anecdote create to construct it, because the element uses the minified version at src/assets/css/ style.min.css.Commitlint.This task complies with the commitlint suggestions, along with minor changes.You can commit utilizing npm run devote to assist you with that said.There's a pre-push hook that dashes all the unit assesses just before you can drive it.If a mistake happens, you can make use of the npm run commit: retry order that runs the previous npm operate devote that you already packed.

Articles You Can Be Interested In