mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-23 18:50:06 +08:00
chore: remove useless var (#51689)
This commit is contained in:
parent
64cba3d316
commit
0d5f4ff95c
@ -525,10 +525,11 @@ const genButtonStyle = (token: ButtonToken, prefixCls = ''): CSSInterpolation =>
|
|||||||
buttonPaddingHorizontal,
|
buttonPaddingHorizontal,
|
||||||
iconCls,
|
iconCls,
|
||||||
buttonPaddingVertical,
|
buttonPaddingVertical,
|
||||||
|
motionDurationSlow,
|
||||||
|
motionEaseInOut,
|
||||||
|
buttonIconOnlyFontSize,
|
||||||
|
opacityLoading,
|
||||||
} = token;
|
} = token;
|
||||||
|
|
||||||
const iconOnlyCls = `${componentCls}-icon-only`;
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
[prefixCls]: {
|
[prefixCls]: {
|
||||||
@ -538,7 +539,7 @@ const genButtonStyle = (token: ButtonToken, prefixCls = ''): CSSInterpolation =>
|
|||||||
padding: `${unit(buttonPaddingVertical!)} ${unit(buttonPaddingHorizontal!)}`,
|
padding: `${unit(buttonPaddingVertical!)} ${unit(buttonPaddingHorizontal!)}`,
|
||||||
borderRadius,
|
borderRadius,
|
||||||
|
|
||||||
[`&${iconOnlyCls}`]: {
|
[`&${componentCls}-icon-only`]: {
|
||||||
width: controlHeight,
|
width: controlHeight,
|
||||||
paddingInline: 0,
|
paddingInline: 0,
|
||||||
|
|
||||||
@ -552,22 +553,21 @@ const genButtonStyle = (token: ButtonToken, prefixCls = ''): CSSInterpolation =>
|
|||||||
},
|
},
|
||||||
|
|
||||||
[iconCls]: {
|
[iconCls]: {
|
||||||
fontSize: token.buttonIconOnlyFontSize,
|
fontSize: buttonIconOnlyFontSize,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// Loading
|
// Loading
|
||||||
[`&${componentCls}-loading`]: {
|
[`&${componentCls}-loading`]: {
|
||||||
opacity: token.opacityLoading,
|
opacity: opacityLoading,
|
||||||
cursor: 'default',
|
cursor: 'default',
|
||||||
},
|
},
|
||||||
|
|
||||||
[`${componentCls}-loading-icon`]: {
|
[`${componentCls}-loading-icon`]: {
|
||||||
transition: `width ${token.motionDurationSlow} ${token.motionEaseInOut}, opacity ${token.motionDurationSlow} ${token.motionEaseInOut}`,
|
transition: `width ${motionDurationSlow} ${motionEaseInOut}, opacity ${motionDurationSlow} ${motionEaseInOut}`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// Shape - patch prefixCls again to override solid border radius style
|
// Shape - patch prefixCls again to override solid border radius style
|
||||||
{
|
{
|
||||||
[`${componentCls}${componentCls}-circle${prefixCls}`]: genCircleButtonStyle(token),
|
[`${componentCls}${componentCls}-circle${prefixCls}`]: genCircleButtonStyle(token),
|
||||||
|
Loading…
Reference in New Issue
Block a user