修改 产品列表显示

This commit is contained in:
lVAL 2021-01-25 11:18:28 +08:00
parent 306330dd3d
commit 46b7a65977
2 changed files with 32 additions and 23 deletions

View File

@ -20,9 +20,9 @@ export default {
<style lang="scss" scoped>
.footer {
width: 100%;
background-color: #f1f1f1;
position: relative;
bottom: 0;
.container {
overflow: hidden;
text-align: left;

View File

@ -1,28 +1,30 @@
<template>
<div class="main">
<div class="container">
<b-table
sticky-header
striped
bordered
hover
:items="items"
:fields="fields"
style="min-height:100vh;"
outlined
>
<template #cell(href)="data">
<i
v-clipboard:copy="data.item.href"
v-clipboard:success="onCopy"
v-clipboard:error="onError"
class="el-icon-document-copy"
/>
<a target="_blank" :href="data.item.href">
{{ data.item.href }}
</a>
</template>
</b-table>
<b-card title="产品列表" tag="article">
<b-table
sticky-header
striped
bordered
hover
:items="items"
:fields="fields"
style="min-height:calc(100vh - 510px);"
outlined
>
<template #cell(href)="data">
<i
v-clipboard:copy="data.item.href"
v-clipboard:success="onCopy"
v-clipboard:error="onError"
class="el-icon-document-copy"
/>
<a target="_blank" :href="data.item.href">
{{ data.item.href }}
</a>
</template>
</b-table>
</b-card>
</div>
</div>
</template>
@ -98,4 +100,11 @@ export default {
margin: auto;
}
}
/deep/ {
th,
td {
font-size: 1.6em !important;
}
}
</style>