Skip to content

Commit 1e103cf

Browse files
committed
perf[dashboard]: add resonsive dashboard
1 parent 99d53ee commit 1e103cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/views/dashboard/admin/components/TransactionTable.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<el-table :data="list" style="width: 100%;padding-top: 15px;">
3-
<el-table-column label="Order_No" show-overflow-tooltip>
3+
<el-table-column label="Order_No" min-width="200">
44
<template slot-scope="scope">
55
{{scope.row.order_no}}
66
</template>
@@ -42,7 +42,7 @@ export default {
4242
methods: {
4343
fetchData() {
4444
fetchList().then(response => {
45-
this.list = response.data.items.slice(0, 7)
45+
this.list = response.data.items.slice(0, 8)
4646
})
4747
}
4848
}

src/views/dashboard/admin/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
<el-col :xs="{span: 24}" :sm="{span: 24}" :md="{span: 24}" :lg="{span: 12}" :xl="{span: 12}" style="padding-right:8px;margin-bottom:30px;">
3131
<transaction-table></transaction-table>
3232
</el-col>
33-
<el-col :xs="{span: 12}" :sm="{span: 12}" :md="{span: 12}" :lg="{span: 6}" :xl="{span: 5}">
33+
<el-col :xs="{span: 24}" :sm="{span: 12}" :md="{span: 12}" :lg="{span: 6}" :xl="{span: 5}" style="margin-bottom:30px;">
3434
<todo-list></todo-list>
3535
</el-col>
36-
<el-col :xs="{span: 12}" :sm="{span: 12}" :md="{span: 12}" :lg="{span: 6}" :xl="{span: 5}">
36+
<el-col :xs="{span: 24}" :sm="{span: 12}" :md="{span: 12}" :lg="{span: 6}" :xl="{span: 5}" style="margin-bottom:30px;" >
3737
<box-card></box-card>
3838
</el-col>
3939
</el-row>

0 commit comments

Comments
 (0)