Update poll.vue

This commit is contained in:
syuilo 2020-09-21 01:49:42 +09:00
parent 5e0a8c3d8b
commit 4b8db2bd98
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="tivcixzd" :data-done="closed || isVoted"> <div class="tivcixzd" :class="{ done: closed || isVoted }">
<ul> <ul>
<li v-for="(choice, i) in poll.choices" :key="i" @click="vote(i)" :class="{ voted: choice.voted }"> <li v-for="(choice, i) in poll.choices" :key="i" @click="vote(i)" :class="{ voted: choice.voted }">
<div class="backdrop" :style="{ 'width': `${showResult ? (choice.votes / total * 100) : 0}%` }"></div> <div class="backdrop" :style="{ 'width': `${showResult ? (choice.votes / total * 100) : 0}%` }"></div>
@ -154,7 +154,7 @@ export default defineComponent({
} }
} }
&[data-done] { &.done {
> ul > li { > ul > li {
cursor: default; cursor: default;