import { AutoComplete } from "../../../src/core/AutoComplete"; import type { StoryObj } from "@storybook/react"; import React from "react"; /** * AutoComplete 组件是基于 antd AutoComplete 的封装,提供了自动完成输入功能。 * * ### 参数说明 * * | 参数 | 说明 | 类型 | 默认值 | * | --- | --- | --- | --- | * | value | 指定当前输入的值 | string | - | * | defaultValue | 指定默认输入的值 | string | - | * | options | 自动完成的数据源 | { value: string; label: string }[] | - | * | placeholder | 输入框提示文本 | string | - | * | disabled | 是否禁用 | boolean | false | * | onChange | 输入值变化时的回调 | function(value) | - | * | onSelect | 选中选项时的回调 | function(value, option) | - | * * 更多属性请参考 antd AutoComplete 组件文档 */ declare const meta: { component: React.FC & { "data-testid"?: string | undefined; }>; title: "Core/AutoComplete | 自动完成"; args: { placeholder: string; options: { value: string; label: string; }[]; }; }; export default meta; type Story = StoryObj; /** * AutoComplete 组件的基础用法,支持输入时自动匹配并显示相关选项。 */ export declare const Basic: Story; /** * 禁用状态下,输入框不可编辑。 */ export declare const Disabled: Story;