ant-design/components/date-picker/style/variants.ts
MadCcc bf7085882d
feat: DatePicker support variant (#46568)
* feat: DatePicker support variant

* chore: update snapshot

* chore: update api table

* chore: update snapshot
2023-12-21 20:43:40 +08:00

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;