@cloudtower/eagle 0.35.2 → 0.35.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  import { MenuItemGroupProps } from "antd/lib/menu";
3
3
  import { ModalProps as AntdModalProps } from "antd/lib/modal";
4
4
  import { FC } from "react";
5
- export { Badge as AntdBadge, Button as AntdButton, Checkbox as AntdCheckbox, Collapse as AntdCollapse, Divider as AntdDivider, Drawer as AntdDrawer, Empty as AntdEmpty, Input as AntdInput, message as AntdMessage, Select as AntdSelect, Skeleton as AntdSkeleton, Steps as AntdSteps, Switch as AntdSwitch, Table as AntdTable, Timeline as AntdTimeline, TimePicker as AntdTimePicker, Tooltip as AntdTooltip, TreeSelect as AntdTreeSelect, AutoComplete, Col, DatePicker, Dropdown, Layout, List, Menu, Popover, Row, Tabs, Tree, Typography, Upload, } from "antd";
5
+ export { AutoComplete as AntdAutoComplete, Badge as AntdBadge, Button as AntdButton, Checkbox as AntdCheckbox, Collapse as AntdCollapse, Divider as AntdDivider, Drawer as AntdDrawer, Empty as AntdEmpty, Input as AntdInput, message as AntdMessage, Select as AntdSelect, Skeleton as AntdSkeleton, Steps as AntdSteps, Switch as AntdSwitch, Table as AntdTable, Timeline as AntdTimeline, TimePicker as AntdTimePicker, Tooltip as AntdTooltip, TreeSelect as AntdTreeSelect, Col, DatePicker, Dropdown, Layout, List, Menu, Popover, Row, Tabs, Tree, Typography, Upload, } from "antd";
6
6
  export declare const DatePickerRangePicker: import("react").ComponentClass<import("antd/lib/date-picker/generatePicker").RangePickerProps<import("moment").Moment>, any>;
7
7
  export declare const ListItem: import("antd/lib/list/Item").ListItemTypeProps;
8
8
  export declare const MenuItemGroup: import("react").ComponentType<MenuItemGroupProps>;
@@ -0,0 +1,3 @@
1
+ import { AutoCompleteProps } from "antd5";
2
+ import React from "react";
3
+ export declare const AutoComplete: React.FC<AutoCompleteProps>;
@@ -0,0 +1 @@
1
+ export * from "./AutoComplete";
@@ -5,6 +5,7 @@ export * from "./Antd5Dropdown";
5
5
  export * from "./Antd5Flex";
6
6
  export * from "./Antd5Tree";
7
7
  export * from "./Arch";
8
+ export * from "./AutoComplete";
8
9
  export * from "./Badge";
9
10
  export * from "./Banner";
10
11
  export * from "./BaseIcon";
@@ -0,0 +1,41 @@
1
+ import { AutoComplete } from "../../../src/core/AutoComplete";
2
+ import type { StoryObj } from "@storybook/react";
3
+ import React from "react";
4
+ /**
5
+ * AutoComplete 组件是基于 antd AutoComplete 的封装,提供了自动完成输入功能。
6
+ *
7
+ * ### 参数说明
8
+ *
9
+ * | 参数 | 说明 | 类型 | 默认值 |
10
+ * | --- | --- | --- | --- |
11
+ * | value | 指定当前输入的值 | string | - |
12
+ * | defaultValue | 指定默认输入的值 | string | - |
13
+ * | options | 自动完成的数据源 | { value: string; label: string }[] | - |
14
+ * | placeholder | 输入框提示文本 | string | - |
15
+ * | disabled | 是否禁用 | boolean | false |
16
+ * | onChange | 输入值变化时的回调 | function(value) | - |
17
+ * | onSelect | 选中选项时的回调 | function(value, option) | - |
18
+ *
19
+ * 更多属性请参考 antd AutoComplete 组件文档
20
+ */
21
+ declare const meta: {
22
+ component: React.FC<import("antd5").AutoCompleteProps<any, import("antd5/es/select").DefaultOptionType>>;
23
+ title: "Core/AutoComplete | 自动完成";
24
+ args: {
25
+ placeholder: string;
26
+ options: {
27
+ value: string;
28
+ label: string;
29
+ }[];
30
+ };
31
+ };
32
+ export default meta;
33
+ type Story = StoryObj<typeof AutoComplete>;
34
+ /**
35
+ * AutoComplete 组件的基础用法,支持输入时自动匹配并显示相关选项。
36
+ */
37
+ export declare const Basic: Story;
38
+ /**
39
+ * 禁用状态下,输入框不可编辑。
40
+ */
41
+ export declare const Disabled: Story;
@@ -75,3 +75,8 @@ export declare const DefaultFilterEnabled: Story;
75
75
  * 展示如何监听筛选状态变化
76
76
  */
77
77
  export declare const CustomSwitchCallback: Story;
78
+ /**
79
+ * Long Text Example
80
+ * Demonstrates how the component handles long text in descriptions and alert messages
81
+ */
82
+ export declare const LongText: Story;