@jiaozhiye/qm-design-react 1.7.52 → 1.7.54
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/_utils/types.d.ts +1 -0
- package/lib/form/src/fields-filter.d.ts +3 -3
- package/lib/index.d.ts +4 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/print/src/print.d.ts +3 -1
- package/lib/search-helper/src/search-helper.d.ts +3 -1
- package/lib/search-tree/src/search-tree.d.ts +5 -1
- package/lib/table/src/column-filter/index.d.ts +2 -2
- package/lib/table/src/hooks/useImperativeMethod.d.ts +3 -1
- 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 +4 -0
- package/lib/tree-helper/src/tree-helper.d.ts +3 -1
- package/lib/tree-table-helper/src/tree-table-helper.d.ts +3 -1
- package/lib/watermark/index.d.ts +3 -0
- package/lib/watermark/src/interface.d.ts +38 -0
- package/lib/watermark/src/useMutationObserver.d.ts +2 -0
- package/lib/watermark/src/utils.d.ts +4 -0
- package/lib/watermark/src/watermark.d.ts +22 -0
- package/lib/watermark/style/index.less +6 -0
- package/package.json +138 -138
package/lib/print/src/print.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import type { ComponentSize } from '../../_utils/types';
|
|
3
|
+
import type { CSSProperties, ComponentSize } from '../../_utils/types';
|
|
4
4
|
import type { ButtonProps } from '../../antd';
|
|
5
5
|
type IProps = ButtonProps & {
|
|
6
6
|
size?: ComponentSize;
|
|
@@ -10,6 +10,8 @@ type IProps = ButtonProps & {
|
|
|
10
10
|
preview?: boolean;
|
|
11
11
|
closeAfterPrint?: boolean;
|
|
12
12
|
click?: () => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: CSSProperties;
|
|
13
15
|
};
|
|
14
16
|
type IState = {
|
|
15
17
|
visible: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { IFormItem, IFormData } from '../../form/src/types';
|
|
3
3
|
import type { IFetch, IColumn, IRowKey, IRecord } from '../../table/src/table/types';
|
|
4
|
-
import type { ComponentSize } from '../../_utils/types';
|
|
4
|
+
import type { CSSProperties, ComponentSize } from '../../_utils/types';
|
|
5
5
|
type ITableConfig = {
|
|
6
6
|
fetch?: IFetch;
|
|
7
7
|
columns?: IColumn[];
|
|
@@ -17,6 +17,8 @@ type IProps = {
|
|
|
17
17
|
multiple?: boolean;
|
|
18
18
|
filters?: IFormItem[];
|
|
19
19
|
table?: ITableConfig;
|
|
20
|
+
className?: string;
|
|
21
|
+
style?: CSSProperties;
|
|
20
22
|
onClose: (data: IRecord | null, keys?: IRowKey[]) => void;
|
|
21
23
|
};
|
|
22
24
|
export type SearchHelperProps = IProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ComponentSize } from '../../_utils/types';
|
|
2
|
+
import type { CSSProperties, ComponentSize } from '../../_utils/types';
|
|
3
3
|
import type { IFetch, IRecord, ICheckStrategy } from '../../table/src/table/types';
|
|
4
4
|
import type { TreeProps } from '../../antd';
|
|
5
5
|
type IProps = TreeProps & {
|
|
@@ -21,6 +21,8 @@ type IProps = TreeProps & {
|
|
|
21
21
|
checkStrategy?: ICheckStrategy;
|
|
22
22
|
showSearchBar?: boolean;
|
|
23
23
|
showCollapse?: boolean;
|
|
24
|
+
className?: string;
|
|
25
|
+
style?: CSSProperties;
|
|
24
26
|
onSelectChange?: (records: IRecord[] | IRecord) => void;
|
|
25
27
|
onCheckChange?: (records: IRecord[] | IRecord) => void;
|
|
26
28
|
onDragChange?: (info: any, data: IRecord) => void;
|
|
@@ -50,6 +52,8 @@ declare const SearchTree: React.ForwardRefExoticComponent<TreeProps<import("rc-t
|
|
|
50
52
|
checkStrategy?: ICheckStrategy | undefined;
|
|
51
53
|
showSearchBar?: boolean | undefined;
|
|
52
54
|
showCollapse?: boolean | undefined;
|
|
55
|
+
className?: string | undefined;
|
|
56
|
+
style?: React.CSSProperties | undefined;
|
|
53
57
|
onSelectChange?: ((records: IRecord[] | IRecord) => void) | undefined;
|
|
54
58
|
onCheckChange?: ((records: IRecord[] | IRecord) => void) | undefined;
|
|
55
59
|
onDragChange?: ((info: any, data: IRecord) => void) | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { IColumn } from '../table/types';
|
|
2
|
+
import type { ColumnDefineRef, IColumn } from '../table/types';
|
|
3
3
|
type IColumnFilterProps = {
|
|
4
4
|
columns: IColumn[];
|
|
5
5
|
};
|
|
6
|
-
declare const ColumnFilter: React.
|
|
6
|
+
declare const ColumnFilter: React.ForwardRefExoticComponent<IColumnFilterProps & React.RefAttributes<ColumnDefineRef>>;
|
|
7
7
|
export default ColumnFilter;
|
|
@@ -1,12 +1,13 @@
|
|
|
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, TableBodyRef } from '../table/types';
|
|
3
|
+
import type { getRowKeyType, ITableProps, IColumn, IFetchParams, IPagination, IRecord, IRowKey, IRule, IValidItem, TableRef, ToolBoxRef, TableBodyRef, ColumnDefineRef } 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
9
|
tableBodyRef: React.RefObject<TableBodyRef>;
|
|
10
|
+
columnFilterRef: React.RefObject<ColumnDefineRef>;
|
|
10
11
|
flattenColumns: IColumn[];
|
|
11
12
|
editableColumns: IColumn[];
|
|
12
13
|
pagination: IPagination;
|
|
@@ -25,6 +26,7 @@ type IExtra = {
|
|
|
25
26
|
doFieldValidate: (rules: IRule[], val: unknown, rowKey: IRowKey, columnKey: string) => void;
|
|
26
27
|
setHandleState: (option: ITableRef['handleState']) => void;
|
|
27
28
|
forceUpdate: () => void;
|
|
29
|
+
setColumnsDefined: (value: boolean) => void;
|
|
28
30
|
setSelectionKeysEffect: (rowKeys: IRowKey[]) => void;
|
|
29
31
|
setRowExpandedKeys: (rowKeys: IRowKey[]) => void;
|
|
30
32
|
setHighlightKey: (rowKey: IRowKey) => void;
|
|
@@ -15,6 +15,7 @@ export type ITableRef = {
|
|
|
15
15
|
invalidRowKeys: IRowKey[];
|
|
16
16
|
fieldAuth: Record<string, IFieldAuthItem>;
|
|
17
17
|
mergeCells: IMergeCell[];
|
|
18
|
+
columnsDefined: boolean;
|
|
18
19
|
scrollYStore: {
|
|
19
20
|
startIndex: number;
|
|
20
21
|
endIndex: number;
|
|
@@ -56,6 +57,7 @@ declare const useTableRef: <T extends ITableProps>(props: T, { getRowKey, $size
|
|
|
56
57
|
setInvalidRowKeys: (rowKeys: IRowKey[]) => void;
|
|
57
58
|
setFieldAuth: (key: string, value: IFieldAuthItem) => void;
|
|
58
59
|
setMergeCells: (values: IMergeCell[]) => void;
|
|
60
|
+
setColumnsDefined: (value: boolean) => void;
|
|
59
61
|
setScrollYStore: (option: ITableRef['scrollYStore']) => void;
|
|
60
62
|
setResizeState: (option: ITableRef['resizeState']) => void;
|
|
61
63
|
setHandleState: (option: ITableRef['handleState']) => void;
|
|
@@ -80,6 +82,7 @@ declare const useTableRef: <T extends ITableProps>(props: T, { getRowKey, $size
|
|
|
80
82
|
invalidRowKeys: IRowKey[];
|
|
81
83
|
fieldAuth: Record<string, IFieldAuthItem>;
|
|
82
84
|
mergeCells: IMergeCell[];
|
|
85
|
+
columnsDefined: boolean;
|
|
83
86
|
scrollYStore: {
|
|
84
87
|
startIndex: number;
|
|
85
88
|
endIndex: number;
|
|
@@ -137,6 +137,7 @@ export declare const propTypes: {
|
|
|
137
137
|
customClass: PropTypes.Requireable<string>;
|
|
138
138
|
showHeader: PropTypes.Requireable<boolean>;
|
|
139
139
|
ellipsis: PropTypes.Requireable<boolean>;
|
|
140
|
+
dynamicThead: PropTypes.Requireable<boolean>;
|
|
140
141
|
nativeScrollBar: PropTypes.Requireable<boolean>;
|
|
141
142
|
rowStyle: PropTypes.Requireable<object>;
|
|
142
143
|
cellStyle: PropTypes.Requireable<object>;
|
|
@@ -334,6 +334,7 @@ export type ITableProps = {
|
|
|
334
334
|
customClass?: string;
|
|
335
335
|
showHeader?: boolean;
|
|
336
336
|
ellipsis?: boolean;
|
|
337
|
+
dynamicThead?: boolean;
|
|
337
338
|
nativeScrollBar?: boolean;
|
|
338
339
|
rowStyle?: CSSProperties | ((row: IRecord, rowIndex: number) => CSSProperties);
|
|
339
340
|
cellStyle?: CSSProperties | ((row: IRecord, column: IColumn, rowIndex: number, columnIndex: number) => CSSProperties);
|
|
@@ -436,6 +437,9 @@ export type TableBodyRef = {
|
|
|
436
437
|
createFocus: (rowKey: IRowKey, dataIndex: string) => void;
|
|
437
438
|
forceUpdate: () => void;
|
|
438
439
|
};
|
|
440
|
+
export type ColumnDefineRef = {
|
|
441
|
+
initialHandler: () => void;
|
|
442
|
+
};
|
|
439
443
|
export type ToolBoxRef = {
|
|
440
444
|
exportHandle: () => void;
|
|
441
445
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { IFetch, IRecord, ICheckStrategy } from '../../table/src/table/types';
|
|
3
|
-
import type { ComponentSize } from '../../_utils/types';
|
|
3
|
+
import type { CSSProperties, ComponentSize } from '../../_utils/types';
|
|
4
4
|
type IProps = {
|
|
5
5
|
size?: ComponentSize;
|
|
6
6
|
multiple?: boolean;
|
|
@@ -15,6 +15,8 @@ type IProps = {
|
|
|
15
15
|
checkStrategy?: ICheckStrategy;
|
|
16
16
|
defaultExpandAll?: boolean;
|
|
17
17
|
};
|
|
18
|
+
className?: string;
|
|
19
|
+
style?: CSSProperties;
|
|
18
20
|
onClose: (data: IRecord | null) => void;
|
|
19
21
|
};
|
|
20
22
|
export type TreeHelperProps = IProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { IFormItem, IFormData } from '../../form/src/types';
|
|
3
3
|
import type { IFetch, IColumn, IRowKey, IRecord } from '../../table/src/table/types';
|
|
4
|
-
import type { ComponentSize } from '../../_utils/types';
|
|
4
|
+
import type { CSSProperties, ComponentSize } from '../../_utils/types';
|
|
5
5
|
type ITableConfig = {
|
|
6
6
|
fetch?: IFetch;
|
|
7
7
|
columns?: IColumn[];
|
|
@@ -24,6 +24,8 @@ type IProps = {
|
|
|
24
24
|
};
|
|
25
25
|
tableParamsMap?: (() => Record<string, string>) | Record<string, string>;
|
|
26
26
|
};
|
|
27
|
+
className?: string;
|
|
28
|
+
style?: CSSProperties;
|
|
27
29
|
onClose: (data: IRecord | null, keys?: IRowKey[]) => void;
|
|
28
30
|
};
|
|
29
31
|
export type TreeTableHelperProps = IProps;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface WatermarkFont {
|
|
2
|
+
/**
|
|
3
|
+
* @zh 字体颜色
|
|
4
|
+
* @en Font color
|
|
5
|
+
* @defaultValue rgba(0, 0, 0, 0.15)
|
|
6
|
+
*/
|
|
7
|
+
color?: string;
|
|
8
|
+
/**
|
|
9
|
+
* @zh 字体大小
|
|
10
|
+
* @en Font size
|
|
11
|
+
* @defaultValue 16
|
|
12
|
+
*/
|
|
13
|
+
fontSize?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @zh 字体类型
|
|
16
|
+
* @en Font family
|
|
17
|
+
* @defaultValue sans-serif
|
|
18
|
+
*/
|
|
19
|
+
fontFamily?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @zh 字体样式
|
|
22
|
+
* @en Font style
|
|
23
|
+
* @defaultValue normal
|
|
24
|
+
*/
|
|
25
|
+
fontStyle?: 'none' | 'normal' | 'italic' | 'oblique';
|
|
26
|
+
/**
|
|
27
|
+
* @zh 字体对齐方式
|
|
28
|
+
* @en Font align
|
|
29
|
+
* @defaultValue center
|
|
30
|
+
*/
|
|
31
|
+
textAlign?: 'start' | 'end' | 'left' | 'right' | 'center';
|
|
32
|
+
/**
|
|
33
|
+
* @zh 字体粗细
|
|
34
|
+
* @en Font weight
|
|
35
|
+
* @defaultValue normal
|
|
36
|
+
*/
|
|
37
|
+
fontWeight?: 'normal' | 'bold' | 'bolder' | 'lighter' | number;
|
|
38
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const getPixelRatio: (context: any) => number;
|
|
2
|
+
export declare const canvasToGray: (canvas: HTMLCanvasElement) => void;
|
|
3
|
+
export declare const camelToKebab: (camelCase: string) => string;
|
|
4
|
+
export declare const styleToString: (style: React.CSSProperties) => string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { WatermarkFont } from './interface';
|
|
3
|
+
type IProps = {
|
|
4
|
+
content?: string | string[];
|
|
5
|
+
image?: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
gap?: [number, number];
|
|
9
|
+
offset?: [number, number];
|
|
10
|
+
rotate?: number;
|
|
11
|
+
font?: WatermarkFont;
|
|
12
|
+
zIndex?: number;
|
|
13
|
+
alpha?: number;
|
|
14
|
+
antiTamper?: boolean;
|
|
15
|
+
grayscale?: boolean;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
className?: string;
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
};
|
|
20
|
+
export type WatermarkProps = IProps;
|
|
21
|
+
declare const Watermark: React.FC<IProps>;
|
|
22
|
+
export default Watermark;
|
package/package.json
CHANGED
|
@@ -1,138 +1,138 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@jiaozhiye/qm-design-react",
|
|
3
|
-
"version": "1.7.
|
|
4
|
-
"description": "A Component Library for React",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"React",
|
|
7
|
-
"components",
|
|
8
|
-
"typescript"
|
|
9
|
-
],
|
|
10
|
-
"author": "jiaozhiye",
|
|
11
|
-
"license": "MIT",
|
|
12
|
-
"scripts": {
|
|
13
|
-
"dev": "cross-env NODE_ENV=development BABEL_ENV=web webpack serve --progress --config build/webpack.src.conf.js",
|
|
14
|
-
"build:lib": "yarn clean:lib && yarn build:umd && yarn build:esm && yarn build:type && yarn build:locale && yarn build:theme",
|
|
15
|
-
"build:umd": "cross-env NODE_ENV=production BABEL_ENV=lib webpack --config ./build/webpack.build.conf.js",
|
|
16
|
-
"build:esm": "cross-env BABEL_ENV=lib rollup --config ./build/build-esm.rollup.js",
|
|
17
|
-
"build:type": "gulp build --gulpfile ./build/build-type.gulp.js && cp-cli lib/packages lib && rimraf lib/packages",
|
|
18
|
-
"build:locale": "cross-env BABEL_ENV=lib babel packages/locale --extensions .ts --out-dir lib/locale",
|
|
19
|
-
"build:theme": "gulp build --gulpfile ./build/build-style.gulp.js",
|
|
20
|
-
"clean:lib": "rimraf lib",
|
|
21
|
-
"lint": "eslint ./packages --ext .js,.ts,.jsx,.tsx",
|
|
22
|
-
"lint-fix": "eslint --fix ./packages --ext .js,.ts,.jsx,.tsx",
|
|
23
|
-
"format": "prettier --write \"./packages/**/*.{js,ts,jsx,tsx}\""
|
|
24
|
-
},
|
|
25
|
-
"husky": {
|
|
26
|
-
"hooks": {
|
|
27
|
-
"pre-commit": "lint-staged"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"lint-staged": {
|
|
31
|
-
"packages/**/*.{js,ts,jsx,tsx}": [
|
|
32
|
-
"npm run lint-fix",
|
|
33
|
-
"git add"
|
|
34
|
-
],
|
|
35
|
-
"packages/**/*.{less}": "prettier --write"
|
|
36
|
-
},
|
|
37
|
-
"publishConfig": {
|
|
38
|
-
"registry": "https://registry.npmjs.org/"
|
|
39
|
-
},
|
|
40
|
-
"files": [
|
|
41
|
-
"lib"
|
|
42
|
-
],
|
|
43
|
-
"main": "lib/index.js",
|
|
44
|
-
"module": "lib/index.esm.js",
|
|
45
|
-
"unpkg": "lib/index.full.js",
|
|
46
|
-
"types": "lib/index.d.ts",
|
|
47
|
-
"style": "lib/style/index.css",
|
|
48
|
-
"peerDependencies": {
|
|
49
|
-
"react": ">=16.14.0"
|
|
50
|
-
},
|
|
51
|
-
"dependencies": {
|
|
52
|
-
"@rc-component/portal": "^1.1.2",
|
|
53
|
-
"@rc-component/trigger": "^1.14.4",
|
|
54
|
-
"add-dom-event-listener": "^1.1.0",
|
|
55
|
-
"antd": "4.24.14",
|
|
56
|
-
"axios": "^0.27.2",
|
|
57
|
-
"big.js": "^6.2.1",
|
|
58
|
-
"china-area-data": "^5.0.1",
|
|
59
|
-
"classnames": "^2.3.2",
|
|
60
|
-
"copy-to-clipboard": "^3.3.2",
|
|
61
|
-
"cropperjs": "^1.5.12",
|
|
62
|
-
"dayjs": "1.x",
|
|
63
|
-
"exceljs": "^4.3.0",
|
|
64
|
-
"localforage": "^1.10.0",
|
|
65
|
-
"lodash-es": "^4.17.21",
|
|
66
|
-
"memoize-one": "^6.0.0",
|
|
67
|
-
"omit.js": "^2.0.2",
|
|
68
|
-
"prop-types": "^15.8.1",
|
|
69
|
-
"react-countup": "^6.4.0",
|
|
70
|
-
"react-draggable": "^4.4.6",
|
|
71
|
-
"react-sortablejs": "^6.1.4",
|
|
72
|
-
"resize-observer-polyfill": "^1.5.1",
|
|
73
|
-
"scroll-into-view-if-needed": "^2.2.28",
|
|
74
|
-
"sortablejs": "^1.15.0"
|
|
75
|
-
},
|
|
76
|
-
"devDependencies": {
|
|
77
|
-
"@babel/cli": "^7.18.6",
|
|
78
|
-
"@babel/core": "^7.18.6",
|
|
79
|
-
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
80
|
-
"@babel/plugin-proposal-decorators": "^7.18.6",
|
|
81
|
-
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
82
|
-
"@babel/plugin-transform-runtime": "^7.18.6",
|
|
83
|
-
"@babel/preset-env": "^7.18.6",
|
|
84
|
-
"@babel/preset-react": "^7.18.6",
|
|
85
|
-
"@babel/preset-typescript": "^7.18.6",
|
|
86
|
-
"@rollup/plugin-babel": "^5.3.0",
|
|
87
|
-
"@rollup/plugin-commonjs": "^22.0.2",
|
|
88
|
-
"@rollup/plugin-json": "^4.1.0",
|
|
89
|
-
"@rollup/plugin-node-resolve": "^14.1.0",
|
|
90
|
-
"@rollup/plugin-replace": "^4.0.0",
|
|
91
|
-
"@rollup/plugin-typescript": "^8.5.0",
|
|
92
|
-
"@types/lodash-es": "^4.17.6",
|
|
93
|
-
"@types/react": "^17.0.58",
|
|
94
|
-
"@types/react-dom": "^17.0.20",
|
|
95
|
-
"@typescript-eslint/eslint-plugin": "^5.30.0",
|
|
96
|
-
"@typescript-eslint/parser": "^5.30.0",
|
|
97
|
-
"autoprefixer": "^10.4.14",
|
|
98
|
-
"babel-loader": "^9.1.0",
|
|
99
|
-
"core-js": "^3.32.0",
|
|
100
|
-
"cp-cli": "^2.0.0",
|
|
101
|
-
"cross-env": "^7.0.3",
|
|
102
|
-
"css-loader": "^6.7.3",
|
|
103
|
-
"eslint": "^8.40.0",
|
|
104
|
-
"eslint-plugin-prettier": "^4.2.0",
|
|
105
|
-
"eslint-plugin-react": "^7.32.0",
|
|
106
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
107
|
-
"eslint-webpack-plugin": "^3.2.0",
|
|
108
|
-
"gulp": "^4.0.2",
|
|
109
|
-
"gulp-autoprefixer": "^8.0.0",
|
|
110
|
-
"gulp-clean-css": "^4.3.0",
|
|
111
|
-
"gulp-ignore": "^3.0.0",
|
|
112
|
-
"gulp-less": "^5.0.0",
|
|
113
|
-
"gulp-rename": "^2.0.0",
|
|
114
|
-
"gulp-typescript": "^6.0.0-alpha.1",
|
|
115
|
-
"html-webpack-plugin": "^5.5.0",
|
|
116
|
-
"husky": "^4.3.8",
|
|
117
|
-
"less": "^4.2.0",
|
|
118
|
-
"less-loader": "^11.1.2",
|
|
119
|
-
"lint-staged": "^10.5.4",
|
|
120
|
-
"mockjs": "^1.1.0",
|
|
121
|
-
"prettier": "^2.8.8",
|
|
122
|
-
"react": "17.0.2",
|
|
123
|
-
"react-dom": "17.0.2",
|
|
124
|
-
"rimraf": "^3.0.2",
|
|
125
|
-
"rollup": "^2.79.1",
|
|
126
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
127
|
-
"style-loader": "^3.3.2",
|
|
128
|
-
"ts-loader": "^9.4.4",
|
|
129
|
-
"typescript": "^4.9.5",
|
|
130
|
-
"webpack": "^5.88.2",
|
|
131
|
-
"webpack-cli": "^5.1.4",
|
|
132
|
-
"webpack-dev-server": "^4.15.1",
|
|
133
|
-
"webpack-node-externals": "^3.0.0"
|
|
134
|
-
},
|
|
135
|
-
"engines": {
|
|
136
|
-
"node": ">= 14"
|
|
137
|
-
}
|
|
138
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@jiaozhiye/qm-design-react",
|
|
3
|
+
"version": "1.7.54",
|
|
4
|
+
"description": "A Component Library for React",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"React",
|
|
7
|
+
"components",
|
|
8
|
+
"typescript"
|
|
9
|
+
],
|
|
10
|
+
"author": "jiaozhiye",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"dev": "cross-env NODE_ENV=development BABEL_ENV=web webpack serve --progress --config build/webpack.src.conf.js",
|
|
14
|
+
"build:lib": "yarn clean:lib && yarn build:umd && yarn build:esm && yarn build:type && yarn build:locale && yarn build:theme",
|
|
15
|
+
"build:umd": "cross-env NODE_ENV=production BABEL_ENV=lib webpack --config ./build/webpack.build.conf.js",
|
|
16
|
+
"build:esm": "cross-env BABEL_ENV=lib rollup --config ./build/build-esm.rollup.js",
|
|
17
|
+
"build:type": "gulp build --gulpfile ./build/build-type.gulp.js && cp-cli lib/packages lib && rimraf lib/packages",
|
|
18
|
+
"build:locale": "cross-env BABEL_ENV=lib babel packages/locale --extensions .ts --out-dir lib/locale",
|
|
19
|
+
"build:theme": "gulp build --gulpfile ./build/build-style.gulp.js",
|
|
20
|
+
"clean:lib": "rimraf lib",
|
|
21
|
+
"lint": "eslint ./packages --ext .js,.ts,.jsx,.tsx",
|
|
22
|
+
"lint-fix": "eslint --fix ./packages --ext .js,.ts,.jsx,.tsx",
|
|
23
|
+
"format": "prettier --write \"./packages/**/*.{js,ts,jsx,tsx}\""
|
|
24
|
+
},
|
|
25
|
+
"husky": {
|
|
26
|
+
"hooks": {
|
|
27
|
+
"pre-commit": "lint-staged"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"lint-staged": {
|
|
31
|
+
"packages/**/*.{js,ts,jsx,tsx}": [
|
|
32
|
+
"npm run lint-fix",
|
|
33
|
+
"git add"
|
|
34
|
+
],
|
|
35
|
+
"packages/**/*.{less}": "prettier --write"
|
|
36
|
+
},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"registry": "https://registry.npmjs.org/"
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"lib"
|
|
42
|
+
],
|
|
43
|
+
"main": "lib/index.js",
|
|
44
|
+
"module": "lib/index.esm.js",
|
|
45
|
+
"unpkg": "lib/index.full.js",
|
|
46
|
+
"types": "lib/index.d.ts",
|
|
47
|
+
"style": "lib/style/index.css",
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"react": ">=16.14.0"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@rc-component/portal": "^1.1.2",
|
|
53
|
+
"@rc-component/trigger": "^1.14.4",
|
|
54
|
+
"add-dom-event-listener": "^1.1.0",
|
|
55
|
+
"antd": "4.24.14",
|
|
56
|
+
"axios": "^0.27.2",
|
|
57
|
+
"big.js": "^6.2.1",
|
|
58
|
+
"china-area-data": "^5.0.1",
|
|
59
|
+
"classnames": "^2.3.2",
|
|
60
|
+
"copy-to-clipboard": "^3.3.2",
|
|
61
|
+
"cropperjs": "^1.5.12",
|
|
62
|
+
"dayjs": "1.x",
|
|
63
|
+
"exceljs": "^4.3.0",
|
|
64
|
+
"localforage": "^1.10.0",
|
|
65
|
+
"lodash-es": "^4.17.21",
|
|
66
|
+
"memoize-one": "^6.0.0",
|
|
67
|
+
"omit.js": "^2.0.2",
|
|
68
|
+
"prop-types": "^15.8.1",
|
|
69
|
+
"react-countup": "^6.4.0",
|
|
70
|
+
"react-draggable": "^4.4.6",
|
|
71
|
+
"react-sortablejs": "^6.1.4",
|
|
72
|
+
"resize-observer-polyfill": "^1.5.1",
|
|
73
|
+
"scroll-into-view-if-needed": "^2.2.28",
|
|
74
|
+
"sortablejs": "^1.15.0"
|
|
75
|
+
},
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"@babel/cli": "^7.18.6",
|
|
78
|
+
"@babel/core": "^7.18.6",
|
|
79
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
80
|
+
"@babel/plugin-proposal-decorators": "^7.18.6",
|
|
81
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
82
|
+
"@babel/plugin-transform-runtime": "^7.18.6",
|
|
83
|
+
"@babel/preset-env": "^7.18.6",
|
|
84
|
+
"@babel/preset-react": "^7.18.6",
|
|
85
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
86
|
+
"@rollup/plugin-babel": "^5.3.0",
|
|
87
|
+
"@rollup/plugin-commonjs": "^22.0.2",
|
|
88
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
89
|
+
"@rollup/plugin-node-resolve": "^14.1.0",
|
|
90
|
+
"@rollup/plugin-replace": "^4.0.0",
|
|
91
|
+
"@rollup/plugin-typescript": "^8.5.0",
|
|
92
|
+
"@types/lodash-es": "^4.17.6",
|
|
93
|
+
"@types/react": "^17.0.58",
|
|
94
|
+
"@types/react-dom": "^17.0.20",
|
|
95
|
+
"@typescript-eslint/eslint-plugin": "^5.30.0",
|
|
96
|
+
"@typescript-eslint/parser": "^5.30.0",
|
|
97
|
+
"autoprefixer": "^10.4.14",
|
|
98
|
+
"babel-loader": "^9.1.0",
|
|
99
|
+
"core-js": "^3.32.0",
|
|
100
|
+
"cp-cli": "^2.0.0",
|
|
101
|
+
"cross-env": "^7.0.3",
|
|
102
|
+
"css-loader": "^6.7.3",
|
|
103
|
+
"eslint": "^8.40.0",
|
|
104
|
+
"eslint-plugin-prettier": "^4.2.0",
|
|
105
|
+
"eslint-plugin-react": "^7.32.0",
|
|
106
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
107
|
+
"eslint-webpack-plugin": "^3.2.0",
|
|
108
|
+
"gulp": "^4.0.2",
|
|
109
|
+
"gulp-autoprefixer": "^8.0.0",
|
|
110
|
+
"gulp-clean-css": "^4.3.0",
|
|
111
|
+
"gulp-ignore": "^3.0.0",
|
|
112
|
+
"gulp-less": "^5.0.0",
|
|
113
|
+
"gulp-rename": "^2.0.0",
|
|
114
|
+
"gulp-typescript": "^6.0.0-alpha.1",
|
|
115
|
+
"html-webpack-plugin": "^5.5.0",
|
|
116
|
+
"husky": "^4.3.8",
|
|
117
|
+
"less": "^4.2.0",
|
|
118
|
+
"less-loader": "^11.1.2",
|
|
119
|
+
"lint-staged": "^10.5.4",
|
|
120
|
+
"mockjs": "^1.1.0",
|
|
121
|
+
"prettier": "^2.8.8",
|
|
122
|
+
"react": "17.0.2",
|
|
123
|
+
"react-dom": "17.0.2",
|
|
124
|
+
"rimraf": "^3.0.2",
|
|
125
|
+
"rollup": "^2.79.1",
|
|
126
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
127
|
+
"style-loader": "^3.3.2",
|
|
128
|
+
"ts-loader": "^9.4.4",
|
|
129
|
+
"typescript": "^4.9.5",
|
|
130
|
+
"webpack": "^5.88.2",
|
|
131
|
+
"webpack-cli": "^5.1.4",
|
|
132
|
+
"webpack-dev-server": "^4.15.1",
|
|
133
|
+
"webpack-node-externals": "^3.0.0"
|
|
134
|
+
},
|
|
135
|
+
"engines": {
|
|
136
|
+
"node": ">= 14"
|
|
137
|
+
}
|
|
138
|
+
}
|