popCard.vue 723 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <script setup>
  2. </script>
  3. <template>
  4. <div class="w-8/12 h-5/6 p-2 rounded flex flex-col justify-center border bg-white">
  5. <div class="p-header mx-1.5 h-16 text-2xl flex border-b items-center">
  6. <div class="icon-btn-group">
  7. <slot name="close-group"></slot>
  8. </div>
  9. <slot name="header"></slot>
  10. </div>
  11. <div class="p-con w-full px-1">
  12. <slot></slot>
  13. </div>
  14. <div class="p-header w-full mt-2 h-4">
  15. <slot name="footer"></slot>
  16. </div>
  17. </div>
  18. </template>
  19. <style scoped>
  20. .p-header{
  21. height:35px;
  22. position: relative;
  23. cursor: default;
  24. }
  25. .p-con {
  26. height: calc(100% - 80px);
  27. }
  28. .icon-btn-group{
  29. position: absolute;
  30. right: 0;
  31. top: 0;
  32. height: 100%;
  33. }
  34. </style>