linkmore-design 1.0.54 → 1.0.55
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/Affix/demos/basic.d.ts +2 -0
- package/dist/Affix/index.d.ts +54 -0
- package/dist/Affix/style/index.d.ts +1 -0
- package/dist/Affix/utils.d.ts +15 -0
- package/dist/CardTable/fns/index.d.ts +1 -5
- package/dist/IconFont/index.d.ts +1 -1
- package/dist/LmFilter/{components → baseFilter}/fuzzySearch.d.ts +0 -0
- package/dist/LmFilter/utils.d.ts +1 -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/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/throttleByAnimationFrame.d.ts +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.umd.js +548 -8
- package/dist/index.umd.min.js +4 -4
- package/es/Affix/index.d.ts +54 -0
- package/es/Affix/index.js +326 -0
- package/es/Affix/style/index.css +505 -0
- package/es/Affix/style/index.d.ts +1 -0
- package/es/Affix/style/index.js +1 -0
- package/es/Affix/utils.d.ts +15 -0
- package/es/Affix/utils.js +83 -0
- package/es/CardTable/fns/index.js +6 -5
- package/es/Descriptions/style/index.css +10 -8
- package/es/IconFont/index.js +3 -2
- package/es/LmFilter/baseFilter/fuzzySearch.js +53 -0
- package/es/LmFilter/baseFilter/index.js +1 -1
- package/es/LmFilter/clearFilter/index.js +3 -1
- package/es/LmFilter/components/CascaderFilter.js +17 -41
- package/es/LmFilter/components/DateFilter.js +12 -20
- package/es/LmFilter/components/DropdownFIlter.js +78 -10
- package/es/LmFilter/components/index.js +56 -13
- package/es/LmFilter/hooks/useDelayedFn.js +8 -6
- package/es/LmFilter/style/style.css +16 -0
- package/es/LmFilter/utils.js +16 -0
- package/es/LmFilter/wrapper/FilterRoot.js +6 -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/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/throttleByAnimationFrame.d.ts +8 -0
- package/es/_util/throttleByAnimationFrame.js +58 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/lib/Affix/index.d.ts +54 -0
- package/lib/Affix/index.js +349 -0
- package/lib/Affix/style/index.css +505 -0
- package/lib/Affix/style/index.d.ts +1 -0
- package/lib/Affix/style/index.js +3 -0
- package/lib/Affix/utils.d.ts +15 -0
- package/lib/Affix/utils.js +104 -0
- package/lib/CardTable/fns/index.js +6 -5
- package/lib/Descriptions/style/index.css +10 -8
- package/lib/IconFont/index.js +3 -2
- package/lib/LmFilter/baseFilter/fuzzySearch.js +53 -0
- package/lib/LmFilter/baseFilter/index.js +1 -1
- package/lib/LmFilter/clearFilter/index.js +3 -1
- package/lib/LmFilter/components/CascaderFilter.js +17 -41
- package/lib/LmFilter/components/DateFilter.js +12 -20
- package/lib/LmFilter/components/DropdownFIlter.js +78 -10
- package/lib/LmFilter/components/index.js +56 -13
- package/lib/LmFilter/hooks/useDelayedFn.js +8 -6
- package/lib/LmFilter/style/style.css +16 -0
- package/lib/LmFilter/utils.js +16 -0
- package/lib/LmFilter/wrapper/FilterRoot.js +6 -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/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/throttleByAnimationFrame.d.ts +8 -0
- package/lib/_util/throttleByAnimationFrame.js +72 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +9 -1
- package/package.json +5 -2
- package/es/LmFilter/components/fuzzySearch.js +0 -37
- package/lib/LmFilter/components/fuzzySearch.js +0 -37
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -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 {};
|
|
@@ -5,9 +5,5 @@ declare function CoreOptions({ state, dispatch, props }: {
|
|
|
5
5
|
props: any;
|
|
6
6
|
}): {
|
|
7
7
|
setCheckboxKeys: (keys: any, checked: any, reset: any) => void;
|
|
8
|
-
toggleCheckboxKey: (k: any, {
|
|
9
|
-
trigger?: string;
|
|
10
|
-
cell: any;
|
|
11
|
-
cellIndex: any;
|
|
12
|
-
}) => void;
|
|
8
|
+
toggleCheckboxKey: (k: any, options?: {}) => void;
|
|
13
9
|
};
|
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>>;
|
|
File without changes
|
package/dist/LmFilter/utils.d.ts
CHANGED
|
@@ -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/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,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