| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <template>
- <div class="layout">
- <div class="layout-left">
- <slot name="left" />
- </div>
- <div class="layout-center">
- <slot name="center" />
- </div>
- <div class="layout-right">
- <slot name="right" />
- </div>
- <div class="layout-bg" />
- </div>
- </template>
- <style lang="scss" scoped>
- .layout {
- height: 100%;
- padding: 0 50px;
- display: flex;
- align-items: center;
- position: relative;
- &-right,
- &-left {
- width: 1370px;
- height: 100%;
- z-index: 1;
- }
- &-center {
- width: calc(100% - 1370px - 1370px);
- height: 100%;
- z-index: 1;
- }
- &-bg {
- position: absolute;
- z-index: 0;
- left: 50%;
- top: 50%;
- width: calc(100% - 1260px - 1260px);
- height: 100%;
- transform: translate(-50%, -50%);
- background: url(../assets/img/4.png) no-repeat top center;
- background-size: cover;
- }
- }
- </style>
|