import React from "react"; import { SelectMultiple } from "./SelectMultiple"; import { SelectProps } from "./SelectProps"; import { NativeSelect } from "./NativeSelect"; import { SimulateSelect } from "./SimulateSelect"; import { forwardRefWithStatics } from "../_util/forward-ref-with-statics"; export const Select = forwardRefWithStatics( function Select( { type, ...props }: SelectProps, ref: React.Ref ) { // 兼容早期原生下拉选择 if (type === "native") { return ; } return ; }, { Multiple: SelectMultiple, defaultLabelAlign: "middle", } ); Select.displayName = "Select";