ZaiZai 1 ano atrás
pai
commit
3eefbbef71
1 arquivos alterados com 6 adições e 2 exclusões
  1. 6 2
      src/views/project/modules/gist-list.vue

+ 6 - 2
src/views/project/modules/gist-list.vue

@@ -1,5 +1,5 @@
 <template>
-    <div class="hc-full">
+    <div v-loading="!isAfterRender" class="hc-full" element-loading-text="加载中...">
         <hc-table
             :column="tableColumn" :datas="tableData" :index-style="{ width: 60 }" is-check :check-style="{ fixed: true, width: 29 }"
             class="hc-project-list-table" @selection-change="tableCheckChange"
@@ -164,8 +164,12 @@ watch(() => props.isAdmin, (admin) => {
 })
 
 //渲染完成
+const isAfterRender = ref(false)
 onMounted(() => {
-
+    //表格太复杂,渲染较慢,等页面先加载完成,再渲染表格,不然会卡住一下不动。
+    setTimeout(() => {
+        isAfterRender.value = true
+    }, 200)
 })
 
 //表头