inl-ui 0.1.35 → 0.1.36

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.
@@ -8803,18 +8803,20 @@ const VideoPlayerV2 = vue.defineComponent({
8803
8803
  token: _prop.token || sessionStorage.getItem("token") || ""
8804
8804
  }
8805
8805
  });
8806
+ const {
8807
+ data
8808
+ } = detailRes;
8809
+ videoInfo2.value = {
8810
+ ...data.data,
8811
+ ..._prop.cameraConfig
8812
+ };
8806
8813
  if (res.status === 200) {
8807
- const {
8808
- data
8809
- } = detailRes;
8810
8814
  if (res.data.data[0]) {
8811
- data.data.webrtcTemplateMerged = res.data.data[0];
8815
+ videoInfo2.value.webrtcTemplateMerged = res.data.data[0];
8812
8816
  releaseUrl.value = res.data.data[1];
8813
- data.data.mediaServerPo.url = res.data.data[2];
8814
- videoInfo2.value = {
8815
- ...data.data,
8816
- ..._prop.cameraConfig
8817
- };
8817
+ if (videoInfo2.value.mediaServerPo) {
8818
+ videoInfo2.value.mediaServerPo.url = res.data.data[2];
8819
+ }
8818
8820
  init();
8819
8821
  }
8820
8822
  }
@@ -448,7 +448,7 @@ declare const _default$b: vue.DefineComponent<{
448
448
  }, {}>;
449
449
 
450
450
  interface videoInfo$1 {
451
- [key: string]: string | number | boolean | videoInfo$1 | Array<videoInfo$1>;
451
+ [key: string]: string | number | boolean | videoInfo$1 | Array<videoInfo$1> | any;
452
452
  }
453
453
 
454
454
  declare const _default$a: vue.DefineComponent<{
@@ -8792,18 +8792,20 @@ const VideoPlayerV2 = defineComponent({
8792
8792
  token: _prop.token || sessionStorage.getItem("token") || ""
8793
8793
  }
8794
8794
  });
8795
+ const {
8796
+ data
8797
+ } = detailRes;
8798
+ videoInfo2.value = {
8799
+ ...data.data,
8800
+ ..._prop.cameraConfig
8801
+ };
8795
8802
  if (res.status === 200) {
8796
- const {
8797
- data
8798
- } = detailRes;
8799
8803
  if (res.data.data[0]) {
8800
- data.data.webrtcTemplateMerged = res.data.data[0];
8804
+ videoInfo2.value.webrtcTemplateMerged = res.data.data[0];
8801
8805
  releaseUrl.value = res.data.data[1];
8802
- data.data.mediaServerPo.url = res.data.data[2];
8803
- videoInfo2.value = {
8804
- ...data.data,
8805
- ..._prop.cameraConfig
8806
- };
8806
+ if (videoInfo2.value.mediaServerPo) {
8807
+ videoInfo2.value.mediaServerPo.url = res.data.data[2];
8808
+ }
8807
8809
  init();
8808
8810
  }
8809
8811
  }
package/dist/index.cjs CHANGED
@@ -45,7 +45,7 @@ var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
45
45
  var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
46
46
  var EZUIKit__default = /*#__PURE__*/_interopDefaultLegacy(EZUIKit);
47
47
 
48
- var version = "0.1.34";
48
+ var version = "0.1.35";
49
49
 
50
50
  const setTheme = theme => {
51
51
  if (theme === "dark") {
@@ -9806,18 +9806,20 @@ const VideoPlayerV2 = vue.defineComponent({
9806
9806
  token: _prop.token || sessionStorage.getItem("token") || ""
9807
9807
  }
9808
9808
  });
9809
+ const {
9810
+ data
9811
+ } = detailRes;
9812
+ videoInfo2.value = {
9813
+ ...data.data,
9814
+ ..._prop.cameraConfig
9815
+ };
9809
9816
  if (res.status === 200) {
9810
- const {
9811
- data
9812
- } = detailRes;
9813
9817
  if (res.data.data[0]) {
9814
- data.data.webrtcTemplateMerged = res.data.data[0];
9818
+ videoInfo2.value.webrtcTemplateMerged = res.data.data[0];
9815
9819
  releaseUrl.value = res.data.data[1];
9816
- data.data.mediaServerPo.url = res.data.data[2];
9817
- videoInfo2.value = {
9818
- ...data.data,
9819
- ..._prop.cameraConfig
9820
- };
9820
+ if (videoInfo2.value.mediaServerPo) {
9821
+ videoInfo2.value.mediaServerPo.url = res.data.data[2];
9822
+ }
9821
9823
  init();
9822
9824
  }
9823
9825
  }
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { Key } from 'ant-design-vue/lib/table/interface';
11
11
  import * as vue_jsx_runtime from 'vue/jsx-runtime';
12
12
  import * as _ant_design_icons_vue_lib_components_IconFont from '@ant-design/icons-vue/lib/components/IconFont';
13
13
 
14
- var version = "0.1.34";
14
+ var version = "0.1.35";
15
15
 
16
16
  declare const _default$p: {
17
17
  set(theme: string): void;
@@ -397,7 +397,7 @@ type RequetFunction = (...args: any[]) => any;
397
397
  declare function usePoolingReq(reqFn: RequetFunction, isInterval?: MaybeComputedRef<Boolean>, interval?: number): void;
398
398
 
399
399
  interface videoInfo$1 {
400
- [key: string]: string | number | boolean | videoInfo$1 | Array<videoInfo$1>;
400
+ [key: string]: string | number | boolean | videoInfo$1 | Array<videoInfo$1> | any;
401
401
  }
402
402
  interface PlayVideoArgs {
403
403
  videoElm: string;
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import { XPopup, CommentBlock, setAxiosOption } from '@sszj-temp/mobile';
14
14
  import { marked } from 'marked';
15
15
  import '@sszj-temp/mobile/style.css';
16
16
 
17
- var version = "0.1.34";
17
+ var version = "0.1.35";
18
18
 
19
19
  const setTheme = theme => {
20
20
  if (theme === "dark") {
@@ -9775,18 +9775,20 @@ const VideoPlayerV2 = defineComponent({
9775
9775
  token: _prop.token || sessionStorage.getItem("token") || ""
9776
9776
  }
9777
9777
  });
9778
+ const {
9779
+ data
9780
+ } = detailRes;
9781
+ videoInfo2.value = {
9782
+ ...data.data,
9783
+ ..._prop.cameraConfig
9784
+ };
9778
9785
  if (res.status === 200) {
9779
- const {
9780
- data
9781
- } = detailRes;
9782
9786
  if (res.data.data[0]) {
9783
- data.data.webrtcTemplateMerged = res.data.data[0];
9787
+ videoInfo2.value.webrtcTemplateMerged = res.data.data[0];
9784
9788
  releaseUrl.value = res.data.data[1];
9785
- data.data.mediaServerPo.url = res.data.data[2];
9786
- videoInfo2.value = {
9787
- ...data.data,
9788
- ..._prop.cameraConfig
9789
- };
9789
+ if (videoInfo2.value.mediaServerPo) {
9790
+ videoInfo2.value.mediaServerPo.url = res.data.data[2];
9791
+ }
9790
9792
  init();
9791
9793
  }
9792
9794
  }
@@ -1,5 +1,5 @@
1
1
  interface videoInfo {
2
- [key: string]: string | number | boolean | videoInfo | Array<videoInfo>;
2
+ [key: string]: string | number | boolean | videoInfo | Array<videoInfo> | any;
3
3
  }
4
4
  interface PlayVideoArgs {
5
5
  videoElm: string;
@@ -5994,18 +5994,20 @@ const VideoPlayerV2 = vue.defineComponent({
5994
5994
  token: _prop.token || sessionStorage.getItem("token") || ""
5995
5995
  }
5996
5996
  });
5997
+ const {
5998
+ data
5999
+ } = detailRes;
6000
+ videoInfo2.value = {
6001
+ ...data.data,
6002
+ ..._prop.cameraConfig
6003
+ };
5997
6004
  if (res.status === 200) {
5998
- const {
5999
- data
6000
- } = detailRes;
6001
6005
  if (res.data.data[0]) {
6002
- data.data.webrtcTemplateMerged = res.data.data[0];
6006
+ videoInfo2.value.webrtcTemplateMerged = res.data.data[0];
6003
6007
  releaseUrl.value = res.data.data[1];
6004
- data.data.mediaServerPo.url = res.data.data[2];
6005
- videoInfo2.value = {
6006
- ...data.data,
6007
- ..._prop.cameraConfig
6008
- };
6008
+ if (videoInfo2.value.mediaServerPo) {
6009
+ videoInfo2.value.mediaServerPo.url = res.data.data[2];
6010
+ }
6009
6011
  init();
6010
6012
  }
6011
6013
  }
@@ -70,7 +70,7 @@ declare const _default$6: vue.DefineComponent<{
70
70
  }, {}>;
71
71
 
72
72
  interface videoInfo$1 {
73
- [key: string]: string | number | boolean | videoInfo$1 | Array<videoInfo$1>;
73
+ [key: string]: string | number | boolean | videoInfo$1 | Array<videoInfo$1> | any;
74
74
  }
75
75
 
76
76
  declare const _default$5: vue.DefineComponent<{
@@ -5985,18 +5985,20 @@ const VideoPlayerV2 = defineComponent({
5985
5985
  token: _prop.token || sessionStorage.getItem("token") || ""
5986
5986
  }
5987
5987
  });
5988
+ const {
5989
+ data
5990
+ } = detailRes;
5991
+ videoInfo2.value = {
5992
+ ...data.data,
5993
+ ..._prop.cameraConfig
5994
+ };
5988
5995
  if (res.status === 200) {
5989
- const {
5990
- data
5991
- } = detailRes;
5992
5996
  if (res.data.data[0]) {
5993
- data.data.webrtcTemplateMerged = res.data.data[0];
5997
+ videoInfo2.value.webrtcTemplateMerged = res.data.data[0];
5994
5998
  releaseUrl.value = res.data.data[1];
5995
- data.data.mediaServerPo.url = res.data.data[2];
5996
- videoInfo2.value = {
5997
- ...data.data,
5998
- ..._prop.cameraConfig
5999
- };
5999
+ if (videoInfo2.value.mediaServerPo) {
6000
+ videoInfo2.value.mediaServerPo.url = res.data.data[2];
6001
+ }
6000
6002
  init();
6001
6003
  }
6002
6004
  }
@@ -5990,18 +5990,20 @@ const VideoPlayerV2 = vue.defineComponent({
5990
5990
  token: _prop.token || sessionStorage.getItem("token") || ""
5991
5991
  }
5992
5992
  });
5993
+ const {
5994
+ data
5995
+ } = detailRes;
5996
+ videoInfo2.value = {
5997
+ ...data.data,
5998
+ ..._prop.cameraConfig
5999
+ };
5993
6000
  if (res.status === 200) {
5994
- const {
5995
- data
5996
- } = detailRes;
5997
6001
  if (res.data.data[0]) {
5998
- data.data.webrtcTemplateMerged = res.data.data[0];
6002
+ videoInfo2.value.webrtcTemplateMerged = res.data.data[0];
5999
6003
  releaseUrl.value = res.data.data[1];
6000
- data.data.mediaServerPo.url = res.data.data[2];
6001
- videoInfo2.value = {
6002
- ...data.data,
6003
- ..._prop.cameraConfig
6004
- };
6004
+ if (videoInfo2.value.mediaServerPo) {
6005
+ videoInfo2.value.mediaServerPo.url = res.data.data[2];
6006
+ }
6005
6007
  init();
6006
6008
  }
6007
6009
  }
@@ -3,7 +3,7 @@ import { PropType } from 'vue';
3
3
  import * as vue_jsx_runtime from 'vue/jsx-runtime';
4
4
 
5
5
  interface videoInfo {
6
- [key: string]: string | number | boolean | videoInfo | Array<videoInfo>;
6
+ [key: string]: string | number | boolean | videoInfo | Array<videoInfo> | any;
7
7
  }
8
8
 
9
9
  declare const _default: vue.DefineComponent<{
@@ -5982,18 +5982,20 @@ const VideoPlayerV2 = defineComponent({
5982
5982
  token: _prop.token || sessionStorage.getItem("token") || ""
5983
5983
  }
5984
5984
  });
5985
+ const {
5986
+ data
5987
+ } = detailRes;
5988
+ videoInfo2.value = {
5989
+ ...data.data,
5990
+ ..._prop.cameraConfig
5991
+ };
5985
5992
  if (res.status === 200) {
5986
- const {
5987
- data
5988
- } = detailRes;
5989
5993
  if (res.data.data[0]) {
5990
- data.data.webrtcTemplateMerged = res.data.data[0];
5994
+ videoInfo2.value.webrtcTemplateMerged = res.data.data[0];
5991
5995
  releaseUrl.value = res.data.data[1];
5992
- data.data.mediaServerPo.url = res.data.data[2];
5993
- videoInfo2.value = {
5994
- ...data.data,
5995
- ..._prop.cameraConfig
5996
- };
5996
+ if (videoInfo2.value.mediaServerPo) {
5997
+ videoInfo2.value.mediaServerPo.url = res.data.data[2];
5998
+ }
5997
5999
  init();
5998
6000
  }
5999
6001
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inl-ui",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "description": "工业 pc ui库",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",