index.less 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. .cip-number {
  2. &&--left {
  3. .@{elNamespace}-input__inner {
  4. text-align: left;
  5. }
  6. }
  7. &&--unit {
  8. position: relative;
  9. .@{elNamespace}-input__inner {
  10. }
  11. &::after {
  12. content: attr(data-unit);
  13. position: absolute;
  14. right: 4px;
  15. top: 1px;
  16. //height: @formItemLineHeight;
  17. color: @info;
  18. }
  19. }
  20. &&--no-controls:not(.cip-number--unit) {
  21. .@{elNamespace}-input__inner {
  22. }
  23. }
  24. &--standard {
  25. &.@{elNamespace}-input-number--large {
  26. .@{elNamespace}-input__inner {
  27. // 62px = 右侧两个按钮2*30+中间竖线1px,15px为默认的左边间距
  28. }
  29. }
  30. &.@{elNamespace}-input-number--default {
  31. .@{elNamespace}-input__inner {
  32. }
  33. }
  34. &.@{elNamespace}-input-number--small {
  35. .@{elNamespace}-input__inner {
  36. }
  37. .@{elNamespace}-input-number__decrease {
  38. // small 状态下right 32px异常需要覆盖
  39. right: 24px;
  40. }
  41. }
  42. .@{elNamespace}-input-number__decrease {
  43. left: auto;
  44. right: 32px;
  45. // 按钮30px+右边框1px+左边竖线1px
  46. background: inherit;
  47. border: none;
  48. }
  49. .@{elNamespace}-input-number__increase {
  50. background: inherit;
  51. border: none;
  52. &::before {
  53. content: '';
  54. position: absolute;
  55. left: 0;
  56. top: 8px;
  57. bottom: 8px;
  58. width: 1px;
  59. background: var(--el-border-color);
  60. }
  61. }
  62. }
  63. }
  64. .@{elNamespace}-input-number {
  65. &.cip-number {
  66. &--standard {
  67. &.@{elNamespace}-input-number--large {
  68. .@{elNamespace}-input-number__decrease {
  69. right: 40px;
  70. // 按钮38px+右边框1px+左边竖线1px
  71. }
  72. }
  73. }
  74. }
  75. }