@nokecy/qc-ui 0.2.5 → 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.
@@ -11,19 +11,21 @@
11
11
  --ag-font-family: ('microsoft yahei', 'Helvetica', 'Arial'),
12
12
 
13
13
  --ag-borders: solid 0px,
14
- --ag-row-border-color:#f0f0f0,
14
+ --ag-row-border-color:#8886866e,
15
15
  --ag-grid-size: 4px,
16
16
 
17
17
  --ag-header-background-color: #f0f0f0,
18
-
19
- --ag-cell-horizontal-border: solid #f0f0f0,
18
+ --ag-cell-horizontal-border: solid #8886866e,
20
19
 
21
20
  --ag-header-column-separator-display: block,
22
21
  --ag-header-column-separator-height: 100%,
23
- --ag-header-column-separator-width: 2px,
24
- --ag-header-column-separator-color: #cecece,
22
+ --ag-header-column-separator-width: 1px,
23
+ --ag-header-column-separator-color: #8886866e,
24
+ --ag-header-column-resize-handle-color:#8886866e,
25
+ --ag-header-column-resize-handle-width:1px
25
26
  ));
26
27
 
27
28
  .ag-theme-alpine .ag-header-group-cell {
28
29
  font-weight: 600;
30
+ justify-content: center;
29
31
  }
@@ -1,6 +1,6 @@
1
- import { GridApi, ColDef, ColGroupDef } from 'ag-grid-community';
2
- import { AgGridReactProps } from 'ag-grid-react';
3
- import React, { CSSProperties, ReactNode } from 'react';
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(esc(value));
42
+ return "".concat(objectKey, " = ").concat(value);
43
43
  }
44
44
 
45
45
  if (typeof value === 'boolean') {
46
- return "".concat(objectKey, " = ").concat(esc(value));
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(esc(value)));
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(esc(value)));
72
+ items.push("".concat(objectKey, " = ").concat(value));
73
73
  }
74
74
 
75
75
  if (value instanceof Array) {
@@ -11,19 +11,21 @@
11
11
  --ag-font-family: ('microsoft yahei', 'Helvetica', 'Arial'),
12
12
 
13
13
  --ag-borders: solid 0px,
14
- --ag-row-border-color:#f0f0f0,
14
+ --ag-row-border-color:#8886866e,
15
15
  --ag-grid-size: 4px,
16
16
 
17
17
  --ag-header-background-color: #f0f0f0,
18
-
19
- --ag-cell-horizontal-border: solid #f0f0f0,
18
+ --ag-cell-horizontal-border: solid #8886866e,
20
19
 
21
20
  --ag-header-column-separator-display: block,
22
21
  --ag-header-column-separator-height: 100%,
23
- --ag-header-column-separator-width: 2px,
24
- --ag-header-column-separator-color: #cecece,
22
+ --ag-header-column-separator-width: 1px,
23
+ --ag-header-column-separator-color: #8886866e,
24
+ --ag-header-column-resize-handle-color:#8886866e,
25
+ --ag-header-column-resize-handle-width:1px
25
26
  ));
26
27
 
27
28
  .ag-theme-alpine .ag-header-group-cell {
28
29
  font-weight: 600;
30
+ justify-content: center;
29
31
  }
@@ -1,6 +1,6 @@
1
- import { GridApi, ColDef, ColGroupDef } from 'ag-grid-community';
2
- import { AgGridReactProps } from 'ag-grid-react';
3
- import React, { CSSProperties, ReactNode } from 'react';
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
  }
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
 
3
3
  function AgGridColumn(props) {
4
4
  ///@ts-ignore
@@ -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(esc(value));
33
+ return "".concat(objectKey, " = ").concat(value);
34
34
  }
35
35
 
36
36
  if (typeof value === 'boolean') {
37
- return "".concat(objectKey, " = ").concat(esc(value));
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(esc(value)));
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(esc(value)));
63
+ items.push("".concat(objectKey, " = ").concat(value));
64
64
  }
65
65
 
66
66
  if (value instanceof Array) {