@nokecy/qc-ui 0.2.6 → 0.2.7
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/cjs/ag-grid-plus/interface.d.ts +5 -5
- package/dist/cjs/ag-grid-plus/utils.js +4 -4
- package/dist/esm/ag-grid-plus/interface.d.ts +5 -5
- package/dist/esm/ag-grid-plus/interface.js +1 -1
- package/dist/esm/ag-grid-plus/utils.js +4 -4
- package/dist/umd/qc-ui.min.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GridApi, ColDef, ColGroupDef } from
|
|
2
|
-
import { AgGridReactProps } from
|
|
3
|
-
import React, { CSSProperties, ReactNode } from
|
|
1
|
+
import { GridApi, ColDef, ColGroupDef } from "ag-grid-community";
|
|
2
|
+
import { AgGridReactProps } from "ag-grid-react";
|
|
3
|
+
import React, { CSSProperties, ReactNode } from "react";
|
|
4
4
|
interface GridRef {
|
|
5
5
|
onRefresh: () => void;
|
|
6
6
|
}
|
|
@@ -22,7 +22,7 @@ interface GridProps extends AgGridReactProps {
|
|
|
22
22
|
gridKey?: string;
|
|
23
23
|
/**
|
|
24
24
|
* 列方案
|
|
25
|
-
|
|
25
|
+
*/
|
|
26
26
|
gridColumnState?: any[];
|
|
27
27
|
gridRef?: React.Ref<GridRef | undefined>;
|
|
28
28
|
}
|
|
@@ -30,7 +30,7 @@ interface AgGridColumnPropsClone extends ColDef {
|
|
|
30
30
|
hideInTable?: boolean;
|
|
31
31
|
hideInSearch?: boolean;
|
|
32
32
|
queryField?: string;
|
|
33
|
-
searchComponent?: ReactNode;
|
|
33
|
+
searchComponent?: ReactNode | JSX.Element;
|
|
34
34
|
searchComponentProps?: any;
|
|
35
35
|
searchSort?: number;
|
|
36
36
|
}
|
|
@@ -39,11 +39,11 @@ var getFilter = function getFilter(objectKey, value) {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
if (typeof value === 'number') {
|
|
42
|
-
return "".concat(objectKey, " = ").concat(
|
|
42
|
+
return "".concat(objectKey, " = ").concat(value);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
if (typeof value === 'boolean') {
|
|
46
|
-
return "".concat(objectKey, " = ").concat(
|
|
46
|
+
return "".concat(objectKey, " = ").concat(value);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
if (value instanceof Array) {
|
|
@@ -61,7 +61,7 @@ var getObjectFilter = function getObjectFilter(obj, objKey, items) {
|
|
|
61
61
|
var objectKey = "".concat(objKey, ".").concat(key);
|
|
62
62
|
|
|
63
63
|
if (typeof value === 'number') {
|
|
64
|
-
items.push("".concat(objectKey, " = ").concat(
|
|
64
|
+
items.push("".concat(objectKey, " = ").concat(value));
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
if (typeof value === 'string') {
|
|
@@ -69,7 +69,7 @@ var getObjectFilter = function getObjectFilter(obj, objKey, items) {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
if (typeof value === 'boolean') {
|
|
72
|
-
items.push("".concat(objectKey, " = ").concat(
|
|
72
|
+
items.push("".concat(objectKey, " = ").concat(value));
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
if (value instanceof Array) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GridApi, ColDef, ColGroupDef } from
|
|
2
|
-
import { AgGridReactProps } from
|
|
3
|
-
import React, { CSSProperties, ReactNode } from
|
|
1
|
+
import { GridApi, ColDef, ColGroupDef } from "ag-grid-community";
|
|
2
|
+
import { AgGridReactProps } from "ag-grid-react";
|
|
3
|
+
import React, { CSSProperties, ReactNode } from "react";
|
|
4
4
|
interface GridRef {
|
|
5
5
|
onRefresh: () => void;
|
|
6
6
|
}
|
|
@@ -22,7 +22,7 @@ interface GridProps extends AgGridReactProps {
|
|
|
22
22
|
gridKey?: string;
|
|
23
23
|
/**
|
|
24
24
|
* 列方案
|
|
25
|
-
|
|
25
|
+
*/
|
|
26
26
|
gridColumnState?: any[];
|
|
27
27
|
gridRef?: React.Ref<GridRef | undefined>;
|
|
28
28
|
}
|
|
@@ -30,7 +30,7 @@ interface AgGridColumnPropsClone extends ColDef {
|
|
|
30
30
|
hideInTable?: boolean;
|
|
31
31
|
hideInSearch?: boolean;
|
|
32
32
|
queryField?: string;
|
|
33
|
-
searchComponent?: ReactNode;
|
|
33
|
+
searchComponent?: ReactNode | JSX.Element;
|
|
34
34
|
searchComponentProps?: any;
|
|
35
35
|
searchSort?: number;
|
|
36
36
|
}
|
|
@@ -30,11 +30,11 @@ var getFilter = function getFilter(objectKey, value) {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
if (typeof value === 'number') {
|
|
33
|
-
return "".concat(objectKey, " = ").concat(
|
|
33
|
+
return "".concat(objectKey, " = ").concat(value);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
if (typeof value === 'boolean') {
|
|
37
|
-
return "".concat(objectKey, " = ").concat(
|
|
37
|
+
return "".concat(objectKey, " = ").concat(value);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
if (value instanceof Array) {
|
|
@@ -52,7 +52,7 @@ var getObjectFilter = function getObjectFilter(obj, objKey, items) {
|
|
|
52
52
|
var objectKey = "".concat(objKey, ".").concat(key);
|
|
53
53
|
|
|
54
54
|
if (typeof value === 'number') {
|
|
55
|
-
items.push("".concat(objectKey, " = ").concat(
|
|
55
|
+
items.push("".concat(objectKey, " = ").concat(value));
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
if (typeof value === 'string') {
|
|
@@ -60,7 +60,7 @@ var getObjectFilter = function getObjectFilter(obj, objKey, items) {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
if (typeof value === 'boolean') {
|
|
63
|
-
items.push("".concat(objectKey, " = ").concat(
|
|
63
|
+
items.push("".concat(objectKey, " = ").concat(value));
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
if (value instanceof Array) {
|