mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 13:59:11 +08:00
16 lines
520 B
TypeScript
16 lines
520 B
TypeScript
import * as React from 'react';
|
|
import type { SelectProps } from '../select';
|
|
import Select from '../select';
|
|
|
|
interface MiniOrMiddleSelectInterface extends React.FC<SelectProps> {
|
|
Option: typeof Select.Option;
|
|
}
|
|
|
|
const MiniSelect: MiniOrMiddleSelectInterface = (props) => <Select {...props} size="small" />;
|
|
const MiddleSelect: MiniOrMiddleSelectInterface = (props) => <Select {...props} size="middle" />;
|
|
|
|
MiniSelect.Option = Select.Option;
|
|
MiddleSelect.Option = Select.Option;
|
|
|
|
export { MiniSelect, MiddleSelect };
|