ant-design/components/pagination/Select.tsx
Dave ae62ef7087
[v4] Fix(types): external module type error (CompoundedComponent) (#39058)
* fix(types): external module type error (CompoundedComponent)

* feat(types): export CountdownProps
2023-01-03 11:46:48 +08:00

16 lines
488 B
TypeScript

import * as React from 'react';
import type { SelectProps } from '../select';
import Select from '../select';
type CompoundedComponent = React.FC<SelectProps> & {
Option: typeof Select.Option;
};
const MiniSelect: CompoundedComponent = (props) => <Select {...props} size="small" />;
const MiddleSelect: CompoundedComponent = (props) => <Select {...props} size="middle" />;
MiniSelect.Option = Select.Option;
MiddleSelect.Option = Select.Option;
export { MiniSelect, MiddleSelect };