mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-13 23:20:12 +08:00
lining up loading (#465)
This commit is contained in:
parent
5b3efd7a66
commit
a5860e036d
@ -1,6 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-container
|
<el-container
|
||||||
v-if="isLoaded"
|
|
||||||
key="form-loaded"
|
key="form-loaded"
|
||||||
class="view-base"
|
class="view-base"
|
||||||
style="height: 84vh;"
|
style="height: 84vh;"
|
||||||
@ -16,6 +15,7 @@
|
|||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-card
|
<el-card
|
||||||
|
v-if="isLoaded"
|
||||||
class="content-collapse"
|
class="content-collapse"
|
||||||
:style="isEmptyValue(metadata.fieldList) ? 'height: 75vh !important;' : ''"
|
:style="isEmptyValue(metadata.fieldList) ? 'height: 75vh !important;' : ''"
|
||||||
>
|
>
|
||||||
@ -57,10 +57,6 @@
|
|||||||
<!-- emulated component form -->
|
<!-- emulated component form -->
|
||||||
|
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-main>
|
|
||||||
</el-container>
|
|
||||||
<div
|
<div
|
||||||
v-else
|
v-else
|
||||||
key="form-loading"
|
key="form-loading"
|
||||||
@ -70,6 +66,10 @@
|
|||||||
element-loading-background="rgba(255, 255, 255, 0.8)"
|
element-loading-background="rgba(255, 255, 255, 0.8)"
|
||||||
class="view-loading"
|
class="view-loading"
|
||||||
/>
|
/>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-main>
|
||||||
|
</el-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user