@nokecy/qc-ui 1.0.31 → 1.0.32

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.
@@ -542,8 +542,8 @@ function AgGridPlus(props) {
542
542
  overlayNoRowsTemplate: "<span style=\"\n display: flex; \n justify-content: center; \n align-items: center; \n height: 100%; \n font-size: 14px; \n color: #aaa; \n line-height: 1.5;\n text-align: center;\">\n ".concat(overlayNoRowsTemplateText || '没有找到数据,试试调整筛选条件吧!', "\n </span>"),
543
543
  enableRangeSelection: true,
544
544
  suppressCopyRowsToClipboard: true,
545
- groupRowRenderer: groupRowRenderer,
546
- groupDisplayType: "groupRows"
545
+ groupRowRenderer: props.treeData ? groupRowRenderer : null,
546
+ groupDisplayType: props.treeData ? "groupRows" : "custom"
547
547
  //指定客户端模式
548
548
  ,
549
549
  rowModelType: "clientSide",
@@ -175,7 +175,13 @@ var FormRender = function FormRender(props) {
175
175
  (0, _react2.useEffect)(function () {
176
176
  var new_schema = getSchema(onReset);
177
177
  setSchema(new_schema);
178
- }, [JSON.stringify(columnStates), JSON.stringify(colDefs)]);
178
+ }, [columnStates === null || columnStates === void 0 ? void 0 : columnStates.map(function (c) {
179
+ return c.colId;
180
+ }).join('|'), // 列ID变化监听
181
+ colDefs === null || colDefs === void 0 ? void 0 : colDefs.map(function (c) {
182
+ return "".concat(c.field, "|").concat(c.headerName);
183
+ }).join('|') // 同时监听字段名和显示名称
184
+ ]);
179
185
  return /*#__PURE__*/_react2.default.createElement("div", {
180
186
  className: (0, _classnames.default)(className, "ag-grid-table-search ag-grid-table-search-query-filter")
181
187
  }, /*#__PURE__*/_react2.default.createElement(_antdV.Form, {
@@ -533,8 +533,8 @@ function AgGridPlus(props) {
533
533
  overlayNoRowsTemplate: "<span style=\"\n display: flex; \n justify-content: center; \n align-items: center; \n height: 100%; \n font-size: 14px; \n color: #aaa; \n line-height: 1.5;\n text-align: center;\">\n ".concat(overlayNoRowsTemplateText || '没有找到数据,试试调整筛选条件吧!', "\n </span>"),
534
534
  enableRangeSelection: true,
535
535
  suppressCopyRowsToClipboard: true,
536
- groupRowRenderer: groupRowRenderer,
537
- groupDisplayType: "groupRows"
536
+ groupRowRenderer: props.treeData ? groupRowRenderer : null,
537
+ groupDisplayType: props.treeData ? "groupRows" : "custom"
538
538
  //指定客户端模式
539
539
  ,
540
540
  rowModelType: "clientSide",
@@ -167,7 +167,13 @@ var FormRender = function FormRender(props) {
167
167
  useEffect(function () {
168
168
  var new_schema = getSchema(onReset);
169
169
  setSchema(new_schema);
170
- }, [JSON.stringify(columnStates), JSON.stringify(colDefs)]);
170
+ }, [columnStates === null || columnStates === void 0 ? void 0 : columnStates.map(function (c) {
171
+ return c.colId;
172
+ }).join('|'), // 列ID变化监听
173
+ colDefs === null || colDefs === void 0 ? void 0 : colDefs.map(function (c) {
174
+ return "".concat(c.field, "|").concat(c.headerName);
175
+ }).join('|') // 同时监听字段名和显示名称
176
+ ]);
171
177
  return /*#__PURE__*/React.createElement("div", {
172
178
  className: classNames(className, "ag-grid-table-search ag-grid-table-search-query-filter")
173
179
  }, /*#__PURE__*/React.createElement(Form, {