index.tsx 408 Bytes
import { Select, type SelectProps } from 'antd';

export type USelectProps = SelectProps;

/**
 * 项目统一下拉选择,默认开启 allowClear。
 * 当前不转发 ref 以规避各 antd 大版本 ref 类型差异;如需 ref 再按需补充。
 */
export function USelect(props: USelectProps) {
  const { allowClear = true, ...rest } = props;
  return <Select allowClear={allowClear} {...rest} />;
}