@cloudtower/eagle 0.27.62 → 0.27.63

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.
@@ -1,4 +1,4 @@
1
- import { TooltipProps } from "../../spec";
2
1
  import React from "react";
2
+ import { TooltipProps } from "./tooltip.type";
3
3
  declare const Tooltip: React.FunctionComponent<TooltipProps>;
4
4
  export default Tooltip;
@@ -0,0 +1,7 @@
1
+ import { TooltipProps as AntdTooltipProps } from "antd/lib/tooltip";
2
+ export type TooltipProps = AntdTooltipProps & {
3
+ /**
4
+ * @deprecated `followMouse` 属性被弃用。followMouse 未被使用,且实现效果存在闪烁问题
5
+ */
6
+ followMouse?: boolean;
7
+ };
@@ -7,9 +7,10 @@ export * from "./core/Cascader/cascader.widget";
7
7
  export { RenderMenuItem } from "./core/DropdownMenu";
8
8
  export { default as DropdownMenu } from "./core/DropdownMenu";
9
9
  export * from "./core/TableForm/types";
10
+ export * from "./core/Tooltip/tooltip.type";
10
11
  export * from "./coreX";
11
12
  export { useElementsSize } from "./hooks";
12
- export type { AntdInputComponentType, AntdTreeSelectComponentType, BaseEnumProps, ButtonProps, DateTimeRangeProps, EnumProps, FloatProps, InputSize, IntegerFieldProps, IntFieldProps, IntProps, Kit, KitSelectProps, ModalProps, RequiredColumnProps, SorterOrder, StringProps, SummaryTableItem, TableProps, TagColor, TextAreaProps, TooltipProps, WizardSteps, } from "./spec";
13
+ export type { AntdInputComponentType, AntdTreeSelectComponentType, BaseEnumProps, ButtonProps, DateTimeRangeProps, EnumProps, FloatProps, InputSize, IntegerFieldProps, IntFieldProps, IntProps, Kit, KitSelectProps, ModalProps, RequiredColumnProps, SorterOrder, StringProps, SummaryTableItem, TableProps, TagColor, TextAreaProps, WizardSteps, } from "./spec";
13
14
  export * from "./spec/type";
14
15
  export type { CloseCb, GetModalProps, IModalProps, KitRootState, ModalType, } from "./store";
15
16
  export { closeModal, ModalActions, popModal, pushModal, UIKitStore, } from "./store";
@@ -3,6 +3,7 @@ import { CardProps } from "../core/Card";
3
3
  import { IEmptyProps } from "../core/Empty";
4
4
  import { MessageApi } from "../core/message";
5
5
  import { TableFormHandle, TableFormProps } from "../core/TableForm/types";
6
+ import { TooltipProps } from "../core/Tooltip/tooltip.type";
6
7
  import { TruncatePropTypes } from "../core/Truncate";
7
8
  import type { OverflowTooltipProps } from "../coreX/OverflowTooltip/overflowTooltip.type";
8
9
  import { SizeType } from "antd/es/config-provider/SizeContext";
@@ -48,7 +49,6 @@ import { TabPaneProps, TabsProps } from "antd/lib/tabs";
48
49
  import { TagProps } from "antd/lib/tag";
49
50
  import { TimePickerProps } from "antd/lib/time-picker";
50
51
  import { TimeLineItemProps, TimelineProps } from "antd/lib/timeline";
51
- import { TooltipProps as AntdTooltipProps } from "antd/lib/tooltip";
52
52
  import { TreeProps as AntdTreeProps } from "antd/lib/tree";
53
53
  import type TreeSelect from "antd/lib/tree-select";
54
54
  import { TextProps } from "antd/lib/typography/Text";
@@ -265,9 +265,6 @@ export interface FloatProps {
265
265
  size?: InputSize;
266
266
  onBlur?: (input: FieldBaseProps<number, HTMLInputElement>["input"], event?: React.FocusEvent<HTMLInputElement>) => void;
267
267
  }
268
- export type TooltipProps = AntdTooltipProps & {
269
- followMouse?: boolean;
270
- };
271
268
  export type FieldBaseProps<V = any, T extends HTMLElement = HTMLElement> = FieldRenderProps<V, T> & {
272
269
  disabled?: boolean;
273
270
  className?: string;
@@ -1,6 +1,33 @@
1
- import { ComponentMeta, ComponentStory } from "@storybook/react";
1
+ import Tooltip from "../../../src/core/Tooltip";
2
+ import { StoryObj } from "@storybook/react";
2
3
  import React from "react";
3
- declare const _default: ComponentMeta<React.FunctionComponent<import("../../../src").TooltipProps>>;
4
- export default _default;
5
- export declare const TopLeft: ComponentStory<React.FunctionComponent<import("../../../src").TooltipProps>>;
6
- export declare const Top: ComponentStory<React.FunctionComponent<import("../../../src").TooltipProps>>;
4
+ /**
5
+ * * antd4 组件
6
+ * * 更多 props 请参考:https://4x-ant-design.antgroup.com/components/tooltip-cn/#API
7
+ * * 自定义 props 已在表格进行说明
8
+ *
9
+ */
10
+ declare const meta: {
11
+ component: React.FunctionComponent<import("../../../src").TooltipProps>;
12
+ title: "Core/Tooltip | 悬浮提示";
13
+ parameters: {
14
+ design: {
15
+ type: string;
16
+ url: string;
17
+ };
18
+ };
19
+ };
20
+ export default meta;
21
+ type Story = StoryObj<typeof Tooltip>;
22
+ /**
23
+ * Tooltip 与 按钮组件结合
24
+ */
25
+ export declare const TooltipWithButton: Story;
26
+ /**
27
+ * 自定义 tooltip 放置位置
28
+ */
29
+ export declare const Placement: Story;
30
+ /**
31
+ * 自定义悬浮提示 overlay 部分样式
32
+ */
33
+ export declare const CustomOverlay: Story;