ant-design-vue
Version:
An enterprise-class UI design language and Vue-based implementation
30 lines (29 loc) • 699 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
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
}
}
}
};
};
var _default = exports.default = genButtonStyle;
;