index.module.less 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. .uploader-section {
  2. margin: 10px 0;
  3. height: 145px;
  4. border: 1px dashed #ccc;
  5. border-radius: 10px;
  6. box-sizing: border-box;
  7. position: relative;
  8. &.uploader-section-value {
  9. border: none;
  10. }
  11. .img-close {
  12. position: absolute;
  13. top: 4px;
  14. right: 4px;
  15. z-index: 199;
  16. font-size: 16px;
  17. // background-color: #333;
  18. color: #fff;
  19. width: 20px;
  20. height: 20px;
  21. display: flex;
  22. justify-content: center;
  23. align-items: center;
  24. border-radius: 50%;
  25. }
  26. .col-uploader {
  27. width: 100%;
  28. height: 100%;
  29. align-items: center;
  30. display: flex;
  31. justify-content: center;
  32. }
  33. :global {
  34. .van-uploader {
  35. width: 100%;
  36. height: 100%;
  37. align-items: center;
  38. display: flex;
  39. justify-content: center;
  40. }
  41. .van-uploader__wrapper,
  42. .van-uploader__input-wrapper {
  43. display: flex;
  44. align-items: center;
  45. justify-content: center;
  46. width: inherit;
  47. height: inherit;
  48. }
  49. }
  50. .uploader {
  51. // width: 300px;
  52. display: flex;
  53. align-items: center;
  54. justify-content: center;
  55. flex-direction: column;
  56. height: 100%;
  57. .uploaderText {
  58. font-size: 14px;
  59. color: #999999;
  60. margin-top: 8px;
  61. }
  62. }
  63. .uploadImg {
  64. width: 100%;
  65. height: 100%;
  66. // border-radius: 10px;
  67. overflow: hidden;
  68. position: absolute;
  69. top: 0;
  70. left: 0;
  71. z-index: 99;
  72. }
  73. video {
  74. background: rgba(0, 0, 0, 0.6);
  75. }
  76. }