mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
5639e1a5ba
* feat: update token * feat: update token * fix: override ts definition * fix: rename token
27 lines
694 B
TypeScript
27 lines
694 B
TypeScript
import type { DropdownToken } from '.';
|
|
import type { GenerateStyle } from '../../_util/theme';
|
|
|
|
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;
|