@unicom-cloud/ui 0.8.102 → 0.8.103

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.
Files changed (40) hide show
  1. package/Copy.js +1 -1
  2. package/LiquidFill.js +1 -1
  3. package/Marquee.js +2 -2
  4. package/QrCode.js +1 -1
  5. package/Tour.js +1 -1
  6. package/components/common/space/index.js +24 -24
  7. package/copy/index.js +1 -1
  8. package/grid/Col.js +32 -32
  9. package/grid/Row.js +53 -44
  10. package/liquid-fill/index.js +1 -1
  11. package/liquid-fill/interface.js +1 -0
  12. package/marquee/index.js +138 -221
  13. package/marquee/interface.js +1 -0
  14. package/marquee-/index.js +260 -0
  15. package/marquee-/interface.js +1 -0
  16. package/package.json +1 -1
  17. package/qr-code/index.js +1 -1
  18. package/style.css +1 -1
  19. package/table/hook/useThResizable.js +1 -1
  20. package/table/th-resizable/index.js +1 -1
  21. package/tour/index.js +1 -1
  22. package/tour/interface.js +1 -0
  23. package/types/pc/config-provider/interface.d.ts +8 -8
  24. package/types/pc/grid/Row.d.ts +2 -1
  25. package/types/pc/index.d.ts +4 -4
  26. package/types/pc/liquid-fill/index.d.ts +2 -113
  27. package/types/pc/liquid-fill/interface.d.ts +113 -0
  28. package/types/pc/marquee/index.d.ts +3 -60
  29. package/types/pc/marquee/interface.d.ts +95 -0
  30. package/types/pc/marquee-/index.d.ts +8 -0
  31. package/types/pc/marquee-/interface.d.ts +56 -0
  32. package/types/pc/qr-code/index.d.ts +1 -31
  33. package/types/pc/qr-code/interface.d.ts +26 -33
  34. package/types/pc/tour/index.d.ts +2 -45
  35. package/types/pc/tour/interface.d.ts +46 -0
  36. package/types/pc/utils/responsiveObserve.d.ts +8 -4
  37. package/typography/Ellipsis.js +1 -1
  38. package/typography/Operations.js +1 -1
  39. package/utils/responsiveObserve.js +32 -25
  40. package/version/index.js +1 -1
@@ -39,6 +39,7 @@ import "../../dist/react-transition-group/src/SwitchTransition.js";
39
39
  import "../../dist/react-transition-group/chunk/CPfP7aNL.js";
40
40
  import "../../dist/react-transition-group/src/TransitionGroup.js";
41
41
  import "../../components/common/utils/reactDOM.js";
42
+ import "uuid";
42
43
  import "@unicom-cloud/utils/file/saveAs";
43
44
  import "@unicom-cloud/utils/screenfull";
44
45
  import "@unicom-cloud/utils/tinycolor";
@@ -47,7 +48,6 @@ import "@unicom-cloud/utils/constant/ui.js";
47
48
  import "react-is";
48
49
  import "@unicom-cloud/utils/tree";
49
50
  import { isArray as C } from "@unicom-cloud/utils/is";
50
- import "uuid";
51
51
  import "../../dist/validate/src/index.js";
52
52
  import "@unicom-cloud/utils/constant/keyboardCode";
53
53
  import z from "../th-resizable/index.js";
@@ -40,6 +40,7 @@ import "../../dist/react-transition-group/src/SwitchTransition.js";
40
40
  import "../../dist/react-transition-group/chunk/CPfP7aNL.js";
41
41
  import "../../dist/react-transition-group/src/TransitionGroup.js";
42
42
  import "../../components/common/utils/reactDOM.js";
43
+ import "uuid";
43
44
  import "@unicom-cloud/utils/file/saveAs";
44
45
  import "@unicom-cloud/utils/screenfull";
45
46
  import "@unicom-cloud/utils/tinycolor";
@@ -48,7 +49,6 @@ import "@unicom-cloud/utils/constant/ui.js";
48
49
  import "react-is";
49
50
  import "@unicom-cloud/utils/tree";
50
51
  import { isFunction as E, isPlainObject as T } from "@unicom-cloud/utils/is";
51
- import "uuid";
52
52
  import "../../dist/validate/src/index.js";
53
53
  import "@unicom-cloud/utils/constant/keyboardCode";
54
54
  import { defaultComponent as D } from "../constant.js";
package/tour/index.js CHANGED
@@ -52,6 +52,7 @@ import "../dist/react-transition-group/src/SwitchTransition.js";
52
52
  import "../dist/react-transition-group/chunk/CPfP7aNL.js";
53
53
  import "../dist/react-transition-group/src/TransitionGroup.js";
54
54
  import { resizeObserver as yt } from "../components/common/utils/resizeObserver.js";
55
+ import "uuid";
55
56
  import "@unicom-cloud/utils/file/saveAs";
56
57
  import "@unicom-cloud/utils/screenfull";
57
58
  import "@unicom-cloud/utils/tinycolor";
@@ -60,7 +61,6 @@ import "@unicom-cloud/utils/constant/ui.js";
60
61
  import "react-is";
61
62
  import "@unicom-cloud/utils/tree";
62
63
  import "@unicom-cloud/utils/is";
63
- import "uuid";
64
64
  import "../dist/validate/src/index.js";
65
65
  import $t from "../config-provider/context.js";
66
66
  const xt = {
@@ -0,0 +1 @@
1
+
@@ -14,11 +14,11 @@ import { CarouselProps } from '../carousel/interface';
14
14
  import { CascaderProps } from '../cascader/interface';
15
15
  import { CheckboxProps } from '../checkbox/interface';
16
16
  import { CollapseProps } from '../collapse/interface';
17
- import { ColorPickerProps } from '../color-picker';
17
+ import { ColorPickerProps } from '../color-picker/interface';
18
18
  import { CommentProps } from '../comment/interface';
19
19
  import { PickerProps as DatePickerCommonProps } from '../date-picker/interface';
20
20
  import { DescriptionsProps } from '../descriptions/interface';
21
- import { DetailsProps } from '../details';
21
+ import { DetailsProps } from '../details/interface';
22
22
  import { DividerProps } from '../divider/interface';
23
23
  import { DrawerProps } from '../drawer/interface';
24
24
  import { DropdownButtonProps, DropdownProps } from '../dropdown/interface';
@@ -32,11 +32,11 @@ import { InputTagProps } from '../input-tag/interface';
32
32
  import { InputProps } from '../input/interface';
33
33
  import { LayoutProps } from '../layout/interface';
34
34
  import { LinkProps } from '../link/interface';
35
- import { LiquidFillProps } from '../liquid-fill';
35
+ import { LiquidFillProps } from '../liquid-fill/interface';
36
36
  import { ListItemProps, ListProps } from '../list/interface';
37
- import type { LoadingProps } from '../loading';
37
+ import type { LoadingProps } from '../loading/interface';
38
38
  import { Locale } from '../locale/interface';
39
- import type { MarqueeProps } from '../marquee';
39
+ import type { MarqueeProps } from '../marquee/interface';
40
40
  import { MentionsProps } from '../mentions/interface';
41
41
  import { MenuProps } from '../menu/interface';
42
42
  import { ModalProps } from '../modal/interface';
@@ -45,7 +45,7 @@ import { PaginationProps } from '../pagination/interface';
45
45
  import { PopconfirmProps } from '../popconfirm/interface';
46
46
  import { PopoverProps } from '../popover/interface';
47
47
  import { ProgressProps } from '../progress/interface';
48
- import { QRCodeProps } from '../qr-code';
48
+ import { QRCodeProps } from '../qr-code/interface';
49
49
  import { RadioGroupProps, RadioProps } from '../radio/interface';
50
50
  import { RateProps } from '../rate/interface';
51
51
  import { ResizeBoxProps } from '../resize-box/interface';
@@ -66,12 +66,12 @@ import { TagProps } from '../tag/interface';
66
66
  import { PickerProps as TimePickerCommonProps } from '../time-picker/interface';
67
67
  import { TimelineItemProps, TimelineProps } from '../timeline/interface';
68
68
  import { TooltipProps } from '../tooltip/interface';
69
- import { TourProps } from '../tour';
69
+ import { TourProps } from '../tour/interface';
70
70
  import { TransferProps } from '../transfer/interface';
71
71
  import { TreeSelectProps } from '../tree-select/interface';
72
72
  import { TreeProps } from '../tree/interface';
73
73
  import { TriggerProps } from '../trigger/interface';
74
- import { TypographyEllipsisProps, type TypographyProps } from '../typography';
74
+ import { TypographyEllipsisProps, type TypographyProps } from '../typography/interface';
75
75
  import { UploadProps } from '../upload/interface';
76
76
  import { Omit } from '../utils/type';
77
77
  import { VerificationCodeProps } from '../verification-code/interface';
@@ -1,4 +1,5 @@
1
+ import React from 'react';
1
2
  import { RowProps } from './interface';
2
- declare const Row: import("react").ForwardRefExoticComponent<RowProps & import("react").RefAttributes<unknown>>;
3
+ declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HTMLDivElement>>;
3
4
  export default Row;
4
5
  export type { RowProps };
@@ -79,13 +79,13 @@ export type { ContentProps, FooterProps, HeaderProps, LayoutProps, SiderProps, }
79
79
  export { default as Link } from './link';
80
80
  export type { LinkProps } from './link/interface';
81
81
  export { default as LiquidFill } from './liquid-fill';
82
- export type { LiquidFillProps } from './liquid-fill';
82
+ export type { LiquidFillProps } from './liquid-fill/interface';
83
83
  export { default as List, ListItem } from './list';
84
84
  export type { ListItemMetaProps, ListItemProps, ListProps, } from './list/interface';
85
85
  export { default as Loading } from './loading';
86
86
  export type { LoadingProps } from './loading/interface';
87
87
  export { default as Marquee } from './marquee';
88
- export type { MarqueeProps } from './marquee';
88
+ export type { MarqueeProps } from './marquee/interface';
89
89
  export { default as Mentions } from './mentions';
90
90
  export type { MentionsProps } from './mentions/interface';
91
91
  export { default as Menu, MenuItem, MenuItemGroup, MenuSubMenu, SubMenu, } from './menu';
@@ -109,7 +109,7 @@ export type { PortalProps, PortalWrapperProps } from './portal/interface';
109
109
  export { default as Progress } from './progress';
110
110
  export type { ProgressProps } from './progress/interface';
111
111
  export { default as QRCode } from './qr-code';
112
- export type { QRCodeProps } from './qr-code';
112
+ export type { QRCodeProps } from './qr-code/interface';
113
113
  export { default as Radio, RadioGroup, RadioGroupBlock, RadioGroupContext, } from './radio';
114
114
  export type { RadioGroupProps, RadioProps } from './radio/interface';
115
115
  export { default as Rate } from './rate';
@@ -155,7 +155,7 @@ export type { TimelineItemProps, TimelineProps } from './timeline/interface';
155
155
  export { default as Tooltip } from './tooltip';
156
156
  export type { TooltipProps } from './tooltip/interface';
157
157
  export { default as Tour } from './tour';
158
- export type { TourProps } from './tour';
158
+ export type { TourProps } from './tour/interface';
159
159
  export { default as Transfer } from './transfer';
160
160
  export type { TransferItemProps, TransferProps } from './transfer/interface';
161
161
  export { default as Tree, TreeNode } from './tree';
@@ -1,115 +1,4 @@
1
- import React, { type CSSProperties } from 'react';
2
- /**
3
- * 颜色配置类型,支持纯色和渐变色
4
- */
5
- type ColorType = string | {
6
- /** 渐变起始颜色 */
7
- from: string;
8
- /** 渐变结束颜色 */
9
- to: string;
10
- /**
11
- * 渐变方向
12
- * @default 'vertical' 垂直渐变
13
- */
14
- direction?: 'horizontal' | 'vertical';
15
- };
16
- /**
17
- * 水球填充组件的属性接口
18
- */
19
- export interface LiquidFillProps {
20
- /** 自定义容器样式 */
21
- style?: CSSProperties;
22
- /** 自定义类名 */
23
- className?: string | string[];
24
- /**
25
- * 当前填充比例 (0-1)
26
- * @default 0.5
27
- */
28
- value: number;
29
- /**
30
- * 组件尺寸 (像素)
31
- * @default 200
32
- */
33
- size?: number;
34
- /**
35
- * 字体大小
36
- * @default size * 0.15
37
- */
38
- fontSize?: number | string;
39
- /**
40
- * 波浪颜色,支持纯色或渐变色
41
- * @default 'rgb(var(--pqb-blue-6))'
42
- */
43
- waveColor?: ColorType;
44
- /**
45
- * 背景颜色,支持纯色或渐变色
46
- * @default 'var(--pqb-color-neutral-1)'
47
- */
48
- backgroundColor?: ColorType;
49
- /**
50
- * 文字颜色
51
- * @default 'var(--pqb-color-neutral-8)'
52
- */
53
- textColor?: string;
54
- /**
55
- * 是否显示百分比
56
- * @default true
57
- */
58
- showPercent?: boolean;
59
- /**
60
- * 动画持续时间(毫秒)
61
- * @default 2000
62
- */
63
- duration?: number;
64
- /**
65
- * 波浪数量
66
- * @default 3
67
- */
68
- waveCount?: number;
69
- /**
70
- * 波浪振幅
71
- * @default 10
72
- */
73
- waveAmplitude?: number;
74
- /**
75
- * 内层边框颜色
76
- * @default 'var(--pqb-color-neutral-4)'
77
- */
78
- borderColor?: string;
79
- /**
80
- * 内层边框宽度
81
- * @default 2
82
- */
83
- borderWidth?: number;
84
- /**
85
- * 外层边框颜色(默认使用内层边框颜色但透明度30%)
86
- */
87
- outerBorderColor?: string;
88
- /**
89
- * 外层边框宽度
90
- * @default 0(不显示)
91
- */
92
- outerBorderWidth?: number;
93
- /**
94
- * 内外层边框间距
95
- * @default 2
96
- */
97
- borderGap?: number;
98
- /**
99
- * 百分比显示的小数位数
100
- * @default 0(整数)
101
- */
102
- decimalPlaces?: number;
103
- /**
104
- * 百分号相对于数字的缩放比例
105
- * @default 0.5
106
- */
107
- percentFontScale?: number;
108
- /**
109
- * 波浪速度变化系数(值越大速度差异越大)
110
- * @default 0.5
111
- */
112
- waveSpeedVariation?: number;
113
- }
1
+ import React from 'react';
2
+ import type { LiquidFillProps } from './interface';
114
3
  declare const LiquidFill: React.FC<LiquidFillProps>;
115
4
  export default LiquidFill;
@@ -0,0 +1,113 @@
1
+ import type { CSSProperties } from 'react';
2
+ /**
3
+ * 颜色配置类型,支持纯色和渐变色
4
+ */
5
+ export type ColorType = string | {
6
+ /** 渐变起始颜色 */
7
+ from: string;
8
+ /** 渐变结束颜色 */
9
+ to: string;
10
+ /**
11
+ * 渐变方向
12
+ * @default 'vertical' 垂直渐变
13
+ */
14
+ direction?: 'horizontal' | 'vertical';
15
+ };
16
+ /**
17
+ * 水球填充组件的属性接口
18
+ */
19
+ export interface LiquidFillProps {
20
+ /** 自定义容器样式 */
21
+ style?: CSSProperties;
22
+ /** 自定义类名 */
23
+ className?: string | string[];
24
+ /**
25
+ * 当前填充比例 (0-1)
26
+ * @default 0.5
27
+ */
28
+ value: number;
29
+ /**
30
+ * 组件尺寸 (像素)
31
+ * @default 200
32
+ */
33
+ size?: number;
34
+ /**
35
+ * 字体大小
36
+ * @default size * 0.15
37
+ */
38
+ fontSize?: number | string;
39
+ /**
40
+ * 波浪颜色,支持纯色或渐变色
41
+ * @default 'rgb(var(--pqb-blue-6))'
42
+ */
43
+ waveColor?: ColorType;
44
+ /**
45
+ * 背景颜色,支持纯色或渐变色
46
+ * @default 'var(--pqb-color-neutral-1)'
47
+ */
48
+ backgroundColor?: ColorType;
49
+ /**
50
+ * 文字颜色
51
+ * @default 'var(--pqb-color-neutral-8)'
52
+ */
53
+ textColor?: string;
54
+ /**
55
+ * 是否显示百分比
56
+ * @default true
57
+ */
58
+ showPercent?: boolean;
59
+ /**
60
+ * 动画持续时间(毫秒)
61
+ * @default 2000
62
+ */
63
+ duration?: number;
64
+ /**
65
+ * 波浪数量
66
+ * @default 3
67
+ */
68
+ waveCount?: number;
69
+ /**
70
+ * 波浪振幅
71
+ * @default 10
72
+ */
73
+ waveAmplitude?: number;
74
+ /**
75
+ * 内层边框颜色
76
+ * @default 'var(--pqb-color-neutral-4)'
77
+ */
78
+ borderColor?: string;
79
+ /**
80
+ * 内层边框宽度
81
+ * @default 2
82
+ */
83
+ borderWidth?: number;
84
+ /**
85
+ * 外层边框颜色(默认使用内层边框颜色但透明度30%)
86
+ */
87
+ outerBorderColor?: string;
88
+ /**
89
+ * 外层边框宽度
90
+ * @default 0(不显示)
91
+ */
92
+ outerBorderWidth?: number;
93
+ /**
94
+ * 内外层边框间距
95
+ * @default 2
96
+ */
97
+ borderGap?: number;
98
+ /**
99
+ * 百分比显示的小数位数
100
+ * @default 0(整数)
101
+ */
102
+ decimalPlaces?: number;
103
+ /**
104
+ * 百分号相对于数字的缩放比例
105
+ * @default 0.5
106
+ */
107
+ percentFontScale?: number;
108
+ /**
109
+ * 波浪速度变化系数(值越大速度差异越大)
110
+ * @default 0.5
111
+ */
112
+ waveSpeedVariation?: number;
113
+ }
@@ -1,61 +1,4 @@
1
- import React, { type CSSProperties, type ReactNode } from 'react';
2
- export interface MarqueeProps {
3
- /**
4
- * 运动内容(支持文本或React节点)
5
- * @example
6
- * <Marquee>这是运动内容</Marquee>
7
- */
8
- children?: ReactNode;
9
- /**
10
- * 运动速度(像素/秒)
11
- * @default 50
12
- * @range 1-200
13
- */
14
- speed?: number;
15
- /**
16
- * 运动方向
17
- * @default 'left'
18
- * @enum ['left', 'right', 'up', 'down']
19
- */
20
- direction?: 'left' | 'right' | 'up' | 'down';
21
- /**
22
- * 鼠标悬停时是否暂停
23
- * @default false
24
- */
25
- pauseOnHover?: boolean;
26
- /**
27
- * 是否显示边缘渐变遮罩
28
- * @default true
29
- */
30
- gradient?: boolean;
31
- /**
32
- * 循环次数(0表示无限循环)
33
- * @default 0
34
- * @example
35
- * <Marquee loop={3}>循环3次</Marquee>
36
- */
37
- loop?: number;
38
- /**
39
- * 循环完成回调(仅在loop>0时触发)
40
- */
41
- onComplete?: () => void;
42
- /**
43
- * 自定义类名
44
- */
45
- className?: string;
46
- /**
47
- * 自定义样式
48
- */
49
- style?: CSSProperties;
50
- /**
51
- * 渐变遮罩尺寸(像素)
52
- * @default 50
53
- */
54
- gradientSize?: number;
55
- }
56
- /**
57
- * 跑马灯组件
58
- * 实现所有方向完美无缝循环运动
59
- */
60
- declare const Marquee: React.FC<MarqueeProps>;
1
+ import React from 'react';
2
+ import type { MarqueeProps } from './interface';
3
+ declare const Marquee: React.ForwardRefExoticComponent<MarqueeProps & React.RefAttributes<HTMLDivElement>>;
61
4
  export default Marquee;
@@ -0,0 +1,95 @@
1
+ import { CSSProperties, ReactNode, type AnimationEventHandler } from 'react';
2
+ /**
3
+ * @title Marquee
4
+ */
5
+ export interface MarqueeProps {
6
+ style?: CSSProperties;
7
+ className?: string | string[];
8
+ /**
9
+ * @zh 是否自动用子元素的副本填充空白空间
10
+ * @en Whether to automatically fill blank space with copies of child elements
11
+ * @defaultValue false
12
+ */
13
+ autoFill?: boolean;
14
+ /**
15
+ * @zh 是否播放跑马灯
16
+ * @en Whether to play the marquee
17
+ * @defaultValue true
18
+ */
19
+ play?: boolean;
20
+ /**
21
+ * @zh 悬停时是否暂停
22
+ * @en Whether to pause on hover
23
+ * @defaultValue false
24
+ */
25
+ pauseOnHover?: boolean;
26
+ /**
27
+ * @zh 点击时是否暂停
28
+ * @en Whether to pause on click
29
+ * @defaultValue false
30
+ */
31
+ pauseOnClick?: boolean;
32
+ /**
33
+ * @zh 跑马灯滑动方向
34
+ * @en Marquee scroll direction
35
+ * @defaultValue left
36
+ */
37
+ direction?: 'left' | 'right' | 'up' | 'down';
38
+ /**
39
+ * @zh 速度(像素/秒)
40
+ * @en Scroll speed (pixels/second)
41
+ * @defaultValue 50
42
+ */
43
+ speed?: number;
44
+ /**
45
+ * @zh 动画延迟时间(秒)
46
+ * @en Animation delay time (seconds)
47
+ * @defaultValue 0
48
+ */
49
+ delay?: number;
50
+ /**
51
+ * @zh 循环次数,0表示无限循环
52
+ * @en Number of loops, 0 means infinite loop
53
+ * @defaultValue 0
54
+ */
55
+ loop?: number;
56
+ /**
57
+ * @zh 渐变遮罩配置,false表示不显示
58
+ * @en Gradient overlay configuration, false means not shown
59
+ * @defaultValue false
60
+ */
61
+ gradient?: false | {
62
+ /**
63
+ * @zh 渐变颜色
64
+ * @en Gradient color
65
+ * @defaultValue white
66
+ */
67
+ color?: string;
68
+ /**
69
+ * @zh 渐变尺寸
70
+ * @en Gradient size
71
+ * @defaultValue 50
72
+ */
73
+ size?: number | string;
74
+ };
75
+ /**
76
+ * @zh 子元素
77
+ * @en Children elements
78
+ */
79
+ children?: ReactNode;
80
+ /**
81
+ * @zh 动画完成时的回调(仅在loop不为0时调用)
82
+ * @en Callback when animation completes (only called when loop is not 0)
83
+ */
84
+ onFinish?: AnimationEventHandler<HTMLDivElement>;
85
+ /**
86
+ * @zh 每次循环完成时的回调
87
+ * @en Callback when each cycle completes
88
+ */
89
+ onCycleComplete?: AnimationEventHandler<HTMLDivElement>;
90
+ /**
91
+ * @zh 组件挂载后的回调
92
+ * @en Callback after component mounts
93
+ */
94
+ onMount?: () => void;
95
+ }
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { MarqueeProps } from './interface';
3
+ /**
4
+ * 跑马灯组件
5
+ * 实现所有方向完美无缝循环运动
6
+ */
7
+ declare const Marquee: React.FC<MarqueeProps>;
8
+ export default Marquee;
@@ -0,0 +1,56 @@
1
+ import { ReactNode, type CSSProperties } from 'react';
2
+ /**
3
+ * @title MarqueeProps
4
+ */
5
+ export interface MarqueeProps {
6
+ /**
7
+ * 运动内容(支持文本或React节点)
8
+ * @example
9
+ * <Marquee>这是运动内容</Marquee>
10
+ */
11
+ children?: ReactNode;
12
+ /**
13
+ * 运动速度(像素/秒)
14
+ * @default 50
15
+ * @range 1-200
16
+ */
17
+ speed?: number;
18
+ /**
19
+ * 运动方向
20
+ * @default 'left'
21
+ * @enum ['left', 'right', 'up', 'down']
22
+ */
23
+ direction?: 'left' | 'right' | 'up' | 'down';
24
+ /**
25
+ * 鼠标悬停时是否暂停
26
+ * @default false
27
+ */
28
+ pauseOnHover?: boolean;
29
+ /**
30
+ * 是否显示边缘渐变遮罩,设置为 false 将隐藏
31
+ * @default { size: 50; color: 0xffffff }
32
+ */
33
+ gradient?: {
34
+ size: number;
35
+ color: string;
36
+ } | boolean;
37
+ /**
38
+ * 循环次数(0表示无限循环)
39
+ * @default 0
40
+ * @example
41
+ * <Marquee loop={3}>循环3次</Marquee>
42
+ */
43
+ loop?: number;
44
+ /**
45
+ * 循环完成回调(仅在loop>0时触发)
46
+ */
47
+ onComplete?: () => void;
48
+ /**
49
+ * 自定义类名
50
+ */
51
+ className?: string;
52
+ /**
53
+ * 自定义样式
54
+ */
55
+ style?: CSSProperties;
56
+ }
@@ -1,34 +1,4 @@
1
1
  import React from 'react';
2
- export interface QRCodeProps {
3
- /** 二维码内容 (必填) */
4
- value: string;
5
- /** 渲染模式 */
6
- renderAs?: 'svg' | 'canvas';
7
- /** 二维码尺寸(像素) */
8
- size?: number;
9
- /** 是否显示边框 */
10
- bordered?: boolean;
11
- /** 容错级别 */
12
- errorLevel?: 'L' | 'M' | 'Q' | 'H';
13
- /** 前景色(二维码点颜色) */
14
- fgColor?: string;
15
- /** 背景色 */
16
- bgColor?: string;
17
- /** 边距大小(像素) */
18
- marginSize?: number;
19
- /** 中心图标设置 */
20
- imageSettings?: {
21
- src: string;
22
- height: number;
23
- width: number;
24
- excavate: boolean;
25
- x?: number;
26
- y?: number;
27
- };
28
- /** 自定义类名 */
29
- className?: string;
30
- /** 自定义样式 */
31
- style?: React.CSSProperties;
32
- }
2
+ import type { QRCodeProps } from './interface';
33
3
  declare const QRCode: React.FC<QRCodeProps>;
34
4
  export default QRCode;