mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 23:35:38 +08:00
bf7085882d
* feat: DatePicker support variant * chore: update snapshot * chore: update api table * chore: update snapshot
14 lines
426 B
TypeScript
14 lines
426 B
TypeScript
import type { PickerToken } from './token';
|
|
import type { CSSObject } from '@ant-design/cssinjs';
|
|
import { genBorderlessStyle, genFilledStyle, genOutlinedStyle } from '../../input/style/variants';
|
|
|
|
const genVariantsStyle = (token: PickerToken): CSSObject => ({
|
|
[token.componentCls]: {
|
|
...genOutlinedStyle(token),
|
|
...genFilledStyle(token),
|
|
...genBorderlessStyle(token),
|
|
},
|
|
});
|
|
|
|
export default genVariantsStyle;
|