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 7
7
<form-wizard @on-complete =" onComplete"
8
8
@on-change =" handleChange"
9
9
:start-index.sync =" activeIndex"
10
- shape =" tab"
10
+ layout =" vertical"
11
+ steps-classes =" steps-size"
11
12
color =" #e74c3c" >
12
13
<tab-content v-for =" tab in tabs" :title =" tab" :key =" tab" >{{tab}}</tab-content >
13
14
<transition name =" fade" mode =" out-in" >
66
67
@import " loader.css" ;
67
68
</style >
68
69
<style lang="scss">
70
+ .steps-size {
71
+ width : 200px ;
72
+ height : 400px ;
73
+ }
69
74
$border-radius-extreme : 6px !default ;
70
75
$white-color : white ;
71
76
$gray-input-bg : #F3F2EE !default ;
Original file line number Diff line number Diff line change 125
125
}
126
126
}
127
127
}
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
+ }
128
145
}
Original file line number Diff line number Diff line change 1
1
<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" >
3
3
<div class =" wizard-header" >
4
4
<slot name =" title" >
5
5
<h4 class =" wizard-title" >{{title}}</h4 >
6
6
<p class =" category" >{{subtitle}}</p >
7
7
</slot >
8
8
</div >
9
9
<div class =" wizard-navigation" >
10
- <div class =" wizard-progress-with-circle" >
10
+ <div class =" wizard-progress-with-circle" v-if = " !isVertical " >
11
11
<div class =" wizard-progress-bar"
12
12
:style =" progressBarStyle" ></div >
13
13
</div >
14
- <ul class =" wizard-nav wizard-nav-pills" role =" tablist" >
14
+ <ul class =" wizard-nav wizard-nav-pills" role =" tablist" :class = " stepsClasses " >
15
15
<slot name =" step" v-for =" (tab, index) in tabs"
16
16
:tab =" tab"
17
17
:index =" index"
122
122
type: String ,
123
123
default: ' circle'
124
124
},
125
+ layout: {
126
+ type: String ,
127
+ default: ' horizontal'
128
+ },
129
+ stepsClasses: {
130
+ type: [String , Array ],
131
+ default: ' '
132
+ },
125
133
stepSize: {
126
134
type: String ,
127
135
default: ' md' ,
174
182
isLastStep () {
175
183
return this .activeTabIndex === this .tabCount - 1
176
184
},
185
+ isVertical () {
186
+ return this .layout === ' vertical'
187
+ },
177
188
displayPrevButton () {
178
189
return this .activeTabIndex !== 0
179
190
},
You can’t perform that action at this time.
0 commit comments