diff --git a/src/views/comparison/index.vue b/src/views/comparison/index.vue
index 879ac5f..7150318 100644
--- a/src/views/comparison/index.vue
+++ b/src/views/comparison/index.vue
@@ -42,7 +42,7 @@
-
+
diff --git a/src/views/comparison/table.vue b/src/views/comparison/table.vue
index b34773b..7a72da5 100644
--- a/src/views/comparison/table.vue
+++ b/src/views/comparison/table.vue
@@ -2,10 +2,14 @@
-
+
+
+
+
+
-
+
{{ formatValue(scope.row[item.id]) }}
@@ -19,6 +23,10 @@ import { compare } from '@/api/generatedApi'
export default {
props: {
+ showComparison: {
+ type: Boolean,
+ default: false,
+ },
list: {
type: Array,
default: () => [],
@@ -41,6 +49,10 @@ export default {
},
},
methods: {
+ emits() {
+ console.log(123)
+ this.$emit('update:showComparison', false)
+ },
getCompare() {
let ids = this.list.map((item) => {
return item.id
@@ -88,9 +100,17 @@ export default {
.comparsion-container {
height: calc(100vh - 20px);
padding: 10px;
+
+ overflow: hidden;
}
+.header-button {
+ background: transparent;
+ outline: none;
+ border: none;
+}
::v-deep .el-table {
+ border-radius: 8px;
& th {
&.el-table__cell {
background: #1989fa;