修复部分样式
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<section class="AiStep flex start" :class="{active:!!index&&active==index}">
|
||||
<section class="AiStep flex start" :class="{active}">
|
||||
<div class="leftPane mar-r32">
|
||||
<div class="num" v-text="stepIndex"/>
|
||||
<div v-if="!isLast" class="stepLine fill"/>
|
||||
@@ -18,7 +18,7 @@ export default {
|
||||
index: {default: null},
|
||||
},
|
||||
computed: {
|
||||
active: v => v.activeStep,
|
||||
active: v => v.activeStep == v.stepIndex,
|
||||
stepIndex: v => {
|
||||
const index = v.$parent.items.findIndex(e => e == v._uid)
|
||||
return index > -1 ? index + 1 : ""
|
||||
|
||||
Reference in New Issue
Block a user