@icos-desktop/react-components 2.2.11 → 2.2.13

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.
@@ -556,6 +556,10 @@ interface SenseDetailProps {
556
556
  * 点击实体记录
557
557
  */
558
558
  onClickSense?: (senseGlobalCode: string) => void;
559
+ /**
560
+ * 获取实体详情回调
561
+ */
562
+ onGetSenseDetail?: (data: any) => void;
559
563
  /**
560
564
  * tabs背景颜色
561
565
  */
@@ -885,6 +889,10 @@ interface SenseInfoProps {
885
889
  * 实体编码
886
890
  */
887
891
  senseGlobalCode: string;
892
+ /**
893
+ * 获取实体详情回调
894
+ */
895
+ onGetSenseDetail?: (data: any) => void;
888
896
  /**
889
897
  * 启用标签
890
898
  */
@@ -1494,6 +1502,14 @@ interface VideoPlayerProps {
1494
1502
  * 视频源类型
1495
1503
  */
1496
1504
  videoStreamSource?: 'cityeyes' | 'hikvision' | 'custom';
1505
+ /**
1506
+ * 视频播放器宽度
1507
+ */
1508
+ width?: number;
1509
+ /**
1510
+ * 视频播放器高度
1511
+ */
1512
+ height?: number;
1497
1513
  }
1498
1514
 
1499
1515
  declare const VideoPlayer: (props: VideoPlayerProps) => React.JSX.Element;
@@ -7416,7 +7416,7 @@ var styles$n = {"container":"SenseInfo-module_container__BjxkT"};
7416
7416
  styleInject(css_248z$n);
7417
7417
 
7418
7418
  var SenseInfo = function (props) {
7419
- var senseGlobalCode = props.senseGlobalCode, enableTag = props.enableTag, textColor = props.textColor, borderColor = props.borderColor, borderWidth = props.borderWidth, borderStyle = props.borderStyle;
7419
+ var senseGlobalCode = props.senseGlobalCode, onGetSenseDetail = props.onGetSenseDetail, enableTag = props.enableTag, textColor = props.textColor, borderColor = props.borderColor, borderWidth = props.borderWidth, borderStyle = props.borderStyle;
7420
7420
  var data = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
7421
7421
  var res, renderData;
7422
7422
  var _a;
@@ -7427,6 +7427,7 @@ var SenseInfo = function (props) {
7427
7427
  return [4 /*yield*/, getSenseDetail({ senseGlobalCode: senseGlobalCode })];
7428
7428
  case 1:
7429
7429
  res = _b.sent();
7430
+ onGetSenseDetail === null || onGetSenseDetail === void 0 ? void 0 : onGetSenseDetail(res);
7430
7431
  renderData = res === null || res === void 0 ? void 0 : res.fieldInfoList;
7431
7432
  if (enableTag && (renderData === null || renderData === void 0 ? void 0 : renderData.length) && ((_a = res.tagNames) === null || _a === void 0 ? void 0 : _a.length)) {
7432
7433
  renderData.push({
@@ -7702,7 +7703,7 @@ var Cityeyes = function (_a) {
7702
7703
  };
7703
7704
 
7704
7705
  var H5player = function (_a) {
7705
- var url = _a.url, libPath = _a.libPath;
7706
+ var url = _a.url, libPath = _a.libPath, width = _a.width, height = _a.height;
7706
7707
  var status = useExternal("".concat(libPath, "/h5player.min.js"), { type: 'js' });
7707
7708
  var videoRef = useRef(null);
7708
7709
  var videoElementId = useState(function () { return v4(); })[0];
@@ -7725,6 +7726,8 @@ var H5player = function (_a) {
7725
7726
  szBasePath: libPath,
7726
7727
  bSupporDoubleClickFull: true,
7727
7728
  iMaxSplit: 1,
7729
+ iWidth: width,
7730
+ iHeight: height,
7728
7731
  });
7729
7732
  setInit(true);
7730
7733
  }
@@ -7734,7 +7737,7 @@ var H5player = function (_a) {
7734
7737
 
7735
7738
  var Player = function (props) {
7736
7739
  var _a, _b;
7737
- var libsPath = props.libsPath, url = props.url, videoPlayerType = props.videoPlayerType;
7740
+ var libsPath = props.libsPath, url = props.url, videoPlayerType = props.videoPlayerType, width = props.width, height = props.height;
7738
7741
  var cityeyesPath = (_a = libsPath === null || libsPath === void 0 ? void 0 : libsPath.cityeyes) !== null && _a !== void 0 ? _a : 'https://unpkg.com/hls.js';
7739
7742
  var h5playerPath = (_b = libsPath === null || libsPath === void 0 ? void 0 : libsPath.h5player) !== null && _b !== void 0 ? _b : '/libs/h5player';
7740
7743
  if (!url) {
@@ -7744,7 +7747,7 @@ var Player = function (props) {
7744
7747
  return React__default.createElement(Cityeyes, { url: url, libPath: cityeyesPath });
7745
7748
  }
7746
7749
  if (videoPlayerType === 'h5player') {
7747
- return React__default.createElement(H5player, { url: url, libPath: h5playerPath });
7750
+ return React__default.createElement(H5player, { url: url, libPath: h5playerPath, width: width, height: height });
7748
7751
  }
7749
7752
  };
7750
7753
 
@@ -7753,7 +7756,7 @@ var styles$k = {"container":"VideoPlayer-module_container__Afx8w","control":"Vid
7753
7756
  styleInject(css_248z$k);
7754
7757
 
7755
7758
  var VideoPlayer = function (props) {
7756
- var libsPath = props.libsPath, url = props.url, senseGlobalCode = props.senseGlobalCode, channelId = props.channelId, videoPlayerType = props.videoPlayerType, videoStreamSource = props.videoStreamSource;
7759
+ var libsPath = props.libsPath, url = props.url, senseGlobalCode = props.senseGlobalCode, channelId = props.channelId, videoPlayerType = props.videoPlayerType, videoStreamSource = props.videoStreamSource, width = props.width, height = props.height;
7757
7760
  var _a = useState(false), openControl = _a[0], setOpenControl = _a[1];
7758
7761
  /**
7759
7762
  * 视频播放器需要参数 url 和 videoPlayerType
@@ -7814,7 +7817,7 @@ var VideoPlayer = function (props) {
7814
7817
  return null;
7815
7818
  }
7816
7819
  return (React__default.createElement("div", { className: styles$k.container },
7817
- React__default.createElement(Player, { libsPath: libsPath, videoPlayerType: data.videoPlayerType, url: data.url }),
7820
+ React__default.createElement(Player, { libsPath: libsPath, videoPlayerType: data.videoPlayerType, url: data.url, width: width, height: height }),
7818
7821
  data.ptzControl ? (React__default.createElement("div", { className: styles$k.control, onClick: handleOpenControl },
7819
7822
  React__default.createElement(FullscreenOutlined, null),
7820
7823
  React__default.createElement("span", null, "\u8BBE\u5907\u63A7\u5236"))) : null,
@@ -8038,7 +8041,7 @@ var useToken$4 = theme.useToken;
8038
8041
  var Base = function (props) {
8039
8042
  var _a;
8040
8043
  var token = useToken$4().token;
8041
- var senseGlobalCode = props.senseGlobalCode, enableTag = props.enableTag, senseInfoTextColor = props.senseInfoTextColor, senseInfoBorderColor = props.senseInfoBorderColor, senseInfoBorderWidth = props.senseInfoBorderWidth, senseInfoBorderStyle = props.senseInfoBorderStyle;
8044
+ var senseGlobalCode = props.senseGlobalCode, onGetSenseDetail = props.onGetSenseDetail, enableTag = props.enableTag, senseInfoTextColor = props.senseInfoTextColor, senseInfoBorderColor = props.senseInfoBorderColor, senseInfoBorderWidth = props.senseInfoBorderWidth, senseInfoBorderStyle = props.senseInfoBorderStyle;
8042
8045
  var data = useRequest(function () { return __awaiter(void 0, void 0, void 0, function () {
8043
8046
  return __generator(this, function (_a) {
8044
8047
  switch (_a.label) {
@@ -8056,7 +8059,7 @@ var Base = function (props) {
8056
8059
  arr.push({
8057
8060
  key: 'SenseInfo',
8058
8061
  label: '属性信息',
8059
- children: (React__default.createElement(SenseInfo, { textColor: senseInfoTextColor, borderColor: senseInfoBorderColor, borderWidth: senseInfoBorderWidth, borderStyle: senseInfoBorderStyle, senseGlobalCode: senseGlobalCode, enableTag: enableTag })),
8062
+ children: (React__default.createElement(SenseInfo, { textColor: senseInfoTextColor, borderColor: senseInfoBorderColor, borderWidth: senseInfoBorderWidth, borderStyle: senseInfoBorderStyle, senseGlobalCode: senseGlobalCode, enableTag: enableTag, onGetSenseDetail: onGetSenseDetail })),
8060
8063
  });
8061
8064
  // 内容信息
8062
8065
  if (data && !isEmpty(data.entityContentTableConfigs)) {
@@ -8150,7 +8153,7 @@ var styles$f = {"container":"SenseDetail-module_container__lF2vB","tabs":"SenseD
8150
8153
  styleInject(css_248z$f);
8151
8154
 
8152
8155
  var SenseDetail = function (props) {
8153
- var senseGlobalCode = props.senseGlobalCode, topMenuConfig = props.topMenuConfig, enableTag = props.enableTag, extraTopMenu = props.extraTopMenu, hideBook = props.hideBook, onClickSense = props.onClickSense, tabsBgColor = props.tabsBgColor, contentCardNameColor = props.contentCardNameColor, contentCardContentColor = props.contentCardContentColor, contentCardBorderColor = props.contentCardBorderColor, contentCardBgColor = props.contentCardBgColor, senseInfoTextColor = props.senseInfoTextColor, senseInfoBorderColor = props.senseInfoBorderColor, senseInfoBorderWidth = props.senseInfoBorderWidth, senseInfoBorderStyle = props.senseInfoBorderStyle;
8156
+ var senseGlobalCode = props.senseGlobalCode, topMenuConfig = props.topMenuConfig, enableTag = props.enableTag, extraTopMenu = props.extraTopMenu, hideBook = props.hideBook, onClickSense = props.onClickSense, onGetSenseDetail = props.onGetSenseDetail, tabsBgColor = props.tabsBgColor, contentCardNameColor = props.contentCardNameColor, contentCardContentColor = props.contentCardContentColor, contentCardBorderColor = props.contentCardBorderColor, contentCardBgColor = props.contentCardBgColor, senseInfoTextColor = props.senseInfoTextColor, senseInfoBorderColor = props.senseInfoBorderColor, senseInfoBorderWidth = props.senseInfoBorderWidth, senseInfoBorderStyle = props.senseInfoBorderStyle;
8154
8157
  var tabItems = (function () {
8155
8158
  var list = [];
8156
8159
  if (!(topMenuConfig === null || topMenuConfig === void 0 ? void 0 : topMenuConfig.length)) {
@@ -8160,7 +8163,7 @@ var SenseDetail = function (props) {
8160
8163
  list.push({
8161
8164
  key: 'base',
8162
8165
  label: '基础信息',
8163
- children: (React__default.createElement(Base, { senseInfoTextColor: senseInfoTextColor, senseInfoBorderColor: senseInfoBorderColor, senseInfoBorderWidth: senseInfoBorderWidth, senseInfoBorderStyle: senseInfoBorderStyle, senseGlobalCode: senseGlobalCode, enableTag: enableTag })),
8166
+ children: (React__default.createElement(Base, { senseInfoTextColor: senseInfoTextColor, senseInfoBorderColor: senseInfoBorderColor, senseInfoBorderWidth: senseInfoBorderWidth, senseInfoBorderStyle: senseInfoBorderStyle, senseGlobalCode: senseGlobalCode, enableTag: enableTag, onGetSenseDetail: onGetSenseDetail })),
8164
8167
  });
8165
8168
  }
8166
8169
  if (topMenuConfig.includes('relation')) {
@@ -12976,11 +12979,11 @@ var CcosVideoPlayer = function (props) {
12976
12979
  CcosVideoPlayer.settings = settings$1;
12977
12980
 
12978
12981
  try {
12979
- window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.2.11","branch":"release_v2.2.0","buildDate":"2025-07-28 13:54:05"}');
12982
+ window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.2.13","branch":"release_v2.2.0","buildDate":"2025-07-29 18:57:21"}');
12980
12983
  }
12981
12984
  catch (err) {
12982
12985
  console.warn(err);
12983
- window._ICOS_DESKTOP_VERSION_ = '{"version":"2.2.11","branch":"release_v2.2.0","buildDate":"2025-07-28 13:54:05"}';
12986
+ window._ICOS_DESKTOP_VERSION_ = '{"version":"2.2.13","branch":"release_v2.2.0","buildDate":"2025-07-29 18:57:21"}';
12984
12987
  }
12985
12988
 
12986
12989
  export { BookDetail, BookGroupImport, BookGroupTable, BookImport, BookInfo, BookSelect, BookTable, CcosBookDetail, CcosImportTable, CcosSenseContentTable, CcosSenseCreate, CcosSenseDetail, CcosSenseEdit, CcosSenseFullTable, CcosSenseManager, CcosSenseSearch, CcosSenseTree, CcosSenseView, CcosTagConfig, CcosVideoControl, CcosVideoPlayer, EntityClassFilter, EntityClassTreeSelect, ImportTable, Modal, OrgTreeSelect, PersonSelector, 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 };