| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <script setup>
- </script>
- <template>
- <div class="p-card">
- <div class="p-header mx-1.5 h-16 text-2xl flex border-b items-center py-1.5">
- <div class="icon-btn-group">
- <slot name="close-group"></slot>
- </div>
- <slot name="header"></slot>
- </div>
- <div class="p-con w-full px-1">
- <slot></slot>
- </div>
- <div class="p-header w-full mt-2 h-4">
- <slot name="footer"></slot>
- </div>
- </div>
- </template>
- <style scoped>
- .p-header{
- height:35px;
- position: relative;
- cursor: default;
- }
- .p-con {
- height: calc(100% - 80px);
- }
- .icon-btn-group{
- position: absolute;
- right: 0;
- top: 0;
- height: 100%;
- display: flex;
- align-content: center;
- }
- .p-card{
- position: relative;
- width: 66%;
- height: 83%;
- border-radius: 0.5rem;
- display: flex;
- flex-direction: column;
- justify-content: center;
- background-color: #fff;
- box-sizing: border-box;
- padding: 0.5rem;
- }
- </style>
|