mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 16:15:19 +08:00
perf: perf loading logic
This commit is contained in:
@@ -12,10 +12,7 @@
|
||||
|
||||
&__loading {
|
||||
position: absolute;
|
||||
top: 200px;
|
||||
z-index: @page-loading-z-index;
|
||||
|
||||
> .basic-loading {
|
||||
margin-bottom: 15%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -5,7 +5,7 @@ import { Loading } from '/@/components/Loading';
|
||||
|
||||
import { useRootSetting } from '/@/hooks/setting/useRootSetting';
|
||||
import { useTransitionSetting } from '/@/hooks/setting/useTransitionSetting';
|
||||
import PageLayout from '/@/layouts/page/index.vue';
|
||||
import PageLayout from '/@/layouts/page/index';
|
||||
export default defineComponent({
|
||||
name: 'LayoutContent',
|
||||
setup() {
|
||||
@@ -16,7 +16,12 @@ export default defineComponent({
|
||||
return (
|
||||
<div class={['layout-content', unref(getLayoutContentMode)]}>
|
||||
{unref(getOpenPageLoading) && (
|
||||
<Loading loading={unref(getPageLoading)} absolute class="layout-content__loading" />
|
||||
<Loading
|
||||
loading={unref(getPageLoading)}
|
||||
background="rgba(240, 242, 245, 0.6)"
|
||||
absolute
|
||||
class="layout-content__loading"
|
||||
/>
|
||||
)}
|
||||
<PageLayout />
|
||||
</div>
|
||||
|
@@ -465,7 +465,6 @@ export default defineComponent({
|
||||
baseHandler(HandlerEnum.OPEN_PAGE_LOADING, e);
|
||||
},
|
||||
def: unref(getOpenPageLoading),
|
||||
disabled: !unref(getEnableTransition),
|
||||
})}
|
||||
|
||||
{renderSwitchItem(t('layout.setting.switchAnimation'), {
|
||||
|
Reference in New Issue
Block a user