2023-05-06 15:49:37 +08:00
|
|
|
import * as React from 'react';
|
2022-03-30 16:38:08 +08:00
|
|
|
import type { SelectProps } from '../select';
|
2022-06-22 14:57:09 +08:00
|
|
|
import Select from '../select';
|
2022-03-30 16:38:08 +08:00
|
|
|
|
2022-12-01 14:33:51 +08:00
|
|
|
type CompoundedComponent = React.FC<SelectProps> & {
|
2022-03-30 16:38:08 +08:00
|
|
|
Option: typeof Select.Option;
|
2022-12-01 14:33:51 +08:00
|
|
|
};
|
2022-03-30 16:38:08 +08:00
|
|
|
|
2023-05-25 19:26:47 +08:00
|
|
|
const MiniSelect: CompoundedComponent = (props) => <Select {...props} showSearch size="small" />;
|
|
|
|
const MiddleSelect: CompoundedComponent = (props) => <Select {...props} showSearch size="middle" />;
|
2022-03-30 16:38:08 +08:00
|
|
|
|
|
|
|
MiniSelect.Option = Select.Option;
|
|
|
|
MiddleSelect.Option = Select.Option;
|
|
|
|
|
|
|
|
export { MiniSelect, MiddleSelect };
|