HelpComp.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <template>
  2. <div
  3. class="help"
  4. >
  5. <button
  6. class="close"
  7. @click="$emit('close')"
  8. >
  9. <img
  10. src="@/assets/images/btn-close.png"
  11. alt=""
  12. draggable="false"
  13. >
  14. </button>
  15. <h1>操作指引</h1>
  16. <ul>
  17. <li>
  18. <img
  19. src="@/assets/images/rotate.png"
  20. alt=""
  21. draggable="false"
  22. >
  23. <h2>旋转</h2>
  24. <span>鼠标左键</span>
  25. </li>
  26. <li>
  27. <img
  28. src="@/assets/images/scale.png"
  29. alt=""
  30. draggable="false"
  31. >
  32. <h2>缩放</h2>
  33. <span>鼠标中键</span>
  34. </li>
  35. <li>
  36. <img
  37. src="@/assets/images/translate.png"
  38. alt=""
  39. draggable="false"
  40. >
  41. <h2>平移</h2>
  42. <span>鼠标右键</span>
  43. </li>
  44. <li>
  45. <img
  46. src="@/assets/images/reset.png"
  47. alt=""
  48. draggable="false"
  49. >
  50. <h2>复原</h2>
  51. <span>鼠标左键 × 2</span>
  52. </li>
  53. <li>
  54. <img
  55. src="@/assets/images/light-source-rotate.png"
  56. alt=""
  57. draggable="false"
  58. >
  59. <h2>光影旋转</h2>
  60. <span>SHIFT+鼠标左键</span>
  61. </li>
  62. </ul>
  63. </div>
  64. </template>
  65. <script>
  66. export default {
  67. emits: ['close'],
  68. }
  69. </script>
  70. <style lang="less" scoped>
  71. .help {
  72. position: absolute;
  73. left: 0;
  74. top: 0;
  75. width: 100%;
  76. height: 100%;
  77. z-index: 2;
  78. display: flex;
  79. justify-content: center;
  80. align-items: center;
  81. flex-direction: column;
  82. padding-left: 235px;
  83. padding-right: 235px;
  84. background: rgba(0, 0, 0, 0.7);
  85. > button.close {
  86. position: absolute;
  87. top: 55px;
  88. right: 55px;
  89. width: 62px;
  90. height: 62px;
  91. > img {
  92. width: 100%;
  93. height: 100%;
  94. }
  95. }
  96. > h1 {
  97. margin-bottom: 105px;
  98. font-size: 38px;
  99. font-weight: 400;
  100. color: #FFFFFF;
  101. letter-spacing: 7px;
  102. white-space: pre;
  103. }
  104. > ul {
  105. width: 100%;
  106. justify-content: space-evenly;
  107. display: flex;
  108. align-items: center;
  109. > li {
  110. flex: 0 0 auto;
  111. width: 180px;
  112. display: flex;
  113. flex-direction: column;
  114. align-items: center;
  115. user-select: none;
  116. > img {
  117. width: 69px;
  118. height: 69px;
  119. margin-bottom: 27px;
  120. }
  121. > h2 {
  122. font-size: 27px;
  123. font-weight: 400;
  124. color: #FFFFFF;
  125. margin-bottom: 1px;
  126. margin-bottom: 10px;
  127. }
  128. > span {
  129. font-size: 20px;
  130. font-weight: 400;
  131. color: #FFFFFF;
  132. }
  133. }
  134. }
  135. }
  136. </style>