Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据展示页面 修复了背景色溢出的问题 #59

Merged
merged 8 commits into from
Aug 30, 2024
2 changes: 1 addition & 1 deletion src/pages/DataDisplay/statics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<div class="font-bold">{{ obj.serial_num }}. {{ obj.question }}</div>
<div v-for="opt in obj.options" class="m-6">
<div class="relative border rounded">
<div class="inline absolute left-0 rounded bg-cyan-400 h-full opacity-15" :style="{width: 100*opt.count/totalNum+'%'}"></div>
<span class="ml-4">{{ opt.content }}</span>
<span class="absolute right-4">{{ (opt.count/totalNum*100).toFixed(2) }}%</span>
<div class="inline absolute left-0 rounded bg-cyan-400 h-full opacity-15" :style="{width: 100*opt.count/totalNum+'%'}"></div>
</div>
</div>
</n-card>
Expand Down
Loading