index.less 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* components/w-field/index.wxss */
  2. // ios 间距
  3. .w-field {
  4. --cell-font-size: 32rpx !important;
  5. --field-label-color: #666 !important;
  6. --cell-vertical-padding: 24rpx !important;
  7. --cell-horizontal-padding: 32rpx !important;
  8. // --van-cell-border-color: #F2F2F2 !important;
  9. .van-cell::after {
  10. right: 0 !important;
  11. }
  12. .van-field__control--custom {
  13. min-height: auto !important;
  14. height: auto !important;
  15. }
  16. .van-cell__right-icon-wrap {
  17. color: #D8D8D8 !important;
  18. font-size: 24rpx !important;
  19. .van-icon {
  20. display: flex;
  21. align-items: center;
  22. vertical-align: middle;
  23. font-weight: bold !important;
  24. margin-right: -6px;
  25. }
  26. }
  27. &.top {
  28. .van-cell {
  29. flex-direction: column;
  30. }
  31. .van-cell__title {
  32. position: relative;
  33. max-width: 100% !important;
  34. margin-right: 0 !important;
  35. width: 100% !important;
  36. padding-bottom: 20rpx !important;
  37. margin-bottom: 20rpx !important;
  38. &::after {
  39. box-sizing: border-box;
  40. content: " ";
  41. pointer-events: none;
  42. right: -32rpx;
  43. bottom: 0;
  44. left: 0;
  45. border-bottom: 2rpx solid #ebedf0;
  46. position: absolute;
  47. transform: scaleY(.5);
  48. }
  49. }
  50. .van-cell__value {
  51. width: 100%;
  52. }
  53. }
  54. .van-field__control--right {
  55. justify-content: flex-end !important;
  56. }
  57. .van-field__control--center {
  58. justify-content: center !important;
  59. }
  60. }