ant-design/components/pagination/Select.tsx

16 lines
510 B
TypeScript
Raw Normal View History

import * as React from 'react';
import type { SelectProps } from '../select';
2022-06-22 14:57:09 +08:00
import Select from '../select';
type CompoundedComponent = React.FC<SelectProps> & {
Option: typeof Select.Option;
};
const MiniSelect: CompoundedComponent = (props) => <Select {...props} showSearch size="small" />;
const MiddleSelect: CompoundedComponent = (props) => <Select {...props} showSearch size="middle" />;
MiniSelect.Option = Select.Option;
MiddleSelect.Option = Select.Option;
export { MiniSelect, MiddleSelect };