mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-01 06:49:32 +08:00
8fb97df92c
* feat: Paginaition size change select enable search close https://github.com/ant-design/ant-design/issues/27684 * test: update snapshot * test: update snapshot
16 lines
510 B
TypeScript
16 lines
510 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} showSearch size="small" />;
|
|
const MiddleSelect: CompoundedComponent = (props) => <Select {...props} showSearch size="middle" />;
|
|
|
|
MiniSelect.Option = Select.Option;
|
|
MiddleSelect.Option = Select.Option;
|
|
|
|
export { MiniSelect, MiddleSelect };
|