File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ export function DInput(props: DInputProps): JSX.Element | null {
171
171
{ ...restProps }
172
172
className = { getClassName ( restProps . className , `${ dPrefix } input` , {
173
173
[ `${ dPrefix } input--${ size } ` ] : size ,
174
- [ `${ dPrefix } input--number ` ] : dType === 'number' ,
174
+ [ `${ dPrefix } input--button-right ` ] : dType === 'number' && dNumbetButton && ! disabled && ! checkNodeExist ( dSuffix ) ,
175
175
'is-disabled' : disabled ,
176
176
'is-focus' : isFocus ,
177
177
} ) }
Original file line number Diff line number Diff line change 44
44
border-color : var (--#{$rd-prefix}color-primary-lighter );
45
45
}
46
46
47
- @include m (number) {
48
- & :not (.is-disabled ) {
49
- padding-right : 0 ;
50
- @include e (suffix ) {
51
- margin-right : calc (var (--#{$rd-prefix}horizontal-space-size ) - 1px );
52
- }
53
- }
47
+ @include m (button- right) {
48
+ padding-right : 0 ;
54
49
}
55
50
56
51
@include e (input) {
You can’t perform that action at this time.
0 commit comments