@icos-desktop/react-components 2.1.4 → 2.1.5

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.
@@ -6874,7 +6874,8 @@ var showTotal$1 = function (total) {
6874
6874
  };
6875
6875
  var SenseTable = forwardRef(function (props, ref) {
6876
6876
  var _a;
6877
- 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,
6877
+ var _b, _c;
6878
+ 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,
6878
6879
  // proTableContainerHeight,
6879
6880
  tableProps = __rest(props, ["bookId", "bookIds", "templateId", "leafRegionId", "pathRegionId", "viewCodes", "keyword", "filter", "filterConfig", "extendColumnParams", "hideColumns", "customColumns", "contextMenuConfig", "enableTag", "writeAuth", "pageSize", "onClick", "onDoubleClick", "onShowSense", "onEditSense", "onRefresh"]);
6880
6881
  var PAGINATION = {
@@ -6887,27 +6888,27 @@ var SenseTable = forwardRef(function (props, ref) {
6887
6888
  hideOnSinglePage: false,
6888
6889
  showTotal: function (total) { return "\u5171 ".concat(total, " \u6761"); },
6889
6890
  };
6890
- var _d = App.useApp(), message = _d.message, modal = _d.modal;
6891
+ var _f = App.useApp(), message = _f.message, modal = _f.modal;
6891
6892
  var showContextMenu = useContextMenu({ id: ContextMenu$3.id }).show;
6892
- var _e = useKsCode(), ksCodeLoaded = _e.loaded;
6893
- var _f = useEntityClass(), entityClassLoaded = _f.loaded;
6893
+ var _g = useKsCode(), ksCodeLoaded = _g.loaded;
6894
+ var _h = useEntityClass(), entityClassLoaded = _h.loaded;
6894
6895
  // 分页
6895
- var _g = useState(__assign({}, PAGINATION)), pagination = _g[0], setPagination = _g[1];
6896
+ var _j = useState(__assign({}, PAGINATION)), pagination = _j[0], setPagination = _j[1];
6896
6897
  // 排序
6897
- var _h = useState(null), sorter = _h[0], setSorter = _h[1];
6898
+ var _k = useState(null), sorter = _k[0], setSorter = _k[1];
6898
6899
  // 当前高亮的行
6899
- var _j = useState(null), highlightId = _j[0], setHighlightId = _j[1];
6900
+ var _l = useState(null), highlightId = _l[0], setHighlightId = _l[1];
6900
6901
  // 表格选中
6901
- var _k = useState([]), selectedRowKeys = _k[0]; _k[1];
6902
+ var _m = useState([]); _m[0]; _m[1];
6902
6903
  // 当前操作行
6903
- var _l = useState(null), curRecord = _l[0], setCurRecord = _l[1];
6904
+ var _o = useState(null), curRecord = _o[0], setCurRecord = _o[1];
6904
6905
  // 显示全部标签弹窗
6905
- var _m = useState(false), showTagsModal = _m[0], setShowTagsModal = _m[1];
6906
+ var _p = useState(false), showTagsModal = _p[0], setShowTagsModal = _p[1];
6906
6907
  // 当前右键的所属台账id
6907
- var _o = useState(null), curBookId = _o[0], setCurBookId = _o[1];
6908
+ var _q = useState(null), curBookId = _q[0], setCurBookId = _q[1];
6908
6909
  // 搜索参数
6909
- var _p = useState(), searchParams = _p[0], setSearchParams = _p[1];
6910
- var _q = useExportModal$1(), onExport = _q.onExport, ExportModal = _q.ExportModal;
6910
+ var _r = useState(), searchParams = _r[0], setSearchParams = _r[1];
6911
+ var _s = useExportModal$1(), onExport = _s.onExport, ExportModal = _s.ExportModal;
6911
6912
  // 资源权限
6912
6913
  var authTypes = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
6913
6914
  var res;
@@ -7079,7 +7080,7 @@ var SenseTable = forwardRef(function (props, ref) {
7079
7080
  return columns;
7080
7081
  };
7081
7082
  // 表格数据
7082
- var _r = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
7083
+ var _t = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
7083
7084
  var filterParams, sortParams, res, header;
7084
7085
  var _a, _b, _c, _d, _e;
7085
7086
  return __generator(this, function (_f) {
@@ -7128,7 +7129,7 @@ var SenseTable = forwardRef(function (props, ref) {
7128
7129
  JSON.stringify(filter),
7129
7130
  sorter,
7130
7131
  ],
7131
- }), loading = _r.loading, _s = _r.data, _t = _s === void 0 ? {} : _s, header = _t.header, columns = _t.columns, dataSource = _t.dataSource, refresh = _r.refresh;
7132
+ }), loading = _t.loading, _u = _t.data, _v = _u === void 0 ? {} : _u, header = _v.header, columns = _v.columns, dataSource = _v.dataSource, refresh = _t.refresh;
7132
7133
  // 触发刷新
7133
7134
  var handleRefresh = function () {
7134
7135
  refresh();
@@ -7209,7 +7210,10 @@ var SenseTable = forwardRef(function (props, ref) {
7209
7210
  return (React__default.createElement("div", { className: styles$T.container },
7210
7211
  React__default.createElement("div", { className: classNames(styles$T.table, (_a = {},
7211
7212
  _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,
7212
- _a)), style: { '--row-selected-num': selectedRowKeys.length } },
7213
+ _a)), style: {
7214
+ // '--row-selected-num': selectedRowKeys.length
7215
+ '--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,
7216
+ } },
7213
7217
  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,
7214
7218
  // rowSelection={tableProps?.rowSelection ?? rowSelection}
7215
7219
  // containerHeight={proTableContainerHeight}
@@ -14101,21 +14105,15 @@ var SenseSearch = forwardRef(function (props, ref) {
14101
14105
  console.log('params', params);
14102
14106
  console.log('timeSpaceParams', timeSpaceParams);
14103
14107
  form.resetFields();
14104
- handleSetFieldsValue(params);
14108
+ handleSetFieldsValue(__assign(__assign({}, params), timeSpaceParams));
14105
14109
  if (timeSpaceParams) {
14106
14110
  setTimeout(function () {
14107
14111
  handleSetFieldsValue(timeSpaceParams);
14108
14112
  }, 10);
14109
- setTimeout(function () {
14110
- handleSetFieldsValue(timeSpaceParams);
14111
- }, 40);
14112
- setTimeout(function () {
14113
- handleSetFieldsValue(timeSpaceParams);
14114
- }, 70);
14115
14113
  }
14116
14114
  setTimeout(function () {
14117
14115
  handleSearch();
14118
- }, 100);
14116
+ }, 20);
14119
14117
  };
14120
14118
  // 修改当前选中的分类
14121
14119
  var handleChangeCategory = function (value) {
@@ -16511,11 +16509,11 @@ var CcosVideoPlayer = function (props) {
16511
16509
  CcosVideoPlayer.settings = settings$1;
16512
16510
 
16513
16511
  try {
16514
- window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.1.4","branch":"release_v2.1.0","buildDate":"2025-05-15 10:10:18"}');
16512
+ window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.1.5","branch":"release_v2.1.0","buildDate":"2025-05-15 15:30:16"}');
16515
16513
  }
16516
16514
  catch (err) {
16517
16515
  console.warn(err);
16518
- window._ICOS_DESKTOP_VERSION_ = '{"version":"2.1.4","branch":"release_v2.1.0","buildDate":"2025-05-15 10:10:18"}';
16516
+ window._ICOS_DESKTOP_VERSION_ = '{"version":"2.1.5","branch":"release_v2.1.0","buildDate":"2025-05-15 15:30:16"}';
16519
16517
  }
16520
16518
 
16521
16519
  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 };