Update poll.vue
This commit is contained in:
parent
5e0a8c3d8b
commit
4b8db2bd98
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="tivcixzd" :data-done="closed || isVoted">
|
||||
<div class="tivcixzd" :class="{ done: closed || isVoted }">
|
||||
<ul>
|
||||
<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>
|
||||
|
@ -154,7 +154,7 @@ export default defineComponent({
|
|||
}
|
||||
}
|
||||
|
||||
&[data-done] {
|
||||
&.done {
|
||||
> ul > li {
|
||||
cursor: default;
|
||||
|
||||
|
|
Loading…
Reference in New Issue