mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 00:49:39 +08:00
9aec72c395
* chore: remove useless tsx support * add * add * style * fix lint * fix lint * fix lint * update locale entry * update locale entry * update locale entry * delete useless style
27 lines
699 B
TypeScript
27 lines
699 B
TypeScript
import type { DropdownToken } from '.';
|
|
import type { GenerateStyle } from '../../theme/internal';
|
|
|
|
const genButtonStyle: GenerateStyle<DropdownToken> = (token) => {
|
|
const { componentCls, antCls, paddingXS, opacityLoading } = token;
|
|
|
|
return {
|
|
[`${componentCls}-button`]: {
|
|
whiteSpace: 'nowrap',
|
|
|
|
[`&${antCls}-btn-group > ${antCls}-btn`]: {
|
|
[`&-loading, &-loading + ${antCls}-btn`]: {
|
|
cursor: 'default',
|
|
pointerEvents: 'none',
|
|
opacity: opacityLoading,
|
|
},
|
|
|
|
[`&:last-child:not(:first-child):not(${antCls}-btn-icon-only)`]: {
|
|
paddingInline: paddingXS,
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|
|
|
|
export default genButtonStyle;
|