update 加载遮罩
This commit is contained in:
@@ -16,6 +16,21 @@
|
|||||||
@header-search-icon-color: fade(@white, 60%),
|
@header-search-icon-color: fade(@white, 60%),
|
||||||
@header-search-icon-hover-color: @white,
|
@header-search-icon-hover-color: @white,
|
||||||
) {
|
) {
|
||||||
|
.yo-layout--spin {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
>div>.ant-spin {
|
||||||
|
max-height: none;
|
||||||
|
}
|
||||||
|
>.ant-spin-container {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
.ant-layout-header {
|
.ant-layout-header {
|
||||||
.header-actions {
|
.header-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -1,29 +1,32 @@
|
|||||||
<template>
|
<template>
|
||||||
<section>
|
<section>
|
||||||
<a-layout
|
<a-spin :spinning="nav.loading" class="yo-layout--spin">
|
||||||
:class="{
|
<a-icon :style="{ fontSize: '24px' }" slot="indicator" spin type="loading" />
|
||||||
|
<a-layout
|
||||||
|
:class="{
|
||||||
[`yo-layout--top-nav--${$root.global.settings.container}`]: $root.global.settings.layout === 'top-nav',
|
[`yo-layout--top-nav--${$root.global.settings.container}`]: $root.global.settings.layout === 'top-nav',
|
||||||
[`yo-layout--${$root.global.settings.layout}`]: true,
|
[`yo-layout--${$root.global.settings.layout}`]: true,
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<Sider :nav="nav" v-if="$root.global.settings.layout === 'left-menu'" />
|
<Sider :nav="nav" v-if="$root.global.settings.layout === 'left-menu'" />
|
||||||
<a-layout>
|
|
||||||
<Header :nav="nav" @reload="onReloadContentWindow" @setting="setting.visible = true" />
|
|
||||||
<a-layout>
|
<a-layout>
|
||||||
<Content
|
<Header :nav="nav" @reload="onReloadContentWindow" @setting="setting.visible = true" />
|
||||||
:panes="panes"
|
<a-layout>
|
||||||
:tabActived="tabActived"
|
<Content
|
||||||
@change="onChangeContentWindow"
|
:panes="panes"
|
||||||
@close="onCloseContentWindow"
|
:tabActived="tabActived"
|
||||||
@close-other="onCloseOtherContentWindow"
|
@change="onChangeContentWindow"
|
||||||
@close-right="onCloseRightContentWindow"
|
@close="onCloseContentWindow"
|
||||||
ref="content"
|
@close-other="onCloseOtherContentWindow"
|
||||||
/>
|
@close-right="onCloseRightContentWindow"
|
||||||
|
ref="content"
|
||||||
|
/>
|
||||||
|
</a-layout>
|
||||||
</a-layout>
|
</a-layout>
|
||||||
|
<Sider :nav="nav" v-if="$root.global.settings.layout === 'right-menu'" />
|
||||||
</a-layout>
|
</a-layout>
|
||||||
<Sider :nav="nav" v-if="$root.global.settings.layout === 'right-menu'" />
|
<Setting :visible="setting.visible" @close="setting.visible = false" />
|
||||||
</a-layout>
|
</a-spin>
|
||||||
<Setting :visible="setting.visible" @close="setting.visible = false" />
|
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in New Issue
Block a user