basicInfo.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!-- 基础信息 -->
  2. <template>
  3. <template>
  4. <div class="container">
  5. <div class="top-left">图片1</div>
  6. <div class="top-right">图片2</div>
  7. <div class="bottom-left">图片3</div>
  8. <div class="bottom-right">图片4</div>
  9. <div class="center">中间图片</div>
  10. </div>
  11. </template>
  12. </template>
  13. <script setup>
  14. import { onMounted, watch, ref,nextTick,defineEmits } from "vue";
  15. const props = defineProps({
  16. checkDialogData: {
  17. type: Object,
  18. default: () => {},
  19. },
  20. });
  21. </script>
  22. <style scoped lang="scss">
  23. .container {
  24. display: flex;
  25. justify-content: space-between;
  26. align-items: center;
  27. width: 100%;
  28. height: 100vh; // 或者其他你需要的高度值
  29. }
  30. .top-left, .top-right, .bottom-left, .bottom-right {
  31. width: 50px; // 根据需要调整宽度和高度
  32. height: 50px; // 根据需要调整宽度和高度
  33. }
  34. .top-left {
  35. background:url("~@/assets/image/instruct/navtop.png") no-repeat center center;
  36. }
  37. .top-right {
  38. background: url("~@/assets/image/instruct/navtop.png") no-repeat center center;
  39. }
  40. .bottom-left {
  41. background: url("~@/assets/image/instruct/navtop.png") no-repeat center center;
  42. }
  43. .bottom-right {
  44. background: url("~@/assets/image/instruct/navtop.png") no-repeat center center;
  45. }
  46. .center {
  47. width: 100px; // 根据需要调整宽度和高度
  48. height: 100px; // 根据需要调整宽度和高度
  49. background: url('path/to/centerImage.jpg') no-repeat center center;
  50. }
  51. </style>