| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <template>
- <div class="page-header" >
- <div class="title" >{{title}}</div>
- <div class="desc" >{{desc}}</div>
- <slot></slot>
- </div>
- </template>
- <script lang="ts" setup >
- import { defineProps } from 'vue'
- interface IProps {
- title: string
- desc: string
- }
- const props = defineProps<IProps>()
- </script>
- <style lang="less" scoped >
- .page-header {
- width: 100%;
- height: 144px;
- background-color: #fff;
- padding: 20px;
- border-radius: 8px;
- .title {
- color: rgba(0, 0, 0, 0.88);
- font-weight: 600;
- font-size: 20px;
- line-height: 32px;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .desc {
- margin-top: 38px;
- }
- }
- </style>
|