mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
b4730281a9
* chore: init * chore: dropdown style * chore: more style * chore: icon style * chore: more style * chore: diff shows the cache path * chore: motion support * chore: more style * feat: status * chore: sub menu style * chore: all dropdown style * fix: ts * chore: update snapshot * Update components/dropdown/style/index.tsx Co-authored-by: MadCcc <1075746765@qq.com> * chore: update style Co-authored-by: MadCcc <1075746765@qq.com>
27 lines
704 B
TypeScript
27 lines
704 B
TypeScript
import type { GenerateStyle } from '../../_util/theme';
|
|
import type { DropdownToken } from '.';
|
|
|
|
const genButtonStyle: GenerateStyle<DropdownToken> = token => {
|
|
const { componentCls, antCls, paddingXS, colorLoadingOpacity } = token;
|
|
|
|
return {
|
|
[`${componentCls}-button`]: {
|
|
whiteSpace: 'nowrap',
|
|
|
|
[`&${antCls}-btn-group > ${antCls}-btn`]: {
|
|
[`&-loading, &-loading + ${antCls}-btn`]: {
|
|
cursor: 'default',
|
|
pointerEvents: 'none',
|
|
opacity: colorLoadingOpacity,
|
|
},
|
|
|
|
[`&:last-child:not(:first-child):not(${antCls}-btn-icon-only)`]: {
|
|
paddingInline: paddingXS,
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|
|
|
|
export default genButtonStyle;
|