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.

99 lines
2.0 KiB

  1. <template>
  2. <modal name="ViewRemittanceImgModal" :clickToClose="false">
  3. <div class="tw-text-base-primary">
  4. <div class="modal-header tw-flex tw-w-full tw-justify-between tw-mb-[15px] lg:tw-mb-[30px]">
  5. <div class="t18 tw-mr-[120px] md:tw-text-[20px]">看水單</div>
  6. <button class="close tw-transition tw-btn-md" @click="$modal.hide('ViewRemittanceImgModal')"></button>
  7. </div>
  8. <div class="modal-content tw-body-5 md:tw-mr-[200px] md:tw-body-4">
  9. <img :src = remittanceImg />
  10. </div>
  11. </div>
  12. </modal>
  13. </template>
  14. <script>
  15. export default {
  16. name: "ViewRemittanceImgModal",
  17. data() {
  18. return {};
  19. },
  20. props: {
  21. remittanceImg: {
  22. type: String,
  23. },
  24. },
  25. };
  26. </script>
  27. <style lang="scss" scoped>
  28. .close {
  29. position: absolute;
  30. right: 25px;
  31. top: 25px;
  32. background-image: url("~/assets/svg/close.svg");
  33. background-position: center;
  34. background-repeat: no-repeat;
  35. background-size: cover;
  36. width: 14px;
  37. height: 14px;
  38. @media (min-width: 1366px) {
  39. position: relative;
  40. right: initial;
  41. top: initial;
  42. }
  43. }
  44. :deep() {
  45. .v--modal {
  46. background-color: #f8f8f8 !important;
  47. text-align: left;
  48. border-radius: 16px;
  49. box-shadow: 0 20px 60px -2px rgb(27 33 58 / 40%);
  50. padding: 20px;
  51. max-width: max-content;
  52. top: 0 !important;
  53. left: 0 !important;
  54. right: 0 !important;
  55. margin: 0 auto;
  56. height: auto !important;
  57. vertical-align: middle;
  58. }
  59. .v--modal-overlay {
  60. position: fixed;
  61. box-sizing: border-box;
  62. left: 0;
  63. top: 0;
  64. width: max-content;
  65. height: auto;
  66. background: rgba(0, 0, 0, 0.2);
  67. z-index: 999;
  68. opacity: 1;
  69. }
  70. .v--modal-top-right {
  71. display: block;
  72. position: fixed;
  73. right: 0;
  74. top: 0;
  75. }
  76. .v--modal-background-click {
  77. display: flex;
  78. justify-content: center;
  79. align-items: center;
  80. }
  81. .v--modal-box {
  82. margin-left: 60px;
  83. margin-right: 60px;
  84. @media (min-width: 768px) {
  85. margin-left: 67px;
  86. margin-right: 67px;
  87. }
  88. }
  89. }
  90. </style>