.input-unit{ position: relative; .unit-text{ position: absolute; top: 7px; right: 10px; height: 20px; border-left: 2px solid var(--app-color-gray-235); line-height: 20px; padding-left: 11px; i{ width: 12px; height: 12px; margin-left: 4px; &::after{ width: 8px; height: 30.88%; } } } .isunit{ .ivu-input{ padding-right: 70px; } } .isunit-number .ivu-input-number-handler-wrap{ right: 70px; } .ivu-input-number{ width: 100%; } .ivu-input-number-input{ text-align: left; } .ivu-input-number-input:hover{ padding-right:22px; } }