index.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <view>
  3. <wd-message-box :selector="selector"></wd-message-box>
  4. </view>
  5. </template>
  6. <script setup lang="ts">
  7. defineProps({
  8. selector: {
  9. type: String,
  10. default: 'message-box',
  11. },
  12. })
  13. </script>
  14. <style lang="scss" scoped>
  15. :deep() {
  16. .wd-message-box {
  17. .wd-message-box__title {
  18. font-family: 'PingFang SC';
  19. font-size: 32rpx;
  20. font-style: normal;
  21. font-weight: 600;
  22. line-height: 48rpx; /* 150% */
  23. color: var(--text-icon-font-gy-1100, $shop-text-3);
  24. text-align: center;
  25. text-transform: capitalize;
  26. }
  27. .wd-message-box__content {
  28. font-family: 'PingFang SC';
  29. font-size: 28rpx;
  30. font-style: normal;
  31. font-weight: 400;
  32. line-height: 44rpx; /* 157.143% */
  33. color: var(--text-icon-font-gy-260, rgba(0, 0, 0, 0.6));
  34. text-align: center;
  35. text-transform: capitalize;
  36. }
  37. .wd-message-box__actions-btn:not(:last-child) {
  38. margin-right: 0 !important;
  39. }
  40. .wd-message-box__actions {
  41. display: flex;
  42. align-items: center;
  43. align-self: stretch;
  44. justify-content: center;
  45. height: 112rpx;
  46. padding: 0 !important;
  47. margin-top: 48rpx;
  48. border-top: 0.5rpx solid var(--Gray-Gray3, #e7e7e7);
  49. }
  50. .custom-shadow {
  51. display: flex;
  52. flex: 1 0 0;
  53. gap: 8rpx;
  54. align-items: center;
  55. justify-content: center;
  56. height: 112rpx;
  57. padding: 32rpx 40rpx;
  58. /* Mark/Large */
  59. font-family: 'PingFang SC';
  60. font-size: 32rpx;
  61. font-style: normal;
  62. font-weight: 600;
  63. line-height: 8rpx;
  64. color: var(--text-icon-font-gy-1100, $shop-text-3);
  65. text-align: center;
  66. background: var(--Gray-White, $shop-white);
  67. border-radius: 0;
  68. }
  69. .custom-shadow-confirm {
  70. color: var(--ff-4-c-1-b, $shop-primary);
  71. border-left: 1rpx solid var(--Gray-Gray3, #e7e7e7);
  72. }
  73. }
  74. }
  75. </style>