@@ -37,9 +37,9 @@ const Link = styled(Button)<{
37
37
font-family:${ props . $style . fontFamily } ;
38
38
font-weight:${ props . $style . textWeight } ;
39
39
border: ${ props . $style . borderWidth } solid ${ props . $style . border } ;
40
- border-radius:${ props . $style . radius ? props . $style . radius : ' 0px' } ;
41
- text-transform:${ props . $style . textTransform ? props . $style . textTransform : '' } ;
42
- text-decoration:${ props . $style . textDecoration ? props . $style . textDecoration : '' } !important;
40
+ border-radius:${ props . $style . radius ? props . $style . radius : " 0px" } ;
41
+ text-transform:${ props . $style . textTransform ? props . $style . textTransform : "" } ;
42
+ text-decoration:${ props . $style . textDecoration ? props . $style . textDecoration : "" } !important;
43
43
background-color: ${ props . $style . background } ;
44
44
&:hover {
45
45
color: ${ props . $style . hoverText } !important;
@@ -49,7 +49,7 @@ const Link = styled(Button)<{
49
49
}
50
50
` }
51
51
52
- &.ant-btn {
52
+ &.ant-btn {
53
53
display: inline-flex;
54
54
align-items: center;
55
55
> span {
@@ -101,18 +101,14 @@ const LinkTmpComp = (function () {
101
101
$style = { props . style }
102
102
loading = { props . loading }
103
103
disabled = { props . disabled }
104
- onClick = { ( ) => props . onEvent ( ' click' ) }
105
- type = { ' link' }
104
+ onClick = { ( ) => props . onEvent ( " click" ) }
105
+ type = { " link" }
106
106
>
107
107
{ hasChildren && (
108
108
< span >
109
- { hasIcon ( props . prefixIcon ) && (
110
- < IconWrapper > { props . prefixIcon } </ IconWrapper >
111
- ) }
109
+ { hasIcon ( props . prefixIcon ) && < IconWrapper > { props . prefixIcon } </ IconWrapper > }
112
110
{ ! ! props . text && props . text }
113
- { hasIcon ( props . suffixIcon ) && (
114
- < IconWrapper > { props . suffixIcon } </ IconWrapper >
115
- ) }
111
+ { hasIcon ( props . suffixIcon ) && < IconWrapper > { props . suffixIcon } </ IconWrapper > }
116
112
</ span >
117
113
) }
118
114
</ Link >
0 commit comments