mirror of
https://github.com/tenrok/vue-form-wizard.git
synced 2026-06-05 07:42:23 +03:00
Formatting
Add tests for background style Use provide/inject to get rid of $parent dependency internally
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
|
||||
<router-view></router-view>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<template>
|
||||
<div>
|
||||
<form-wizard @on-complete="onComplete"
|
||||
shape="tab"
|
||||
layout="vertical"
|
||||
steps-classes="steps-size"
|
||||
color="gray"
|
||||
error-color="#a94442">
|
||||
<tab-content title="Personal details"
|
||||
@@ -159,4 +162,8 @@
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.steps-size{
|
||||
width: 100vw;
|
||||
height: 400px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -7,13 +7,10 @@
|
||||
<form-wizard @on-complete="onComplete"
|
||||
@on-change="handleChange"
|
||||
:start-index.sync="activeIndex"
|
||||
layout="vertical"
|
||||
shape="square"
|
||||
steps-classes="steps-size"
|
||||
color="#e74c3c">
|
||||
<tab-content v-for="tab in tabs" :title="tab" :key="tab">{{tab}}</tab-content>
|
||||
<transition name="fade" mode="out-in">
|
||||
<router-view></router-view>
|
||||
</transition>
|
||||
<tab-content v-for="tab in tabs" :title="tab" :key="tab">{{tab}}</tab-content>
|
||||
</form-wizard>
|
||||
</div>
|
||||
</template>
|
||||
@@ -68,7 +65,7 @@
|
||||
</style>
|
||||
<style lang="scss">
|
||||
.steps-size{
|
||||
width: 200px;
|
||||
width: 100vw;
|
||||
height: 400px;
|
||||
}
|
||||
$border-radius-extreme: 6px !default;
|
||||
@@ -101,4 +98,16 @@
|
||||
.fade-enter, .fade-leave-to /* .fade-leave-active in <2.1.8 */ {
|
||||
opacity: 0
|
||||
}
|
||||
|
||||
.list-item {
|
||||
display: inline-block;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.list-enter-active, .list-leave-active {
|
||||
transition: all 1s;
|
||||
}
|
||||
.list-enter, .list-leave-to /* .list-leave-active below version 2.1.8 */ {
|
||||
opacity: 0;
|
||||
transform: translateY(30px);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user