消毒机前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.0 KiB

  1. <template>
  2. <div class="log_picker_dialog_container">
  3. <div class="modal_content">
  4. <p class="title">设置消毒等级</p>
  5. <div class="log_select">
  6. <van-picker
  7. :columns="columns"
  8. :show-toolbar="false"
  9. visible-option-num="3"
  10. option-height="42"
  11. v-model="selectedValues"
  12. />
  13. </div>
  14. <div class="ok_btn">确定</div>
  15. </div>
  16. </div>
  17. </template>
  18. <script setup>
  19. import { ref } from 'vue'
  20. const columns = ref([
  21. { text: '1 Log', value: '1' },
  22. { text: '2 Log', value: '2' },
  23. { text: '3 Log', value: '3' },
  24. { text: '4 Log', value: '4' },
  25. { text: '5 Log', value: '5' },
  26. { text: '6 Log', value: '6' },
  27. { text: '7 Log', value: '7' },
  28. { text: '8 Log', value: '8' },
  29. { text: '9 Log', value: '9' },
  30. { text: '10 Log', value: '10' },
  31. { text: '11 Log', value: '11' },
  32. { text: '12 Log', value: '12' },
  33. ])
  34. const selectedValues = ref(['6'])
  35. </script>
  36. <style lang="scss" scoped>
  37. .log_picker_dialog_container {
  38. position: fixed;
  39. top: 0;
  40. left: 0;
  41. right: 0;
  42. bottom: 0;
  43. background: rgba(0, 0, 0, 0.5);
  44. z-index: 2;
  45. display: flex;
  46. align-items: center;
  47. justify-content: center;
  48. .modal_content {
  49. width: 476px;
  50. height: 407px;
  51. border-radius: 16px;
  52. background: #ffffff;
  53. box-sizing: border-box;
  54. padding: 45px 68px 62px 68px;
  55. display: flex;
  56. flex-direction: column;
  57. align-items: center;
  58. .title {
  59. font-family: Source Han Sans CN;
  60. font-size: 22px;
  61. font-weight: normal;
  62. letter-spacing: 0.04em;
  63. color: #000000;
  64. margin-bottom: 39px;
  65. }
  66. .log_select {
  67. width: 340px;
  68. height: 113px;
  69. overflow: hidden;
  70. margin-bottom: 48px;
  71. }
  72. .ok_btn {
  73. width: 340px;
  74. height: 68px;
  75. border-radius: 8px;
  76. background: #06518b;
  77. display: flex;
  78. align-items: center;
  79. justify-content: center;
  80. font-family: Source Han Sans CN;
  81. font-size: 23px;
  82. font-weight: 350;
  83. letter-spacing: 0em;
  84. color: #ffffff;
  85. }
  86. }
  87. }
  88. </style>