| | |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | xNoHidden: { |
| | | type: Boolean, |
| | | default: false |
| | | } |
| | | }); |
| | | |
| | | const svg = ` |
| | |
| | | <div class="flex-layout-header"> |
| | | <slot name="header"></slot> |
| | | </div> |
| | | <div class="flex-layout-body" :class="{ 'no-bg': noBg }"> |
| | | <div class="flex-layout-body" :class="{ 'no-bg': noBg, 'x-no-hidden': xNoHidden }"> |
| | | <slot></slot> |
| | | </div> |
| | | <div class="flex-layout-footer"> |
| | |
| | | </script> |
| | | |
| | | <template> |
| | | <flex-layout> |
| | | <flex-layout x-no-hidden> |
| | | <div class="home-content" ref="homeContentDom"> |
| | | <map-pin |
| | | name="培养间" |
| | |
| | | display: flex; |
| | | align-items: center; |
| | | padding-right: 150px; |
| | | min-width: 12em; |
| | | min-width: 12rem; |
| | | background-image: url("@/assets/images/page-header-left-bg.png"); |
| | | background-repeat: no-repeat; |
| | | background-size: 150% 100%; |
| | | color: @font-color-high-light; |
| | | width: 100vh; |
| | | overflow: hidden; |
| | | span { |
| | | font-size: 24px; |
| | | font-weight: bold; |
| | |
| | | <template v-slot:header> |
| | | <slide-menu></slide-menu> |
| | | </template> |
| | | <flex-layout no-bg> |
| | | <template v-slot:header> |
| | | <page-header></page-header> |
| | | </template> |
| | | <div class="page-content"> |
| | | <router-view></router-view> |
| | | <div class="main-layout-content"> |
| | | <div class="main-layout-absolute"> |
| | | <flex-layout no-bg> |
| | | <template v-slot:header> |
| | | <page-header></page-header> |
| | | </template> |
| | | <div class="page-content"> |
| | | <router-view></router-view> |
| | | </div> |
| | | </flex-layout> |
| | | </div> |
| | | </flex-layout> |
| | | </div> |
| | | </flex-layout> |
| | | </template> |
| | | |
| | |
| | | .page-content { |
| | | height: 100%; |
| | | } |
| | | .main-layout-content { |
| | | position: relative; |
| | | height: 100%; |
| | | .main-layout-absolute { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | right: 0; |
| | | bottom: 0; |
| | | } |
| | | } |
| | | </style> |