@cloudtower/eagle 0.30.9 → 0.30.10
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.
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +1210 -1201
- package/dist/esm/stats1.html +1 -1
- package/dist/src/core/Tooltip/EllipsisTooltipContent.d.ts +4 -0
- package/dist/src/core/Tooltip/tooltip.type.d.ts +22 -0
- package/dist/src/core/Tooltip/tooltip.widget.d.ts +5 -0
- package/dist/stories/docs/core/EllipsisTooltipContent.stories.d.ts +24 -0
- package/dist/style.css +1129 -1123
- package/package.json +4 -4
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LinariaClassName } from "@linaria/core";
|
|
1
3
|
import { TooltipProps as AntdTooltipProps } from "antd/lib/tooltip";
|
|
2
4
|
export type TooltipProps = AntdTooltipProps & {
|
|
3
5
|
/**
|
|
@@ -5,3 +7,23 @@ export type TooltipProps = AntdTooltipProps & {
|
|
|
5
7
|
*/
|
|
6
8
|
followMouse?: boolean;
|
|
7
9
|
};
|
|
10
|
+
export type EllipsisContentType = {
|
|
11
|
+
/**
|
|
12
|
+
* tooltip content 内容
|
|
13
|
+
*/
|
|
14
|
+
tooltip: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* 内容区的最大高度
|
|
17
|
+
*
|
|
18
|
+
* e.g. 文本限制行数 = 行数 * line-height
|
|
19
|
+
*/
|
|
20
|
+
maxHeight?: number;
|
|
21
|
+
/**
|
|
22
|
+
* 自定义样式类名
|
|
23
|
+
*/
|
|
24
|
+
contentWrapperClassName?: LinariaClassName;
|
|
25
|
+
/**
|
|
26
|
+
* 多行溢出省略提示
|
|
27
|
+
*/
|
|
28
|
+
ellipsisTips?: string;
|
|
29
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import EllipsisTooltipContent from "../../../src/core/Tooltip/EllipsisTooltipContent";
|
|
2
|
+
import { StoryObj } from "@storybook/react";
|
|
3
|
+
import React from "react";
|
|
4
|
+
/**
|
|
5
|
+
* * Tooltip content 组件
|
|
6
|
+
* * 搭配 Tooltip 与 OverflowTooltip 使用
|
|
7
|
+
* * 使用时,Tooltip 与 OverflowTooltip 需要配合 destroyTooltipOnHide 为 true 使用
|
|
8
|
+
* * 自定义 props 已在表格进行说明
|
|
9
|
+
*/
|
|
10
|
+
declare const meta: {
|
|
11
|
+
component: ({ tooltip, maxHeight, contentWrapperClassName, ellipsisTips, }: import("../../../src/core/Tooltip").EllipsisContentType) => React.JSX.Element;
|
|
12
|
+
title: "Core/EllipsisTooltipContent | Tooltip content 过长省略";
|
|
13
|
+
parameters: {
|
|
14
|
+
design: {
|
|
15
|
+
type: string;
|
|
16
|
+
url: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default meta;
|
|
21
|
+
type Story = StoryObj<typeof EllipsisTooltipContent>;
|
|
22
|
+
export declare const ellipsisTooltipsContentInTooltip: Story;
|
|
23
|
+
export declare const ellipsisTooltipsContentInOverflowTooltip: Story;
|
|
24
|
+
export declare const ellipsisTooltipsReactNodeContentInTooltip: Story;
|