@icos-desktop/react-components 2.0.56 → 2.0.57

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.
@@ -751,6 +751,10 @@ interface SenseFullTableProps {
751
751
  * 显示导入数据按钮,为`true`时默认打开台账组导入,可按视图配置对应为台账导入/台账组导入,例如:`{ viewCode: 'book | bookGroup' }`
752
752
  */
753
753
  showImportButton?: boolean | Record<string, 'book' | 'bookGroup'>;
754
+ /**
755
+ * 导入按钮显示弹窗提示
756
+ */
757
+ importButtonTips?: string;
754
758
  /**
755
759
  * 台账组功能导入数据隐藏根据地理层级自动匹配,可按视图配置,例如:`{ viewCode: true }`
756
760
  */
@@ -12149,7 +12149,7 @@ styleInject(css_248z$c);
12149
12149
 
12150
12150
  var SenseFullTable = forwardRef(function (props, ref) {
12151
12151
  var _a;
12152
- var _b = props.viewType, viewType = _b === void 0 ? 'system' : _b, _c = props.views, views = _c === void 0 ? [] : _c, showView = props.showView, showCatalog = props.showCatalog, showBreadcrumb = props.showBreadcrumb, showBookGroupTable = props.showBookGroupTable, showBookTable = props.showBookTable, showSenseTable = props.showSenseTable, customButtons = props.customButtons, showExportButton = props.showExportButton, showImportButton = props.showImportButton, importHiddenGeolevel = props.importHiddenGeolevel, bookContextMenuConfig = props.bookContextMenuConfig, senseContextMenuConfig = props.senseContextMenuConfig, extendColumnParams = props.extendColumnParams, hideColumns = props.hideColumns, customColumns = props.customColumns, enableTag = props.enableTag, leafRegionId = props.leafRegionId, pathRegionId = props.pathRegionId, sensePageSize = props.sensePageSize, extendFilter = props.extendFilter, onCreateSense = props.onCreateSense, onShowSense = props.onShowSense, onEditSense = props.onEditSense, onClickSense = props.onClickSense, onDoubleClickSense = props.onDoubleClickSense, proTableContainerHeight = props.proTableContainerHeight;
12152
+ var _b = props.viewType, viewType = _b === void 0 ? 'system' : _b, _c = props.views, views = _c === void 0 ? [] : _c, showView = props.showView, showCatalog = props.showCatalog, showBreadcrumb = props.showBreadcrumb, showBookGroupTable = props.showBookGroupTable, showBookTable = props.showBookTable, showSenseTable = props.showSenseTable, customButtons = props.customButtons, showExportButton = props.showExportButton, showImportButton = props.showImportButton, importButtonTips = props.importButtonTips, importHiddenGeolevel = props.importHiddenGeolevel, bookContextMenuConfig = props.bookContextMenuConfig, senseContextMenuConfig = props.senseContextMenuConfig, extendColumnParams = props.extendColumnParams, hideColumns = props.hideColumns, customColumns = props.customColumns, enableTag = props.enableTag, leafRegionId = props.leafRegionId, pathRegionId = props.pathRegionId, sensePageSize = props.sensePageSize, extendFilter = props.extendFilter, onCreateSense = props.onCreateSense, onShowSense = props.onShowSense, onEditSense = props.onEditSense, onClickSense = props.onClickSense, onDoubleClickSense = props.onDoubleClickSense, proTableContainerHeight = props.proTableContainerHeight;
12153
12153
  // 台账表格 ref
12154
12154
  var bookTableRef = useRef();
12155
12155
  // 实体记录表格 ref
@@ -12324,19 +12324,32 @@ var SenseFullTable = forwardRef(function (props, ref) {
12324
12324
  };
12325
12325
  // 导入数据
12326
12326
  var handleImport = function () {
12327
- if (typeof showImportButton === 'boolean') {
12327
+ var run = function () {
12328
+ if (typeof showImportButton === 'boolean') {
12329
+ setOpenBookGroupImportModal(true);
12330
+ return;
12331
+ }
12332
+ if (showImportButton[activeViewCode] === 'book') {
12333
+ setOpenBookImportModal(true);
12334
+ return;
12335
+ }
12336
+ if (showImportButton[activeViewCode] === 'bookGroup') {
12337
+ setOpenBookGroupImportModal(true);
12338
+ return;
12339
+ }
12328
12340
  setOpenBookGroupImportModal(true);
12329
- return;
12330
- }
12331
- if (showImportButton[activeViewCode] === 'book') {
12332
- setOpenBookImportModal(true);
12333
- return;
12341
+ };
12342
+ if (importButtonTips) {
12343
+ Modal$1.info({
12344
+ content: importButtonTips,
12345
+ onOk: function () {
12346
+ run();
12347
+ },
12348
+ });
12334
12349
  }
12335
- if (showImportButton[activeViewCode] === 'bookGroup') {
12336
- setOpenBookGroupImportModal(true);
12337
- return;
12350
+ else {
12351
+ run();
12338
12352
  }
12339
- setOpenBookGroupImportModal(true);
12340
12353
  };
12341
12354
  // 判断导入数据隐藏地理层级导入
12342
12355
  var hiddenGeolevel = (function () {
@@ -16348,11 +16361,11 @@ var CcosVideoPlayer = function (props) {
16348
16361
  CcosVideoPlayer.settings = settings$1;
16349
16362
 
16350
16363
  try {
16351
- window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.56","branch":"release_v2.0.0","buildDate":"2025-06-10 14:37:38"}');
16364
+ window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.0.57","branch":"remotes/origin/release_v2.0.0","buildDate":"2025-06-13 17:48:02"}');
16352
16365
  }
16353
16366
  catch (err) {
16354
16367
  console.warn(err);
16355
- window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.56","branch":"release_v2.0.0","buildDate":"2025-06-10 14:37:38"}';
16368
+ window._ICOS_DESKTOP_VERSION_ = '{"version":"2.0.57","branch":"remotes/origin/release_v2.0.0","buildDate":"2025-06-13 17:48:02"}';
16356
16369
  }
16357
16370
 
16358
16371
  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 };