bill 2 年 前
コミット
747954a957
1 ファイル変更14 行追加8 行削除
  1. 14 8
      src/layout/edit/scene-select.vue

+ 14 - 8
src/layout/edit/scene-select.vue

@@ -20,14 +20,15 @@
           style="width: 264px"
         />
       </div>
-      <Table 
-        v-if="filterScenes.length"
-        :row-key="record => record.modelId"
-        :columns="cloumns"
-        :rowSelection="rowSelection"
-        :data-source="filterScenes"
-        :pagination="false"
-      />
+      <div class="table-layout" v-if="filterScenes.length">
+        <Table 
+          :row-key="record => record.modelId"
+          :columns="cloumns"
+          :rowSelection="rowSelection"
+          :data-source="filterScenes"
+          :pagination="false"
+        />
+      </div>
       <div style="padding: 1px;" v-else>
         <Empty 
           :description="keyword.length ? '暂无搜索结果': '暂无结果'" 
@@ -137,6 +138,11 @@ watch(visible, (visible, oldvisible) => {
   padding-bottom: 24px;
   align-items: center;
 }
+
+.table-layout {
+  max-height: 500px;
+  overflow-y: auto;
+}
 </style>
 
 <style lang="less">