Vue- horizontal-timeline: Parallel timetable element for Vue.js #.\n\nVue-horizontal-timeline is an easy parallel timetable element created along with Vue.js (partner with Vue 2 & Vue 3).\nDemonstration.\nCommunicate with a working Demo on https:\/\/codesandbox.io\/s\/o4o10xynoz.\nStorybook.\nVisit https:\/\/vue-horizontal-timeline.netlify.com.\nJust how to mount.\nnpm.\n$ npm put up vue-horizontal-timeline-- conserve.\nyarn (encouraged).\n$ anecdote include vue-horizontal-timeline.\nFlying start.\nVue.js.\nYou may import in your main.js data.\nbring in Vue coming from \"vue\".\nbring in VueHorizontalTimeline coming from \"vue-horizontal-timeline\".\n\nVue.use( VueHorizontalTimeline)'.\n\nOr even in your area in any type of part.\n\n' bring in VueHorizontalTimeline coming from \"vue-horizontal-timeline\".\n\/\/ In v0.8+ you do not require 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 then import it in your 'nuxt.config.js' data.\n\nplugins: [~\/ plugins\/vue-horizontal-timeline. js\"].\nFundamental utilization.\n\n\n\n\n\nProps.\nthings.\nStyle: Variety.\nNonpayment: null.\nSummary: Selection of contest be actually shown. Have to have at the very least a web content home.\nitem-selected.\nType: Object.\nNonpayment: {-String.Split- -}\nExplanation: Item that is specified when it is clicked. Note that clickable uphold have to be set to true.\nitem-unique-key.\nStyle: Cord.\nDefault: \".\nExplanation: Secret to establish a blue boundary to the card when it is actually clicked on (clickable.\nuphold must be set to correct).\ntitle-attr.\nStyle: Cord.\nNonpayment: 'headline'.\nDescription: Call of the residential or commercial property inside the objects, that remain in the things variety, to set the cards label.\ntitle-centered.\nStyle: Boolean.\nDefault: inaccurate.\nDescription: Streamlines the cards label.\ntitle-class.\nStyle: String.\nNonpayment: \".\nClassification: If you wish to specify a customized training class to the memory cards label, established it here.\ntitle-substr.\nKind: String.\nNonpayment: 18.\nClassification: Lot of figures to display inside the cards headline. Above this, are going to place a '...' disguise.\ncontent-attr.\nType: Cord.\nNonpayment: 'content'.\nSummary: Call of the residential property inside the items, that reside in the things array, to put the cards web content.\ncontent-centered.\nStyle: Boolean.\nNonpayment: inaccurate.\nClassification: Rationalizes all the memory cards satisfied message.\ncontent-class.\nKind: Strand.\nDefault: \".\nDescription: If you want to set a personalized training class to the cards content, prepared it listed below.\ncontent-substr.\nStyle: Cord.\nDefault: 250.\nDescription: Amount of figures to present inside the cards web content. Over this, will certainly set a '...' mask.\nmin-width.\nStyle: String.\nDefault: '200px'.\nDescription: Min-width of the timeline.\nmin-height.\nStyle: Cord.\nNonpayment: \".\nDescription: Min-height of the timetable.\ntimeline-padding.\nStyle: Cord.\nDefault: \".\nDescription: Cushioning of the timeline.\ntimeline-background.\nKind: Strand.\nNonpayment: '#E 9E9E9'.\nClassification: Background shade of the entire timetable.\nline-color.\nType: Chain.\nNonpayment: '
03A9F4'.Description: Shade of the line inside the timetable.clickable.Style: Boolean.Nonpayment: accurate.Explanation: Creates the card clickable that returns the item.You may likewise modify the step different colors and the design of each product using the stepCssClass and also boxCssClass qualities inside each thing:.const example1 = title: "Headline example 1",.web content:." Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ex dolor, malesuada luctus scelerisque ac, auctor vitae risus. Vivamus risus dolor, faucibus a bibendum quis, facilisis eget odio.",.stepCssClass: 'has-step-green',.boxCssClass: 'has-color-red'..Progression.Keep in mind: Additions are actually incredibly accepted, nevertheless is actually really important to open a new concern using the concern design template just before you begin working on just about anything, so our team can easily explain it prior to palm.Fork the task as well as enter this controls 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 job has storybook which you may work through performing the upcoming command.$ anecdote storybook.Jest.Prior to making the public relations, if you altered something that needs to be examined, satisfy create the exams inside the tests/unit folder.To operate the tests, you can use the upcoming demand.$ yarn test: unit.CSS.All the CSS goes to src/assets/css/ style.scss.If you help make any improvements during that data, you are going to require to run anecdote construct to construct it, given that the element utilizes the minified variation at src/assets/css/ style.min.css.Commitlint.This venture observes the commitlint guidelines, with minor modifications.You can dedicate making use of npm run commit to help you keeping that.There's a pre-push hook that jogs all the device examines just before you can easily drive it.If an error happens, you can easily utilize the npm run commit: retry order that dashes the previous npm operate commit that you already filled up.
Articles You Can Be Interested In