perf: loading更改

This commit is contained in:
chenjinsong
2022-05-26 17:14:00 +08:00
parent f2d2e19526
commit fc58beacf5
14 changed files with 77 additions and 581 deletions

View File

@@ -1,8 +1,6 @@
<template>
<div class="entity-list" id="entityList">
<div class="entity__loading" style="background: #eff2f5;opacity: .6;" v-show="loading">
<i class="el-icon-loading"></i>
</div>
<loading :loading="loading"></loading>
<div class="entity-list__content">
<!-- 列表式 -->
<template v-if="listMode === 'list'">
@@ -42,6 +40,7 @@
<script>
import Card from '@/views/entityExplorer/entityList/Card'
import Row from '@/views/entityExplorer/entityList/Row'
import Loading from '@/components/common/Loading'
export default {
name: 'EntityList',
@@ -55,7 +54,8 @@ export default {
},
components: {
'entity-card': Card,
'entity-row': Row
'entity-row': Row,
Loading
},
data () {
return {