@aplus-frontend/antdv
Version:
Vue basic component library maintained based on ant-design-vue
24 lines • 575 B
JavaScript
const genButtonStyle = 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;