Skip to content

Commit

Permalink
数据展示页面 修复了背景色溢出的问题 (#59)
Browse files Browse the repository at this point in the history
* feat(dataDisplay): 增加了搜索和近期筛选功能

* fix(apis): 修改为代理

* chore&pref(dataDisplay): 重构了dataDisplay 分为了三个组件 让统计百分比显示后两位 在统计时不显示搜索和近期

* feat(dataDisplay): 增加了题类型

* fix(DataDisplay): 修复了背景色溢出的问题
  • Loading branch information
RosyrRais authored Aug 30, 2024
1 parent 6fc6610 commit ead3a5b
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit ead3a5b

Please sign in to comment.