marymelisa 4 lat temu
rodzic
commit
6bd1cde1e1
1 zmienionych plików z 15 dodań i 14 usunięć
  1. 15 14
      src/common/components/quoteTable/index.vue

+ 15 - 14
src/common/components/quoteTable/index.vue

@@ -1,17 +1,18 @@
 <template>
-  <contextMenu :contextMenuList="context"
-               :tableList="dataSource">
-    <a-table class="quote-table"
-             :columns="columns"
-             :data-source="dataSource"
-             bordered
-             :pagination="false"
-             :scroll="{ x: true, y: 262 }">
-      <template #action>
-        <a>action</a>
-      </template>
-    </a-table>
-  </contextMenu>
+    <contextMenu :contextMenuList="context" :tableList="dataSource">
+        <a-table
+            class="quote-table"
+            :columns="columns"
+            :data-source="dataSource"
+            bordered
+            :pagination="false"
+            :scroll="{ x: '100%', y: '223px' }"
+        >
+            <template #action>
+                <a>action</a>
+            </template>
+        </a-table>
+    </contextMenu>
 </template>
 <script lang="ts">
 import { defineComponent, ref } from 'vue';
@@ -52,7 +53,7 @@ export default defineComponent({
     flex: 1;
 }
 .quote-table {
-    height: 100%;
+    height: 223px;
     .ant-spin-nested-loading {
         .ant-spin-container {
         }