mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 00:08:27 +08:00
6a5e7ded43
* refactor: remove IE compatible logic * fix: fix * fix: fix * fix: fix
30 lines
697 B
TypeScript
30 lines
697 B
TypeScript
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
|
|
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
export interface ComponentToken {
|
|
// Component token here
|
|
}
|
|
|
|
interface SpaceToken extends FullToken<'Space'> {
|
|
// Custom token here
|
|
}
|
|
|
|
const genSpaceCompactStyle: GenerateStyle<SpaceToken> = (token) => {
|
|
const { componentCls } = token;
|
|
|
|
return {
|
|
[componentCls]: {
|
|
'&-block': {
|
|
display: 'flex',
|
|
width: '100%',
|
|
},
|
|
'&-vertical': {
|
|
flexDirection: 'column',
|
|
},
|
|
},
|
|
};
|
|
};
|
|
|
|
// ============================== Export ==============================
|
|
export default genSpaceCompactStyle;
|