mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
16 lines
488 B
TypeScript
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 };
|