File tree Expand file tree Collapse file tree 5 files changed +56
-56
lines changed
packages/utils/src/components/FieldLabel Expand file tree Collapse file tree 5 files changed +56
-56
lines changed Original file line number Diff line number Diff line change 1
- import { CloseOutlined , DownOutlined } from '@ant-design/icons' ;
1
+ import { CloseCircleFilled , DownOutlined } from '@ant-design/icons' ;
2
2
import { useIntl } from '@ant-design/pro-provider' ;
3
3
import { ConfigProvider } from 'antd' ;
4
4
import type { SizeType } from 'antd/lib/config-provider/SizeContext' ;
@@ -164,7 +164,7 @@ const FieldLabelFunction: React.ForwardRefRenderFunction<
164
164
>
165
165
{ getTextByValue ( label , value ) }
166
166
{ ( value || value === 0 ) && allowClear && (
167
- < CloseOutlined
167
+ < CloseCircleFilled
168
168
role = "button"
169
169
title = { intl . getMessage ( 'form.lightFilter.clear' , '清除' ) }
170
170
className = { classNames (
@@ -182,7 +182,11 @@ const FieldLabelFunction: React.ForwardRefRenderFunction<
182
182
{ downIcon !== false
183
183
? downIcon ?? (
184
184
< DownOutlined
185
- className = { classNames ( `${ prefixCls } -icon` , `${ prefixCls } -arrow` ) }
185
+ className = { classNames (
186
+ `${ prefixCls } -icon` ,
187
+ hashId ,
188
+ `${ prefixCls } -arrow` ,
189
+ ) }
186
190
/>
187
191
)
188
192
: null }
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const genProStyle: GenerateStyle<ProToken> = (token) => {
23
23
} ,
24
24
'&-active' : {
25
25
paddingBlock : 0 ,
26
- paddingInline : 12 ,
26
+ paddingInline : 8 ,
27
27
backgroundColor : token . colorBgTextHover ,
28
28
[ `&${ token . componentCls } -allow-clear:hover:not(${ token . componentCls } -disabled)` ] :
29
29
{
@@ -39,17 +39,13 @@ const genProStyle: GenerateStyle<ProToken> = (token) => {
39
39
paddingBlock : 1 ,
40
40
paddingInline : 1 ,
41
41
color : token . colorIcon ,
42
- fontSize : '12px' ,
42
+ fontSize : 14 ,
43
43
verticalAlign : 'middle' ,
44
44
[ `&${ token . componentCls } -close` ] : {
45
45
display : 'none' ,
46
- height : 1 ,
47
46
alignItems : 'center' ,
48
47
justifyContent : 'center' ,
49
- width : 12 ,
50
- color : token . colorBgContainer ,
51
- fontSize : 8 ,
52
- backgroundColor : token . colorTextPlaceholder ,
48
+ color : token . colorTextPlaceholder ,
53
49
borderRadius : '50%' ,
54
50
'&:hover' : {
55
51
color : token . colorIcon ,
@@ -87,7 +83,7 @@ const genProStyle: GenerateStyle<ProToken> = (token) => {
87
83
'&-bordered' : {
88
84
height : '32px' ,
89
85
paddingBlock : 0 ,
90
- paddingInline : 12 ,
86
+ paddingInline : 8 ,
91
87
border : `${ token . lineWidth } px solid ${ token . colorBorder } ` ,
92
88
borderRadius : '@border-radius-base' ,
93
89
} ,
You can’t perform that action at this time.
0 commit comments