@apdesign/web-react 1.6.0 → 1.6.1
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/arco-icon.min.js +1 -1
- package/dist/arco.development.js +4 -4
- package/dist/arco.min.js +2 -2
- package/es/DatePicker/util.d.ts +1 -1
- package/es/Menu/context.d.ts +1 -1
- package/es/Table/table.d.ts +0 -2
- package/es/Table/table.js +0 -1
- package/es/_class/VirtualList/index.d.ts +0 -1
- package/es/_class/VirtualList/index.js +0 -7
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/Table/table.d.ts +0 -2
- package/lib/Table/table.js +0 -1
- package/lib/_class/VirtualList/index.d.ts +0 -1
- package/lib/_class/VirtualList/index.js +0 -7
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +2 -2
package/es/DatePicker/util.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
|
2
2
|
export declare function isTimeArrayChange(prevTime: Dayjs[], nextTime: Dayjs[]): boolean;
|
|
3
|
-
export declare function getAvailableDayjsLength(value: any):
|
|
3
|
+
export declare function getAvailableDayjsLength(value: any): 1 | 0 | 2;
|
|
4
4
|
export declare function isDisabledDate(cellDate: any, disabledDate: any, mode: any): boolean;
|
|
5
5
|
declare type WeekStartType = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
6
6
|
export declare function getDefaultWeekStart(dayjsLocale: string): WeekStartType;
|
package/es/Menu/context.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare type HotkeyInfo = {
|
|
|
6
6
|
type: 'sibling' | 'generation' | 'enter';
|
|
7
7
|
};
|
|
8
8
|
export declare type ResetHotkeyInfo = (activeKey?: string) => void;
|
|
9
|
-
declare const MenuContext: import("react").Context<Pick<MenuProps, "
|
|
9
|
+
declare const MenuContext: import("react").Context<Pick<MenuProps, "mode" | "triggerProps" | "collapse" | "inDropdown" | "theme" | "levelIndent" | "icons" | "autoScrollIntoView" | "selectedKeys" | "openKeys" | "scrollConfig" | "tooltipProps"> & {
|
|
10
10
|
id?: string;
|
|
11
11
|
prefixCls?: string;
|
|
12
12
|
onClickMenuItem?: (key: string, event: any) => void;
|
package/es/Table/table.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableProps } from './interface';
|
|
3
|
-
import { VirtualListHandle } from '../_class/VirtualList';
|
|
4
3
|
export interface TableInstance {
|
|
5
4
|
getRootDomElement: () => HTMLDivElement;
|
|
6
5
|
scrollIntoView: (dataIndex: React.Key) => void;
|
|
7
|
-
refVirtualList: React.MutableRefObject<VirtualListHandle>;
|
|
8
6
|
}
|
|
9
7
|
declare const _default: <T>(props: TableProps<T> & {
|
|
10
8
|
ref?: React.Ref<TableInstance>;
|
package/es/Table/table.js
CHANGED
|
@@ -34,7 +34,6 @@ export declare type VirtualListHandle = {
|
|
|
34
34
|
key: Key;
|
|
35
35
|
options?: ScrollIntoViewOptions;
|
|
36
36
|
}) => void;
|
|
37
|
-
virtualListScrollHandler: (event: UIEvent<HTMLElement> | null, isInit?: boolean) => void;
|
|
38
37
|
};
|
|
39
38
|
declare const VirtualList: React.ForwardRefExoticComponent<VirtualListProps<any> & React.RefAttributes<VirtualListHandle>>;
|
|
40
39
|
export default VirtualList;
|
|
@@ -427,14 +427,7 @@ var VirtualList = React.forwardRef(function (props, ref) {
|
|
|
427
427
|
}
|
|
428
428
|
});
|
|
429
429
|
},
|
|
430
|
-
virtualListScrollHandler: virtualListScrollHandler,
|
|
431
430
|
}); }, [data, itemHeight, state]);
|
|
432
|
-
useEffect(function () {
|
|
433
|
-
// 用于触发虚拟列表重计算定位时机
|
|
434
|
-
if (state.status === 'MEASURE_DONE') {
|
|
435
|
-
window.dispatchEvent(new Event('VIRTUAL_LIST_MEASURE_DONE'));
|
|
436
|
-
}
|
|
437
|
-
}, [state.status]);
|
|
438
431
|
var renderChildren = function (list, startIndex) {
|
|
439
432
|
return list.map(function (item, index) {
|
|
440
433
|
var originIndex = startIndex + index;
|
package/es/index.d.ts
CHANGED
|
@@ -139,4 +139,4 @@ export type { WatermarkProps } from './Watermark/interface';
|
|
|
139
139
|
export { default as Watermark } from './Watermark';
|
|
140
140
|
export type { ImageProps, ImagePreviewProps, ImagePreviewActionProps, ImagePreviewGroupProps } from './Image/interface';
|
|
141
141
|
export { default as Image } from './Image';
|
|
142
|
-
export declare const version = "1.6.
|
|
142
|
+
export declare const version = "1.6.1";
|
package/es/index.js
CHANGED
package/lib/Table/table.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TableProps } from './interface';
|
|
3
|
-
import { VirtualListHandle } from '../_class/VirtualList';
|
|
4
3
|
export interface TableInstance {
|
|
5
4
|
getRootDomElement: () => HTMLDivElement;
|
|
6
5
|
scrollIntoView: (dataIndex: React.Key) => void;
|
|
7
|
-
refVirtualList: React.MutableRefObject<VirtualListHandle>;
|
|
8
6
|
}
|
|
9
7
|
declare const _default: <T>(props: TableProps<T> & {
|
|
10
8
|
ref?: React.Ref<TableInstance>;
|
package/lib/Table/table.js
CHANGED
|
@@ -34,7 +34,6 @@ export declare type VirtualListHandle = {
|
|
|
34
34
|
key: Key;
|
|
35
35
|
options?: ScrollIntoViewOptions;
|
|
36
36
|
}) => void;
|
|
37
|
-
virtualListScrollHandler: (event: UIEvent<HTMLElement> | null, isInit?: boolean) => void;
|
|
38
37
|
};
|
|
39
38
|
declare const VirtualList: React.ForwardRefExoticComponent<VirtualListProps<any> & React.RefAttributes<VirtualListHandle>>;
|
|
40
39
|
export default VirtualList;
|
|
@@ -449,14 +449,7 @@ var VirtualList = react_1.default.forwardRef(function (props, ref) {
|
|
|
449
449
|
}
|
|
450
450
|
});
|
|
451
451
|
},
|
|
452
|
-
virtualListScrollHandler: virtualListScrollHandler,
|
|
453
452
|
}); }, [data, itemHeight, state]);
|
|
454
|
-
(0, react_1.useEffect)(function () {
|
|
455
|
-
// 用于触发虚拟列表重计算定位时机
|
|
456
|
-
if (state.status === 'MEASURE_DONE') {
|
|
457
|
-
window.dispatchEvent(new Event('VIRTUAL_LIST_MEASURE_DONE'));
|
|
458
|
-
}
|
|
459
|
-
}, [state.status]);
|
|
460
453
|
var renderChildren = function (list, startIndex) {
|
|
461
454
|
return list.map(function (item, index) {
|
|
462
455
|
var originIndex = startIndex + index;
|
package/lib/index.d.ts
CHANGED
|
@@ -139,4 +139,4 @@ export type { WatermarkProps } from './Watermark/interface';
|
|
|
139
139
|
export { default as Watermark } from './Watermark';
|
|
140
140
|
export type { ImageProps, ImagePreviewProps, ImagePreviewActionProps, ImagePreviewGroupProps } from './Image/interface';
|
|
141
141
|
export { default as Image } from './Image';
|
|
142
|
-
export declare const version = "1.6.
|
|
142
|
+
export declare const version = "1.6.1";
|
package/lib/index.js
CHANGED
|
@@ -147,4 +147,4 @@ var Watermark_1 = require("./Watermark");
|
|
|
147
147
|
Object.defineProperty(exports, "Watermark", { enumerable: true, get: function () { return __importDefault(Watermark_1).default; } });
|
|
148
148
|
var Image_1 = require("./Image");
|
|
149
149
|
Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return __importDefault(Image_1).default; } });
|
|
150
|
-
exports.version = '1.6.
|
|
150
|
+
exports.version = '1.6.1';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apdesign/web-react",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "AP Design React UI Library.",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"lodash": "^4.17.21",
|
|
128
128
|
"number-precision": "^1.3.1",
|
|
129
129
|
"pinyin-match": "^1.2.10",
|
|
130
|
-
"react-draggable": "
|
|
130
|
+
"react-draggable": "4.5.0",
|
|
131
131
|
"react-focus-lock": "^2.12.1",
|
|
132
132
|
"react-is": "^18.2.0",
|
|
133
133
|
"react-transition-group": "^4.3.0",
|