@unicom-cloud/ui 0.8.99 → 0.8.101
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/Anchor.js +3 -1
- package/Badge.js +7 -6
- package/Copy.js +49 -2
- package/Details.js +13 -2
- package/Divider.js +3 -2
- package/Flex.js +22 -0
- package/Grid.js +1 -1
- package/LiquidFill.js +3 -2
- package/Loading.js +16 -3
- package/Marquee.js +3 -2
- package/QrCode.js +3 -2
- package/Space.js +3 -3
- package/Splitter.js +5 -5
- package/SuspenseFallbackTest.js +2 -4
- package/Tag.js +3 -2
- package/Tour.js +3 -2
- package/alert/index.js +61 -64
- package/anchor/index.js +5 -3
- package/back-top/index.js +32 -33
- package/badge/index.js +19 -18
- package/calendar/index.js +85 -84
- package/components/common/development/index.js +44 -29
- package/components/common/empty/index.js +35 -23
- package/components/common/flex/index.js +64 -0
- package/components/common/flex/interface.js +9 -0
- package/components/common/higher-order/with-speech-synthesis/index.js +79 -55
- package/components/common/space/index.js +71 -91
- package/components/common/suspense-fallback-test/index.js +16 -0
- package/components/common/utils/toArray.js +12 -0
- package/copy/index.js +83 -35
- package/details/index.js +102 -62
- package/divider/index.js +27 -21
- package/empty/index.js +13 -13
- package/flex/index.js +47 -0
- package/flex/interface.js +1 -0
- package/grid/{GridItem.js → Item.js} +15 -15
- package/grid/index.js +1 -1
- package/icon/interface.js +1 -0
- package/icon-hover/interface.js +1 -0
- package/index.js +610 -599
- package/input/Button.js +39 -34
- package/input/Textarea.js +108 -104
- package/liquid-fill/index.js +3 -2
- package/loading/index.js +72 -53
- package/loading/interface.js +1 -0
- package/marquee/index.js +3 -2
- package/modal/Modal.js +73 -74
- package/package.json +1 -1
- package/portal/interface.js +1 -0
- package/qr-code/index.js +3 -2
- package/segmented/index.js +113 -105
- package/space/index.js +41 -35
- package/speech-synthesis/interface.js +1 -0
- package/spin/index.js +75 -62
- package/splitter/Panel.js +39 -0
- package/splitter/SplitBar.js +157 -0
- package/splitter/Splitter.js +135 -0
- package/splitter/hooks/useEvent.js +12 -0
- package/splitter/hooks/useItems.js +26 -0
- package/splitter/hooks/useResizable.js +26 -0
- package/splitter/hooks/useResize.js +68 -0
- package/splitter/hooks/useSizes.js +60 -0
- package/splitter/index.js +6 -115
- package/style.css +1 -1
- package/suspense-fallback-test/index.js +2 -11
- package/suspense-fallback-test/interface.js +1 -0
- package/table/Table.js +38 -38
- package/table/hook/useThResizable.js +72 -26
- package/table/tbody/Td.js +80 -77
- package/table/th-resizable/index.js +92 -35
- package/tag/index.js +42 -41
- package/tooltip/index.js +89 -82
- package/tour/index.js +5 -6
- package/trigger/index.js +67 -70
- package/types/common/development/index.d.ts +7 -1
- package/types/common/development/interface.d.ts +22 -0
- package/types/common/empty/index.d.ts +2 -1
- package/types/common/flex/index.d.ts +14 -0
- package/types/common/flex/interface.d.ts +62 -0
- package/types/common/higher-order/with-speech-synthesis/index.d.ts +6 -1
- package/types/common/higher-order/with-speech-synthesis/interface.d.ts +13 -0
- package/types/common/space/index.d.ts +4 -3
- package/types/common/space/interface.d.ts +10 -18
- package/types/common/suspense-fallback-test/index.d.ts +7 -0
- package/types/common/suspense-fallback-test/interface.d.ts +1 -0
- package/types/common/utils/PqbCSSTransition.d.ts +1 -1
- package/types/common/utils/toArray.d.ts +13 -0
- package/types/pc/affix/interface.d.ts +0 -2
- package/types/pc/alert/index.d.ts +3 -2
- package/types/pc/alert/interface.d.ts +7 -1
- package/types/pc/anchor/index.d.ts +2 -1
- package/types/pc/anchor/interface.d.ts +0 -2
- package/types/pc/auto-complete/interface.d.ts +0 -6
- package/types/pc/avatar/interface.d.ts +0 -4
- package/types/pc/badge/Count.d.ts +1 -1
- package/types/pc/breadcrumb/Item.d.ts +1 -1
- package/types/pc/breadcrumb/interface.d.ts +0 -3
- package/types/pc/calendar/Month.d.ts +1 -1
- package/types/pc/calendar/WeekList.d.ts +1 -1
- package/types/pc/calendar/Year.d.ts +1 -1
- package/types/pc/calendar/header/Panel.d.ts +1 -1
- package/types/pc/calendar/header/index.d.ts +1 -1
- package/types/pc/calendar/index.d.ts +1 -1
- package/types/pc/calendar/interface.d.ts +2 -1
- package/types/pc/carousel/interface.d.ts +2 -6
- package/types/pc/cascader/interface.d.ts +7 -19
- package/types/pc/cascader/panel/List.d.ts +1 -1
- package/types/pc/cascader/panel/Option.d.ts +1 -1
- package/types/pc/cascader/panel/Search.d.ts +1 -1
- package/types/pc/checkbox/Group.d.ts +2 -2
- package/types/pc/checkbox/GroupBlock.d.ts +1 -1
- package/types/pc/checkbox/IconCheck.d.ts +1 -1
- package/types/pc/checkbox/interface.d.ts +0 -1
- package/types/pc/collapse/interface.d.ts +0 -2
- package/types/pc/color-picker/InputRgb.d.ts +1 -1
- package/types/pc/color-picker/Palette.d.ts +1 -1
- package/types/pc/color-picker/interface.d.ts +0 -2
- package/types/pc/config-provider/ConfigProvider.d.ts +1 -1
- package/types/pc/config-provider/interface.d.ts +17 -17
- package/types/pc/copy/index.d.ts +1 -1
- package/types/pc/copy/interface.d.ts +2 -1
- package/types/pc/date-picker/interface.d.ts +0 -17
- package/types/pc/date-picker/panel/Body.d.ts +1 -1
- package/types/pc/date-picker/panel/Footer.d.ts +1 -1
- package/types/pc/date-picker/panel/Header.d.ts +1 -1
- package/types/pc/date-picker/panel/WeekList.d.ts +1 -1
- package/types/pc/date-picker/panel/date/index.d.ts +1 -1
- package/types/pc/date-picker/panel/month/index.d.ts +1 -1
- package/types/pc/date-picker/panel/quarter/index.d.ts +1 -1
- package/types/pc/date-picker/panel/range/index.d.ts +1 -1
- package/types/pc/date-picker/panel/week/index.d.ts +1 -1
- package/types/pc/date-picker/panel/year/index.d.ts +1 -1
- package/types/pc/descriptions/index.d.ts +1 -1
- package/types/pc/descriptions/interface.d.ts +0 -1
- package/types/pc/details/index.d.ts +3 -2
- package/types/pc/details/interface.d.ts +16 -0
- package/types/pc/development/index.d.ts +2 -1
- package/types/pc/development/interface.d.ts +15 -0
- package/types/pc/divider/index.d.ts +7 -2
- package/types/pc/draggable/Item.d.ts +1 -1
- package/types/pc/draggable/index.d.ts +1 -1
- package/types/pc/drawer/interface.d.ts +0 -7
- package/types/pc/dropdown/interface.d.ts +0 -1
- package/types/pc/flex/index.d.ts +9 -0
- package/types/pc/flex/interface.d.ts +16 -0
- package/types/pc/form/Control.d.ts +1 -1
- package/types/pc/form/FormList.d.ts +1 -1
- package/types/pc/form/IconSymbol.d.ts +1 -1
- package/types/pc/form/interface.d.ts +9 -22
- package/types/pc/form/util.d.ts +1 -1
- package/types/pc/grid/index.d.ts +3 -3
- package/types/pc/grid/interface.d.ts +1 -6
- package/types/pc/icon/addFromIconFontCn.d.ts +1 -7
- package/types/pc/icon/index.d.ts +2 -7
- package/types/pc/icon/interface.d.ts +13 -0
- package/types/pc/icon-hover/index.d.ts +2 -8
- package/types/pc/icon-hover/interface.d.ts +8 -0
- package/types/pc/image/ImageFooter.d.ts +1 -1
- package/types/pc/image/ImagePreviewArrow.d.ts +1 -1
- package/types/pc/image/TriggerForToolbar.d.ts +1 -1
- package/types/pc/image/interface.d.ts +0 -13
- package/types/pc/index.d.ts +63 -50
- package/types/pc/input/Textarea.d.ts +2 -6
- package/types/pc/input/interface.d.ts +5 -13
- package/types/pc/input-number/interface.d.ts +0 -4
- package/types/pc/input-tag/interface.d.ts +0 -13
- package/types/pc/layout/interface.d.ts +0 -1
- package/types/pc/link/interface.d.ts +0 -1
- package/types/pc/list/interface.d.ts +0 -4
- package/types/pc/loading/index.d.ts +4 -3
- package/types/pc/loading/interface.d.ts +6 -0
- package/types/pc/menu/Indent.d.ts +1 -1
- package/types/pc/menu/OverflowWrap.d.ts +1 -1
- package/types/pc/menu/interface.d.ts +0 -8
- package/types/pc/menu/sub-menu/Inline.d.ts +1 -1
- package/types/pc/menu/sub-menu/Pop.d.ts +1 -1
- package/types/pc/message/interface.d.ts +0 -2
- package/types/pc/modal/interface.d.ts +0 -5
- package/types/pc/notification/interface.d.ts +0 -1
- package/types/pc/overflow-ellipsis/OverflowItem.d.ts +1 -1
- package/types/pc/overflow-ellipsis/index.d.ts +1 -1
- package/types/pc/pagination/PageItem.d.ts +3 -3
- package/types/pc/pagination/PageJumper.d.ts +1 -1
- package/types/pc/pagination/PageOption.d.ts +1 -1
- package/types/pc/pagination/interface.d.ts +0 -2
- package/types/pc/popconfirm/interface.d.ts +8 -10
- package/types/pc/popover/interface.d.ts +0 -1
- package/types/pc/portal/Portal.d.ts +2 -6
- package/types/pc/portal/index.d.ts +2 -9
- package/types/pc/portal/interface.d.ts +14 -0
- package/types/pc/progress/CircleProgress.d.ts +1 -1
- package/types/pc/progress/LineProgess.d.ts +1 -1
- package/types/pc/progress/StepProgress.d.ts +1 -1
- package/types/pc/progress/interface.d.ts +0 -3
- package/types/pc/radio/Group.d.ts +2 -2
- package/types/pc/radio/GroupBlock.d.ts +1 -1
- package/types/pc/radio/Radio.d.ts +1 -1
- package/types/pc/resize-box/ResizeTrigger.d.ts +1 -1
- package/types/pc/resize-box/interface.d.ts +1 -7
- package/types/pc/result/403.d.ts +1 -1
- package/types/pc/result/404.d.ts +1 -1
- package/types/pc/result/500.d.ts +1 -1
- package/types/pc/segmented/interface.d.ts +6 -6
- package/types/pc/select/interface.d.ts +0 -12
- package/types/pc/select-view/interface.d.ts +0 -7
- package/types/pc/skeleton/Image.d.ts +1 -1
- package/types/pc/skeleton/Text.d.ts +2 -1
- package/types/pc/slider/Button.d.ts +1 -1
- package/types/pc/slider/Input.d.ts +1 -1
- package/types/pc/slider/Tick.d.ts +1 -1
- package/types/pc/slider/interface.d.ts +0 -4
- package/types/pc/space/index.d.ts +7 -5
- package/types/pc/speech-synthesis/index.d.ts +3 -1
- package/types/pc/speech-synthesis/interface.d.ts +7 -0
- package/types/pc/spin/DotLoading.d.ts +1 -1
- package/types/pc/spin/interface.d.ts +4 -1
- package/types/pc/splitter/Panel.d.ts +8 -0
- package/types/pc/splitter/SplitBar.d.ts +21 -0
- package/types/pc/splitter/Splitter.d.ts +4 -0
- package/types/pc/splitter/hooks/useEvent.d.ts +3 -0
- package/types/pc/splitter/hooks/useItems.d.ts +10 -0
- package/types/pc/splitter/hooks/useResizable.d.ts +8 -0
- package/types/pc/splitter/hooks/useResize.d.ts +4 -0
- package/types/pc/splitter/hooks/useSizes.d.ts +5 -0
- package/types/pc/splitter/index.d.ts +8 -3
- package/types/pc/splitter/interface.d.ts +181 -38
- package/types/pc/statistic/interface.d.ts +0 -4
- package/types/pc/steps/interface.d.ts +0 -3
- package/types/pc/suspense-fallback-test/index.d.ts +2 -3
- package/types/pc/suspense-fallback-test/interface.d.ts +2 -0
- package/types/pc/table/ColGroup.d.ts +1 -1
- package/types/pc/table/hook/useThResizable.d.ts +2 -2
- package/types/pc/table/interface.d.ts +4 -15
- package/types/pc/table/summary/Cell.d.ts +1 -1
- package/types/pc/table/summary/Row.d.ts +1 -1
- package/types/pc/table/tbody/Td.d.ts +1 -1
- package/types/pc/table/tbody/index.d.ts +1 -1
- package/types/pc/table/tfoot/index.d.ts +1 -1
- package/types/pc/table/th-resizable/index.d.ts +1 -1
- package/types/pc/table/thead/Column.d.ts +1 -1
- package/types/pc/table/thead/index.d.ts +1 -1
- package/types/pc/tabs/TabContent.d.ts +1 -1
- package/types/pc/tabs/interface.d.ts +0 -7
- package/types/pc/tabs/tab-header/DropdownIcon.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabInk.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
- package/types/pc/tag/index.d.ts +2 -0
- package/types/pc/tag/interface.d.ts +0 -1
- package/types/pc/time-picker/Picker.d.ts +1 -1
- package/types/pc/time-picker/RangePicker.d.ts +1 -1
- package/types/pc/time-picker/TimeColumn.d.ts +1 -1
- package/types/pc/time-picker/TimePicker.d.ts +1 -1
- package/types/pc/time-picker/index.d.ts +1 -1
- package/types/pc/time-picker/interface.d.ts +0 -7
- package/types/pc/tooltip/interface.d.ts +4 -1
- package/types/pc/transfer/Item.d.ts +1 -1
- package/types/pc/transfer/List.d.ts +1 -1
- package/types/pc/transfer/interface.d.ts +2 -9
- package/types/pc/tree/Animation.d.ts +1 -1
- package/types/pc/tree/interface.d.ts +2 -8
- package/types/pc/tree-select/interface.d.ts +0 -8
- package/types/pc/trigger/interface.d.ts +0 -5
- package/types/pc/typography/EditContent.d.ts +2 -1
- package/types/pc/typography/Operations.d.ts +1 -1
- package/types/pc/typography/interface.d.ts +45 -30
- package/types/pc/upload/interface.d.ts +6 -11
- package/types/pc/upload/list/index.d.ts +1 -1
- package/types/pc/utils/index.d.ts +1 -0
- package/types/pc/utils/names.d.ts +6 -0
- package/types/pc/utils/toArray.d.ts +3 -0
- package/types/pc/verification-code/VerificationCode.d.ts +1 -1
- package/types/pc/verification-code/interface.d.ts +0 -2
- package/types/pc/virtual-list/VirtualList.d.ts +2 -38
- package/types/pc/virtual-list/index.d.ts +2 -1
- package/types/pc/virtual-list/interface.d.ts +56 -0
- package/types/pc/watermark/Watermark.d.ts +1 -1
- package/types/pc/watermark/interface.d.ts +0 -2
- package/typography/Base.js +73 -73
- package/typography/EditContent.js +43 -33
- package/typography/Ellipsis.js +117 -184
- package/typography/Operations.js +97 -49
- package/typography/useCssEllipsis.js +7 -6
- package/utils/index.js +117 -115
- package/utils/names.js +4 -0
- package/utils/toArray.js +5 -0
- package/version/index.js +1 -1
- package/virtual-list/interface.js +1 -0
- package/components/common/space/toArray.js +0 -11
- package/loading/style/index.module.less.js +0 -4
- package/types/common/space/toArray.d.ts +0 -3
- package/types/pc/suspense-fallback-test/style/index.d.ts +0 -1
- /package/{suspense-fallback-test/style/index.less.js → development/interface.js} +0 -0
- /package/types/pc/grid/{GridItem.d.ts → Item.d.ts} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* SuspenseFallbackTest 组件
|
|
4
|
+
* @description 用于测试Suspense的fallback状态,创建一个永远不会加载完成的懒加载组件
|
|
5
|
+
*/
|
|
6
|
+
declare const SuspenseFallbackTest: React.ForwardRefExoticComponent<object & React.RefAttributes<unknown>>;
|
|
7
|
+
export default SuspenseFallbackTest;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SuspenseFallbackTestProps = object;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CSSTransition } from '@unicom-cloud/react-transition-group';
|
|
2
|
-
declare function PqbCSSTransition(props: CSSTransition): import("react/jsx-
|
|
2
|
+
declare function PqbCSSTransition(props: CSSTransition): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export { PqbCSSTransition };
|
|
4
4
|
export default PqbCSSTransition;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ToArrayOptions {
|
|
3
|
+
keepEmpty?: boolean;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* 将React子节点转换为数组
|
|
7
|
+
* @param children React子节点
|
|
8
|
+
* @param options 配置选项
|
|
9
|
+
* @returns React元素数组
|
|
10
|
+
*/
|
|
11
|
+
declare function toArray(children: React.ReactNode, options?: ToArrayOptions): React.ReactElement[];
|
|
12
|
+
export { toArray };
|
|
13
|
+
export default toArray;
|
|
@@ -8,14 +8,12 @@ export interface AffixProps {
|
|
|
8
8
|
/**
|
|
9
9
|
* @zh 给 `fixed` 的元素设置 className。
|
|
10
10
|
* @en ClassName of the fixed element.
|
|
11
|
-
* @version 2.8.0
|
|
12
11
|
*/
|
|
13
12
|
affixClassName?: string | string[];
|
|
14
13
|
/**
|
|
15
14
|
* @zh
|
|
16
15
|
* 给 `fixed` 的元素设置 style,注意不要设置 `position` `top` `width` `height`, 因为这几个属性是在元素 fixed 时候用于定位的。
|
|
17
16
|
* @en Style of the fixed elements. Don't set `position` `top` `width` `height` attributes as they are used for positioning when the element is fixed.
|
|
18
|
-
* @version 2.8.0
|
|
19
17
|
*/
|
|
20
18
|
affixStyle?: CSSProperties;
|
|
21
19
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { AlertProps } from './interface';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
3
|
+
declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<unknown>>;
|
|
4
|
+
export default Alert;
|
|
4
5
|
export type { AlertProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
1
|
+
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* @title Alert
|
|
4
4
|
*/
|
|
@@ -63,4 +63,10 @@ export interface AlertProps {
|
|
|
63
63
|
* @en Whether to show as banner
|
|
64
64
|
*/
|
|
65
65
|
banner?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* 自定义组件内容
|
|
68
|
+
* @en Custom component content
|
|
69
|
+
* @default null
|
|
70
|
+
*/
|
|
71
|
+
children?: React.ReactNode;
|
|
66
72
|
}
|
|
@@ -15,7 +15,6 @@ export interface AnchorProps {
|
|
|
15
15
|
* @zh 方向
|
|
16
16
|
* @en Direction
|
|
17
17
|
* @defaultValue vertical
|
|
18
|
-
* @version 2.51.0
|
|
19
18
|
*/
|
|
20
19
|
direction?: 'vertical' | 'horizontal';
|
|
21
20
|
/**
|
|
@@ -77,7 +76,6 @@ export interface AnchorProps {
|
|
|
77
76
|
*/
|
|
78
77
|
lineless?: boolean;
|
|
79
78
|
/**
|
|
80
|
-
* @version 2.22.0
|
|
81
79
|
* @zh 容器中基准线的位置相对容器顶部的偏移量,在没有设置的时候,取值为滚动容器高度的一半。当锚点到达或离开基准线的时候会更新锚点的状态。
|
|
82
80
|
* @en The offset of the baseline relative to the top of the container.
|
|
83
81
|
* The value is half of the height of the scrolling container if not specified.
|
|
@@ -57,7 +57,6 @@ export interface AutoCompleteProps extends PartialSelectProps {
|
|
|
57
57
|
/**
|
|
58
58
|
* @zh 状态
|
|
59
59
|
* @en Status
|
|
60
|
-
* @version 2.45.0
|
|
61
60
|
*/
|
|
62
61
|
status?: 'error' | 'warning';
|
|
63
62
|
/**
|
|
@@ -68,14 +67,12 @@ export interface AutoCompleteProps extends PartialSelectProps {
|
|
|
68
67
|
/**
|
|
69
68
|
* @zh 是否处于加载状态。
|
|
70
69
|
* @en Whether the component is loading data.
|
|
71
|
-
* @version 2.10.0
|
|
72
70
|
*/
|
|
73
71
|
loading?: boolean;
|
|
74
72
|
/**
|
|
75
73
|
* @zh 自定义触发元素
|
|
76
74
|
* @en Custom trigger element
|
|
77
75
|
* @defaultValue <Input />
|
|
78
|
-
* @version `() => ReactElement` in 2.31.0
|
|
79
76
|
*/
|
|
80
77
|
triggerElement?: ReactElement | (({ value }: {
|
|
81
78
|
value: any;
|
|
@@ -98,7 +95,6 @@ export interface AutoCompleteProps extends PartialSelectProps {
|
|
|
98
95
|
/**
|
|
99
96
|
* @zh 按下回车键的回调
|
|
100
97
|
* @en Callback when Enter is pressed
|
|
101
|
-
* @version `activeOption` in 2.25.1
|
|
102
98
|
*/
|
|
103
99
|
onPressEnter?: (e: any, activeOption?: OptionInfo) => void;
|
|
104
100
|
/**
|
|
@@ -114,13 +110,11 @@ export interface AutoCompleteProps extends PartialSelectProps {
|
|
|
114
110
|
/**
|
|
115
111
|
* @zh 传递虚拟滚动属性。
|
|
116
112
|
* @en Virtual scroll properties.
|
|
117
|
-
* @version 2.2.0
|
|
118
113
|
*/
|
|
119
114
|
virtualListProps?: AvailableVirtualListProps;
|
|
120
115
|
/**
|
|
121
116
|
* @zh 传递 Input 组件的属性。
|
|
122
117
|
* @en Properties of Input component.
|
|
123
|
-
* @version 2.10.0
|
|
124
118
|
*/
|
|
125
119
|
inputProps?: Partial<InputProps>;
|
|
126
120
|
}
|
|
@@ -71,25 +71,21 @@ export interface AvatarGroupProps {
|
|
|
71
71
|
/**
|
|
72
72
|
* @zh 头像组内的头像 `z-index` 递增,默认是递减。
|
|
73
73
|
* @en Whether `z-index` of the avatars in group are in ascending order. The default is in descending order.
|
|
74
|
-
* @version 2.3.0
|
|
75
74
|
*/
|
|
76
75
|
zIndexAscend?: boolean;
|
|
77
76
|
/**
|
|
78
77
|
* @zh 头像组最多显示的头像数量,多余头像将以 `+x` 的形式展示。
|
|
79
78
|
* @en The maximum number of avatars displayed in the avatar group. The rest of avatars will be displayed as a `+x`.
|
|
80
|
-
* @version 2.4.0
|
|
81
79
|
*/
|
|
82
80
|
maxCount?: number;
|
|
83
81
|
/**
|
|
84
82
|
* @zh 多余头像样式。
|
|
85
83
|
* @en Style for `+x`.
|
|
86
|
-
* @version 2.4.0
|
|
87
84
|
*/
|
|
88
85
|
maxStyle?: CSSProperties;
|
|
89
86
|
/**
|
|
90
87
|
* @zh 多余头像气泡的 `TriggerProps`。
|
|
91
88
|
* @en `TriggerProps` for popover around `+x`.
|
|
92
|
-
* @version 2.4.0
|
|
93
89
|
*/
|
|
94
90
|
maxPopoverTriggerProps?: TriggerProps;
|
|
95
91
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { BreadCrumbItemProps } from './interface';
|
|
3
|
-
declare function Item(props: PropsWithChildren<BreadCrumbItemProps>): import("react/jsx-
|
|
3
|
+
declare function Item(props: PropsWithChildren<BreadCrumbItemProps>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare namespace Item {
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
|
@@ -58,19 +58,16 @@ export interface BreadCrumbItemProps extends CustomHTMLElement {
|
|
|
58
58
|
/**
|
|
59
59
|
* @zh 超链接地址
|
|
60
60
|
* @en href
|
|
61
|
-
* @version 2.40.0
|
|
62
61
|
*/
|
|
63
62
|
href?: string;
|
|
64
63
|
/**
|
|
65
64
|
* @zh 点击回调
|
|
66
65
|
* @en click callback
|
|
67
|
-
* @version 2.40.0
|
|
68
66
|
*/
|
|
69
67
|
onClick?: (e: any) => void;
|
|
70
68
|
/**
|
|
71
69
|
* @zh 标签名,可以是 html 标签或是组件
|
|
72
70
|
* @en Configure the outermost label, which can be an html label or a component
|
|
73
|
-
* @version 2.40.0
|
|
74
71
|
* @defaultValue div
|
|
75
72
|
*/
|
|
76
73
|
tagName?: string | React.FC<any> | React.ComponentClass<any>;
|
|
@@ -11,5 +11,5 @@ export interface MonthProps extends CalendarProps {
|
|
|
11
11
|
CALENDAR_LOCALE?: Record<string, any>;
|
|
12
12
|
}
|
|
13
13
|
export declare function getAllDaysByTime(props: CalendarProps, time: Dayjs): never[][];
|
|
14
|
-
declare function Month(props: MonthProps): import("react/jsx-
|
|
14
|
+
declare function Month(props: MonthProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export default Month;
|
|
@@ -6,5 +6,5 @@ interface WeekListProps {
|
|
|
6
6
|
panel?: boolean;
|
|
7
7
|
innerMode?: 'day' | 'week' | 'month' | 'year';
|
|
8
8
|
}
|
|
9
|
-
declare function WeekList(props: WeekListProps): import("react/jsx-
|
|
9
|
+
declare function WeekList(props: WeekListProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export default WeekList;
|
|
@@ -9,5 +9,5 @@ interface YearProps extends CalendarProps {
|
|
|
9
9
|
CALENDAR_LOCALE?: Record<string, any>;
|
|
10
10
|
innerMode?: 'day' | 'week' | 'month' | 'year';
|
|
11
11
|
}
|
|
12
|
-
declare function Year(props: YearProps): import("react/jsx-
|
|
12
|
+
declare function Year(props: YearProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export default Year;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function PanelHeader(props: any): import("react/jsx-
|
|
1
|
+
declare function PanelHeader(props: any): import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default PanelHeader;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function Header(props: any): import("react/jsx-
|
|
1
|
+
declare function Header(props: any): import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default Header;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Month from './Month';
|
|
2
2
|
import Year from './Year';
|
|
3
3
|
import { CalendarProps } from './interface';
|
|
4
|
-
declare function Calendar(baseProps: CalendarProps): import("react/jsx-
|
|
4
|
+
declare function Calendar(baseProps: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare namespace Calendar {
|
|
6
6
|
var displayName: string;
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode, CSSProperties } from 'react';
|
|
2
1
|
import { Dayjs } from 'dayjs';
|
|
2
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
3
3
|
export type CalendarValue = Dayjs | Date | string | number;
|
|
4
4
|
/**
|
|
5
5
|
* @title Calendar
|
|
@@ -101,6 +101,7 @@ export interface CalendarProps {
|
|
|
101
101
|
onChange: any;
|
|
102
102
|
onChangePageDate: any;
|
|
103
103
|
onChangeMode: any;
|
|
104
|
+
header?: ReactNode;
|
|
104
105
|
}) => ReactNode;
|
|
105
106
|
/**
|
|
106
107
|
* @zh
|
|
@@ -27,10 +27,10 @@ export interface CarouselProps {
|
|
|
27
27
|
currentIndex?: number;
|
|
28
28
|
/**
|
|
29
29
|
* @zh
|
|
30
|
-
* 是否自动循环展示,或者传入 `{ interval: 自动切换的时间间隔(默认: 3000), hoverToPause: 鼠标悬浮时是否暂停自动切换(默认: true) }` 进行高级配置
|
|
30
|
+
* 是否自动循环展示,或者传入 `{ interval: 自动切换的时间间隔(默认: 3000), hoverToPause: 鼠标悬浮时是否暂停自动切换(默认: true) }` 进行高级配置
|
|
31
31
|
* @en
|
|
32
32
|
* Whether to scroll automatically, or pass in `{ interval: the time interval for switching (default: 3000),
|
|
33
|
-
* hoverToPause: whether to pause switching while hover (default: true) }` for configuration
|
|
33
|
+
* hoverToPause: whether to pause switching while hover (default: true) }` for configuration
|
|
34
34
|
*/
|
|
35
35
|
autoPlay?: boolean | {
|
|
36
36
|
interval?: number;
|
|
@@ -41,7 +41,6 @@ export interface CarouselProps {
|
|
|
41
41
|
* 是否仅渲染满足动画效果的最少数量的 children
|
|
42
42
|
* @en
|
|
43
43
|
* Whether to render only the minimum number of children that meet the animation effect
|
|
44
|
-
* @version 2.21.0
|
|
45
44
|
*/
|
|
46
45
|
miniRender?: boolean;
|
|
47
46
|
autoPlaySpeed?: number;
|
|
@@ -83,7 +82,6 @@ export interface CarouselProps {
|
|
|
83
82
|
/**
|
|
84
83
|
* @zh 自定义图标
|
|
85
84
|
* @en Customize icons
|
|
86
|
-
* @version 2.25.0
|
|
87
85
|
*/
|
|
88
86
|
icons?: {
|
|
89
87
|
prev?: ReactNode;
|
|
@@ -118,13 +116,11 @@ export interface CarouselProps {
|
|
|
118
116
|
/**
|
|
119
117
|
* @zh 幻灯片发生切换时的回调函数。
|
|
120
118
|
* @en Callback when slide changes.
|
|
121
|
-
* @version `isManual` in 2.4.0
|
|
122
119
|
*/
|
|
123
120
|
onChange?: (index: number, prevIndex: number, isManual: boolean) => void;
|
|
124
121
|
/**
|
|
125
122
|
* @zh 用于获得带有 API 方法的 Carousel 引用。
|
|
126
123
|
* @en Carousel reference for imperative API calls.
|
|
127
|
-
* @version 2.16.1
|
|
128
124
|
*/
|
|
129
125
|
carousel?: MutableRefObject<CarouselHandle>;
|
|
130
126
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { SelectViewCommonProps } from '../select-view';
|
|
3
3
|
import { TriggerProps } from '../trigger';
|
|
4
|
-
import { VirtualListProps } from '../virtual-list/
|
|
4
|
+
import type { VirtualListProps } from '../virtual-list/interface';
|
|
5
5
|
import { NodeProps } from './base/node';
|
|
6
6
|
import Store from './base/store';
|
|
7
7
|
/**
|
|
@@ -16,7 +16,6 @@ export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'sho
|
|
|
16
16
|
/**
|
|
17
17
|
* @zh 输入框的值
|
|
18
18
|
* @en Input Value
|
|
19
|
-
* @version 2.34.0
|
|
20
19
|
*/
|
|
21
20
|
inputValue?: string;
|
|
22
21
|
/**
|
|
@@ -66,13 +65,13 @@ export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'sho
|
|
|
66
65
|
* @zh
|
|
67
66
|
* 使单选模式可搜索,传入 `{ retainInputValue: true }` 在搜索框聚焦时保留现有内容
|
|
68
67
|
* 传入 `{ retainInputValueWhileSelect: true }` 在多选选择时保留输入框内容。
|
|
69
|
-
* 传入 `{ panelMode: 'select' }` 以搜索面板形式展示可选项
|
|
70
|
-
* `renderOption` 自定义渲染搜索项
|
|
68
|
+
* 传入 `{ panelMode: 'select' }` 以搜索面板形式展示可选项
|
|
69
|
+
* `renderOption` 自定义渲染搜索项
|
|
71
70
|
* @en
|
|
72
71
|
* Whether single mode Select is searchable. `{ retainInputValue: true }` to retain the existing content when the search box is focused,
|
|
73
72
|
* `{ retainInputValueWhileSelect: true }` to retain the existing content when multiple selection is selected.
|
|
74
|
-
* `{ panelMode: 'select' }` Display options as a search panel
|
|
75
|
-
* `renderOption` Custom rendering search option
|
|
73
|
+
* `{ panelMode: 'select' }` Display options as a search panel
|
|
74
|
+
* `renderOption` Custom rendering search option
|
|
76
75
|
*/
|
|
77
76
|
showSearch?: boolean | {
|
|
78
77
|
panelMode?: 'cascader' | 'select';
|
|
@@ -108,44 +107,37 @@ export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'sho
|
|
|
108
107
|
* Customize the return value <br/> parent:
|
|
109
108
|
* Only return the parent node when all child nodes are selected <br/> child: Return child nodes
|
|
110
109
|
* @defaultValue child
|
|
111
|
-
* @version 2.31.0
|
|
112
110
|
*/
|
|
113
111
|
checkedStrategy?: 'parent' | 'child';
|
|
114
112
|
/**
|
|
115
113
|
* @zh 自定义下拉列表类名
|
|
116
114
|
* @en Custom dropdown list classname
|
|
117
|
-
* @version 2.35.0
|
|
118
115
|
*/
|
|
119
116
|
dropdownMenuClassName?: string | string[];
|
|
120
117
|
/**
|
|
121
118
|
* @zh 菜单列样式
|
|
122
119
|
* @en dropdown menu column style
|
|
123
|
-
* @version 2.35.0
|
|
124
120
|
*/
|
|
125
121
|
dropdownMenuColumnStyle?: CSSProperties;
|
|
126
122
|
/**
|
|
127
123
|
* @zh 传递虚拟滚动属性。开启虚拟滚动后,每列级联菜单的会存在默认宽度,可通过 `dropdownMenuColumnStyle` 进行样式调整
|
|
128
124
|
* @en virtual list props. After virtual scrolling is enabled, there will be a default width for each column of cascading menus, which can be adjusted by `dropdownMenuColumnStyle`
|
|
129
|
-
* @version 2.35.0
|
|
130
125
|
*/
|
|
131
126
|
virtualListProps?: Pick<VirtualListProps<any>, 'threshold' | 'isStaticItemHeight'>;
|
|
132
127
|
/**
|
|
133
128
|
* @zh 是否默认高亮搜索结果第一个选项。
|
|
134
129
|
* @en Whether to highlight the first option of search results by default
|
|
135
|
-
* @version 2.37.0
|
|
136
130
|
* @defaultValue true
|
|
137
131
|
*/
|
|
138
132
|
defaultActiveFirstOption?: boolean;
|
|
139
133
|
/**
|
|
140
134
|
* @zh 自定义下拉菜单的展示。
|
|
141
135
|
* @en Customize the popup menu.
|
|
142
|
-
* @version 2.15.0
|
|
143
136
|
*/
|
|
144
137
|
dropdownRender?: (menu: ReactNode) => ReactNode;
|
|
145
138
|
/**
|
|
146
139
|
* @zh 自定义下拉菜单每一列的展示。
|
|
147
140
|
* @en Customize columns of the menu.
|
|
148
|
-
* @version 2.15.0, `level` in 2.17.0
|
|
149
141
|
*/
|
|
150
142
|
dropdownColumnRender?: (menu: ReactNode, level: number) => ReactNode;
|
|
151
143
|
/**
|
|
@@ -169,9 +161,8 @@ export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'sho
|
|
|
169
161
|
*/
|
|
170
162
|
renderFormat?: (valueShow: any[]) => ReactNode;
|
|
171
163
|
/**
|
|
172
|
-
* @zh 搜索时的回调。
|
|
173
|
-
* @en Callback when input changed.
|
|
174
|
-
* @version 2.20.0
|
|
164
|
+
* @zh 搜索时的回调。
|
|
165
|
+
* @en Callback when input changed.
|
|
175
166
|
*/
|
|
176
167
|
onSearch?: (inputValue: string, reason: InputValueChangeReason) => void;
|
|
177
168
|
/**
|
|
@@ -184,7 +175,6 @@ export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'sho
|
|
|
184
175
|
/**
|
|
185
176
|
* @zh inputValue改变时的回调
|
|
186
177
|
* @en Callback when inputValue change.
|
|
187
|
-
* @version 2.34.0
|
|
188
178
|
*/
|
|
189
179
|
onInputValueChange?: (inputValue: string, reason: InputValueChangeReason) => void;
|
|
190
180
|
/**
|
|
@@ -210,7 +200,6 @@ export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'sho
|
|
|
210
200
|
/**
|
|
211
201
|
* @zh 图标配置。
|
|
212
202
|
* @en Icon configuration.
|
|
213
|
-
* @version 2.50.0
|
|
214
203
|
*/
|
|
215
204
|
icons?: {
|
|
216
205
|
loading?: ReactNode;
|
|
@@ -248,7 +237,6 @@ export interface OptionProps {
|
|
|
248
237
|
/**
|
|
249
238
|
* @zh 是否禁用复选框选中
|
|
250
239
|
* @en Whether to disable the check box is selected
|
|
251
|
-
* @version 2.21.0
|
|
252
240
|
*/
|
|
253
241
|
disableCheckbox?: boolean;
|
|
254
242
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CascaderPanelProps, OptionProps } from '../../cascader/interface';
|
|
2
2
|
export declare const getLegalIndex: (currentIndex: any, maxIndex: any) => any;
|
|
3
|
-
declare const ListPanel: <T extends OptionProps>(props: CascaderPanelProps<T>) => import("react/jsx-
|
|
3
|
+
declare const ListPanel: <T extends OptionProps>(props: CascaderPanelProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default ListPanel;
|
|
@@ -19,5 +19,5 @@ export interface CascaderOptionProps<T> {
|
|
|
19
19
|
onMouseEnter?: () => void;
|
|
20
20
|
onMultipleChecked?: (checked: boolean) => void;
|
|
21
21
|
}
|
|
22
|
-
declare const Option: <T extends OptionProps>(props: CascaderOptionProps<T>) => import("react/jsx-
|
|
22
|
+
declare const Option: <T extends OptionProps>(props: CascaderOptionProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
export default Option;
|
|
@@ -24,5 +24,5 @@ export type SearchPanelProps<T> = {
|
|
|
24
24
|
next?: ReactNode;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
declare const SearchPanel: <T extends OptionProps>(props: SearchPanelProps<T>) => import("react/jsx-
|
|
27
|
+
declare const SearchPanel: <T extends OptionProps>(props: SearchPanelProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
export default SearchPanel;
|
|
@@ -8,8 +8,8 @@ export declare const CheckboxGroupContext: React.Context<{
|
|
|
8
8
|
registerValue: (value: ReactText) => void;
|
|
9
9
|
unRegisterValue: (value: ReactText) => void;
|
|
10
10
|
}>;
|
|
11
|
-
export declare const ClearCheckboxGroupContext: ({ children, }: PropsWithChildren<{}>) => import("react/jsx-
|
|
12
|
-
declare function Group<T extends React.ReactText>(props: PropsWithChildren<CheckboxGroupProps<T>>): import("react/jsx-
|
|
11
|
+
export declare const ClearCheckboxGroupContext: ({ children, }: PropsWithChildren<{}>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function Group<T extends React.ReactText>(props: PropsWithChildren<CheckboxGroupProps<T>>): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
declare namespace Group {
|
|
14
14
|
var displayName: string;
|
|
15
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CheckboxGroupProps } from './interface';
|
|
2
|
-
declare function CheckboxGroupBlock(props: any): import("react/jsx-
|
|
2
|
+
declare function CheckboxGroupBlock(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace CheckboxGroupBlock {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|
|
@@ -51,7 +51,6 @@ export interface CollapseProps {
|
|
|
51
51
|
/**
|
|
52
52
|
* @zh 可触发折叠操作的区域
|
|
53
53
|
* @en The area that can trigger the collapse operation
|
|
54
|
-
* @version 2.41.0
|
|
55
54
|
*/
|
|
56
55
|
triggerRegion?: 'header' | 'icon';
|
|
57
56
|
/**
|
|
@@ -73,7 +72,6 @@ export interface CollapseItemProps {
|
|
|
73
72
|
/**
|
|
74
73
|
* @zh 内容区域的附加样式。
|
|
75
74
|
* @en Additional styles of the content area.
|
|
76
|
-
* @version 2.15.0
|
|
77
75
|
*/
|
|
78
76
|
contentStyle?: CSSProperties;
|
|
79
77
|
/**
|
|
@@ -6,5 +6,5 @@ interface InputRgbProps {
|
|
|
6
6
|
onAlphaChange: (value: number) => void;
|
|
7
7
|
disabledAlpha?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare const InputRgb: ({ color, alpha, onHsvChange, onAlphaChange, disabledAlpha, }: InputRgbProps) => import("react/jsx-
|
|
9
|
+
export declare const InputRgb: ({ color, alpha, onHsvChange, onAlphaChange, disabledAlpha, }: InputRgbProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -3,5 +3,5 @@ interface PaletteProps {
|
|
|
3
3
|
color: Color;
|
|
4
4
|
onChange: (s: number, v: number) => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const Palette: ({ color, onChange }: PaletteProps) => import("react/jsx-
|
|
6
|
+
export declare const Palette: ({ color, onChange }: PaletteProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -96,7 +96,6 @@ export interface ColorPickerProps {
|
|
|
96
96
|
/**
|
|
97
97
|
* @zh 自定义触发元素。
|
|
98
98
|
* @en The trigger element which executes the dropdown action.
|
|
99
|
-
* @version 2.60.0
|
|
100
99
|
*/
|
|
101
100
|
triggerElement?: ReactNode | ((params: {
|
|
102
101
|
value: string | GradientColor[];
|
|
@@ -114,7 +113,6 @@ export interface ColorPickerProps {
|
|
|
114
113
|
/**
|
|
115
114
|
* @zh 自定义面板底部内容
|
|
116
115
|
* @en Customize the bottom content of the panel
|
|
117
|
-
* @version 2.62.0
|
|
118
116
|
*/
|
|
119
117
|
renderFooter?: () => ReactNode;
|
|
120
118
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ConfigContext, { ConfigProviderDefaultProps } from './context';
|
|
2
2
|
import { ConfigProviderProps } from './interface';
|
|
3
|
-
declare function ConfigProvider(baseProps: ConfigProviderProps): import("react/jsx-
|
|
3
|
+
declare function ConfigProvider(baseProps: ConfigProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare namespace ConfigProvider {
|
|
5
5
|
var ConfigContext: import("react").Context<ConfigProviderProps>;
|
|
6
6
|
var displayName: string;
|