mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-14 08:51:26 +08:00
15 lines
346 B
TypeScript
15 lines
346 B
TypeScript
|
import type { GenerateStyle, FullToken } from '../../_util/theme';
|
||
|
|
||
|
// =========================== Motion ===========================
|
||
|
const genRtlStyle: GenerateStyle<FullToken<'Upload'>> = token => {
|
||
|
const { componentCls } = token;
|
||
|
|
||
|
return {
|
||
|
[`${componentCls}-rtl`]: {
|
||
|
direction: 'rtl',
|
||
|
},
|
||
|
};
|
||
|
};
|
||
|
|
||
|
export default genRtlStyle;
|