xachary
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
5 deletions
-
src/layouts/default/content/index.vue
|
|
|
@ -1,8 +1,6 @@ |
|
|
|
<template> |
|
|
|
<div :class="[prefixCls, getLayoutContentMode]" v-loading="getOpenPageLoading && getPageLoading"> |
|
|
|
<div :class="[prefixClsScroll]"> |
|
|
|
<PageLayout /> |
|
|
|
</div> |
|
|
|
<PageLayout /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script lang="ts" setup> |
|
|
|
@ -15,7 +13,6 @@ |
|
|
|
defineOptions({ name: 'LayoutContent' }); |
|
|
|
|
|
|
|
const { prefixCls } = useDesign('layout-content'); |
|
|
|
const { prefixCls: prefixClsScroll } = useDesign('layout-content-scroll'); |
|
|
|
const { getOpenPageLoading } = useTransitionSetting(); |
|
|
|
const { getLayoutContentMode, getPageLoading } = useRootSetting(); |
|
|
|
|
|
|
|
@ -23,9 +20,11 @@ |
|
|
|
</script> |
|
|
|
<style lang="less"> |
|
|
|
@prefix-cls: ~'@{namespace}-layout-content'; |
|
|
|
@prefix-cls-scroll: ~'@{namespace}-layout-content-scroll'; |
|
|
|
|
|
|
|
.@{prefix-cls} { |
|
|
|
display: flex; |
|
|
|
position: relative; |
|
|
|
flex-direction: column; |
|
|
|
flex-grow: 1; |
|
|
|
width: 100%; |
|
|
|
height: 0; |
|
|
|
|