# file-select LLMs.txt > 供 LLM 快速理解 `@flatbiz/antd/file-select` 的使用方式。 ## 模块定位 文件选择,内部不调用服务上传 ## 导入方式 ```ts import { FileSelect } from '@flatbiz/antd/file-select'; // 也可以从主入口导入:import { ... } from '@flatbiz/antd'; ``` ## 公开导出 - `FileSelect` - 文件选择,内部不调用服务上传 - `FileSelectProps` - `* from ./file-select.jsx` ## 依赖的 antd 能力 `Button`、`Upload` ## Props / 配置要点 ### FileSelectProps - `buttonName`(可选):: string | ReactElement - `children`(可选):: ReactNode - `direction`(可选):: 'horizontal' | 'hertical';上传按钮与文件排版 默认:horizontal - `onChange`(可选):: (file?: RcFile) => void - `className`(可选):: string - `isDragger`(可选):: boolean - `draggerTriggerText`(可选):: string - `draggerLayoutSize`(可选):: 'default' | 'middle' | 'large' ## 使用规则与行为 - 上传按钮与文件排版 默认:horizontal - 可选择文件格式,默认:.xlsx,.xls - 文件选择,内部不调用服务上传 ## 基础示例 ```tsx import { FileSelect, type FileSelectProps } from '@flatbiz/antd/file-select'; const props: FileSelectProps = { // 按业务传入必要参数 }; ; ``` ## 源码索引 - `src/file-select/file-select.tsx` - `src/file-select/index.ts` ## 给 LLM 的注意事项 - 优先使用 `@flatbiz/antd/file-select` 或主入口 `@flatbiz/antd` 的公开导出,不要引用内部实现文件。 - 当 Props 与 antd 原组件同名能力冲突时,以本模块导出的 Props 类型为准。 - 若文档未覆盖某个边缘参数,请读取上方源码索引中的类型定义和 JSDoc。