@icos-desktop/react-components 2.0.50 → 2.0.51

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.
@@ -6869,7 +6869,8 @@ var showTotal$1 = function (total) {
6869
6869
  };
6870
6870
  var SenseTable = forwardRef(function (props, ref) {
6871
6871
  var _a;
6872
- var bookId = props.bookId, bookIds = props.bookIds, templateId = props.templateId, leafRegionId = props.leafRegionId, pathRegionId = props.pathRegionId, viewCodes = props.viewCodes, keyword = props.keyword, filter = props.filter, filterConfig = props.filterConfig, extendColumnParams = props.extendColumnParams, _b = props.hideColumns, hideColumns = _b === void 0 ? [] : _b, customColumns = props.customColumns, contextMenuConfig = props.contextMenuConfig, enableTag = props.enableTag, writeAuth = props.writeAuth, _c = props.pageSize, pageSize = _c === void 0 ? 1000 : _c, onClick = props.onClick, onDoubleClick = props.onDoubleClick, onShowSense = props.onShowSense, onEditSense = props.onEditSense, onRefresh = props.onRefresh, proTableContainerHeight = props.proTableContainerHeight, tableProps = __rest(props, ["bookId", "bookIds", "templateId", "leafRegionId", "pathRegionId", "viewCodes", "keyword", "filter", "filterConfig", "extendColumnParams", "hideColumns", "customColumns", "contextMenuConfig", "enableTag", "writeAuth", "pageSize", "onClick", "onDoubleClick", "onShowSense", "onEditSense", "onRefresh", "proTableContainerHeight"]);
6872
+ var _b, _c;
6873
+ var bookId = props.bookId, bookIds = props.bookIds, templateId = props.templateId, leafRegionId = props.leafRegionId, pathRegionId = props.pathRegionId, viewCodes = props.viewCodes, keyword = props.keyword, filter = props.filter, filterConfig = props.filterConfig, extendColumnParams = props.extendColumnParams, _d = props.hideColumns, hideColumns = _d === void 0 ? [] : _d, customColumns = props.customColumns, contextMenuConfig = props.contextMenuConfig, enableTag = props.enableTag, writeAuth = props.writeAuth, _e = props.pageSize, pageSize = _e === void 0 ? 1000 : _e, onClick = props.onClick, onDoubleClick = props.onDoubleClick, onShowSense = props.onShowSense, onEditSense = props.onEditSense, onRefresh = props.onRefresh, proTableContainerHeight = props.proTableContainerHeight, tableProps = __rest(props, ["bookId", "bookIds", "templateId", "leafRegionId", "pathRegionId", "viewCodes", "keyword", "filter", "filterConfig", "extendColumnParams", "hideColumns", "customColumns", "contextMenuConfig", "enableTag", "writeAuth", "pageSize", "onClick", "onDoubleClick", "onShowSense", "onEditSense", "onRefresh", "proTableContainerHeight"]);
6873
6874
  var PAGINATION = {
6874
6875
  current: 1,
6875
6876
  total: 0,
@@ -6880,27 +6881,27 @@ var SenseTable = forwardRef(function (props, ref) {
6880
6881
  hideOnSinglePage: false,
6881
6882
  showTotal: function (total) { return "\u5171 ".concat(total, " \u6761"); },
6882
6883
  };
6883
- var _d = App.useApp(), message = _d.message, modal = _d.modal;
6884
+ var _f = App.useApp(), message = _f.message, modal = _f.modal;
6884
6885
  var showContextMenu = useContextMenu({ id: ContextMenu$3.id }).show;
6885
- var _e = useKsCode(), ksCodeLoaded = _e.loaded;
6886
- var _f = useEntityClass(), entityClassLoaded = _f.loaded;
6886
+ var _g = useKsCode(), ksCodeLoaded = _g.loaded;
6887
+ var _h = useEntityClass(), entityClassLoaded = _h.loaded;
6887
6888
  // 分页
6888
- var _g = useState(__assign({}, PAGINATION)), pagination = _g[0], setPagination = _g[1];
6889
+ var _j = useState(__assign({}, PAGINATION)), pagination = _j[0], setPagination = _j[1];
6889
6890
  // 排序
6890
- var _h = useState(null), sorter = _h[0], setSorter = _h[1];
6891
+ var _k = useState(null), sorter = _k[0], setSorter = _k[1];
6891
6892
  // 当前高亮的行
6892
- var _j = useState(null), highlightId = _j[0], setHighlightId = _j[1];
6893
+ var _l = useState(null), highlightId = _l[0], setHighlightId = _l[1];
6893
6894
  // 表格选中
6894
- var _k = useState([]), selectedRowKeys = _k[0]; _k[1];
6895
+ var _m = useState([]); _m[0]; _m[1];
6895
6896
  // 当前操作行
6896
- var _l = useState(null), curRecord = _l[0], setCurRecord = _l[1];
6897
+ var _o = useState(null), curRecord = _o[0], setCurRecord = _o[1];
6897
6898
  // 显示全部标签弹窗
6898
- var _m = useState(false), showTagsModal = _m[0], setShowTagsModal = _m[1];
6899
+ var _p = useState(false), showTagsModal = _p[0], setShowTagsModal = _p[1];
6899
6900
  // 当前右键的所属台账id
6900
- var _o = useState(null), curBookId = _o[0], setCurBookId = _o[1];
6901
+ var _q = useState(null), curBookId = _q[0], setCurBookId = _q[1];
6901
6902
  // 搜索参数
6902
- var _p = useState(), searchParams = _p[0], setSearchParams = _p[1];
6903
- var _q = useExportModal$1(), onExport = _q.onExport, ExportModal = _q.ExportModal;
6903
+ var _r = useState(), searchParams = _r[0], setSearchParams = _r[1];
6904
+ var _s = useExportModal$1(), onExport = _s.onExport, ExportModal = _s.ExportModal;
6904
6905
  // 资源权限
6905
6906
  var authTypes = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
6906
6907
  var res;
@@ -7072,7 +7073,7 @@ var SenseTable = forwardRef(function (props, ref) {
7072
7073
  return columns;
7073
7074
  };
7074
7075
  // 表格数据
7075
- var _r = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
7076
+ var _t = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
7076
7077
  var filterParams, sortParams, res, header;
7077
7078
  var _a, _b, _c, _d, _e;
7078
7079
  return __generator(this, function (_f) {
@@ -7121,7 +7122,7 @@ var SenseTable = forwardRef(function (props, ref) {
7121
7122
  JSON.stringify(filter),
7122
7123
  sorter,
7123
7124
  ],
7124
- }), loading = _r.loading, _s = _r.data, _t = _s === void 0 ? {} : _s, header = _t.header, columns = _t.columns, dataSource = _t.dataSource, refresh = _r.refresh;
7125
+ }), loading = _t.loading, _u = _t.data, _v = _u === void 0 ? {} : _u, header = _v.header, columns = _v.columns, dataSource = _v.dataSource, refresh = _t.refresh;
7125
7126
  // 触发刷新
7126
7127
  var handleRefresh = function () {
7127
7128
  refresh();
@@ -7202,7 +7203,10 @@ var SenseTable = forwardRef(function (props, ref) {
7202
7203
  return (React__default.createElement("div", { className: styles$T.container },
7203
7204
  React__default.createElement("div", { className: classNames(styles$T.table, (_a = {},
7204
7205
  _a[styles$T['hidden-row-selected-num']] = !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) || (tableProps === null || tableProps === void 0 ? void 0 : tableProps.rowSelection) === undefined,
7205
- _a)), style: { '--row-selected-num': selectedRowKeys.length } },
7206
+ _a)), style: {
7207
+ // '--row-selected-num': selectedRowKeys.length
7208
+ '--row-selected-num': (_c = (_b = tableProps === null || tableProps === void 0 ? void 0 : tableProps.rowSelection) === null || _b === void 0 ? void 0 : _b.selectedRowKeys) === null || _c === void 0 ? void 0 : _c.length,
7209
+ } },
7206
7210
  React__default.createElement(ProTable$1, __assign({ header: header, columns: columns, dataSource: dataSource, loading: loading, pagination: pagination, size: "small", rowKey: "sense_global_code", onRow: onRow, rowClassName: rowClassName, onChange: handleChangeTable,
7207
7211
  // rowSelection={tableProps?.rowSelection ?? rowSelection}
7208
7212
  containerHeight: proTableContainerHeight, scroll: { x: 'max-content', y: null } }, tableProps))),
@@ -16324,11 +16328,11 @@ var CcosVideoPlayer = function (props) {
16324
16328
  CcosVideoPlayer.settings = settings$1;
16325
16329
 
16326
16330
  try {
16327
- window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.50","branch":"remotes/origin/release_v2.0.0","buildDate":"2025-05-08 16:57:24"}');
16331
+ window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.51","branch":"remotes/origin/release_v2.0.0","buildDate":"2025-05-15 10:39:39"}');
16328
16332
  }
16329
16333
  catch (err) {
16330
16334
  console.warn(err);
16331
- window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.50","branch":"remotes/origin/release_v2.0.0","buildDate":"2025-05-08 16:57:24"}';
16335
+ window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.51","branch":"remotes/origin/release_v2.0.0","buildDate":"2025-05-15 10:39:39"}';
16332
16336
  }
16333
16337
 
16334
16338
  export { BookDetail, BookGroupImport, BookGroupTable, BookImport, BookInfo, BookSelect, BookTable, CcosBookDetail, CcosImportTable, CcosSenseCreate, CcosSenseDetail, CcosSenseEdit, CcosSenseFullTable, CcosSenseManager, CcosSenseSearch, CcosSenseTree, CcosSenseView, CcosTagConfig, CcosVideoPlayer, EntityClassFilter, EntityClassTreeSelect, ImportTable, Modal, OrgTreeSelect, PersonSelector, ProSearch, ProTable$1 as ProTable, RegionCascader, RegionTreeSelect, RelationGraph, SenseContentTable, SenseCreate, SenseDetail, SenseEdit, SenseForm, SenseFullTable, SenseInfo, SenseManager, SenseSearch, SenseTable, SenseTree, SenseView, TagConfig, TagTreeSelect, VideoControl, VideoPlayer, setCconfig as config };