@jiaozhiye/qm-design-react 1.7.28 → 1.7.30
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/guide-tracker/src/Panel.d.ts +2 -2
- package/lib/guide-tracker/src/guideTracker.d.ts +2 -0
- 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.js +5 -5
- package/lib/locale/lang/zh-cn.js +5 -5
- package/lib/style/index.less +39 -39
- package/lib/table/src/edit/index.d.ts +4 -1
- package/lib/table/src/hooks/useImperativeMethod.d.ts +2 -1
- package/lib/table/src/table/types.d.ts +2 -0
- package/lib/tour/src/Mask.d.ts +1 -1
- package/lib/tour/src/Tour.d.ts +2 -1
- package/lib/tour/src/hooks/useTarget.d.ts +2 -1
- package/package.json +2 -2
package/lib/locale/lang/en.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2021-06-19 08:46:00
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2023-07-25 16:48:40
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-06-19 08:46:00
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2023-07-25 16:48:40
|
|
6
6
|
*/
|
|
7
7
|
export default {
|
|
8
8
|
name: 'en',
|
package/lib/locale/lang/zh-cn.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2021-06-19 08:45:54
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2023-07-25 16:48:08
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-06-19 08:45:54
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2023-07-25 16:48:08
|
|
6
6
|
*/
|
|
7
7
|
export default {
|
|
8
8
|
name: 'zh-cn',
|
package/lib/style/index.less
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2021-07-23 18:23:59
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2023-07-29 23:41:31
|
|
6
|
-
*/
|
|
7
|
-
@import '../antd/index.less';
|
|
8
|
-
@import './var.less';
|
|
9
|
-
@import './reset.less';
|
|
10
|
-
|
|
11
|
-
/* QmDesign */
|
|
12
|
-
@import '../button/style/index.less';
|
|
13
|
-
@import '../space/style/index.less';
|
|
14
|
-
@import '../divider/style/index.less';
|
|
15
|
-
@import '../split/style/index.less';
|
|
16
|
-
@import '../countup/style/index.less';
|
|
17
|
-
@import '../empty/style/index.less';
|
|
18
|
-
@import '../spin/style/index.less';
|
|
19
|
-
@import '../scrollbar/style/index.less';
|
|
20
|
-
@import '../download/style/index.less';
|
|
21
|
-
@import '../anchor/style/index.less';
|
|
22
|
-
@import '../tabs/style/index.less';
|
|
23
|
-
@import '../drawer/style/index.less';
|
|
24
|
-
@import '../modal/style/index.less';
|
|
25
|
-
@import '../form/style/index.less';
|
|
26
|
-
@import '../tinymce/style/index.less';
|
|
27
|
-
@import '../cropper/style/index.less';
|
|
28
|
-
@import '../collapse/style/index.less';
|
|
29
|
-
@import '../upload-file/style/index.less';
|
|
30
|
-
@import '../upload-img/style/index.less';
|
|
31
|
-
@import '../table/style/index.less';
|
|
32
|
-
@import '../search-helper/style/index.less';
|
|
33
|
-
@import '../tree-helper/style/index.less';
|
|
34
|
-
@import '../tree-table-helper/style/index.less';
|
|
35
|
-
@import '../range-table-helper/style/index.less';
|
|
36
|
-
@import '../search-tree/style/index.less';
|
|
37
|
-
@import '../tour/style/index.less';
|
|
38
|
-
@import '../guide-tracker/style/index.less';
|
|
39
|
-
@import '../print/style/index.less';
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-07-23 18:23:59
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2023-07-29 23:41:31
|
|
6
|
+
*/
|
|
7
|
+
@import '../antd/index.less';
|
|
8
|
+
@import './var.less';
|
|
9
|
+
@import './reset.less';
|
|
10
|
+
|
|
11
|
+
/* QmDesign */
|
|
12
|
+
@import '../button/style/index.less';
|
|
13
|
+
@import '../space/style/index.less';
|
|
14
|
+
@import '../divider/style/index.less';
|
|
15
|
+
@import '../split/style/index.less';
|
|
16
|
+
@import '../countup/style/index.less';
|
|
17
|
+
@import '../empty/style/index.less';
|
|
18
|
+
@import '../spin/style/index.less';
|
|
19
|
+
@import '../scrollbar/style/index.less';
|
|
20
|
+
@import '../download/style/index.less';
|
|
21
|
+
@import '../anchor/style/index.less';
|
|
22
|
+
@import '../tabs/style/index.less';
|
|
23
|
+
@import '../drawer/style/index.less';
|
|
24
|
+
@import '../modal/style/index.less';
|
|
25
|
+
@import '../form/style/index.less';
|
|
26
|
+
@import '../tinymce/style/index.less';
|
|
27
|
+
@import '../cropper/style/index.less';
|
|
28
|
+
@import '../collapse/style/index.less';
|
|
29
|
+
@import '../upload-file/style/index.less';
|
|
30
|
+
@import '../upload-img/style/index.less';
|
|
31
|
+
@import '../table/style/index.less';
|
|
32
|
+
@import '../search-helper/style/index.less';
|
|
33
|
+
@import '../tree-helper/style/index.less';
|
|
34
|
+
@import '../tree-table-helper/style/index.less';
|
|
35
|
+
@import '../range-table-helper/style/index.less';
|
|
36
|
+
@import '../search-tree/style/index.less';
|
|
37
|
+
@import '../tour/style/index.less';
|
|
38
|
+
@import '../guide-tracker/style/index.less';
|
|
39
|
+
@import '../print/style/index.less';
|
|
@@ -8,5 +8,8 @@ type ICellEditProps = {
|
|
|
8
8
|
clicked: [IRowKey, string] | [];
|
|
9
9
|
text: string | number;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type CellEditRef = {
|
|
12
|
+
focus: () => void;
|
|
13
|
+
};
|
|
14
|
+
declare const CellEdit: React.ForwardRefExoticComponent<ICellEditProps & React.RefAttributes<CellEditRef>>;
|
|
12
15
|
export default CellEdit;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ITableRef } from './useTableRef';
|
|
3
|
-
import type { getRowKeyType, ITableProps, IColumn, IFetchParams, IPagination, IRecord, IRowKey, IRule, IValidItem, TableRef, ToolBoxRef } from '../table/types';
|
|
3
|
+
import type { getRowKeyType, ITableProps, IColumn, IFetchParams, IPagination, IRecord, IRowKey, IRule, IValidItem, TableRef, ToolBoxRef, TableBodyRef } from '../table/types';
|
|
4
4
|
type IExtra = {
|
|
5
5
|
getRowKey: getRowKeyType;
|
|
6
6
|
tableProps: ITableProps;
|
|
7
7
|
tableRef: React.MutableRefObject<ITableRef>;
|
|
8
8
|
toolBoxRef: React.RefObject<ToolBoxRef>;
|
|
9
|
+
tableBodyRef: React.RefObject<TableBodyRef>;
|
|
9
10
|
flattenColumns: IColumn[];
|
|
10
11
|
editableColumns: IColumn[];
|
|
11
12
|
pagination: IPagination;
|
|
@@ -409,6 +409,7 @@ export type TableRef = {
|
|
|
409
409
|
GET_FETCH_PARAMS: () => IFetchParams;
|
|
410
410
|
CLEAR_TABLE_DATA: () => void;
|
|
411
411
|
CLEAR_LOG: () => void;
|
|
412
|
+
CREATE_FOCUS: (rowKey: IRowKey, dataIndex: string) => void;
|
|
412
413
|
FORCE_UPDATE: () => void;
|
|
413
414
|
DO_EXPORT: () => void;
|
|
414
415
|
SCROLL_TO_RECORD: (rowKey: IRowKey) => void;
|
|
@@ -431,6 +432,7 @@ export type TableRef = {
|
|
|
431
432
|
export type TableBodyRef = {
|
|
432
433
|
renderCellTitle: (column: IColumn, row: IRecord, rowIndex: number, columnIndex: number) => string;
|
|
433
434
|
setClickedValues: (clicked: IClicked) => void;
|
|
435
|
+
createFocus: (rowKey: IRowKey, dataIndex: string) => void;
|
|
434
436
|
forceUpdate: () => void;
|
|
435
437
|
};
|
|
436
438
|
export type ToolBoxRef = {
|
package/lib/tour/src/Mask.d.ts
CHANGED
package/lib/tour/src/Tour.d.ts
CHANGED
|
@@ -20,7 +20,8 @@ export interface TourProps extends Pick<TriggerProps, 'onPopupAlign' | 'builtinP
|
|
|
20
20
|
pointAtCenter: boolean;
|
|
21
21
|
};
|
|
22
22
|
control?: boolean;
|
|
23
|
-
|
|
23
|
+
overlayClassName?: string;
|
|
24
|
+
overlayStyle?: React.CSSProperties;
|
|
24
25
|
placement?: PlacementType;
|
|
25
26
|
renderPanel?: (props: TourStepProps, current: number) => React.ReactNode;
|
|
26
27
|
indicatorsRender?: (current: number, total: number) => React.ReactNode;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TourStepInfo } from '../TourStep';
|
|
2
|
+
import type { Nullable } from '../../../_utils/types';
|
|
2
3
|
export interface Gap {
|
|
3
4
|
offset?: number;
|
|
4
5
|
radius?: number;
|
|
@@ -10,4 +11,4 @@ export interface PosInfo {
|
|
|
10
11
|
width: number;
|
|
11
12
|
radius: number;
|
|
12
13
|
}
|
|
13
|
-
export default function useTarget(target: TourStepInfo['target'], open: boolean, gap?: Gap, scrollIntoViewOptions?: boolean | ScrollIntoViewOptions): [PosInfo
|
|
14
|
+
export default function useTarget(target: TourStepInfo['target'], open: boolean, gap?: Gap, scrollIntoViewOptions?: boolean | ScrollIntoViewOptions): [Nullable<PosInfo>, HTMLElement | null | undefined];
|
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.30",
|
|
4
4
|
"description": "A Component Library for React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"React",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"less-loader": "^11.1.0",
|
|
119
119
|
"lint-staged": "^10.5.4",
|
|
120
120
|
"mockjs": "^1.1.0",
|
|
121
|
-
"prettier": "^2.
|
|
121
|
+
"prettier": "^2.8.8",
|
|
122
122
|
"react": "17.0.2",
|
|
123
123
|
"react-dom": "17.0.2",
|
|
124
124
|
"rimraf": "^3.0.2",
|