Answer the question
In order to leave comments, you need to log in
How to put the assignment of classes into the method?
There is a template:
<template>
<div class="OfferTask">
<div class="OfferTask__item" v-for="offerTask in OfferTask">
<div class="OfferTask__title">{{ offerTask.advertiser.title }}</div>
<div class="OfferTask__cutLines" v-for="cutLines in offerTask.cutLines">
<div v-for="cutLine in cutLines">
<div class="OfferTask__progress-wrapper">
<div class="OfferTask__progrerss-logo"></div>
<div class="OfferTask__progress-item" :class="{'current-active' : (cutLine.progress.current > 0)}">
<span> {{ cutLine.progress.current }}</span><span> / {{ cutLine.progress.target }}</span></div>
<progress class="sum" :max="cutLine.progress.target" :value="cutLine.progress.current"></progress>
</div>
</div>
</div>
</div>
</div>
</template>
:class="{'current-active' : (cutLine.progress.current > 0)}"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question