ztxkui 4.2.23-593 → 4.2.23-594

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.
@@ -84,8 +84,7 @@ function useColumns(tableHandleRef) {
84
84
  title: i18next.t('序号'),
85
85
  width: 62,
86
86
  fixed: 'left',
87
- // key: 'index',
88
- // render: (_text, _record, index) => `${index + 1}`,
87
+ key: 'index',
89
88
  },
90
89
  {
91
90
  title: i18next.t('测试列1'),
@@ -279,6 +279,7 @@ export function setDynamicKey(dynamicStorageKey, value, options) {
279
279
  }
280
280
  }
281
281
  function getNewColumns(basicConfig, editableConfig, dynamicConfig, otherConfig) {
282
+ var _a, _b, _c, _d;
282
283
  var columns = basicConfig.columns, newColumnsRef = basicConfig.newColumnsRef, showColumnDynamic = basicConfig.showColumnDynamic, showColumnDynamicKey = basicConfig.showColumnDynamicKey, configInfo = basicConfig.configInfo, currentDataSource = basicConfig.currentDataSource, preDataSource = basicConfig.preDataSource, rowKey = basicConfig.rowKey, dataSourceRef = basicConfig.dataSourceRef, expandableChildrenColumnName = basicConfig.expandableChildrenColumnName, upDateColumnsRef = basicConfig.upDateColumnsRef, setUpDateColumnsRef = basicConfig.setUpDateColumnsRef, isUpDateColumnsRef = basicConfig.isUpDateColumnsRef, setIsUpDateColumnsRef = basicConfig.setIsUpDateColumnsRef, isHasFilterRef = basicConfig.isHasFilterRef, diffData = basicConfig.diffData, isDiffDataIncludeEmpty = basicConfig.isDiffDataIncludeEmpty, diffDataColor = basicConfig.diffDataColor;
283
284
  var onEditableSave = editableConfig.onEditableSave, onTableChange = editableConfig.onTableChange, currentPage = editableConfig.currentPage, onFillDownChangeRef = editableConfig.onFillDownChangeRef;
284
285
  var ColumnDynamicCom = dynamicConfig.ColumnDynamicCom, DelAllCom = dynamicConfig.DelAllCom, onAddAndDelHandleMemo = dynamicConfig.onAddAndDelHandleMemo, onAddAndDelHandle = dynamicConfig.onAddAndDelHandle, hideAddIcon = dynamicConfig.hideAddIcon, addIconText = dynamicConfig.addIconText, hideDelIcon = dynamicConfig.hideDelIcon, delIconText = dynamicConfig.delIconText;
@@ -671,8 +672,11 @@ function getNewColumns(basicConfig, editableConfig, dynamicConfig, otherConfig)
671
672
  };
672
673
  }
673
674
  });
674
- // 编辑模式下,给序号列(第0列)注入编辑按钮
675
- if (onEditableSave && !hideIndexColumnEditBtn && _newColumns.length > 0) {
675
+ // 编辑模式下,给序号列(第0列)注入编辑按钮(仅当第一列是序号列时)
676
+ var isFirstColumnIndex = _newColumns.length > 0 &&
677
+ typeof ((_a = _newColumns[0]) === null || _a === void 0 ? void 0 : _a.title) === 'string' &&
678
+ ((_d = (_c = (_b = _newColumns[0]) === null || _b === void 0 ? void 0 : _b.title) === null || _c === void 0 ? void 0 : _c.includes) === null || _d === void 0 ? void 0 : _d.call(_c, i18next.t('序号')));
679
+ if (onEditableSave && !hideIndexColumnEditBtn && isFirstColumnIndex) {
676
680
  var indexColumn = _newColumns[0];
677
681
  var originalRender_1 = indexColumn.render;
678
682
  indexColumn.render = function (text, record, index) {
@@ -291,7 +291,9 @@ var TableMenu = forwardRef(function (_a, ref) {
291
291
  React.createElement(Menu, { id: menuId },
292
292
  React.createElement(Item, { data: "detail", onClick: onMenuItemClick }, i18next.t('查看明细')),
293
293
  onEditableSave || !isContextMenuFullscreen ? null : (React.createElement(Item, { data: "fullscreen", onClick: onMenuItemClick }, isFull ? i18next.t('退出全屏') : i18next.t('全屏')))),
294
- React.createElement(Modal, { width: '800px', title: i18next.t('详情'), visible: visible, onCancel: onCancel, stick: true, loading: false, className: className, footer: React.createElement(Button, { type: "primary", onClick: onCancel }, i18next.t('确定')), getContainer: false },
294
+ React.createElement(Modal, { width: "80%", title: i18next.t('详情'), visible: visible, onCancel: onCancel,
295
+ // stick
296
+ mask: false, loading: false, className: className, footer: React.createElement(Button, { type: "primary", onClick: onCancel }, i18next.t('确定')), getContainer: false },
295
297
  React.createElement("div", { style: { maxHeight: '70vh', minWidth: '800px', overflow: 'auto' } },
296
298
  React.createElement("div", { className: "zt-table-detail-grid" }, record && renderItem(items))))));
297
299
  });
@@ -468,10 +468,6 @@ export interface IElectronSignaturesItemPublic {
468
468
  * 盖户用电子章与契约锁脱离关系
469
469
  */
470
470
  isShowOpeningContractSealNotRelyQys?: boolean;
471
- /**
472
- * 允许下载盖章件的流程状态,逗号分隔,如 '50,60,70',默认为 '50'
473
- */
474
- sealDownloadFlowStatus?: string;
475
471
  }
476
472
  export interface IElectronSignaturesProps extends IElectronSignaturesItem, IElectronSignaturesItemPublic {
477
473
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "4.2.23-593",
3
+ "version": "4.2.23-594",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",