panel3.vue 907 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <div class="com-panel-3">
  3. <span class="dot top-left"></span>
  4. <span class="dot bottom-left"></span>
  5. <span class="dot top-rignt"></span>
  6. <span class="dot bottom-right"></span>
  7. <slot></slot>
  8. </div>
  9. </template>
  10. <script>
  11. export default {
  12. name: "com-panel-3",
  13. componentName: "com-panel-3",
  14. };
  15. </script>
  16. <style lang="less" scoped>
  17. .com-panel-3 {
  18. position: relative;
  19. background: rgba(255, 255, 255, 0.1);
  20. padding: 0.741vh;
  21. display: inline-block;
  22. border: 0.093vh solid #536268;
  23. .dot {
  24. position: absolute;
  25. width: 0.370vh;
  26. height: 0.370vh;
  27. background: #fff;
  28. &.top-left {
  29. top: 0.556vh;
  30. left: 0.556vh;
  31. }
  32. &.bottom-left {
  33. bottom: 0.556vh;
  34. left: 0.556vh;
  35. }
  36. &.top-rignt {
  37. top: 0.556vh;
  38. right: 0.556vh;
  39. }
  40. &.bottom-right {
  41. bottom: 0.556vh;
  42. right: 0.556vh;
  43. }
  44. }
  45. }
  46. </style>