| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <template>
- <div class="baseMainContainer">
- <div class="header">
- <div class="left">{{ title }}</div>
- <div class="right"><slot name="headerR"></slot></div>
- </div>
- <div class="content-area">
- <slot name="mainArea"></slot>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: 'BaseMain',
- props:{
- title:String,
- }
- }
- </script>
- <style lang="scss" scoped>
- .baseMainContainer{
- width: px-to-rem(361);
- margin: px-to-rem(15) px-to-rem(19);
- .header{
- background:url('@/assets/image/common/header-bg.png') no-repeat;
- background-size: contain;
- width: 100%;
- height: px-to-rem(47);
- line-height: px-to-rem(47);
- display: flex;
- justify-content: space-between;
- .left{
- margin-left: px-to-rem(44);
- font-weight: bold;
- font-size: px-to-rem(18);
- color: #FFFFFF;
- text-shadow:px-to-rem(0) px-to-rem(2) px-to-rem(9) #003F85;
- }
- .right{
- margin-right: px-to-rem(11);
- }
- }
- .content-area{
- width: px-to-rem(360);
- min-height: px-to-rem(264);
- background: url('@/assets/image/common/areaBg.png') no-repeat 0 0 / 100% 100%;
- }
- }
- </style>
|