This repository was archived by the owner on Jun 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +37
-4
lines changed Expand file tree Collapse file tree 3 files changed +37
-4
lines changed Original file line number Diff line number Diff line change 77 <form-wizard @on-complete =" onComplete"
88 @on-change =" handleChange"
99 :start-index.sync =" activeIndex"
10- shape =" tab"
10+ layout =" vertical"
11+ steps-classes =" steps-size"
1112 color =" #e74c3c" >
1213 <tab-content v-for =" tab in tabs" :title =" tab" :key =" tab" >{{tab}}</tab-content >
1314 <transition name =" fade" mode =" out-in" >
6667 @import " loader.css" ;
6768 </style >
6869<style lang="scss">
70+ .steps-size {
71+ width : 200px ;
72+ height : 400px ;
73+ }
6974 $border-radius-extreme : 6px !default ;
7075 $white-color : white ;
7176 $gray-input-bg : #F3F2EE !default ;
Original file line number Diff line number Diff line change 125125 }
126126 }
127127 }
128+
129+ & .vertical {
130+ .wizard-card-footer {
131+ display : block ;
132+ }
133+ .wizard-nav-pills {
134+ flex-direction : column ;
135+ }
136+ .wizard-navigation {
137+ display : flex ;
138+ flex-direction : row ;
139+ }
140+ .wizard-card-footer {
141+ padding-top : 30px ;
142+
143+ }
144+ }
128145}
Original file line number Diff line number Diff line change 11<template >
2- <div class =" vue-form-wizard" :class =" stepSize" @keyup.right =" focusNextTab" @keyup.left =" focusPrevTab" >
2+ <div class =" vue-form-wizard" :class =" [ stepSize, {vertical: isVertical}] " @keyup.right =" focusNextTab" @keyup.left =" focusPrevTab" >
33 <div class =" wizard-header" >
44 <slot name =" title" >
55 <h4 class =" wizard-title" >{{title}}</h4 >
66 <p class =" category" >{{subtitle}}</p >
77 </slot >
88 </div >
99 <div class =" wizard-navigation" >
10- <div class =" wizard-progress-with-circle" >
10+ <div class =" wizard-progress-with-circle" v-if = " !isVertical " >
1111 <div class =" wizard-progress-bar"
1212 :style =" progressBarStyle" ></div >
1313 </div >
14- <ul class =" wizard-nav wizard-nav-pills" role =" tablist" >
14+ <ul class =" wizard-nav wizard-nav-pills" role =" tablist" :class = " stepsClasses " >
1515 <slot name =" step" v-for =" (tab, index) in tabs"
1616 :tab =" tab"
1717 :index =" index"
122122 type: String ,
123123 default: ' circle'
124124 },
125+ layout: {
126+ type: String ,
127+ default: ' horizontal'
128+ },
129+ stepsClasses: {
130+ type: [String , Array ],
131+ default: ' '
132+ },
125133 stepSize: {
126134 type: String ,
127135 default: ' md' ,
174182 isLastStep () {
175183 return this .activeTabIndex === this .tabCount - 1
176184 },
185+ isVertical () {
186+ return this .layout === ' vertical'
187+ },
177188 displayPrevButton () {
178189 return this .activeTabIndex !== 0
179190 },
You can’t perform that action at this time.
0 commit comments