index.scss 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. .imgs-row-scroll {
  2. max-width: 100%;
  3. overflow: auto;
  4. ::v-deep .uni-scroll-view {
  5. height: 100% !important;
  6. }
  7. .img-list {
  8. display: flex;
  9. align-items: center;
  10. }
  11. .img-item {
  12. flex-shrink: 0;
  13. border-radius: 12rpx;
  14. overflow: hidden;
  15. background-color: #f5f5f5;
  16. position: relative;
  17. border: 4rpx solid transparent;
  18. transition: border-color 0.3s;
  19. &.is-active {
  20. border-color: #3c9cff; // uView 的 primary 颜色
  21. box-shadow: 0 0 12rpx rgba(60, 156, 255, 0.5);
  22. }
  23. }
  24. .img-content {
  25. width: 100%;
  26. height: 100%;
  27. border-radius: 12rpx;
  28. object-fit: contain;
  29. }
  30. .delete-icon {
  31. position: absolute;
  32. top: 8rpx;
  33. right: 8rpx;
  34. width: 36rpx;
  35. height: 36rpx;
  36. background-color: rgba(0, 0, 0, 0.5);
  37. border-radius: 50%;
  38. display: flex;
  39. align-items: center;
  40. justify-content: center;
  41. z-index: 10;
  42. ::v-deep .u-icon{
  43. background-color: transparent !important;
  44. }
  45. }
  46. // 使用indicator隐藏滚动条会报错,暂时使用样式隐藏
  47. ::v-deep .u-scroll-list__indicator{
  48. display: none !important;
  49. }
  50. }