SelectionPane.vue 801 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <div class="section-pane-container" :style="{ padding: padding }">
  3. <slot name="title">
  4. <div class="title" v-if="title">{{ title }}</div>
  5. </slot>
  6. <slot></slot>
  7. </div>
  8. </template>
  9. <script>
  10. export default {
  11. props: {
  12. title: { type: String,default: '' },
  13. padding: { type: String, default: "0 16px 24px" },
  14. titleHeight: { type: String, default: "" },
  15. },
  16. };
  17. </script>
  18. <style lang="scss" scoped>
  19. .section-pane-container {
  20. width: 100%;
  21. background-color: #fff;
  22. border-radius: 8px;
  23. box-shadow: 0px 2px 6px 0px rgba(73, 78, 97, 0.05);
  24. box-sizing: border-box;
  25. .title {
  26. font-size: 20px;
  27. color: #3d3d3d;
  28. height: 62px;
  29. margin-bottom: 12px;
  30. line-height: 62px;
  31. font-weight: 600;
  32. border-bottom: 1px solid #e4e5e8;
  33. }
  34. }
  35. </style>