@jiaozhiye/qm-design-react 1.7.25 → 1.7.27
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/lib/form/src/form.d.ts +1 -1
- package/lib/guide-tracker/index.d.ts +3 -0
- package/lib/guide-tracker/src/Panel.d.ts +9 -0
- package/lib/guide-tracker/src/guideTracker.d.ts +36 -0
- package/lib/guide-tracker/src/lib/Highlighter.d.ts +2 -0
- package/lib/guide-tracker/src/lib/Overlay.d.ts +36 -0
- package/lib/guide-tracker/src/lib/index.d.ts +29 -0
- package/lib/guide-tracker/src/lib/utils.d.ts +27 -0
- package/lib/guide-tracker/style/index.less +189 -0
- package/lib/hooks/useLayoutUpdateEffect.d.ts +2 -0
- package/lib/hooks/useMergedState.d.ts +8 -0
- package/lib/hooks/useSafeState.d.ts +4 -0
- package/lib/index.d.ts +4 -2
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/lang/en.d.ts +8 -0
- package/lib/locale/lang/en.js +13 -5
- package/lib/locale/lang/zh-cn.d.ts +8 -0
- package/lib/locale/lang/zh-cn.js +13 -5
- package/lib/style/index.css +209 -3
- package/lib/style/index.less +39 -38
- package/lib/style/index.min.css +1 -1
- package/lib/table/src/hooks/useTableEffect.d.ts +1 -0
- package/lib/table/src/hooks/useTableRef.d.ts +3 -0
- package/lib/table/src/table/props.d.ts +1 -0
- package/lib/table/src/table/types.d.ts +1 -0
- package/lib/tour/index.d.ts +1 -1
- package/lib/tour/src/Pause.d.ts +10 -0
- package/lib/tour/src/Tour.d.ts +10 -2
- package/lib/tour/src/TourStep/index.d.ts +2 -0
- package/lib/tour/src/util.d.ts +2 -0
- package/lib/tour/style/index.less +21 -2
- package/package.json +3 -2
|
@@ -33,6 +33,7 @@ type IExtra = {
|
|
|
33
33
|
setResizeState: (option: ITableRef['resizeState']) => void;
|
|
34
34
|
setMergeCells: (values: IMergeCell[]) => void;
|
|
35
35
|
setPingRight: (value: boolean) => void;
|
|
36
|
+
setUnMounted: (value: boolean) => void;
|
|
36
37
|
setHandleChange: (value: boolean) => void;
|
|
37
38
|
calcTableHeight: () => void;
|
|
38
39
|
createSelectionKeys: (rowKeys?: IRowKey[]) => IRowKey[];
|
|
@@ -37,6 +37,7 @@ export type ITableRef = {
|
|
|
37
37
|
shouldToTop: boolean;
|
|
38
38
|
selectionRows: IRecord[];
|
|
39
39
|
recordsMap: Map<IRowKey, IRecord>;
|
|
40
|
+
unMounted: boolean;
|
|
40
41
|
isHandleChange: boolean;
|
|
41
42
|
isIE: boolean;
|
|
42
43
|
};
|
|
@@ -61,6 +62,7 @@ declare const useTableRef: <T extends ITableProps>(props: T, { getRowKey, $size
|
|
|
61
62
|
setShouldToTop: (value: boolean) => void;
|
|
62
63
|
setSelectionRows: (selectKeys: IRecord[]) => void;
|
|
63
64
|
setRecordsMap: (key: IRowKey, value: IRecord) => void;
|
|
65
|
+
setUnMounted: (value: boolean) => void;
|
|
64
66
|
setHandleChange: (value: boolean) => void;
|
|
65
67
|
clearElementStore: () => void;
|
|
66
68
|
clearRecordsMap: () => void;
|
|
@@ -98,6 +100,7 @@ declare const useTableRef: <T extends ITableProps>(props: T, { getRowKey, $size
|
|
|
98
100
|
shouldToTop: boolean;
|
|
99
101
|
selectionRows: IRecord[];
|
|
100
102
|
recordsMap: Map<IRowKey, IRecord>;
|
|
103
|
+
unMounted: boolean;
|
|
101
104
|
isHandleChange: boolean;
|
|
102
105
|
isIE: boolean;
|
|
103
106
|
tableRef: React.MutableRefObject<ITableRef>;
|
|
@@ -87,6 +87,7 @@ export declare const propTypes: {
|
|
|
87
87
|
style: PropTypes.Requireable<object>;
|
|
88
88
|
}>>;
|
|
89
89
|
precision: PropTypes.Requireable<number>;
|
|
90
|
+
displayPrecision: PropTypes.Requireable<number>;
|
|
90
91
|
formatType: PropTypes.Requireable<string>;
|
|
91
92
|
required: PropTypes.Requireable<boolean>;
|
|
92
93
|
canCopy: PropTypes.Requireable<boolean>;
|
package/lib/tour/index.d.ts
CHANGED
package/lib/tour/src/Tour.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import type { TriggerProps } from '@rc-component/trigger';
|
|
|
6
6
|
export interface TourProps extends Pick<TriggerProps, 'onPopupAlign' | 'builtinPlacements'> {
|
|
7
7
|
steps?: TourStepInfo[];
|
|
8
8
|
open?: boolean;
|
|
9
|
+
type?: 'default' | 'primary';
|
|
9
10
|
defaultCurrent?: number;
|
|
10
11
|
current?: number;
|
|
11
12
|
onChange?: (current: number) => void;
|
|
@@ -18,9 +19,11 @@ export interface TourProps extends Pick<TriggerProps, 'onPopupAlign' | 'builtinP
|
|
|
18
19
|
arrow?: boolean | {
|
|
19
20
|
pointAtCenter: boolean;
|
|
20
21
|
};
|
|
22
|
+
control?: boolean;
|
|
21
23
|
rootClassName?: string;
|
|
22
24
|
placement?: PlacementType;
|
|
23
25
|
renderPanel?: (props: TourStepProps, current: number) => React.ReactNode;
|
|
26
|
+
indicatorsRender?: (current: number, total: number) => React.ReactNode;
|
|
24
27
|
gap?: Gap;
|
|
25
28
|
animated?: boolean | {
|
|
26
29
|
placeholder: boolean;
|
|
@@ -28,5 +31,10 @@ export interface TourProps extends Pick<TriggerProps, 'onPopupAlign' | 'builtinP
|
|
|
28
31
|
scrollIntoViewOptions?: boolean | ScrollIntoViewOptions;
|
|
29
32
|
zIndex?: number;
|
|
30
33
|
}
|
|
31
|
-
|
|
32
|
-
|
|
34
|
+
type TourRef = {
|
|
35
|
+
OPEN: () => void;
|
|
36
|
+
CLOSE: () => void;
|
|
37
|
+
SET_ZINDEX: (value: number) => void;
|
|
38
|
+
};
|
|
39
|
+
declare const QmTour: React.ForwardRefExoticComponent<TourProps & React.RefAttributes<TourRef>>;
|
|
40
|
+
export default QmTour;
|
|
@@ -17,6 +17,8 @@ export interface TourStepInfo {
|
|
|
17
17
|
style?: React.CSSProperties;
|
|
18
18
|
scrollIntoViewOptions?: boolean | ScrollIntoViewOptions;
|
|
19
19
|
indicatorsRender?: (current: number, total: number) => React.ReactNode;
|
|
20
|
+
zIndex?: number;
|
|
21
|
+
action?: (node: HTMLElement, current: number) => void;
|
|
20
22
|
}
|
|
21
23
|
export interface TourStepProps extends TourStepInfo {
|
|
22
24
|
prefixCls?: string;
|
package/lib/tour/src/util.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { PlacementType } from './placements';
|
|
2
3
|
export declare const isInViewPort: (element: HTMLElement) => boolean;
|
|
3
4
|
export declare const getPlacement: (targetElement?: HTMLElement | null, placement?: PlacementType, stepPlacement?: PlacementType) => string;
|
|
5
|
+
export declare const isValidNode: (node: React.ReactNode) => boolean;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: 焦质晔
|
|
3
3
|
* @Date: 2022-01-11 18:01:20
|
|
4
4
|
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2023-07-
|
|
5
|
+
* @Last Modified time: 2023-07-26 17:22:16
|
|
6
6
|
*/
|
|
7
7
|
@import '../../style/common';
|
|
8
8
|
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
& &-inner {
|
|
56
56
|
box-shadow: rgba(0, 0, 0, 0.03) 0px 1px 2px 0px, rgba(0, 0, 0, 0.02) 0px 1px 6px -1px, rgba(0, 0, 0, 0.02) 0px 2px 4px 0px;
|
|
57
|
-
background-color:
|
|
57
|
+
background-color: #fff;
|
|
58
58
|
background-clip: padding-box;
|
|
59
59
|
text-decoration: none;
|
|
60
60
|
border-radius: 8px;
|
|
@@ -115,6 +115,25 @@
|
|
|
115
115
|
& &-buttons {
|
|
116
116
|
margin-inline-start: auto;
|
|
117
117
|
}
|
|
118
|
+
&-control {
|
|
119
|
+
position: fixed;
|
|
120
|
+
right: 20px;
|
|
121
|
+
bottom: 20px;
|
|
122
|
+
width: 40px;
|
|
123
|
+
height: 40px;
|
|
124
|
+
border-radius: 50%;
|
|
125
|
+
border: 2px solid #fff;
|
|
126
|
+
background: linear-gradient(to right bottom, @--primary-4, @--primary-7);
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: center;
|
|
130
|
+
pointer-events: auto;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
.anticon {
|
|
133
|
+
color: #fff;
|
|
134
|
+
font-size: 20px;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
118
137
|
// =======================================
|
|
119
138
|
&-mask &-placeholder-animated {
|
|
120
139
|
transition: all 0.2s ease;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jiaozhiye/qm-design-react",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.27",
|
|
4
4
|
"description": "A Component Library for React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"React",
|
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
"react": ">=16.14.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@rc-component/
|
|
52
|
+
"@rc-component/portal": "^1.1.2",
|
|
53
|
+
"@rc-component/trigger": "^1.14.4",
|
|
53
54
|
"add-dom-event-listener": "^1.1.0",
|
|
54
55
|
"antd": "4.24.12",
|
|
55
56
|
"axios": "^0.27.2",
|