acud 1.2.23 → 1.2.25
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/acud.css +5 -4
- package/dist/acud.css.map +1 -1
- package/dist/acud.js +191 -159
- package/dist/acud.js.map +1 -1
- package/dist/acud.min.css +1 -1
- package/dist/acud.min.css.map +1 -1
- package/dist/acud.min.js +4 -4
- package/dist/acud.min.js.map +1 -1
- package/es/affix/index.d.ts +1 -1
- package/es/anchor/Anchor.d.ts +1 -1
- package/es/anchor/AnchorLink.d.ts +2 -2
- package/es/badge/SingleNumber.d.ts +2 -2
- package/es/button/LoadingIcon.d.ts +1 -2
- package/es/calendar/Header.d.ts +2 -2
- package/es/calendar/generateCalendar.d.ts +1 -1
- package/es/calendar/index.d.ts +1 -1
- package/es/card/Card.d.ts +1 -1
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/MenuItem.d.ts +1 -1
- package/es/cascader/Menus.d.ts +3 -3
- package/es/checkbox/BaseCheckbox.d.ts +1 -1
- package/es/checkbox/ButtonCheckbox.d.ts +1 -1
- package/es/checkbox/GroupButtonCheckbox.d.ts +1 -2
- package/es/clear/index.d.ts +1 -2
- package/es/date-picker/PickerButton.d.ts +2 -2
- package/es/date-picker/PickerTag.d.ts +2 -2
- package/es/date-picker/src/Picker.d.ts +1 -1
- package/es/date-picker/src/PickerPanel.d.ts +1 -1
- package/es/date-picker/src/PickerTrigger.d.ts +1 -1
- package/es/date-picker/src/RangePicker.d.ts +1 -1
- package/es/date-picker/src/panels/DatePanel/DateBody.d.ts +1 -1
- package/es/date-picker/src/panels/DatePanel/DateHeader.d.ts +2 -2
- package/es/date-picker/src/panels/DatePanel/index.d.ts +2 -2
- package/es/date-picker/src/panels/DatetimePanel/index.d.ts +2 -2
- package/es/date-picker/src/panels/DecadePanel/DecadeBody.d.ts +2 -2
- package/es/date-picker/src/panels/DecadePanel/DecadeHeader.d.ts +2 -2
- package/es/date-picker/src/panels/DecadePanel/index.d.ts +2 -2
- package/es/date-picker/src/panels/Header.d.ts +1 -1
- package/es/date-picker/src/panels/MonthPanel/MonthBody.d.ts +1 -1
- package/es/date-picker/src/panels/MonthPanel/MonthHeader.d.ts +2 -2
- package/es/date-picker/src/panels/MonthPanel/index.d.ts +2 -2
- package/es/date-picker/src/panels/PanelBody.d.ts +1 -1
- package/es/date-picker/src/panels/QuarterPanel/QuarterBody.d.ts +2 -2
- package/es/date-picker/src/panels/QuarterPanel/QuarterHeader.d.ts +2 -2
- package/es/date-picker/src/panels/QuarterPanel/index.d.ts +2 -2
- package/es/date-picker/src/panels/TimePanel/TimeBody.d.ts +1 -1
- package/es/date-picker/src/panels/TimePanel/TimeHeader.d.ts +2 -2
- package/es/date-picker/src/panels/TimePanel/TimeUnitColumn.d.ts +1 -1
- package/es/date-picker/src/panels/TimePanel/index.d.ts +2 -2
- package/es/date-picker/src/panels/WeekPanel/index.d.ts +2 -2
- package/es/date-picker/src/panels/YearPanel/YearBody.d.ts +2 -2
- package/es/date-picker/src/panels/YearPanel/YearHeader.d.ts +2 -2
- package/es/date-picker/src/panels/YearPanel/index.d.ts +2 -2
- package/es/date-picker/src/utils/getExtraFooter.d.ts +1 -1
- package/es/date-picker/src/utils/getRanges.d.ts +2 -2
- package/es/form/ErrorList.d.ts +1 -1
- package/es/input-number/src/StepHandler.d.ts +1 -1
- package/es/loading/icon.d.ts +1 -2
- package/es/locale-provider/index.d.ts +1 -1
- package/es/menu/SubMenu.js +4 -1
- package/es/menu/rc-menu/Divider.d.ts +1 -1
- package/es/menu/rc-menu/SubMenu/InlineSubMenuList.d.ts +1 -1
- package/es/menu/rc-menu/SubMenu/PopupTrigger.d.ts +1 -1
- package/es/menu/rc-menu/SubMenu/index.d.ts +1 -1
- package/es/menu/rc-menu/context/MenuContext.d.ts +1 -1
- package/es/radio/RadioButton.d.ts +1 -2
- package/es/radio/RadioGroup.d.ts +1 -1
- package/es/select/src/Select.d.ts +1 -1
- package/es/skeleton/Avatar.d.ts +1 -2
- package/es/skeleton/Button.d.ts +1 -2
- package/es/skeleton/Element.d.ts +1 -1
- package/es/skeleton/Image.d.ts +1 -2
- package/es/skeleton/Input.d.ts +1 -2
- package/es/skeleton/Paragraph.d.ts +1 -1
- package/es/skeleton/Skeleton.d.ts +5 -5
- package/es/skeleton/Title.d.ts +1 -1
- package/es/space/Item.d.ts +1 -1
- package/es/steps/index.d.ts +1 -1
- package/es/steps/src/step.d.ts +1 -1
- package/es/steps/src/steps.d.ts +1 -1
- package/es/table/ExpandIcon.d.ts +1 -1
- package/es/table/baseTable/Body/BodyRow.d.ts +1 -1
- package/es/table/baseTable/Body/ExpandedRow.d.ts +1 -1
- package/es/table/baseTable/Body/MeasureCell.d.ts +1 -1
- package/es/table/baseTable/Body/MeasureRow.d.ts +1 -1
- package/es/table/baseTable/Body/index.d.ts +1 -1
- package/es/table/baseTable/ColGroup.d.ts +2 -2
- package/es/table/baseTable/Footer/Cell.d.ts +1 -1
- package/es/table/baseTable/Footer/Row.d.ts +1 -1
- package/es/table/baseTable/Footer/index.d.ts +1 -1
- package/es/table/baseTable/Header/HeaderRow.d.ts +2 -2
- package/es/table/baseTable/Panel/index.d.ts +1 -1
- package/es/table/baseTable/Table.d.ts +1 -1
- package/es/table/baseTable/utils/expandUtil.d.ts +2 -2
- package/es/table/hooks/useFilter/FilterDropdown.d.ts +1 -1
- package/es/table/hooks/useFilter/FilterSearch.d.ts +1 -1
- package/es/table/hooks/useFilter/FilterWrapper.d.ts +1 -1
- package/es/table/hooks/useSorter.js +6 -4
- package/es/table/style/index.css +4 -3
- package/es/table/style/index.less +5 -20
- package/es/tabs/src/TabPanelList/TabPane.d.ts +1 -1
- package/es/tabs/src/TabPanelList/index.d.ts +1 -1
- package/es/tabs/tabs.d.ts +1 -1
- package/es/toast/PurePanel.d.ts +2 -2
- package/es/transfer/DataSource.d.ts +1 -2
- package/es/transfer/SourceList.d.ts +1 -2
- package/es/transfer/Target.d.ts +1 -2
- package/es/transfer/TargetList.d.ts +1 -2
- package/es/transfer/index.d.ts +1 -1
- package/es/tree/utils/dragHelper.d.ts +2 -2
- package/es/upload/BaseUpload/AjaxUploader.d.ts +1 -1
- package/es/upload/BaseUpload/Upload.d.ts +2 -2
- package/es/virtual-list/List.d.ts +1 -1
- package/es/virtual-list/ScrollBar.d.ts +1 -1
- package/es/virtual-list/hooks/useChildren.d.ts +2 -2
- package/lib/affix/index.d.ts +1 -1
- package/lib/anchor/Anchor.d.ts +1 -1
- package/lib/anchor/AnchorLink.d.ts +2 -2
- package/lib/badge/SingleNumber.d.ts +2 -2
- package/lib/button/LoadingIcon.d.ts +1 -2
- package/lib/calendar/Header.d.ts +2 -2
- package/lib/calendar/generateCalendar.d.ts +1 -1
- package/lib/calendar/index.d.ts +1 -1
- package/lib/card/Card.d.ts +1 -1
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/MenuItem.d.ts +1 -1
- package/lib/cascader/Menus.d.ts +3 -3
- package/lib/checkbox/BaseCheckbox.d.ts +1 -1
- package/lib/checkbox/ButtonCheckbox.d.ts +1 -1
- package/lib/checkbox/GroupButtonCheckbox.d.ts +1 -2
- package/lib/clear/index.d.ts +1 -2
- package/lib/date-picker/PickerButton.d.ts +2 -2
- package/lib/date-picker/PickerTag.d.ts +2 -2
- package/lib/date-picker/src/Picker.d.ts +1 -1
- package/lib/date-picker/src/PickerPanel.d.ts +1 -1
- package/lib/date-picker/src/PickerTrigger.d.ts +1 -1
- package/lib/date-picker/src/RangePicker.d.ts +1 -1
- package/lib/date-picker/src/panels/DatePanel/DateBody.d.ts +1 -1
- package/lib/date-picker/src/panels/DatePanel/DateHeader.d.ts +2 -2
- package/lib/date-picker/src/panels/DatePanel/index.d.ts +2 -2
- package/lib/date-picker/src/panels/DatetimePanel/index.d.ts +2 -2
- package/lib/date-picker/src/panels/DecadePanel/DecadeBody.d.ts +2 -2
- package/lib/date-picker/src/panels/DecadePanel/DecadeHeader.d.ts +2 -2
- package/lib/date-picker/src/panels/DecadePanel/index.d.ts +2 -2
- package/lib/date-picker/src/panels/Header.d.ts +1 -1
- package/lib/date-picker/src/panels/MonthPanel/MonthBody.d.ts +1 -1
- package/lib/date-picker/src/panels/MonthPanel/MonthHeader.d.ts +2 -2
- package/lib/date-picker/src/panels/MonthPanel/index.d.ts +2 -2
- package/lib/date-picker/src/panels/PanelBody.d.ts +1 -1
- package/lib/date-picker/src/panels/QuarterPanel/QuarterBody.d.ts +2 -2
- package/lib/date-picker/src/panels/QuarterPanel/QuarterHeader.d.ts +2 -2
- package/lib/date-picker/src/panels/QuarterPanel/index.d.ts +2 -2
- package/lib/date-picker/src/panels/TimePanel/TimeBody.d.ts +1 -1
- package/lib/date-picker/src/panels/TimePanel/TimeHeader.d.ts +2 -2
- package/lib/date-picker/src/panels/TimePanel/TimeUnitColumn.d.ts +1 -1
- package/lib/date-picker/src/panels/TimePanel/index.d.ts +2 -2
- package/lib/date-picker/src/panels/WeekPanel/index.d.ts +2 -2
- package/lib/date-picker/src/panels/YearPanel/YearBody.d.ts +2 -2
- package/lib/date-picker/src/panels/YearPanel/YearHeader.d.ts +2 -2
- package/lib/date-picker/src/panels/YearPanel/index.d.ts +2 -2
- package/lib/date-picker/src/utils/getExtraFooter.d.ts +1 -1
- package/lib/date-picker/src/utils/getRanges.d.ts +2 -2
- package/lib/form/ErrorList.d.ts +1 -1
- package/lib/input-number/src/StepHandler.d.ts +1 -1
- package/lib/loading/icon.d.ts +1 -2
- package/lib/locale-provider/index.d.ts +1 -1
- package/lib/menu/SubMenu.js +4 -1
- package/lib/menu/rc-menu/Divider.d.ts +1 -1
- package/lib/menu/rc-menu/SubMenu/InlineSubMenuList.d.ts +1 -1
- package/lib/menu/rc-menu/SubMenu/PopupTrigger.d.ts +1 -1
- package/lib/menu/rc-menu/SubMenu/index.d.ts +1 -1
- package/lib/menu/rc-menu/context/MenuContext.d.ts +1 -1
- package/lib/radio/RadioButton.d.ts +1 -2
- package/lib/radio/RadioGroup.d.ts +1 -1
- package/lib/select/src/Select.d.ts +1 -1
- package/lib/skeleton/Avatar.d.ts +1 -2
- package/lib/skeleton/Button.d.ts +1 -2
- package/lib/skeleton/Element.d.ts +1 -1
- package/lib/skeleton/Image.d.ts +1 -2
- package/lib/skeleton/Input.d.ts +1 -2
- package/lib/skeleton/Paragraph.d.ts +1 -1
- package/lib/skeleton/Skeleton.d.ts +5 -5
- package/lib/skeleton/Title.d.ts +1 -1
- package/lib/space/Item.d.ts +1 -1
- package/lib/steps/index.d.ts +1 -1
- package/lib/steps/src/step.d.ts +1 -1
- package/lib/steps/src/steps.d.ts +1 -1
- package/lib/table/ExpandIcon.d.ts +1 -1
- package/lib/table/baseTable/Body/BodyRow.d.ts +1 -1
- package/lib/table/baseTable/Body/ExpandedRow.d.ts +1 -1
- package/lib/table/baseTable/Body/MeasureCell.d.ts +1 -1
- package/lib/table/baseTable/Body/MeasureRow.d.ts +1 -1
- package/lib/table/baseTable/Body/index.d.ts +1 -1
- package/lib/table/baseTable/ColGroup.d.ts +2 -2
- package/lib/table/baseTable/Footer/Cell.d.ts +1 -1
- package/lib/table/baseTable/Footer/Row.d.ts +1 -1
- package/lib/table/baseTable/Footer/index.d.ts +1 -1
- package/lib/table/baseTable/Header/HeaderRow.d.ts +2 -2
- package/lib/table/baseTable/Panel/index.d.ts +1 -1
- package/lib/table/baseTable/Table.d.ts +1 -1
- package/lib/table/baseTable/utils/expandUtil.d.ts +2 -2
- package/lib/table/hooks/useFilter/FilterDropdown.d.ts +1 -1
- package/lib/table/hooks/useFilter/FilterSearch.d.ts +1 -1
- package/lib/table/hooks/useFilter/FilterWrapper.d.ts +1 -1
- package/lib/table/hooks/useSorter.js +6 -4
- package/lib/table/style/index.css +4 -3
- package/lib/table/style/index.less +5 -20
- package/lib/tabs/src/TabPanelList/TabPane.d.ts +1 -1
- package/lib/tabs/src/TabPanelList/index.d.ts +1 -1
- package/lib/tabs/tabs.d.ts +1 -1
- package/lib/toast/PurePanel.d.ts +2 -2
- package/lib/transfer/DataSource.d.ts +1 -2
- package/lib/transfer/SourceList.d.ts +1 -2
- package/lib/transfer/Target.d.ts +1 -2
- package/lib/transfer/TargetList.d.ts +1 -2
- package/lib/transfer/index.d.ts +1 -1
- package/lib/tree/utils/dragHelper.d.ts +2 -2
- package/lib/upload/BaseUpload/AjaxUploader.d.ts +1 -1
- package/lib/upload/BaseUpload/Upload.d.ts +2 -2
- package/lib/virtual-list/List.d.ts +1 -1
- package/lib/virtual-list/ScrollBar.d.ts +1 -1
- package/lib/virtual-list/hooks/useChildren.d.ts +2 -2
- package/package.json +1 -1
package/es/affix/index.d.ts
CHANGED
package/es/anchor/Anchor.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ declare class AnchorLink extends React.Component<AnchorLinkProps, any, AntAnchor
|
|
|
23
23
|
handleClick: (e: React.MouseEvent<HTMLElement>) => void;
|
|
24
24
|
handleMousehover: (active: boolean, isEnter: boolean) => void;
|
|
25
25
|
handleMouseClick: (active: boolean, isDown: boolean) => void;
|
|
26
|
-
renderAnchorLink: ({ getPrefixCls }: ConfigConsumerProps) =>
|
|
27
|
-
render():
|
|
26
|
+
renderAnchorLink: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element;
|
|
27
|
+
render(): JSX.Element;
|
|
28
28
|
}
|
|
29
29
|
export default AnchorLink;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @file
|
|
3
3
|
* @author jiangting01
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
/// <reference types="react" />
|
|
6
6
|
export interface UnitNumberProps {
|
|
7
7
|
prefixCls: string;
|
|
8
8
|
value: string | number;
|
|
@@ -14,4 +14,4 @@ export interface SingleNumberProps {
|
|
|
14
14
|
value: string;
|
|
15
15
|
count: number;
|
|
16
16
|
}
|
|
17
|
-
export default function SingleNumber(props: SingleNumberProps):
|
|
17
|
+
export default function SingleNumber(props: SingleNumberProps): JSX.Element;
|
package/es/calendar/Header.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { GenerateConfig } from 'rc-picker/lib/generate';
|
|
2
3
|
import type { Locale } from 'rc-picker/lib/interface';
|
|
3
|
-
import * as React from 'react';
|
|
4
4
|
import type { CalendarMode } from './generateCalendar';
|
|
5
5
|
export interface CalendarHeaderProps<DateType> {
|
|
6
6
|
prefixCls: string;
|
|
@@ -13,5 +13,5 @@ export interface CalendarHeaderProps<DateType> {
|
|
|
13
13
|
onChange: (date: DateType) => void;
|
|
14
14
|
onModeChange: (mode: CalendarMode) => void;
|
|
15
15
|
}
|
|
16
|
-
declare function CalendarHeader<DateType>(props: CalendarHeaderProps<DateType>):
|
|
16
|
+
declare function CalendarHeader<DateType>(props: CalendarHeaderProps<DateType>): JSX.Element;
|
|
17
17
|
export default CalendarHeader;
|
|
@@ -41,7 +41,7 @@ export interface CalendarProps<DateType> {
|
|
|
41
41
|
crossDate?: Array<DateType>;
|
|
42
42
|
}
|
|
43
43
|
declare function generateCalendar<DateType>(generateConfig: GenerateConfig<DateType>): {
|
|
44
|
-
(props: CalendarProps<DateType>):
|
|
44
|
+
(props: CalendarProps<DateType>): JSX.Element;
|
|
45
45
|
displayName: string;
|
|
46
46
|
};
|
|
47
47
|
export default generateCalendar;
|
package/es/calendar/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Dayjs } from 'dayjs';
|
|
2
2
|
import type { CalendarProps } from './generateCalendar';
|
|
3
3
|
declare const Calendar: {
|
|
4
|
-
(props: CalendarProps<Dayjs>):
|
|
4
|
+
(props: CalendarProps<Dayjs>): JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
7
|
export type { CalendarProps };
|
package/es/card/Card.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { TabsProps } from '../tabs/tabs';
|
|
|
7
7
|
import { Omit } from '../_util/type';
|
|
8
8
|
import Meta from './Meta';
|
|
9
9
|
import Grid from './Grid';
|
|
10
|
-
export declare const getAction: (actions: React.ReactNode[]) =>
|
|
10
|
+
export declare const getAction: (actions: React.ReactNode[]) => JSX.Element[];
|
|
11
11
|
export { CardMetaProps } from './Meta';
|
|
12
12
|
export { CardGridProps } from './Grid';
|
|
13
13
|
export type CardType = 'inner';
|
|
@@ -84,6 +84,6 @@ declare class Cascader extends React.Component<CascaderProps, CascaderState> {
|
|
|
84
84
|
handleItemDoubleClick: () => void;
|
|
85
85
|
handleKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;
|
|
86
86
|
saveTrigger: (node: any) => void;
|
|
87
|
-
render():
|
|
87
|
+
render(): JSX.Element;
|
|
88
88
|
}
|
|
89
89
|
export default Cascader;
|
package/es/cascader/Menus.d.ts
CHANGED
|
@@ -45,8 +45,8 @@ declare class Menus extends React.Component<MenusProps, MenusState> {
|
|
|
45
45
|
componentDidUpdate(prevProps: MenusProps): void;
|
|
46
46
|
isStatusOption(statusValue: any[], option: any, menuIndex: any): boolean;
|
|
47
47
|
getFieldName(name: any): any;
|
|
48
|
-
getOption(option: CascaderOption, menuIndex: number):
|
|
49
|
-
getCheckAllOption(menuIndex: number):
|
|
48
|
+
getOption(option: CascaderOption, menuIndex: number): JSX.Element;
|
|
49
|
+
getCheckAllOption(menuIndex: number): JSX.Element;
|
|
50
50
|
getActiveOptions(values?: CascaderOption[]): CascaderOption[];
|
|
51
51
|
getShowOptions(): CascaderOption[][];
|
|
52
52
|
delayOnEvent(onEvent: any, ...args: any[]): void;
|
|
@@ -59,6 +59,6 @@ declare class Menus extends React.Component<MenusProps, MenusState> {
|
|
|
59
59
|
handleMenuScroll: (menuIndex: any) => () => void;
|
|
60
60
|
onShowActive: () => void;
|
|
61
61
|
onShowEnd: () => void;
|
|
62
|
-
render():
|
|
62
|
+
render(): JSX.Element;
|
|
63
63
|
}
|
|
64
64
|
export default Menus;
|
|
@@ -25,6 +25,6 @@ declare class ButtonCheckbox extends React.Component<ButtonCheckboxProps<Checkbo
|
|
|
25
25
|
constructor(props: any);
|
|
26
26
|
static getDerivedStateFromProps(props: ButtonCheckboxProps<CheckboxChangeEvent>, state: State): Partial<State> | null;
|
|
27
27
|
handleClick: (e: any) => void;
|
|
28
|
-
render():
|
|
28
|
+
render(): JSX.Element;
|
|
29
29
|
}
|
|
30
30
|
export default ButtonCheckbox;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { ButtonCheckboxProps } from './ButtonCheckbox';
|
|
3
2
|
import { CheckboxChangeEvent } from './Checkbox';
|
|
4
3
|
declare const GroupButtonCheckbox: {
|
|
5
|
-
({ prefixCls: customizePrefixCls, className, children, style, ...restProps }: ButtonCheckboxProps<CheckboxChangeEvent>):
|
|
4
|
+
({ prefixCls: customizePrefixCls, className, children, style, ...restProps }: ButtonCheckboxProps<CheckboxChangeEvent>): JSX.Element;
|
|
6
5
|
displayName: string;
|
|
7
6
|
};
|
|
8
7
|
export default GroupButtonCheckbox;
|
package/es/clear/index.d.ts
CHANGED
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
* @file clear
|
|
3
3
|
* @author xuemin02
|
|
4
4
|
*/
|
|
5
|
-
import React from 'react';
|
|
6
5
|
import { IconProps } from 'acud-icon/lib/components/interface';
|
|
7
6
|
export interface ClearProps extends IconProps {
|
|
8
7
|
ref?: any;
|
|
9
8
|
prefixCls?: string;
|
|
10
9
|
}
|
|
11
|
-
declare const Clear: (props: ClearProps) =>
|
|
10
|
+
declare const Clear: (props: ClearProps) => JSX.Element;
|
|
12
11
|
export default Clear;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ButtonProps } from '../button';
|
|
3
|
-
export default function PickerButton(props: ButtonProps):
|
|
3
|
+
export default function PickerButton(props: ButtonProps): JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { TagProps } from '../tag';
|
|
3
|
-
export default function PickerTag(props: TagProps):
|
|
3
|
+
export default function PickerTag(props: TagProps): JSX.Element;
|
|
@@ -56,5 +56,5 @@ export type PickerPanelTimeProps<DateType> = {
|
|
|
56
56
|
picker: 'time';
|
|
57
57
|
} & PickerPanelSharedProps<DateType> & SharedTimeProps<DateType>;
|
|
58
58
|
export type PickerPanelProps<DateType> = PickerPanelBaseProps<DateType> | PickerPanelDateProps<DateType> | PickerPanelTimeProps<DateType>;
|
|
59
|
-
declare function PickerPanel<DateType>(props: PickerPanelProps<DateType>):
|
|
59
|
+
declare function PickerPanel<DateType>(props: PickerPanelProps<DateType>): JSX.Element;
|
|
60
60
|
export default PickerPanel;
|
|
@@ -15,5 +15,5 @@ export type PickerTriggerProps = {
|
|
|
15
15
|
popupPlacement?: Placement;
|
|
16
16
|
direction?: 'ltr' | 'rtl';
|
|
17
17
|
};
|
|
18
|
-
declare function PickerTrigger({ prefixCls, popupElement, popupStyle, visible, dropdownClassName, dropdownAlign, transitionName, getPopupContainer, children, range, popupPlacement, direction, }: PickerTriggerProps):
|
|
18
|
+
declare function PickerTrigger({ prefixCls, popupElement, popupStyle, visible, dropdownClassName, dropdownAlign, transitionName, getPopupContainer, children, range, popupPlacement, direction, }: PickerTriggerProps): JSX.Element;
|
|
19
19
|
export default PickerTrigger;
|
|
@@ -48,6 +48,6 @@ declare class RangePicker<DateType> extends React.Component<RangePickerProps<Dat
|
|
|
48
48
|
pickerRef: React.RefObject<PickerRefConfig>;
|
|
49
49
|
focus: () => void;
|
|
50
50
|
blur: () => void;
|
|
51
|
-
render():
|
|
51
|
+
render(): JSX.Element;
|
|
52
52
|
}
|
|
53
53
|
export default RangePicker;
|
|
@@ -17,5 +17,5 @@ export type DateBodyProps<DateType> = {
|
|
|
17
17
|
rowCount: number;
|
|
18
18
|
onSelect: (value: DateType) => void;
|
|
19
19
|
} & DateBodyPassProps<DateType>;
|
|
20
|
-
declare function DateBody<DateType>(props: DateBodyProps<DateType>):
|
|
20
|
+
declare function DateBody<DateType>(props: DateBodyProps<DateType>): JSX.Element;
|
|
21
21
|
export default DateBody;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { Locale } from '../../interface';
|
|
3
3
|
import type { GenerateConfig } from '../../generate';
|
|
4
4
|
export type DateHeaderProps<DateType> = {
|
|
@@ -14,5 +14,5 @@ export type DateHeaderProps<DateType> = {
|
|
|
14
14
|
onYearClick: () => void;
|
|
15
15
|
onMonthClick: () => void;
|
|
16
16
|
};
|
|
17
|
-
declare function DateHeader<DateType>(props: DateHeaderProps<DateType>):
|
|
17
|
+
declare function DateHeader<DateType>(props: DateHeaderProps<DateType>): JSX.Element;
|
|
18
18
|
export default DateHeader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { DateBodyPassProps, DateRender } from './DateBody';
|
|
3
3
|
import type { PanelSharedProps } from '../../interface';
|
|
4
4
|
import type { KeyboardConfig } from '../../utils/uiUtil';
|
|
@@ -8,5 +8,5 @@ export type DatePanelProps<DateType> = {
|
|
|
8
8
|
panelName?: string;
|
|
9
9
|
keyboardConfig?: KeyboardConfig;
|
|
10
10
|
} & PanelSharedProps<DateType> & DateBodyPassProps<DateType>;
|
|
11
|
-
declare function DatePanel<DateType>(props: DatePanelProps<DateType>):
|
|
11
|
+
declare function DatePanel<DateType>(props: DatePanelProps<DateType>): JSX.Element;
|
|
12
12
|
export default DatePanel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { DatePanelProps } from '../DatePanel';
|
|
3
3
|
import type { SharedTimeProps } from '../TimePanel';
|
|
4
4
|
import type { DisabledTime } from '../../interface';
|
|
@@ -7,5 +7,5 @@ export type DatetimePanelProps<DateType> = {
|
|
|
7
7
|
showTime?: boolean | SharedTimeProps<DateType>;
|
|
8
8
|
defaultValue?: DateType;
|
|
9
9
|
} & Omit<DatePanelProps<DateType>, 'disabledHours' | 'disabledMinutes' | 'disabledSeconds'>;
|
|
10
|
-
declare function DatetimePanel<DateType>(props: DatetimePanelProps<DateType>):
|
|
10
|
+
declare function DatetimePanel<DateType>(props: DatetimePanelProps<DateType>): JSX.Element;
|
|
11
11
|
export default DatetimePanel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { GenerateConfig } from '../../generate';
|
|
3
3
|
export declare const DECADE_COL_COUNT = 3;
|
|
4
4
|
export type YearBodyProps<DateType> = {
|
|
@@ -8,5 +8,5 @@ export type YearBodyProps<DateType> = {
|
|
|
8
8
|
disabledDate?: (date: DateType) => boolean;
|
|
9
9
|
onSelect: (value: DateType) => void;
|
|
10
10
|
};
|
|
11
|
-
declare function DecadeBody<DateType>(props: YearBodyProps<DateType>):
|
|
11
|
+
declare function DecadeBody<DateType>(props: YearBodyProps<DateType>): JSX.Element;
|
|
12
12
|
export default DecadeBody;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { GenerateConfig } from '../../generate';
|
|
3
3
|
export type YearHeaderProps<DateType> = {
|
|
4
4
|
prefixCls: string;
|
|
@@ -7,5 +7,5 @@ export type YearHeaderProps<DateType> = {
|
|
|
7
7
|
onPrevDecades: () => void;
|
|
8
8
|
onNextDecades: () => void;
|
|
9
9
|
};
|
|
10
|
-
declare function DecadeHeader<DateType>(props: YearHeaderProps<DateType>):
|
|
10
|
+
declare function DecadeHeader<DateType>(props: YearHeaderProps<DateType>): JSX.Element;
|
|
11
11
|
export default DecadeHeader;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { PanelSharedProps } from '../../interface';
|
|
3
3
|
export type DecadePanelProps<DateType> = PanelSharedProps<DateType>;
|
|
4
4
|
export declare const DECADE_UNIT_DIFF = 10;
|
|
5
5
|
export declare const DECADE_DISTANCE_COUNT: number;
|
|
6
|
-
declare function DecadePanel<DateType>(props: DecadePanelProps<DateType>):
|
|
6
|
+
declare function DecadePanel<DateType>(props: DecadePanelProps<DateType>): JSX.Element;
|
|
7
7
|
export default DecadePanel;
|
|
@@ -15,5 +15,5 @@ export type HeaderProps = {
|
|
|
15
15
|
onSuperNext?: () => void;
|
|
16
16
|
children?: React.ReactNode;
|
|
17
17
|
};
|
|
18
|
-
declare function Header({ prefixCls, prevIcon, nextIcon, superPrevIcon, superNextIcon, onSuperPrev, onSuperNext, onPrev, onNext, children, }: HeaderProps):
|
|
18
|
+
declare function Header({ prefixCls, prevIcon, nextIcon, superPrevIcon, superNextIcon, onSuperPrev, onSuperNext, onPrev, onNext, children, }: HeaderProps): JSX.Element;
|
|
19
19
|
export default Header;
|
|
@@ -13,5 +13,5 @@ export type MonthBodyProps<DateType> = {
|
|
|
13
13
|
monthCellRender?: MonthCellRender<DateType>;
|
|
14
14
|
onSelect: (value: DateType) => void;
|
|
15
15
|
};
|
|
16
|
-
declare function MonthBody<DateType>(props: MonthBodyProps<DateType>):
|
|
16
|
+
declare function MonthBody<DateType>(props: MonthBodyProps<DateType>): JSX.Element;
|
|
17
17
|
export default MonthBody;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { Locale } from '../../interface';
|
|
3
3
|
import type { GenerateConfig } from '../../generate';
|
|
4
4
|
export type MonthHeaderProps<DateType> = {
|
|
@@ -10,5 +10,5 @@ export type MonthHeaderProps<DateType> = {
|
|
|
10
10
|
onNextYear: () => void;
|
|
11
11
|
onYearClick: () => void;
|
|
12
12
|
};
|
|
13
|
-
declare function MonthHeader<DateType>(props: MonthHeaderProps<DateType>):
|
|
13
|
+
declare function MonthHeader<DateType>(props: MonthHeaderProps<DateType>): JSX.Element;
|
|
14
14
|
export default MonthHeader;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { MonthCellRender } from './MonthBody';
|
|
3
3
|
import type { PanelSharedProps } from '../../interface';
|
|
4
4
|
export type MonthPanelProps<DateType> = {
|
|
5
5
|
monthCellContentRender?: MonthCellRender<DateType>;
|
|
6
6
|
} & PanelSharedProps<DateType>;
|
|
7
|
-
declare function MonthPanel<DateType>(props: MonthPanelProps<DateType>):
|
|
7
|
+
declare function MonthPanel<DateType>(props: MonthPanelProps<DateType>): JSX.Element;
|
|
8
8
|
export default MonthPanel;
|
|
@@ -19,4 +19,4 @@ export type PanelBodyProps<DateType> = {
|
|
|
19
19
|
prefixColumn?: (date: DateType) => React.ReactNode;
|
|
20
20
|
rowClassName?: (date: DateType) => string;
|
|
21
21
|
};
|
|
22
|
-
export default function PanelBody<DateType>({ prefixCls, disabledDate, onSelect, picker, rowNum, colNum, prefixColumn, rowClassName, baseDate, getCellClassName, getCellText, getCellNode, getCellDate, generateConfig, titleCell, headerCells, }: PanelBodyProps<DateType>):
|
|
22
|
+
export default function PanelBody<DateType>({ prefixCls, disabledDate, onSelect, picker, rowNum, colNum, prefixColumn, rowClassName, baseDate, getCellClassName, getCellText, getCellNode, getCellDate, generateConfig, titleCell, headerCells, }: PanelBodyProps<DateType>): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { GenerateConfig } from '../../generate';
|
|
3
3
|
import type { Locale } from '../../interface';
|
|
4
4
|
export declare const QUARTER_COL_COUNT = 4;
|
|
@@ -11,5 +11,5 @@ export type QuarterBodyProps<DateType> = {
|
|
|
11
11
|
disabledDate?: (date: DateType) => boolean;
|
|
12
12
|
onSelect: (value: DateType) => void;
|
|
13
13
|
};
|
|
14
|
-
declare function QuarterBody<DateType>(props: QuarterBodyProps<DateType>):
|
|
14
|
+
declare function QuarterBody<DateType>(props: QuarterBodyProps<DateType>): JSX.Element;
|
|
15
15
|
export default QuarterBody;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { Locale } from '../../interface';
|
|
3
3
|
import type { GenerateConfig } from '../../generate';
|
|
4
4
|
export type QuarterHeaderProps<DateType> = {
|
|
@@ -10,5 +10,5 @@ export type QuarterHeaderProps<DateType> = {
|
|
|
10
10
|
onNextYear: () => void;
|
|
11
11
|
onYearClick: () => void;
|
|
12
12
|
};
|
|
13
|
-
declare function QuarterHeader<DateType>(props: QuarterHeaderProps<DateType>):
|
|
13
|
+
declare function QuarterHeader<DateType>(props: QuarterHeaderProps<DateType>): JSX.Element;
|
|
14
14
|
export default QuarterHeader;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { PanelSharedProps } from '../../interface';
|
|
3
3
|
export type QuarterPanelProps<DateType> = {} & PanelSharedProps<DateType>;
|
|
4
|
-
declare function QuarterPanel<DateType>(props: QuarterPanelProps<DateType>):
|
|
4
|
+
declare function QuarterPanel<DateType>(props: QuarterPanelProps<DateType>): JSX.Element;
|
|
5
5
|
export default QuarterPanel;
|
|
@@ -14,5 +14,5 @@ export type TimeBodyProps<DateType> = {
|
|
|
14
14
|
activeColumnIndex: number;
|
|
15
15
|
operationRef: React.MutableRefObject<BodyOperationRef | undefined>;
|
|
16
16
|
} & SharedTimeProps<DateType>;
|
|
17
|
-
declare function TimeBody<DateType>(props: TimeBodyProps<DateType>):
|
|
17
|
+
declare function TimeBody<DateType>(props: TimeBodyProps<DateType>): JSX.Element;
|
|
18
18
|
export default TimeBody;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { Locale } from '../../interface';
|
|
3
3
|
import type { GenerateConfig } from '../../generate';
|
|
4
4
|
export type TimeHeaderProps<DateType> = {
|
|
@@ -8,5 +8,5 @@ export type TimeHeaderProps<DateType> = {
|
|
|
8
8
|
generateConfig: GenerateConfig<DateType>;
|
|
9
9
|
format: string;
|
|
10
10
|
};
|
|
11
|
-
declare function TimeHeader<DateType>(props: TimeHeaderProps<DateType>):
|
|
11
|
+
declare function TimeHeader<DateType>(props: TimeHeaderProps<DateType>): JSX.Element;
|
|
12
12
|
export default TimeHeader;
|
|
@@ -12,5 +12,5 @@ export type TimeUnitColumnProps = {
|
|
|
12
12
|
hideDisabledOptions?: boolean;
|
|
13
13
|
onSelect?: (value: number) => void;
|
|
14
14
|
};
|
|
15
|
-
declare function TimeUnitColumn(props: TimeUnitColumnProps):
|
|
15
|
+
declare function TimeUnitColumn(props: TimeUnitColumnProps): JSX.Element;
|
|
16
16
|
export default TimeUnitColumn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { PanelSharedProps, DisabledTimes } from '../../interface';
|
|
3
3
|
export type SharedTimeProps<DateType> = {
|
|
4
4
|
format?: string;
|
|
@@ -17,5 +17,5 @@ export type TimePanelProps<DateType> = {
|
|
|
17
17
|
format?: string;
|
|
18
18
|
active?: boolean;
|
|
19
19
|
} & PanelSharedProps<DateType> & SharedTimeProps<DateType>;
|
|
20
|
-
declare function TimePanel<DateType>(props: TimePanelProps<DateType>):
|
|
20
|
+
declare function TimePanel<DateType>(props: TimePanelProps<DateType>): JSX.Element;
|
|
21
21
|
export default TimePanel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { PanelSharedProps } from '../../interface';
|
|
3
3
|
export type WeekPanelProps<DateType> = PanelSharedProps<DateType>;
|
|
4
|
-
declare function WeekPanel<DateType>(props: WeekPanelProps<DateType>):
|
|
4
|
+
declare function WeekPanel<DateType>(props: WeekPanelProps<DateType>): JSX.Element;
|
|
5
5
|
export default WeekPanel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { GenerateConfig } from '../../generate';
|
|
3
3
|
import type { Locale, NullableDateType } from '../../interface';
|
|
4
4
|
export declare const YEAR_COL_COUNT = 3;
|
|
@@ -11,5 +11,5 @@ export type YearBodyProps<DateType> = {
|
|
|
11
11
|
disabledDate?: (date: DateType) => boolean;
|
|
12
12
|
onSelect: (value: DateType) => void;
|
|
13
13
|
};
|
|
14
|
-
declare function YearBody<DateType>(props: YearBodyProps<DateType>):
|
|
14
|
+
declare function YearBody<DateType>(props: YearBodyProps<DateType>): JSX.Element;
|
|
15
15
|
export default YearBody;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { GenerateConfig } from '../../generate';
|
|
3
3
|
export type YearHeaderProps<DateType> = {
|
|
4
4
|
prefixCls: string;
|
|
@@ -9,5 +9,5 @@ export type YearHeaderProps<DateType> = {
|
|
|
9
9
|
onNextDecade: () => void;
|
|
10
10
|
onDecadeClick: () => void;
|
|
11
11
|
};
|
|
12
|
-
declare function YearHeader<DateType>(props: YearHeaderProps<DateType>):
|
|
12
|
+
declare function YearHeader<DateType>(props: YearHeaderProps<DateType>): JSX.Element;
|
|
13
13
|
export default YearHeader;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { PanelSharedProps, PanelMode } from '../../interface';
|
|
3
3
|
export type YearPanelProps<DateType> = {
|
|
4
4
|
sourceMode: PanelMode;
|
|
5
5
|
} & PanelSharedProps<DateType>;
|
|
6
6
|
export declare const YEAR_DECADE_COUNT = 10;
|
|
7
|
-
declare function YearPanel<DateType>(props: YearPanelProps<DateType>):
|
|
7
|
+
declare function YearPanel<DateType>(props: YearPanelProps<DateType>): JSX.Element;
|
|
8
8
|
export default YearPanel;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { PanelMode } from '../interface';
|
|
3
|
-
export default function getExtraFooter(prefixCls: string, mode: PanelMode, renderExtraFooter?: (mode: PanelMode) => React.ReactNode):
|
|
3
|
+
export default function getExtraFooter(prefixCls: string, mode: PanelMode, renderExtraFooter?: (mode: PanelMode) => React.ReactNode): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { Components, RangeList, Locale } from '../interface';
|
|
3
3
|
export type RangesProps = {
|
|
4
4
|
prefixCls: string;
|
|
@@ -11,4 +11,4 @@ export type RangesProps = {
|
|
|
11
11
|
showNow?: boolean;
|
|
12
12
|
locale: Locale;
|
|
13
13
|
};
|
|
14
|
-
export default function getRanges({ prefixCls, components, needConfirmButton, onNow, onOk, okDisabled, showNow, locale, }: RangesProps):
|
|
14
|
+
export default function getRanges({ prefixCls, components, needConfirmButton, onNow, onOk, okDisabled, showNow, locale, }: RangesProps): JSX.Element;
|
package/es/form/ErrorList.d.ts
CHANGED
|
@@ -10,4 +10,4 @@ export interface ErrorListProps {
|
|
|
10
10
|
/** @private Internal usage. Do not use in any production deployment */
|
|
11
11
|
onDomErrorVisibleChange?: (visible: boolean) => void;
|
|
12
12
|
}
|
|
13
|
-
export default function ErrorList({ errors, help, onDomErrorVisibleChange, }: ErrorListProps):
|
|
13
|
+
export default function ErrorList({ errors, help, onDomErrorVisibleChange, }: ErrorListProps): JSX.Element;
|
|
@@ -8,4 +8,4 @@ export interface StepHandlerProps {
|
|
|
8
8
|
symmetryMode?: boolean;
|
|
9
9
|
onStep: (up: boolean) => void;
|
|
10
10
|
}
|
|
11
|
-
export default function StepHandler({ prefixCls, upNode, downNode, upDisabled, downDisabled, symmetryMode, onStep }: StepHandlerProps):
|
|
11
|
+
export default function StepHandler({ prefixCls, upNode, downNode, upDisabled, downDisabled, symmetryMode, onStep }: StepHandlerProps): JSX.Element;
|
package/es/loading/icon.d.ts
CHANGED
package/es/menu/SubMenu.js
CHANGED
|
@@ -16,6 +16,7 @@ import classNames from 'classnames';
|
|
|
16
16
|
import { SubMenu as RcSubMenu } from './rc-menu';
|
|
17
17
|
import MenuContext from './MenuContext';
|
|
18
18
|
import { isValidElement, cloneElement } from '../_util/reactNode';
|
|
19
|
+
import { MenuContext as BaseMenuContext } from './rc-menu/context/MenuContext';
|
|
19
20
|
var SubMenu = function SubMenu(props) {
|
|
20
21
|
var _a;
|
|
21
22
|
var popupClassName = props.popupClassName,
|
|
@@ -23,13 +24,15 @@ var SubMenu = function SubMenu(props) {
|
|
|
23
24
|
icon = props.icon,
|
|
24
25
|
rest = __rest(props, ["popupClassName", "title", "icon"]);
|
|
25
26
|
var contextValue = useContext(MenuContext);
|
|
27
|
+
var baseMenuContextValue = useContext(BaseMenuContext);
|
|
28
|
+
var inlineCollapsed = baseMenuContextValue.inlineCollapsed;
|
|
26
29
|
var menuMode = contextValue.menuMode,
|
|
27
30
|
prefixCls = contextValue.prefixCls;
|
|
28
31
|
var titleNode;
|
|
29
32
|
if (!icon) {
|
|
30
33
|
titleNode = /*#__PURE__*/React.createElement("span", {
|
|
31
34
|
className: "".concat(prefixCls, "-title-content")
|
|
32
|
-
}, title);
|
|
35
|
+
}, inlineCollapsed && typeof title === 'string' ? title.charAt(0) : title);
|
|
33
36
|
} else {
|
|
34
37
|
// inline-collapsed.md demo 依赖 span 来隐藏文字,有 icon 属性,则内部包裹一个 span
|
|
35
38
|
var titleIsSpan = isValidElement(title) && title.type === 'span';
|
|
@@ -5,4 +5,4 @@ export interface InlineSubMenuListProps {
|
|
|
5
5
|
keyPath: string[];
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export default function InlineSubMenuList({ id, open, keyPath, children }: InlineSubMenuListProps):
|
|
8
|
+
export default function InlineSubMenuList({ id, open, keyPath, children }: InlineSubMenuListProps): JSX.Element;
|
|
@@ -11,4 +11,4 @@ export interface PopupTriggerProps {
|
|
|
11
11
|
disabled: boolean;
|
|
12
12
|
onVisibleChange: (visible: boolean) => void;
|
|
13
13
|
}
|
|
14
|
-
export default function PopupTrigger({ prefixCls, visible, children, popup, popupClassName, popupOffset, disabled, mode, onVisibleChange }: PopupTriggerProps):
|
|
14
|
+
export default function PopupTrigger({ prefixCls, visible, children, popup, popupClassName, popupOffset, disabled, mode, onVisibleChange }: PopupTriggerProps): JSX.Element;
|
|
@@ -26,4 +26,4 @@ export interface SubMenuProps {
|
|
|
26
26
|
onTitleMouseEnter?: MenuHoverEventHandler;
|
|
27
27
|
onTitleMouseLeave?: MenuHoverEventHandler;
|
|
28
28
|
}
|
|
29
|
-
export default function SubMenu(props: SubMenuProps):
|
|
29
|
+
export default function SubMenu(props: SubMenuProps): JSX.Element;
|
|
@@ -34,4 +34,4 @@ export interface InheritableContextProps extends Partial<MenuContextProps> {
|
|
|
34
34
|
children?: React.ReactNode;
|
|
35
35
|
locked?: boolean;
|
|
36
36
|
}
|
|
37
|
-
export default function InheritableContextProvider({ children, locked, ...restProps }: InheritableContextProps):
|
|
37
|
+
export default function InheritableContextProvider({ children, locked, ...restProps }: InheritableContextProps): JSX.Element;
|