minishouyin/node_modules/antd/es/steps/style/custom-icon.js

35 lines
929 B
JavaScript
Raw Permalink Normal View History

2025-11-12 11:35:57 +08:00
import { unit } from '@ant-design/cssinjs';
const genStepsCustomIconStyle = token => {
const {
componentCls,
customIconTop,
customIconSize,
customIconFontSize
} = token;
return {
[`${componentCls}-item-custom`]: {
[`> ${componentCls}-item-container > ${componentCls}-item-icon`]: {
height: 'auto',
background: 'none',
border: 0,
[`> ${componentCls}-icon`]: {
top: customIconTop,
width: customIconSize,
height: customIconSize,
fontSize: customIconFontSize,
lineHeight: unit(customIconSize)
}
}
},
// Only adjust horizontal customize icon width
[`&:not(${componentCls}-vertical)`]: {
[`${componentCls}-item-custom`]: {
[`${componentCls}-item-icon`]: {
width: 'auto',
background: 'none'
}
}
}
};
};
export default genStepsCustomIconStyle;