Skip to content

Commit

Permalink
fix(Log): 修复日志的响应式展示
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAnotherID committed Jul 17, 2024
1 parent 61368d3 commit 8e18369
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/PageLog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<el-checkbox v-model="autoRefresh">保持刷新</el-checkbox>
</span>
</p>
<div style="padding: 0;" class="hidden-xs-only logs">
<div class="hidden md:block p-0 logs">
<el-table :data="store.curDice.logs"
:row-class-name="getLogRowClassName" :header-cell-style="{backgroundColor: '#f3f5f7'}">
<el-table-column label="时间" width="90" >
Expand Down Expand Up @@ -65,8 +65,7 @@
</el-table-column>
</el-table>
</div>

<el-table :data="store.curDice.logs" style="width: 100%;" class="hidden-sm-and-up"
<el-table :data="store.curDice.logs" class="md:hidden w-full logs"
:row-class-name="getLogRowClassName" :header-cell-style="{backgroundColor: '#f3f5f7'}">
<el-table-column label="时间" width="60" >
<template #default="scope">
Expand Down

0 comments on commit 8e18369

Please sign in to comment.