linkmore-design 1.0.53 → 1.0.56
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/{Notification → Affix}/demos/basic.d.ts +0 -0
- package/dist/Affix/index.d.ts +54 -0
- package/dist/{Notification → Affix}/style/index.d.ts +0 -0
- package/dist/Affix/utils.d.ts +15 -0
- package/dist/Alert/ErrorBoundary.d.ts +22 -0
- package/dist/{Notification/demos/button.d.ts → Alert/demos/basic.d.ts} +0 -0
- package/dist/{Notification/demos/icon.d.ts → Alert/demos/visible.d.ts} +0 -0
- package/dist/Alert/index.d.ts +41 -0
- package/dist/Alert/style/index.d.ts +1 -0
- package/dist/CardTable/card/PictureTextRowOperate.d.ts +7 -0
- package/dist/CardTable/fns/index.d.ts +3 -3
- package/dist/CardTable/{toolbar → pager}/TablePagination.d.ts +0 -0
- package/dist/CardTable/pager/index.d.ts +3 -0
- package/dist/IconFont/index.d.ts +1 -1
- package/dist/LmFilter/Controls/CheckboxTags.d.ts +6 -0
- package/dist/LmFilter/Controls/index.d.ts +2 -0
- package/dist/LmFilter/LmFilter.d.ts +6 -0
- package/dist/LmFilter/baseFilter/fuzzySearch.d.ts +4 -0
- package/dist/LmFilter/baseFilter/index.d.ts +3 -0
- package/dist/LmFilter/clearFilter/index.d.ts +3 -0
- package/dist/LmFilter/complexFilter/drawer.d.ts +4 -0
- package/dist/LmFilter/complexFilter/index.d.ts +4 -0
- package/dist/LmFilter/complexFilter/valueDrawer.d.ts +4 -0
- package/dist/LmFilter/components/CascaderFilter.d.ts +5 -0
- package/dist/LmFilter/components/CheckboxFilter.d.ts +5 -0
- package/dist/LmFilter/components/DateFilter.d.ts +5 -0
- package/dist/LmFilter/components/DropdownFIlter.d.ts +3 -0
- package/dist/LmFilter/components/EmptyFilter.d.ts +2 -0
- package/dist/LmFilter/components/InputFilter.d.ts +4 -0
- package/dist/LmFilter/components/InputSearchClose.d.ts +3 -0
- package/dist/LmFilter/components/SelectFilter.d.ts +5 -0
- package/dist/LmFilter/components/index.d.ts +3 -0
- package/dist/LmFilter/customFilter/index.d.ts +2 -0
- package/dist/LmFilter/demos/basic.d.ts +2 -0
- package/dist/LmFilter/filterFns/index.d.ts +12 -0
- package/dist/LmFilter/hooks/index.d.ts +1 -0
- package/dist/LmFilter/hooks/useDelayedFn.d.ts +2 -0
- package/dist/LmFilter/index.d.ts +2 -0
- package/dist/LmFilter/localization.d.ts +8 -0
- package/dist/LmFilter/style/index.d.ts +1 -0
- package/dist/LmFilter/utils.d.ts +9 -0
- package/dist/LmFilter/wrapper/Filter.d.ts +3 -0
- package/dist/LmFilter/wrapper/FilterContainer.d.ts +3 -0
- package/dist/LmFilter/wrapper/FilterRoot.d.ts +3 -0
- package/dist/LmFilter/wrapper/FilterWrapper.d.ts +3 -0
- package/dist/QuickMenu/demos/basic.d.ts +2 -0
- package/dist/QuickMenu/index.d.ts +14 -0
- package/dist/QuickMenu/style/index.d.ts +1 -0
- package/dist/Switch/demos/table.d.ts +2 -0
- package/dist/Switch/index.d.ts +2 -1
- package/dist/Tag/demos/ExigencyTag.d.ts +2 -0
- package/dist/Tag/index.d.ts +4 -0
- package/dist/Upload/demos/picture-little.d.ts +3 -0
- package/dist/Upload/index.d.ts +5 -1
- package/dist/_util/domTarget.d.ts +7 -0
- package/dist/_util/getDataOrAriaProps.d.ts +1 -0
- package/dist/_util/reactNode.d.ts +7 -0
- package/dist/_util/throttleByAnimationFrame.d.ts +8 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.umd.js +4245 -3326
- package/dist/index.umd.min.js +5 -5
- package/dist/notification/demos/basic.d.ts +2 -0
- package/dist/notification/demos/button.d.ts +2 -0
- package/dist/notification/demos/icon.d.ts +2 -0
- package/dist/notification/hooks/useNotification.d.ts +7 -0
- package/dist/notification/index.d.ts +54 -0
- package/dist/notification/style/index.d.ts +1 -0
- package/es/Affix/index.d.ts +54 -0
- package/es/Affix/index.js +326 -0
- package/es/{Notification → Affix}/style/index.css +0 -3
- package/es/{Notification → Affix}/style/index.d.ts +0 -0
- package/es/{Notification → Affix}/style/index.js +0 -0
- package/es/Affix/utils.d.ts +15 -0
- package/es/Affix/utils.js +83 -0
- package/es/Alert/ErrorBoundary.d.ts +22 -0
- package/es/Alert/ErrorBoundary.js +65 -0
- package/es/Alert/index.d.ts +41 -0
- package/es/Alert/index.js +192 -0
- package/es/Alert/style/index.css +531 -0
- package/{lib/Notification → es/Alert}/style/index.d.ts +0 -0
- package/es/Alert/style/index.js +1 -0
- package/es/CardTable/body/TableBodyCell.js +3 -0
- package/es/CardTable/card/PictureTextColumn.js +8 -6
- package/es/CardTable/card/PictureTextRow.js +14 -51
- package/es/CardTable/card/PictureTextRowOperate.js +130 -0
- package/es/CardTable/fns/index.js +38 -8
- package/es/CardTable/{toolbar → pager}/TablePagination.js +0 -0
- package/es/CardTable/pager/index.js +48 -0
- package/es/CardTable/style/index.css +160 -12
- package/es/CardTable/table/TableRoot.js +20 -18
- package/es/CardTable/table/TableWrapper.js +4 -0
- package/es/CardTable/toolbar/ToolBarBottom.js +8 -27
- package/es/Descriptions/style/index.css +10 -8
- package/es/IconFont/index.js +3 -2
- package/es/LmFilter/Controls/CheckboxTags.js +53 -0
- package/es/LmFilter/Controls/index.js +47 -0
- package/es/LmFilter/LmFilter.js +39 -0
- package/es/LmFilter/baseFilter/fuzzySearch.js +53 -0
- package/es/LmFilter/baseFilter/index.js +34 -0
- package/es/LmFilter/clearFilter/index.js +35 -0
- package/es/LmFilter/complexFilter/drawer.js +376 -0
- package/es/LmFilter/complexFilter/index.js +64 -0
- package/es/LmFilter/complexFilter/valueDrawer.js +238 -0
- package/es/LmFilter/components/CascaderFilter.js +159 -0
- package/es/LmFilter/components/CheckboxFilter.js +197 -0
- package/es/LmFilter/components/DateFilter.js +139 -0
- package/es/LmFilter/components/DropdownFIlter.js +229 -0
- package/es/LmFilter/components/EmptyFilter.js +27 -0
- package/es/LmFilter/components/InputFilter.js +52 -0
- package/es/LmFilter/components/InputSearchClose.js +74 -0
- package/es/LmFilter/components/SelectFilter.js +113 -0
- package/es/LmFilter/components/index.js +140 -0
- package/es/LmFilter/customFilter/index.js +17 -0
- package/es/LmFilter/filterFns/index.js +73 -0
- package/es/LmFilter/hooks/index.js +18 -0
- package/es/LmFilter/hooks/useDelayedFn.js +29 -0
- package/es/LmFilter/icon_placeholder.png +0 -0
- package/es/LmFilter/index.js +16 -0
- package/es/LmFilter/localization.d.ts +8 -0
- package/es/LmFilter/localization.js +12 -0
- package/es/LmFilter/style/index.js +3 -0
- package/es/LmFilter/style/style.css +212 -0
- package/es/LmFilter/utils.js +71 -0
- package/es/LmFilter/wrapper/Filter.js +33 -0
- package/es/LmFilter/wrapper/FilterContainer.js +29 -0
- package/es/LmFilter/wrapper/FilterRoot.js +170 -0
- package/es/LmFilter/wrapper/FilterWrapper.js +25 -0
- package/es/QuickMenu/index.d.ts +14 -0
- package/es/QuickMenu/index.js +169 -0
- package/es/QuickMenu/style/index.css +560 -0
- package/es/QuickMenu/style/index.d.ts +1 -0
- package/es/QuickMenu/style/index.js +1 -0
- package/es/Switch/index.d.ts +2 -1
- package/es/Switch/index.js +33 -1
- package/es/Switch/style/index.css +41 -0
- package/es/Tag/index.d.ts +4 -0
- package/es/Tag/index.js +48 -2
- package/es/Tag/style/index.css +4 -1
- package/es/Upload/index.d.ts +5 -1
- package/es/Upload/index.js +7 -2
- package/es/Upload/style/index.css +35 -0
- package/es/_util/domTarget.d.ts +7 -0
- package/es/_util/domTarget.js +20 -0
- package/es/_util/getDataOrAriaProps.d.ts +1 -0
- package/es/_util/getDataOrAriaProps.js +9 -0
- package/es/_util/reactNode.d.ts +7 -0
- package/es/_util/reactNode.js +10 -0
- package/es/_util/throttleByAnimationFrame.d.ts +8 -0
- package/es/_util/throttleByAnimationFrame.js +58 -0
- package/es/index.d.ts +2 -1
- package/es/index.js +3 -2
- package/es/message/style/index.css +1 -0
- package/es/notification/hooks/useNotification.d.ts +7 -0
- package/es/notification/hooks/useNotification.js +54 -0
- package/es/notification/index.d.ts +54 -0
- package/es/notification/index.js +342 -0
- package/es/notification/style/index.css +546 -0
- package/es/notification/style/index.d.ts +1 -0
- package/es/notification/style/index.js +1 -0
- package/lib/Affix/index.d.ts +54 -0
- package/lib/Affix/index.js +349 -0
- package/lib/{Notification → Affix}/style/index.css +0 -3
- package/lib/Affix/style/index.d.ts +1 -0
- package/lib/{Notification → Affix}/style/index.js +0 -0
- package/lib/Affix/utils.d.ts +15 -0
- package/lib/Affix/utils.js +104 -0
- package/lib/Alert/ErrorBoundary.d.ts +22 -0
- package/lib/Alert/ErrorBoundary.js +79 -0
- package/lib/Alert/index.d.ts +41 -0
- package/lib/Alert/index.js +215 -0
- package/lib/Alert/style/index.css +531 -0
- package/lib/Alert/style/index.d.ts +1 -0
- package/lib/Alert/style/index.js +3 -0
- package/lib/CardTable/body/TableBodyCell.js +3 -0
- package/lib/CardTable/card/PictureTextColumn.js +8 -6
- package/lib/CardTable/card/PictureTextRow.js +14 -51
- package/lib/CardTable/card/PictureTextRowOperate.js +130 -0
- package/lib/CardTable/fns/index.js +38 -8
- package/lib/CardTable/{toolbar → pager}/TablePagination.js +0 -0
- package/lib/CardTable/pager/index.js +48 -0
- package/lib/CardTable/style/index.css +160 -12
- package/lib/CardTable/table/TableRoot.js +20 -18
- package/lib/CardTable/table/TableWrapper.js +4 -0
- package/lib/CardTable/toolbar/ToolBarBottom.js +8 -27
- package/lib/Descriptions/style/index.css +10 -8
- package/lib/IconFont/index.js +3 -2
- package/lib/LmFilter/Controls/CheckboxTags.js +53 -0
- package/lib/LmFilter/Controls/index.js +47 -0
- package/lib/LmFilter/LmFilter.js +39 -0
- package/lib/LmFilter/baseFilter/fuzzySearch.js +53 -0
- package/lib/LmFilter/baseFilter/index.js +34 -0
- package/lib/LmFilter/clearFilter/index.js +35 -0
- package/lib/LmFilter/complexFilter/drawer.js +376 -0
- package/lib/LmFilter/complexFilter/index.js +64 -0
- package/lib/LmFilter/complexFilter/valueDrawer.js +238 -0
- package/lib/LmFilter/components/CascaderFilter.js +159 -0
- package/lib/LmFilter/components/CheckboxFilter.js +197 -0
- package/lib/LmFilter/components/DateFilter.js +139 -0
- package/lib/LmFilter/components/DropdownFIlter.js +229 -0
- package/lib/LmFilter/components/EmptyFilter.js +27 -0
- package/lib/LmFilter/components/InputFilter.js +52 -0
- package/lib/LmFilter/components/InputSearchClose.js +74 -0
- package/lib/LmFilter/components/SelectFilter.js +113 -0
- package/lib/LmFilter/components/index.js +140 -0
- package/lib/LmFilter/customFilter/index.js +17 -0
- package/lib/LmFilter/filterFns/index.js +73 -0
- package/lib/LmFilter/hooks/index.js +18 -0
- package/lib/LmFilter/hooks/useDelayedFn.js +29 -0
- package/lib/LmFilter/icon_placeholder.png +0 -0
- package/lib/LmFilter/index.js +16 -0
- package/lib/LmFilter/localization.d.ts +8 -0
- package/lib/LmFilter/localization.js +19 -0
- package/lib/LmFilter/style/index.js +3 -0
- package/lib/LmFilter/style/style.css +212 -0
- package/lib/LmFilter/utils.js +71 -0
- package/lib/LmFilter/wrapper/Filter.js +33 -0
- package/lib/LmFilter/wrapper/FilterContainer.js +29 -0
- package/lib/LmFilter/wrapper/FilterRoot.js +170 -0
- package/lib/LmFilter/wrapper/FilterWrapper.js +25 -0
- package/lib/QuickMenu/index.d.ts +14 -0
- package/lib/QuickMenu/index.js +187 -0
- package/lib/QuickMenu/style/index.css +560 -0
- package/lib/QuickMenu/style/index.d.ts +1 -0
- package/lib/QuickMenu/style/index.js +3 -0
- package/lib/Switch/index.d.ts +2 -1
- package/lib/Switch/index.js +34 -1
- package/lib/Switch/style/index.css +41 -0
- package/lib/Tag/index.d.ts +4 -0
- package/lib/Tag/index.js +48 -1
- package/lib/Tag/style/index.css +4 -1
- package/lib/Upload/index.d.ts +5 -1
- package/lib/Upload/index.js +8 -2
- package/lib/Upload/style/index.css +35 -0
- package/lib/_util/domTarget.d.ts +7 -0
- package/lib/_util/domTarget.js +31 -0
- package/lib/_util/getDataOrAriaProps.d.ts +1 -0
- package/lib/_util/getDataOrAriaProps.js +16 -0
- package/lib/_util/reactNode.d.ts +7 -0
- package/lib/_util/reactNode.js +24 -0
- package/lib/_util/throttleByAnimationFrame.d.ts +8 -0
- package/lib/_util/throttleByAnimationFrame.js +72 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +11 -3
- package/lib/message/style/index.css +1 -0
- package/lib/notification/hooks/useNotification.d.ts +7 -0
- package/lib/notification/hooks/useNotification.js +69 -0
- package/lib/notification/index.d.ts +54 -0
- package/lib/notification/index.js +365 -0
- package/lib/notification/style/index.css +546 -0
- package/lib/notification/style/index.d.ts +1 -0
- package/lib/notification/style/index.js +3 -0
- package/package.json +5 -2
- package/dist/Notification/index.d.ts +0 -7
- package/es/Notification/index.d.ts +0 -7
- package/es/Notification/index.js +0 -10
- package/lib/Notification/index.d.ts +0 -7
- package/lib/Notification/index.js +0 -23
|
File without changes
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ConfigConsumerProps } from 'antd/es/config-provider';
|
|
3
|
+
export interface AffixProps {
|
|
4
|
+
/** 距离窗口顶部达到指定偏移量后触发 */
|
|
5
|
+
offsetTop?: number;
|
|
6
|
+
/** 距离窗口底部达到指定偏移量后触发 */
|
|
7
|
+
offsetBottom?: number;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
/** 固定状态改变时触发的回调函数 */
|
|
10
|
+
onChange?: (affixed?: boolean) => void;
|
|
11
|
+
/** 设置 Affix 需要监听其滚动事件的元素,值为一个返回对应 DOM 元素的函数 */
|
|
12
|
+
target?: () => Window | HTMLElement | null;
|
|
13
|
+
prefixCls?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
interface InternalAffixProps extends AffixProps {
|
|
18
|
+
affixPrefixCls: string;
|
|
19
|
+
}
|
|
20
|
+
declare enum AffixStatus {
|
|
21
|
+
None = 0,
|
|
22
|
+
Prepare = 1
|
|
23
|
+
}
|
|
24
|
+
export interface AffixState {
|
|
25
|
+
affixStyle?: React.CSSProperties;
|
|
26
|
+
placeholderStyle?: React.CSSProperties;
|
|
27
|
+
status: AffixStatus;
|
|
28
|
+
lastAffix: boolean;
|
|
29
|
+
prevTarget: Window | HTMLElement | null;
|
|
30
|
+
}
|
|
31
|
+
declare class Affix extends React.Component<InternalAffixProps, AffixState> {
|
|
32
|
+
static contextType: React.Context<ConfigConsumerProps>;
|
|
33
|
+
state: AffixState;
|
|
34
|
+
placeholderNode: HTMLDivElement;
|
|
35
|
+
fixedNode: HTMLDivElement;
|
|
36
|
+
private timeout;
|
|
37
|
+
context: ConfigConsumerProps;
|
|
38
|
+
private getTargetFunc;
|
|
39
|
+
componentDidMount(): void;
|
|
40
|
+
componentDidUpdate(prevProps: AffixProps): void;
|
|
41
|
+
componentWillUnmount(): void;
|
|
42
|
+
getOffsetTop: () => number;
|
|
43
|
+
getOffsetBottom: () => number;
|
|
44
|
+
savePlaceholderNode: (node: HTMLDivElement) => void;
|
|
45
|
+
saveFixedNode: (node: HTMLDivElement) => void;
|
|
46
|
+
measure: () => void;
|
|
47
|
+
prepareMeasure: () => void;
|
|
48
|
+
updatePosition(): void;
|
|
49
|
+
lazyUpdatePosition(): void;
|
|
50
|
+
render(): JSX.Element;
|
|
51
|
+
}
|
|
52
|
+
export declare type InternalAffixClass = Affix;
|
|
53
|
+
declare const AffixFC: React.ForwardRefExoticComponent<AffixProps & React.RefAttributes<Affix>>;
|
|
54
|
+
export default AffixFC;
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare type BindElement = HTMLElement | Window | null | undefined;
|
|
2
|
+
export declare function getTargetRect(target: BindElement): DOMRect;
|
|
3
|
+
export declare function getFixedTop(placeholderReact: DOMRect, targetRect: DOMRect, offsetTop?: number): number;
|
|
4
|
+
export declare function getFixedBottom(placeholderReact: DOMRect, targetRect: DOMRect, offsetBottom?: number): number;
|
|
5
|
+
interface ObserverEntity {
|
|
6
|
+
target: HTMLElement | Window;
|
|
7
|
+
affixList: any[];
|
|
8
|
+
eventHandlers: {
|
|
9
|
+
[eventName: string]: any;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare function getObserverEntities(): ObserverEntity[];
|
|
13
|
+
export declare function addObserveTarget<T>(target: HTMLElement | Window | null, affix: T): void;
|
|
14
|
+
export declare function removeObserveTarget<T>(affix: T): void;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface ErrorBoundaryProps {
|
|
3
|
+
message?: React.ReactNode;
|
|
4
|
+
description?: React.ReactNode;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export default class ErrorBoundary extends React.Component<ErrorBoundaryProps, {
|
|
8
|
+
error?: Error | null;
|
|
9
|
+
info: {
|
|
10
|
+
componentStack?: string;
|
|
11
|
+
};
|
|
12
|
+
}> {
|
|
13
|
+
state: {
|
|
14
|
+
error: any;
|
|
15
|
+
info: {
|
|
16
|
+
componentStack: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
componentDidCatch(error: Error | null, info: object): void;
|
|
20
|
+
render(): React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Alert as AntdAlert } from 'antd';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import ErrorBoundary from './ErrorBoundary';
|
|
4
|
+
export interface AlertProps {
|
|
5
|
+
/** Type of Alert styles, options:`success`, `info`, `warning`, `error` */
|
|
6
|
+
type?: 'success' | 'info' | 'warning' | 'error';
|
|
7
|
+
/** Whether Alert can be closed */
|
|
8
|
+
closable?: boolean;
|
|
9
|
+
/** Close text to show */
|
|
10
|
+
closeText?: React.ReactNode;
|
|
11
|
+
/** Content of Alert */
|
|
12
|
+
message?: React.ReactNode;
|
|
13
|
+
/** Additional content of Alert */
|
|
14
|
+
description?: React.ReactNode;
|
|
15
|
+
/** Callback when close Alert */
|
|
16
|
+
onClose?: React.MouseEventHandler<HTMLButtonElement>;
|
|
17
|
+
/** Trigger when animation ending of Alert */
|
|
18
|
+
afterClose?: () => void;
|
|
19
|
+
/** Whether to show icon */
|
|
20
|
+
showIcon?: boolean;
|
|
21
|
+
/** https://www.w3.org/TR/2014/REC-html5-20141028/dom.html#aria-role-attribute */
|
|
22
|
+
role?: string;
|
|
23
|
+
style?: React.CSSProperties;
|
|
24
|
+
prefixCls?: string;
|
|
25
|
+
className?: string;
|
|
26
|
+
banner?: boolean;
|
|
27
|
+
icon?: React.ReactNode;
|
|
28
|
+
/** Custome closeIcon */
|
|
29
|
+
closeIcon?: React.ReactNode;
|
|
30
|
+
action?: React.ReactNode;
|
|
31
|
+
onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
|
|
32
|
+
onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;
|
|
33
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
34
|
+
duration?: number;
|
|
35
|
+
}
|
|
36
|
+
interface AlertInterface extends React.FC<AlertProps> {
|
|
37
|
+
ErrorBoundary: typeof ErrorBoundary;
|
|
38
|
+
AntdAlert: typeof AntdAlert;
|
|
39
|
+
}
|
|
40
|
+
declare const Alert: AlertInterface;
|
|
41
|
+
export default Alert;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export default
|
|
2
|
-
declare function
|
|
1
|
+
export default CoreOptions;
|
|
2
|
+
declare function CoreOptions({ state, dispatch, props }: {
|
|
3
3
|
state: any;
|
|
4
4
|
dispatch: any;
|
|
5
5
|
props: any;
|
|
6
6
|
}): {
|
|
7
7
|
setCheckboxKeys: (keys: any, checked: any, reset: any) => void;
|
|
8
|
-
toggleCheckboxKey: (k: any) => void;
|
|
8
|
+
toggleCheckboxKey: (k: any, options?: {}) => void;
|
|
9
9
|
};
|
|
File without changes
|
package/dist/IconFont/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default IconFont;
|
|
2
|
-
declare const IconFont: import("react").FC<import("@ant-design/icons/lib/components/IconFont
|
|
2
|
+
declare const IconFont: import("react").FC<import("@ant-design/icons/lib/components/IconFont").IconFontProps<string>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default CoreOptions;
|
|
2
|
+
declare function CoreOptions({ state, dispatch, props }: {
|
|
3
|
+
state: any;
|
|
4
|
+
dispatch: any;
|
|
5
|
+
props: any;
|
|
6
|
+
}): {
|
|
7
|
+
setFilterValue: (item: any, field: any) => void;
|
|
8
|
+
getFilterValue: ({ field, type }: {
|
|
9
|
+
field: any;
|
|
10
|
+
type: any;
|
|
11
|
+
}) => any;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./useDelayedFn";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function getIsHas(val: any): boolean;
|
|
2
|
+
export function getValueForType(type: any): any[] | "";
|
|
3
|
+
export function uniqueFunc(arr: any, guid: any): any;
|
|
4
|
+
export function getRanges(): {
|
|
5
|
+
近一周: string[];
|
|
6
|
+
近一月: string[];
|
|
7
|
+
近一年: string[];
|
|
8
|
+
};
|
|
9
|
+
export function getFlat(arr: any): any[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IMenuData {
|
|
3
|
+
menuId: string;
|
|
4
|
+
title: string | React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export interface IQuickMenuProps {
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
top?: number;
|
|
10
|
+
menuData: IMenuData[];
|
|
11
|
+
warpElement: any;
|
|
12
|
+
}
|
|
13
|
+
declare const LMQuickMenu: React.FC<IQuickMenuProps>;
|
|
14
|
+
export default LMQuickMenu;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
package/dist/Switch/index.d.ts
CHANGED
package/dist/Tag/index.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Tag, TagProps } from 'antd';
|
|
3
|
+
import type { CheckableTagProps } from 'antd/es/tag/CheckableTag';
|
|
3
4
|
export interface ILMTagProps extends TagProps {
|
|
4
5
|
className?: string;
|
|
5
6
|
noborder?: boolean;
|
|
6
7
|
}
|
|
8
|
+
export interface ILMTagCheckProps extends CheckableTagProps {
|
|
9
|
+
color?: string;
|
|
10
|
+
}
|
|
7
11
|
interface LmTagInterface extends React.ForwardRefExoticComponent<ILMTagProps & React.RefAttributes<unknown>> {
|
|
8
12
|
CheckableTag?: typeof Tag.CheckableTag;
|
|
9
13
|
}
|
package/dist/Upload/index.d.ts
CHANGED
|
@@ -5,5 +5,9 @@ import type { RcFile as AntdRcFile } from 'antd/es/upload';
|
|
|
5
5
|
export declare type UploadProps = AntdUploadProps;
|
|
6
6
|
export declare type UploadFile = AntdUploadFile;
|
|
7
7
|
export declare type RcFile = AntdRcFile;
|
|
8
|
-
|
|
8
|
+
export interface LMUploadProps extends UploadProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
sizeType?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const LMUpload: React.FC<LMUploadProps>;
|
|
9
13
|
export default LMUpload;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MutableRefObject } from 'react';
|
|
2
|
+
export declare const isFunction: (value: unknown) => value is Function;
|
|
3
|
+
declare type TargetValue<T> = T | undefined | null;
|
|
4
|
+
declare type TargetType = HTMLElement | Element | Window | Document;
|
|
5
|
+
export declare type BasicTarget<T extends TargetType = Element> = (() => TargetValue<T>) | TargetValue<T> | MutableRefObject<TargetValue<T>>;
|
|
6
|
+
export declare function getTargetElement<T extends TargetType>(target: BasicTarget<T>, defaultElement?: T): T;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function getDataOrAriaProps(props: any): any;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const isValidElement: typeof React.isValidElement;
|
|
3
|
+
declare type AnyObject = Record<any, any>;
|
|
4
|
+
declare type RenderProps = undefined | AnyObject | ((originProps: AnyObject) => AnyObject | undefined);
|
|
5
|
+
export declare function replaceElement(element: React.ReactNode, replacement: React.ReactNode, props: RenderProps): React.ReactNode;
|
|
6
|
+
export declare function cloneElement(element: React.ReactNode, props?: RenderProps): React.ReactElement;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function throttleByAnimationFrame<T extends unknown[]>(fn: (...args: T) => void): {
|
|
2
|
+
(...args: T): void;
|
|
3
|
+
cancel: () => void;
|
|
4
|
+
};
|
|
5
|
+
export declare function throttleByAnimationFrameDecorator(): (target: any, key: string, descriptor: any) => {
|
|
6
|
+
configurable: boolean;
|
|
7
|
+
get(): any;
|
|
8
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export { default as LmSelect } from './LmSelect';
|
|
|
22
22
|
export { default as LoadingPage } from './LoadingPage';
|
|
23
23
|
export { default as Menu } from './Menu';
|
|
24
24
|
export { default as Modal } from './Modal';
|
|
25
|
-
export { default as notification } from './
|
|
25
|
+
export { default as notification } from './notification';
|
|
26
26
|
export { default as OldModal } from './OldModal';
|
|
27
27
|
export { default as Pagination } from './Pagination';
|
|
28
28
|
export { default as PopTable } from './PopTable';
|
|
@@ -48,3 +48,4 @@ export { default as Form } from './Form';
|
|
|
48
48
|
export { default as Spin } from './Spin';
|
|
49
49
|
export { default as LmEditTable } from './LmEditTable';
|
|
50
50
|
export { default as List } from './List';
|
|
51
|
+
export { default as LMQuickMenu } from './QuickMenu';
|