You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import type { DropdownToken } from '.';
|
|
|
|
import type { GenerateStyle } from '../../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;
|