@unicom-cloud/ui 0.8.93 → 0.8.94
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/Checkbox.js +5 -4
- package/Layout.js +8 -7
- package/cascader/panel/Option.js +7 -6
- package/cascader/panel/Search.js +17 -16
- package/checkbox/index.js +7 -6
- package/color-picker/Mode.js +7 -6
- package/index.js +171 -171
- package/layout/index.js +11 -9
- package/package.json +1 -1
- package/pagination/PageItem.js +52 -53
- package/pagination/Pagination.js +2 -1
- package/pagination/interface.js +4 -1
- package/select/Option.js +12 -11
- package/select/Select.js +1 -0
- package/table/tbody/Tr.js +3 -2
- package/table/thead/Column.js +3 -2
- package/table/thead/index.js +3 -2
- package/transfer/Item.js +17 -16
- package/transfer/List.js +12 -11
- package/tree/Node.js +43 -41
- package/tree/Tree.js +215 -211
- package/types/pc/affix/index.d.ts +1 -1
- package/types/pc/alert/index.d.ts +1 -1
- package/types/pc/anchor/Anchor.d.ts +1 -1
- package/types/pc/anchor/Link.d.ts +1 -1
- package/types/pc/anchor/context.d.ts +1 -1
- package/types/pc/auto-complete/index.d.ts +1 -1
- package/types/pc/avatar/Avatar.d.ts +1 -1
- package/types/pc/avatar/Group.d.ts +1 -1
- package/types/pc/avatar/context.d.ts +1 -1
- package/types/pc/back-top/index.d.ts +1 -1
- package/types/pc/badge/index.d.ts +2 -2
- package/types/pc/breadcrumb/Item.d.ts +1 -1
- package/types/pc/breadcrumb/index.d.ts +1 -1
- package/types/pc/button/Group.d.ts +1 -1
- package/types/pc/button/index.d.ts +1 -1
- package/types/pc/calendar/Month.d.ts +1 -1
- package/types/pc/calendar/Year.d.ts +1 -1
- package/types/pc/calendar/index.d.ts +1 -1
- package/types/pc/card/Grid.d.ts +1 -1
- package/types/pc/card/Meta.d.ts +1 -1
- package/types/pc/card/index.d.ts +1 -1
- package/types/pc/carousel/Arrow.d.ts +1 -1
- package/types/pc/carousel/Indicator.d.ts +1 -1
- package/types/pc/carousel/index.d.ts +2 -2
- package/types/pc/cascader/Cascader.d.ts +1 -1
- package/types/pc/cascader/util.d.ts +1 -1
- package/types/pc/checkbox/Checkbox.d.ts +1 -1
- package/types/pc/checkbox/Group.d.ts +1 -1
- package/types/pc/checkbox/GroupBlock.d.ts +1 -1
- package/types/pc/checkbox/index.d.ts +1 -1
- package/types/pc/collapse/Collapse.d.ts +1 -1
- package/types/pc/collapse/Item.d.ts +1 -1
- package/types/pc/color-picker/InputHex.d.ts +1 -1
- package/types/pc/color-picker/InputRgb.d.ts +1 -1
- package/types/pc/color-picker/Mode.d.ts +1 -1
- package/types/pc/color-picker/Palette.d.ts +1 -1
- package/types/pc/color-picker/index.d.ts +1 -1
- package/types/pc/color-picker/utils.d.ts +1 -1
- package/types/pc/comment/index.d.ts +1 -1
- package/types/pc/config-provider/ConfigProvider.d.ts +3 -2
- package/types/pc/config-provider/context.d.ts +1 -1
- package/types/pc/config-provider/interface.d.ts +1 -1
- package/types/pc/copy/index.d.ts +1 -1
- package/types/pc/date-picker/Picker.d.ts +1 -2
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/date-picker/index.d.ts +1 -1
- package/types/pc/descriptions/index.d.ts +1 -1
- package/types/pc/details/index.d.ts +1 -1
- package/types/pc/divider/index.d.ts +1 -1
- package/types/pc/draggable/Item.d.ts +1 -1
- package/types/pc/draggable/index.d.ts +1 -1
- package/types/pc/drawer/Drawer.d.ts +2 -2
- package/types/pc/dropdown/Button.d.ts +1 -1
- package/types/pc/dropdown/index.d.ts +1 -1
- package/types/pc/empty/index.d.ts +1 -1
- package/types/pc/form/Control.d.ts +1 -1
- package/types/pc/form/Form.d.ts +1 -1
- package/types/pc/form/FormLabel.d.ts +1 -1
- package/types/pc/form/FormList.d.ts +1 -1
- package/types/pc/form/FormProvider.d.ts +1 -1
- package/types/pc/form/context.d.ts +1 -1
- package/types/pc/form/hook/useForm.d.ts +1 -1
- package/types/pc/form/index.d.ts +1 -1
- package/types/pc/form/interface.d.ts +2 -2
- package/types/pc/form/store.d.ts +3 -4
- package/types/pc/form/util.d.ts +3 -3
- package/types/pc/grid/Col.d.ts +1 -1
- package/types/pc/grid/Grid.d.ts +1 -1
- package/types/pc/grid/GridItem.d.ts +1 -1
- package/types/pc/grid/Row.d.ts +1 -1
- package/types/pc/grid/context.d.ts +1 -1
- package/types/pc/grid/util.d.ts +1 -1
- package/types/pc/hooks/use-watermark/index.d.ts +1 -1
- package/types/pc/icons/file/index.d.ts +1 -1
- package/types/pc/image/Image.d.ts +1 -1
- package/types/pc/image/ImageFooter.d.ts +1 -1
- package/types/pc/image/ImagePreview.d.ts +1 -1
- package/types/pc/image/ImagePreviewGroup.d.ts +1 -1
- package/types/pc/image/ImagePreviewToolbar.d.ts +1 -1
- package/types/pc/image/index.d.ts +1 -1
- package/types/pc/image/previewGroupContext.d.ts +1 -1
- package/types/pc/input/Button.d.ts +1 -1
- package/types/pc/input/Group.d.ts +1 -1
- package/types/pc/input/Input.d.ts +1 -1
- package/types/pc/input/InputElement.d.ts +1 -1
- package/types/pc/input/Password.d.ts +1 -1
- package/types/pc/input/Search.d.ts +1 -1
- package/types/pc/input/Textarea.d.ts +1 -1
- package/types/pc/input/index.d.ts +1 -1
- package/types/pc/input/useComposition.d.ts +1 -1
- package/types/pc/input-number/index.d.ts +1 -1
- package/types/pc/input-tag/InputTag.d.ts +2 -2
- package/types/pc/input-tag/interface.d.ts +2 -2
- package/types/pc/layout/Content.d.ts +1 -1
- package/types/pc/layout/Footer.d.ts +1 -1
- package/types/pc/layout/Header.d.ts +1 -1
- package/types/pc/layout/Sider.d.ts +1 -1
- package/types/pc/layout/index.d.ts +2 -2
- package/types/pc/link/index.d.ts +1 -1
- package/types/pc/list/Item.d.ts +1 -1
- package/types/pc/list/Meta.d.ts +1 -1
- package/types/pc/list/index.d.ts +2 -2
- package/types/pc/mentions/index.d.ts +1 -1
- package/types/pc/mentions/util.d.ts +1 -1
- package/types/pc/menu/Item.d.ts +1 -1
- package/types/pc/menu/ItemGroup.d.ts +1 -1
- package/types/pc/menu/Menu.d.ts +1 -1
- package/types/pc/menu/OverflowWrap.d.ts +1 -1
- package/types/pc/menu/context.d.ts +1 -1
- package/types/pc/menu/index.d.ts +1 -1
- package/types/pc/menu/interface.d.ts +1 -1
- package/types/pc/message/index.d.ts +2 -2
- package/types/pc/message/useMessage.d.ts +1 -1
- package/types/pc/modal/Modal.d.ts +2 -2
- package/types/pc/modal/config.d.ts +1 -1
- package/types/pc/notification/index.d.ts +2 -2
- package/types/pc/notification/useNotification.d.ts +1 -1
- package/types/pc/page-header/index.d.ts +2 -2
- package/types/pc/pagination/PageItem.d.ts +2 -47
- package/types/pc/pagination/Pagination.d.ts +1 -1
- package/types/pc/pagination/interface.d.ts +47 -0
- package/types/pc/popconfirm/index.d.ts +1 -1
- package/types/pc/popover/index.d.ts +1 -1
- package/types/pc/popover/interface.d.ts +1 -1
- package/types/pc/progress/CircleProgress.d.ts +1 -1
- package/types/pc/progress/index.d.ts +1 -1
- package/types/pc/radio/Group.d.ts +1 -1
- package/types/pc/radio/GroupBlock.d.ts +1 -1
- package/types/pc/radio/Radio.d.ts +1 -1
- package/types/pc/radio/index.d.ts +1 -1
- package/types/pc/rate/index.d.ts +1 -1
- package/types/pc/resize-box/Split.d.ts +1 -1
- package/types/pc/resize-box/SplitGroup.d.ts +1 -1
- package/types/pc/resize-box/index.d.ts +1 -1
- package/types/pc/result/index.d.ts +1 -1
- package/types/pc/select/OptGroup.d.ts +1 -1
- package/types/pc/select/Option.d.ts +1 -1
- package/types/pc/select/Select.d.ts +3 -2
- package/types/pc/select/index.d.ts +1 -1
- package/types/pc/select/util.d.ts +1 -1
- package/types/pc/select-view/Core.d.ts +1 -1
- package/types/pc/select-view/index.d.ts +1 -1
- package/types/pc/skeleton/Image.d.ts +1 -1
- package/types/pc/skeleton/Text.d.ts +1 -1
- package/types/pc/skeleton/index.d.ts +1 -1
- package/types/pc/slider/Button.d.ts +1 -1
- package/types/pc/slider/hook/useInterval.d.ts +1 -1
- package/types/pc/slider/index.d.ts +1 -1
- package/types/pc/space/index.d.ts +1 -1
- package/types/pc/space-/index.d.ts +1 -1
- package/types/pc/spin/index.d.ts +1 -1
- package/types/pc/statistic/Countdown.d.ts +1 -1
- package/types/pc/statistic/index.d.ts +2 -2
- package/types/pc/steps/Step.d.ts +1 -1
- package/types/pc/steps/index.d.ts +1 -1
- package/types/pc/switch/index.d.ts +2 -2
- package/types/pc/table/ColGroup.d.ts +1 -1
- package/types/pc/table/Table.d.ts +1 -1
- package/types/pc/table/constant.d.ts +1 -1
- package/types/pc/table/interface.d.ts +1 -1
- package/types/pc/table/util.d.ts +1 -1
- package/types/pc/tabs/Tab.d.ts +1 -1
- package/types/pc/tabs/TabPane.d.ts +1 -1
- package/types/pc/tabs/index.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
- package/types/pc/tabs/tab-header/index.d.ts +1 -1
- package/types/pc/tag/index.d.ts +1 -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/TimePicker.d.ts +1 -1
- package/types/pc/time-picker/index.d.ts +1 -1
- package/types/pc/timeline/Item.d.ts +1 -1
- package/types/pc/timeline/Timeline.d.ts +1 -1
- package/types/pc/timeline/index.d.ts +1 -1
- package/types/pc/tooltip/index.d.ts +2 -2
- package/types/pc/transfer/Item.d.ts +1 -1
- package/types/pc/transfer/List.d.ts +1 -1
- package/types/pc/transfer/index.d.ts +1 -1
- package/types/pc/tree/Animation.d.ts +1 -1
- package/types/pc/tree/Context.d.ts +1 -1
- package/types/pc/tree/Node.d.ts +1 -1
- package/types/pc/tree/Tree.d.ts +1 -1
- package/types/pc/tree/index.d.ts +2 -2
- package/types/pc/tree/interface.d.ts +19 -3
- package/types/pc/tree/util.d.ts +1 -1
- package/types/pc/tree-select/List.d.ts +1 -1
- package/types/pc/trigger/getPopupStyle.d.ts +1 -1
- package/types/pc/trigger/index.d.ts +2 -2
- package/types/pc/typography/EditContent.d.ts +1 -1
- package/types/pc/typography/Ellipsis.d.ts +1 -1
- package/types/pc/typography/Operations.d.ts +1 -1
- package/types/pc/typography/Paragraph.d.ts +1 -1
- package/types/pc/typography/Title.d.ts +1 -1
- package/types/pc/typography/Typography.d.ts +1 -1
- package/types/pc/typography/useCssEllipsis.d.ts +1 -1
- package/types/pc/typography/useEllipsis.d.ts +1 -1
- package/types/pc/upload/TriggerNode.d.ts +1 -1
- package/types/pc/upload/Upload.d.ts +2 -2
- package/types/pc/upload/Uploader.d.ts +1 -1
- package/types/pc/upload/request.d.ts +1 -1
- package/types/pc/upload/util.d.ts +1 -1
- package/types/pc/verification-code/VerificationCode.d.ts +1 -1
- package/types/pc/verification-code/index.d.ts +1 -1
- package/types/pc/watermark/Watermark.d.ts +1 -1
- package/types/pc/watermark/index.d.ts +2 -2
- package/typography/Ellipsis.js +3 -2
- package/version/index.js +1 -1
package/types/pc/rate/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { RateProps } from './interface';
|
|
3
3
|
declare const RateComponent: React.ForwardRefExoticComponent<RateProps & React.RefAttributes<unknown>>;
|
|
4
4
|
export default RateComponent;
|
|
5
5
|
export type { RateProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SplitProps } from './interface';
|
|
2
2
|
declare const SplitComponent: import("react").ForwardRefExoticComponent<SplitProps & import("react").RefAttributes<unknown>>;
|
|
3
3
|
export default SplitComponent;
|
|
4
4
|
export type { SplitProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { SplitGroupProps } from './interface';
|
|
3
3
|
declare const SplitGroupComponent: React.ForwardRefExoticComponent<SplitGroupProps & React.RefAttributes<unknown>>;
|
|
4
4
|
export default SplitGroupComponent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Split from './Split';
|
|
2
2
|
import SplitGroup from './SplitGroup';
|
|
3
|
-
import
|
|
3
|
+
import { ResizeBoxProps } from './interface';
|
|
4
4
|
export type DirectionType = 'left' | 'right' | 'top' | 'bottom';
|
|
5
5
|
declare const ForwardRefResizeBox: import("react").ForwardRefExoticComponent<ResizeBoxProps & {
|
|
6
6
|
children?: import("react").ReactNode | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ResultProps } from './interface';
|
|
2
2
|
declare const ResultRef: import("react").ForwardRefExoticComponent<ResultProps & {
|
|
3
3
|
children?: import("react").ReactNode | undefined;
|
|
4
4
|
} & import("react").RefAttributes<unknown>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { OptGroupProps } from './interface';
|
|
3
3
|
declare const ForwardRefOptGroup: React.ForwardRefExoticComponent<OptGroupProps & React.RefAttributes<unknown>>;
|
|
4
4
|
declare const OptGroupComponent: typeof ForwardRefOptGroup & {
|
|
5
5
|
__PQB_SELECT_OPTGROUP__?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { OptionProps } from './interface';
|
|
3
3
|
declare const ForwordRefOption: React.ForwardRefExoticComponent<OptionProps & React.RefAttributes<unknown>>;
|
|
4
4
|
declare const OptionComponent: typeof ForwordRefOption & {
|
|
5
5
|
__PQB_SELECT_OPTION__?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { SelectHandle, SelectProps } from './interface';
|
|
3
3
|
import OptGroup from './OptGroup';
|
|
4
4
|
import Option from './Option';
|
|
5
5
|
declare const ForwardRefSelect: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<SelectHandle>>;
|
|
@@ -7,5 +7,6 @@ declare const SelectComponent: typeof ForwardRefSelect & {
|
|
|
7
7
|
Option: typeof Option;
|
|
8
8
|
OptGroup: typeof OptGroup;
|
|
9
9
|
};
|
|
10
|
-
export {
|
|
10
|
+
export { Option as SelectOption, OptGroup as SelectOptionGroup };
|
|
11
11
|
export default SelectComponent;
|
|
12
|
+
export type { SelectHandle };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { OptionInfo, OptionProps, SelectInnerStateValue, SelectProps } from './interface';
|
|
3
3
|
export type OptionInfoMap = Map<OptionProps['value'], OptionInfo>;
|
|
4
4
|
declare function preventDefaultEvent(e: any): void;
|
|
5
5
|
declare function isEmpty(value: any, isMultiple: boolean): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { SkeletonProps } from './interface';
|
|
3
3
|
declare const SkeletonComponent: React.ForwardRefExoticComponent<SkeletonProps & {
|
|
4
4
|
children?: React.ReactNode | undefined;
|
|
5
5
|
} & React.RefAttributes<unknown>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { SliderProps } from './interface';
|
|
3
3
|
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<unknown>>>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export type { SliderProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SpaceVertical as SpaceVerticalCommon } from '../../common/space';
|
|
2
|
-
import
|
|
2
|
+
import { SpaceProps } from './interface';
|
|
3
3
|
declare const Space: import("react").ForwardRefExoticComponent<SpaceProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export { SpaceVerticalCommon as SpaceVertical };
|
|
5
5
|
export default Space;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SpaceProps, SpaceSize } from './interface';
|
|
2
2
|
declare const Space: import("react").ForwardRefExoticComponent<SpaceProps & import("react").RefAttributes<unknown>>;
|
|
3
3
|
declare const SpaceVertical: import("react").ForwardRefExoticComponent<SpaceProps & import("react").RefAttributes<unknown>>;
|
|
4
4
|
export { SpaceVertical };
|
package/types/pc/spin/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { SpinProps } from './interface';
|
|
3
3
|
declare const SpinComponent: React.ForwardRefExoticComponent<SpinProps & React.RefAttributes<unknown>>;
|
|
4
4
|
export default SpinComponent;
|
|
5
5
|
export type { SpinProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CountdownProps } from './interface';
|
|
2
2
|
declare const CountdownComponent: import("react").ForwardRefExoticComponent<CountdownProps & import("react").RefAttributes<unknown>>;
|
|
3
3
|
export default CountdownComponent;
|
|
4
4
|
export type { CountdownProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Countdown from './Countdown';
|
|
2
|
-
import
|
|
2
|
+
import { StatisticProps } from './interface';
|
|
3
3
|
declare const ForwardRefStatistic: import("react").ForwardRefExoticComponent<StatisticProps & import("react").RefAttributes<unknown>>;
|
|
4
4
|
declare const StatisticComponent: typeof ForwardRefStatistic & {
|
|
5
5
|
Countdown: typeof Countdown;
|
|
6
6
|
};
|
|
7
7
|
export { Countdown as StatisticCountdown };
|
|
8
8
|
export default StatisticComponent;
|
|
9
|
-
export { StatisticProps };
|
|
9
|
+
export type { StatisticProps };
|
package/types/pc/steps/Step.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { StepProps } from './interface';
|
|
2
2
|
declare const StepComponent: import("react").ForwardRefExoticComponent<StepProps & import("react").RefAttributes<unknown>>;
|
|
3
3
|
export default StepComponent;
|
|
4
4
|
export type { StepProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Step from './Step';
|
|
3
|
-
import
|
|
3
|
+
import { StepsProps } from './interface';
|
|
4
4
|
declare const ForwardRefSteps: React.ForwardRefExoticComponent<StepsProps & React.RefAttributes<unknown>>;
|
|
5
5
|
declare const StepsComponent: typeof ForwardRefSteps & {
|
|
6
6
|
Step: typeof Step;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { SwitchProps } from './interface';
|
|
3
3
|
export interface SwitchState {
|
|
4
4
|
checked: boolean;
|
|
5
5
|
}
|
|
@@ -8,4 +8,4 @@ declare const SwitchComponent: typeof ForwardRefSwitch & {
|
|
|
8
8
|
__PQB_SWITCH: boolean;
|
|
9
9
|
};
|
|
10
10
|
export default SwitchComponent;
|
|
11
|
-
export { SwitchProps };
|
|
11
|
+
export type { SwitchProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentProps } from './interface';
|
|
2
2
|
export declare const INTERNAL_SELECTION_KEY = "table_internal_selection_key";
|
|
3
3
|
export declare const INTERNAL_EXPAND_KEY = "table_internal_expand_key";
|
|
4
4
|
export declare const defaultComponent: ComponentProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { PaginationProps } from '../pagination/Pagination';
|
|
3
3
|
import { SpinProps } from '../spin';
|
|
4
|
-
import
|
|
4
|
+
import { TooltipProps } from '../tooltip';
|
|
5
5
|
import { TriggerProps } from '../trigger';
|
|
6
6
|
import { AvailableVirtualListProps, VirtualListHandle } from '../virtual-list';
|
|
7
7
|
export type RowCallbackProps = {
|
package/types/pc/table/util.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ColumnProps, SorterFn } from './interface';
|
|
2
2
|
export declare function px2Number(width: number | string): number | string;
|
|
3
3
|
export declare function getScrollBarHeight(ele: HTMLElement | null): number;
|
|
4
4
|
export declare function getScrollBarWidth(ele: HTMLElement | null): number;
|
package/types/pc/tabs/Tab.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
2
|
import TabPane, { TabPaneProps, TabPaneType } from './TabPane';
|
|
3
|
-
import
|
|
3
|
+
import { TabsProps } from './interface';
|
|
4
4
|
export declare const TabsContext: React.Context<TabsProps & {
|
|
5
5
|
getIdPrefix?: (suffix?: number | string) => {
|
|
6
6
|
tab: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ForwardRefExoticComponent, PropsWithChildren } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { TabPaneProps } from './interface';
|
|
3
3
|
export type TabPaneType = ForwardRefExoticComponent<PropsWithChildren<TabPaneProps>> & {
|
|
4
4
|
isTabPane: boolean;
|
|
5
5
|
};
|
package/types/pc/tabs/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { TabsProps } from '../../tabs/interface';
|
|
3
3
|
declare const TabHeader: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export default TabHeader;
|
package/types/pc/tag/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import { CalendarValue, PickerProps } from './interface';
|
|
4
4
|
interface InnerPickerProps extends PickerProps {
|
|
5
5
|
defaultValue?: CalendarValue | CalendarValue[];
|
|
6
6
|
value?: CalendarValue | CalendarValue[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
|
2
|
-
import
|
|
2
|
+
import { RangePickerProps } from './interface';
|
|
3
3
|
interface InnerRangePickerProps extends RangePickerProps {
|
|
4
4
|
focusedInputIndex?: number;
|
|
5
5
|
changeFocusedInputIndex?: (index: number) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import { CalendarValue, TimePickerProps } from './interface';
|
|
4
4
|
interface InnerTimePickerProps extends TimePickerProps {
|
|
5
5
|
confirmBtnDisabled?: boolean;
|
|
6
6
|
popupVisible?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { RangePickerProps, TimePickerDecorator, TimePickerProps } from './interface';
|
|
2
2
|
declare const RangePicker: {
|
|
3
3
|
(props: RangePickerProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { TimelineItemProps } from './interface';
|
|
3
3
|
declare const ForwardRefItem: React.ForwardRefExoticComponent<TimelineItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
declare const TimelineItem: typeof ForwardRefItem & {
|
|
5
5
|
isTimelineItem?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Item from './Item';
|
|
3
|
-
import
|
|
3
|
+
import { TimelineProps } from './interface';
|
|
4
4
|
declare const ForwardRefTimeline: React.ForwardRefExoticComponent<TimelineProps & {
|
|
5
5
|
children?: React.ReactNode | undefined;
|
|
6
6
|
} & React.RefAttributes<unknown>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { TooltipProps } from './interface';
|
|
2
2
|
export type TooltipHandle = {
|
|
3
3
|
updatePopupPosition: () => void;
|
|
4
4
|
};
|
|
@@ -6,4 +6,4 @@ declare const TooltipComponent: import("react").ForwardRefExoticComponent<Toolti
|
|
|
6
6
|
children?: import("react").ReactNode | undefined;
|
|
7
7
|
} & import("react").RefAttributes<TooltipHandle>>;
|
|
8
8
|
export default TooltipComponent;
|
|
9
|
-
export { TooltipProps };
|
|
9
|
+
export type { TooltipProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { TransferListProps } from './interface';
|
|
3
3
|
export declare const TransferList: (props: TransferListProps, ref: any) => import("react/jsx-dev-runtime").JSX.Element;
|
|
4
4
|
declare const TransferListComponent: React.ForwardRefExoticComponent<TransferListProps & React.RefAttributes<unknown>>;
|
|
5
5
|
export default TransferListComponent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { TransferProps } from './interface';
|
|
3
3
|
declare const TransferComponent: React.ForwardRefExoticComponent<TransferProps & React.RefAttributes<unknown>>;
|
|
4
4
|
export default TransferComponent;
|
|
5
5
|
export type { TransferProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { NodeProps } from './interface';
|
|
3
3
|
declare const TreeAnimation: (props: PropsWithChildren<NodeProps>) => import("react/jsx-dev-runtime").JSX.Element;
|
|
4
4
|
export default TreeAnimation;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DragEvent } from 'react';
|
|
2
2
|
import { AvailableVirtualListProps } from '../virtual-list';
|
|
3
|
-
import
|
|
3
|
+
import { NodeProps, TreeDataType, TreeProps, TreeState } from './interface';
|
|
4
4
|
export declare const TreeContext: import("react").Context<{
|
|
5
5
|
icons?: NodeProps["icons"];
|
|
6
6
|
loadMore?: (node: NodeProps) => void;
|
package/types/pc/tree/Node.d.ts
CHANGED
package/types/pc/tree/Tree.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ForwardRefExoticComponent, MemoExoticComponent, ReactNode, RefAttributes } from 'react';
|
|
2
2
|
import Node from './Node';
|
|
3
|
-
import
|
|
3
|
+
import { NodeProps, TreeDataType, TreeProps } from './interface';
|
|
4
4
|
export type key2nodePropsType = {
|
|
5
5
|
[key: string]: TreeDataType;
|
|
6
6
|
};
|
package/types/pc/tree/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { NodeProps, TreeDataType, TreeProps } from './interface';
|
|
2
2
|
export type key2nodePropsType = {
|
|
3
3
|
[key: string]: TreeDataType;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export * from './interface';
|
|
6
6
|
export type { TreeDataType, NodeProps as TreeNodeProps, TreeProps };
|
|
7
7
|
export * from './Tree';
|
|
8
8
|
export { default } from './Tree';
|
|
@@ -217,11 +217,18 @@ export interface TreeProps {
|
|
|
217
217
|
selectedNodes: NodeInstance[];
|
|
218
218
|
node: NodeInstance;
|
|
219
219
|
e: Event;
|
|
220
|
+
data: unknown;
|
|
220
221
|
}) => void;
|
|
221
222
|
/**
|
|
222
223
|
* @zh 点击树节点的回调
|
|
223
224
|
*/
|
|
224
|
-
onNodeSelect?: (key: string, data: unknown, extra:
|
|
225
|
+
onNodeSelect?: (key: string, data: unknown, extra: {
|
|
226
|
+
selected: boolean;
|
|
227
|
+
selectedNodes: NodeInstance[];
|
|
228
|
+
node: NodeInstance;
|
|
229
|
+
e: Event;
|
|
230
|
+
data: unknown;
|
|
231
|
+
}) => void;
|
|
225
232
|
/**
|
|
226
233
|
* @zh 点击树节点复选框的回调
|
|
227
234
|
* @en Callback when checked node
|
|
@@ -230,14 +237,23 @@ export interface TreeProps {
|
|
|
230
237
|
node: NodeInstance;
|
|
231
238
|
checkedNodes: NodeInstance[];
|
|
232
239
|
checked: boolean;
|
|
233
|
-
halfCheckedKeys: string[];
|
|
240
|
+
halfCheckedKeys: string[] | undefined;
|
|
234
241
|
halfCheckedNodes: NodeInstance[];
|
|
235
242
|
e: Event;
|
|
243
|
+
data: unknown;
|
|
236
244
|
}) => void;
|
|
237
245
|
/**
|
|
238
246
|
* @zh 点击树节点复选框的回调
|
|
239
247
|
*/
|
|
240
|
-
onNodeCheck?: (key: string, data: unknown, extra:
|
|
248
|
+
onNodeCheck?: (key: string, data: unknown, extra: {
|
|
249
|
+
node: NodeInstance;
|
|
250
|
+
checkedNodes: NodeInstance[];
|
|
251
|
+
checked: boolean;
|
|
252
|
+
halfCheckedKeys: string[] | undefined;
|
|
253
|
+
halfCheckedNodes: NodeInstance[];
|
|
254
|
+
e: Event;
|
|
255
|
+
data: unknown;
|
|
256
|
+
}) => void;
|
|
241
257
|
/**
|
|
242
258
|
* @zh 点击展开/关闭的回调
|
|
243
259
|
* @en Callback when expanded or collapsed node
|
package/types/pc/tree/util.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { key2nodePropsType } from '.';
|
|
3
|
-
import
|
|
3
|
+
import { TreeDataType } from './interface';
|
|
4
4
|
export declare const getTreeDataFromTreeChildren: (treeChildren: ReactNode) => any;
|
|
5
5
|
export declare function getChildNodeKeys(node: TreeDataType, key2nodeProps: key2nodePropsType): Set<string>;
|
|
6
6
|
export declare function getCheckedKeysByInitKeys(checkedKeys: string[], key2nodeProps: any): {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { MouseLocationType, TriggerProps } from './interface';
|
|
3
3
|
export declare const getBoundingClientRect: (dom: any, options: {
|
|
4
4
|
boundaryDistance?: TriggerProps["boundaryDistance"];
|
|
5
5
|
position: TriggerProps["position"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { TypographyEllipsisProps } from './interface';
|
|
3
3
|
declare const Ellipsis: React.ForwardRefExoticComponent<TypographyEllipsisProps & {
|
|
4
4
|
children?: React.ReactNode | undefined;
|
|
5
5
|
} & React.RefAttributes<unknown>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { OperationsProps } from './interface';
|
|
3
3
|
declare function Operations(props: PropsWithChildren<OperationsProps>): import("react/jsx-dev-runtime").JSX.Element;
|
|
4
4
|
export default Operations;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { TypographyParagraphProps } from './interface';
|
|
2
2
|
declare const Paragraph: import("react").ForwardRefExoticComponent<TypographyParagraphProps & import("react").RefAttributes<unknown>>;
|
|
3
3
|
export default Paragraph;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { TypographyProps } from './interface';
|
|
2
2
|
declare const TypographyComponent: import("react").ForwardRefExoticComponent<TypographyProps & import("react").RefAttributes<unknown>>;
|
|
3
3
|
export default TypographyComponent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { EllipsisConfig } from './interface';
|
|
3
3
|
interface IEllipsis extends EllipsisConfig {
|
|
4
4
|
width: number;
|
|
5
5
|
renderMeasureContent: (slicedNode: any, isEllipsis: boolean) => React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { TriggerProps } from './interface';
|
|
3
3
|
declare const _default: React.ForwardRefExoticComponent<TriggerProps & {
|
|
4
4
|
children?: React.ReactNode | undefined;
|
|
5
5
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { UploadInstance, UploadItem, UploadProps } from './interface';
|
|
3
3
|
import UploadList from './list';
|
|
4
4
|
export type UploadState = {
|
|
5
5
|
uploadState: {
|
|
@@ -11,4 +11,4 @@ declare const UploadRef: React.ForwardRefExoticComponent<UploadProps & {
|
|
|
11
11
|
} & React.RefAttributes<UploadInstance>>;
|
|
12
12
|
export { UploadList };
|
|
13
13
|
export default UploadRef;
|
|
14
|
-
export { UploadItem, UploadProps };
|
|
14
|
+
export type { UploadItem, UploadProps };
|