mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
17 lines
583 B
TypeScript
17 lines
583 B
TypeScript
|
// Style as inline component
|
||
|
import { prepareToken } from '.';
|
||
|
import { genCompactItemStyle } from '../../style/compact-item';
|
||
|
import { genCompactItemVerticalStyle } from '../../style/compact-item-vertical';
|
||
|
import { genSubStyleComponent } from '../../theme/internal';
|
||
|
|
||
|
// ============================== Export ==============================
|
||
|
export default genSubStyleComponent(['Button', 'compact'], (token) => {
|
||
|
const buttonToken = prepareToken(token);
|
||
|
|
||
|
return [
|
||
|
// Space Compact
|
||
|
genCompactItemStyle(buttonToken),
|
||
|
genCompactItemVerticalStyle(buttonToken),
|
||
|
];
|
||
|
});
|