@nokecy/qc-ui 1.0.5 → 1.0.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.
@@ -398,10 +398,10 @@ function AgGridPlus(props) {
398
398
  return !x.hideInTable;
399
399
  });
400
400
  return columnDefs;
401
- }, [children, props.columnDefs, extensibleColumns, rowData]);
401
+ }, [children, props.columnDefs, extensibleColumns]);
402
402
  var allColDefs = (0, _react.useMemo)(function () {
403
403
  return getTableColumns(rowData);
404
- }, [children, props.columnDefs, extensibleColumns, rowData]);
404
+ }, [children, props.columnDefs, extensibleColumns]);
405
405
  (0, _react.useEffect)(function () {
406
406
  calculateSum();
407
407
  }, [allColDefs, rowData]);
@@ -30,7 +30,7 @@ interface GridProps extends AgGridReactProps {
30
30
  }
31
31
  interface AgGridColumnPropsClone extends ColDef {
32
32
  /**
33
- * 是否模糊查询
33
+ * 是否精确查询
34
34
  */
35
35
  exactQuery?: boolean;
36
36
  hideInTable?: boolean;
@@ -24,7 +24,7 @@ var esc = function esc(v) {
24
24
  };
25
25
  var getFilter = function getFilter(objectKey, value, colDef) {
26
26
  if (typeof value === 'string') {
27
- return value && value != "" ? "".concat(objectKey, " ").concat(colDef !== null && colDef !== void 0 && colDef.exactQuery ? '=*' : "^", " ").concat(esc(value)) : "";
27
+ return value && value != "" ? "".concat(objectKey, " ").concat(colDef !== null && colDef !== void 0 && colDef.exactQuery ? '^' : "=*", " ").concat(esc(value)) : "";
28
28
  }
29
29
  if (typeof value === 'number') {
30
30
  return "".concat(objectKey, " = ").concat(value);
@@ -49,7 +49,7 @@ var getObjectFilter = function getObjectFilter(obj, objKey, items, colDef) {
49
49
  items.push("".concat(objectKey, " = ").concat(value));
50
50
  }
51
51
  if (typeof value === 'string') {
52
- value && value != "" && items.push("".concat(objectKey, " ").concat(colDef !== null && colDef !== void 0 && colDef.exactQuery ? '=*' : "^", " ").concat(esc(value)));
52
+ value && value != "" && items.push("".concat(objectKey, " ").concat(colDef !== null && colDef !== void 0 && colDef.exactQuery ? '^' : "=*", " ").concat(esc(value)));
53
53
  }
54
54
  if (typeof value === 'boolean') {
55
55
  items.push("".concat(objectKey, " = ").concat(value));
@@ -389,10 +389,10 @@ function AgGridPlus(props) {
389
389
  return !x.hideInTable;
390
390
  });
391
391
  return columnDefs;
392
- }, [children, props.columnDefs, extensibleColumns, rowData]);
392
+ }, [children, props.columnDefs, extensibleColumns]);
393
393
  var allColDefs = useMemo(function () {
394
394
  return getTableColumns(rowData);
395
- }, [children, props.columnDefs, extensibleColumns, rowData]);
395
+ }, [children, props.columnDefs, extensibleColumns]);
396
396
  useEffect(function () {
397
397
  calculateSum();
398
398
  }, [allColDefs, rowData]);
@@ -30,7 +30,7 @@ interface GridProps extends AgGridReactProps {
30
30
  }
31
31
  interface AgGridColumnPropsClone extends ColDef {
32
32
  /**
33
- * 是否模糊查询
33
+ * 是否精确查询
34
34
  */
35
35
  exactQuery?: boolean;
36
36
  hideInTable?: boolean;
@@ -17,7 +17,7 @@ var esc = function esc(v) {
17
17
  };
18
18
  var getFilter = function getFilter(objectKey, value, colDef) {
19
19
  if (typeof value === 'string') {
20
- return value && value != "" ? "".concat(objectKey, " ").concat(colDef !== null && colDef !== void 0 && colDef.exactQuery ? '=*' : "^", " ").concat(esc(value)) : "";
20
+ return value && value != "" ? "".concat(objectKey, " ").concat(colDef !== null && colDef !== void 0 && colDef.exactQuery ? '^' : "=*", " ").concat(esc(value)) : "";
21
21
  }
22
22
  if (typeof value === 'number') {
23
23
  return "".concat(objectKey, " = ").concat(value);
@@ -42,7 +42,7 @@ var getObjectFilter = function getObjectFilter(obj, objKey, items, colDef) {
42
42
  items.push("".concat(objectKey, " = ").concat(value));
43
43
  }
44
44
  if (typeof value === 'string') {
45
- value && value != "" && items.push("".concat(objectKey, " ").concat(colDef !== null && colDef !== void 0 && colDef.exactQuery ? '=*' : "^", " ").concat(esc(value)));
45
+ value && value != "" && items.push("".concat(objectKey, " ").concat(colDef !== null && colDef !== void 0 && colDef.exactQuery ? '^' : "=*", " ").concat(esc(value)));
46
46
  }
47
47
  if (typeof value === 'boolean') {
48
48
  items.push("".concat(objectKey, " = ").concat(value));