@@ -583,37 +583,35 @@ export default defineComponent({
583
583
const { inputValue } = reactData
584
584
const suffixSlot = slots . suffix
585
585
const isClearable = computeIsClearable . value
586
- return isClearable || suffixSlot || suffixIcon
587
- ? h ( 'div' , {
588
- class : [ 'vxe-number-input--suffix' , {
589
- 'is--clear' : isClearable && ! disabled && ! ( inputValue === '' || XEUtils . eqNull ( inputValue ) )
590
- } ]
591
- } , [
592
- isClearable
593
- ? h ( 'div' , {
594
- class : 'vxe-number-input--clear-icon' ,
595
- onClick : clearValueEvent
596
- } , [
597
- h ( 'i' , {
598
- class : getIcon ( ) . INPUT_CLEAR
599
- } )
600
- ] )
601
- : createCommentVNode ( ) ,
602
- renderExtraSuffixIcon ( ) ,
603
- suffixSlot || suffixIcon
604
- ? h ( 'div' , {
605
- class : 'vxe-number-input--suffix-icon' ,
606
- onClick : clickSuffixEvent
607
- } , suffixSlot
608
- ? getSlotVNs ( suffixSlot ( { } ) )
609
- : [
610
- h ( 'i' , {
611
- class : suffixIcon
612
- } )
613
- ] )
614
- : createCommentVNode ( )
615
- ] )
616
- : null
586
+ return h ( 'div' , {
587
+ class : [ 'vxe-number-input--suffix' , {
588
+ 'is--clear' : isClearable && ! disabled && ! ( inputValue === '' || XEUtils . eqNull ( inputValue ) )
589
+ } ]
590
+ } , [
591
+ isClearable
592
+ ? h ( 'div' , {
593
+ class : 'vxe-number-input--clear-icon' ,
594
+ onClick : clearValueEvent
595
+ } , [
596
+ h ( 'i' , {
597
+ class : getIcon ( ) . INPUT_CLEAR
598
+ } )
599
+ ] )
600
+ : createCommentVNode ( ) ,
601
+ renderExtraSuffixIcon ( ) ,
602
+ suffixSlot || suffixIcon
603
+ ? h ( 'div' , {
604
+ class : 'vxe-number-input--suffix-icon' ,
605
+ onClick : clickSuffixEvent
606
+ } , suffixSlot
607
+ ? getSlotVNs ( suffixSlot ( { } ) )
608
+ : [
609
+ h ( 'i' , {
610
+ class : suffixIcon
611
+ } )
612
+ ] )
613
+ : createCommentVNode ( )
614
+ ] )
617
615
}
618
616
619
617
const renderExtraSuffixIcon = ( ) => {
0 commit comments