inl-ui 0.1.32 → 0.1.33

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.
@@ -8837,11 +8837,18 @@ const VideoPlayerV2 = vue.defineComponent({
8837
8837
  videoElement.remove();
8838
8838
  }
8839
8839
  });
8840
- return () => vue.createVNode("video", {
8840
+ return () => videoInfo2.value.brandTypeCode !== "MP4" ? vue.createVNode("video", {
8841
8841
  "id": `videoPlayer_${uuid}`,
8842
8842
  "class": `videoComponent ${_prop.fill}`,
8843
8843
  "muted": true,
8844
8844
  "autoplay": true
8845
+ }, null) : vue.createVNode("video", {
8846
+ "class": "videoComponent fill",
8847
+ "src": videoInfo2.value.mp4ResourcesPath,
8848
+ "controls": true,
8849
+ "autoplay": true,
8850
+ "loop": true,
8851
+ "muted": true
8845
8852
  }, null);
8846
8853
  }
8847
8854
  });
@@ -9305,7 +9312,7 @@ const VideoBoxV2 = vue.defineComponent({
9305
9312
  };
9306
9313
  return () => vue.createVNode("div", {
9307
9314
  "class": ["videoBox", _prop.alarm ? "alarm" : ""]
9308
- }, [camera.value.brandTypeCode !== "MP4" ? vue.createVNode(VideoPlayerV2, {
9315
+ }, [vue.createVNode(VideoPlayerV2, {
9309
9316
  "ref": player,
9310
9317
  "camera": camera.value,
9311
9318
  "cameraConfig": cameraConfig.value,
@@ -9315,13 +9322,6 @@ const VideoBoxV2 = vue.defineComponent({
9315
9322
  streamType: streamHistory.value || camera.value.streamType
9316
9323
  };
9317
9324
  }
9318
- }, null) : vue.createVNode("video", {
9319
- "class": "videoStatic",
9320
- "src": camera.value.mp4ResourcesPath,
9321
- "controls": true,
9322
- "autoplay": true,
9323
- "loop": true,
9324
- "muted": true
9325
9325
  }, null), camera.value.brandTypeCode !== "MP4" && showInfo.value ? vue.createVNode("div", {
9326
9326
  "class": "selectFields"
9327
9327
  }, [[0, 1, 2, 3, 4, 5].map(index => {
@@ -9343,7 +9343,7 @@ const VideoBoxV2 = vue.defineComponent({
9343
9343
  }, [vue.createVNode("span", null, [camera.value?.name])]), vue.createVNode("div", {
9344
9344
  "class": "tool"
9345
9345
  }, [_prop.btns.map(btn => {
9346
- if (!(camera.value.brandTypeCode === "MP4" && btn !== "close")) {
9346
+ if (!(camera.value.brandTypeCode === "MP4" && btn !== "close" && btn !== "look")) {
9347
9347
  switch (btn) {
9348
9348
  case "fill":
9349
9349
  return vue.createVNode("img", {
@@ -9365,7 +9365,7 @@ const VideoBoxV2 = vue.defineComponent({
9365
9365
  "onClick": e => {
9366
9366
  showInfo.value = !showInfo.value;
9367
9367
  },
9368
- "src": "/micro-assets/inl/video/controls/show.png"
9368
+ "src": showInfo.value ? "/micro-assets/inl/video/controls/show.png" : "/micro-assets/inl/video/controls/hide.svg"
9369
9369
  }, null);
9370
9370
  case "stream":
9371
9371
  return vue.createVNode(vue.resolveComponent("a-popover"), {
@@ -8826,11 +8826,18 @@ const VideoPlayerV2 = defineComponent({
8826
8826
  videoElement.remove();
8827
8827
  }
8828
8828
  });
8829
- return () => createVNode("video", {
8829
+ return () => videoInfo2.value.brandTypeCode !== "MP4" ? createVNode("video", {
8830
8830
  "id": `videoPlayer_${uuid}`,
8831
8831
  "class": `videoComponent ${_prop.fill}`,
8832
8832
  "muted": true,
8833
8833
  "autoplay": true
8834
+ }, null) : createVNode("video", {
8835
+ "class": "videoComponent fill",
8836
+ "src": videoInfo2.value.mp4ResourcesPath,
8837
+ "controls": true,
8838
+ "autoplay": true,
8839
+ "loop": true,
8840
+ "muted": true
8834
8841
  }, null);
8835
8842
  }
8836
8843
  });
@@ -9294,7 +9301,7 @@ const VideoBoxV2 = defineComponent({
9294
9301
  };
9295
9302
  return () => createVNode("div", {
9296
9303
  "class": ["videoBox", _prop.alarm ? "alarm" : ""]
9297
- }, [camera.value.brandTypeCode !== "MP4" ? createVNode(VideoPlayerV2, {
9304
+ }, [createVNode(VideoPlayerV2, {
9298
9305
  "ref": player,
9299
9306
  "camera": camera.value,
9300
9307
  "cameraConfig": cameraConfig.value,
@@ -9304,13 +9311,6 @@ const VideoBoxV2 = defineComponent({
9304
9311
  streamType: streamHistory.value || camera.value.streamType
9305
9312
  };
9306
9313
  }
9307
- }, null) : createVNode("video", {
9308
- "class": "videoStatic",
9309
- "src": camera.value.mp4ResourcesPath,
9310
- "controls": true,
9311
- "autoplay": true,
9312
- "loop": true,
9313
- "muted": true
9314
9314
  }, null), camera.value.brandTypeCode !== "MP4" && showInfo.value ? createVNode("div", {
9315
9315
  "class": "selectFields"
9316
9316
  }, [[0, 1, 2, 3, 4, 5].map(index => {
@@ -9332,7 +9332,7 @@ const VideoBoxV2 = defineComponent({
9332
9332
  }, [createVNode("span", null, [camera.value?.name])]), createVNode("div", {
9333
9333
  "class": "tool"
9334
9334
  }, [_prop.btns.map(btn => {
9335
- if (!(camera.value.brandTypeCode === "MP4" && btn !== "close")) {
9335
+ if (!(camera.value.brandTypeCode === "MP4" && btn !== "close" && btn !== "look")) {
9336
9336
  switch (btn) {
9337
9337
  case "fill":
9338
9338
  return createVNode("img", {
@@ -9354,7 +9354,7 @@ const VideoBoxV2 = defineComponent({
9354
9354
  "onClick": e => {
9355
9355
  showInfo.value = !showInfo.value;
9356
9356
  },
9357
- "src": "/micro-assets/inl/video/controls/show.png"
9357
+ "src": showInfo.value ? "/micro-assets/inl/video/controls/show.png" : "/micro-assets/inl/video/controls/hide.svg"
9358
9358
  }, null);
9359
9359
  case "stream":
9360
9360
  return createVNode(resolveComponent("a-popover"), {
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.31";
48
+ var version = "0.1.32";
49
49
 
50
50
  const setTheme = theme => {
51
51
  if (theme === "dark") {
@@ -9840,11 +9840,18 @@ const VideoPlayerV2 = vue.defineComponent({
9840
9840
  videoElement.remove();
9841
9841
  }
9842
9842
  });
9843
- return () => vue.createVNode("video", {
9843
+ return () => videoInfo2.value.brandTypeCode !== "MP4" ? vue.createVNode("video", {
9844
9844
  "id": `videoPlayer_${uuid}`,
9845
9845
  "class": `videoComponent ${_prop.fill}`,
9846
9846
  "muted": true,
9847
9847
  "autoplay": true
9848
+ }, null) : vue.createVNode("video", {
9849
+ "class": "videoComponent fill",
9850
+ "src": videoInfo2.value.mp4ResourcesPath,
9851
+ "controls": true,
9852
+ "autoplay": true,
9853
+ "loop": true,
9854
+ "muted": true
9848
9855
  }, null);
9849
9856
  }
9850
9857
  });
@@ -10308,7 +10315,7 @@ const VideoBoxV2 = vue.defineComponent({
10308
10315
  };
10309
10316
  return () => vue.createVNode("div", {
10310
10317
  "class": ["videoBox", _prop.alarm ? "alarm" : ""]
10311
- }, [camera.value.brandTypeCode !== "MP4" ? vue.createVNode(VideoPlayerV2, {
10318
+ }, [vue.createVNode(VideoPlayerV2, {
10312
10319
  "ref": player,
10313
10320
  "camera": camera.value,
10314
10321
  "cameraConfig": cameraConfig.value,
@@ -10318,13 +10325,6 @@ const VideoBoxV2 = vue.defineComponent({
10318
10325
  streamType: streamHistory.value || camera.value.streamType
10319
10326
  };
10320
10327
  }
10321
- }, null) : vue.createVNode("video", {
10322
- "class": "videoStatic",
10323
- "src": camera.value.mp4ResourcesPath,
10324
- "controls": true,
10325
- "autoplay": true,
10326
- "loop": true,
10327
- "muted": true
10328
10328
  }, null), camera.value.brandTypeCode !== "MP4" && showInfo.value ? vue.createVNode("div", {
10329
10329
  "class": "selectFields"
10330
10330
  }, [[0, 1, 2, 3, 4, 5].map(index => {
@@ -10346,7 +10346,7 @@ const VideoBoxV2 = vue.defineComponent({
10346
10346
  }, [vue.createVNode("span", null, [camera.value?.name])]), vue.createVNode("div", {
10347
10347
  "class": "tool"
10348
10348
  }, [_prop.btns.map(btn => {
10349
- if (!(camera.value.brandTypeCode === "MP4" && btn !== "close")) {
10349
+ if (!(camera.value.brandTypeCode === "MP4" && btn !== "close" && btn !== "look")) {
10350
10350
  switch (btn) {
10351
10351
  case "fill":
10352
10352
  return vue.createVNode("img", {
@@ -10368,7 +10368,7 @@ const VideoBoxV2 = vue.defineComponent({
10368
10368
  "onClick": e => {
10369
10369
  showInfo.value = !showInfo.value;
10370
10370
  },
10371
- "src": "/micro-assets/inl/video/controls/show.png"
10371
+ "src": showInfo.value ? "/micro-assets/inl/video/controls/show.png" : "/micro-assets/inl/video/controls/hide.svg"
10372
10372
  }, null);
10373
10373
  case "stream":
10374
10374
  return vue.createVNode(vue.resolveComponent("a-popover"), {
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.31";
14
+ var version = "0.1.32";
15
15
 
16
16
  declare const _default$p: {
17
17
  set(theme: string): void;
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.31";
17
+ var version = "0.1.32";
18
18
 
19
19
  const setTheme = theme => {
20
20
  if (theme === "dark") {
@@ -9809,11 +9809,18 @@ const VideoPlayerV2 = defineComponent({
9809
9809
  videoElement.remove();
9810
9810
  }
9811
9811
  });
9812
- return () => createVNode("video", {
9812
+ return () => videoInfo2.value.brandTypeCode !== "MP4" ? createVNode("video", {
9813
9813
  "id": `videoPlayer_${uuid}`,
9814
9814
  "class": `videoComponent ${_prop.fill}`,
9815
9815
  "muted": true,
9816
9816
  "autoplay": true
9817
+ }, null) : createVNode("video", {
9818
+ "class": "videoComponent fill",
9819
+ "src": videoInfo2.value.mp4ResourcesPath,
9820
+ "controls": true,
9821
+ "autoplay": true,
9822
+ "loop": true,
9823
+ "muted": true
9817
9824
  }, null);
9818
9825
  }
9819
9826
  });
@@ -10277,7 +10284,7 @@ const VideoBoxV2 = defineComponent({
10277
10284
  };
10278
10285
  return () => createVNode("div", {
10279
10286
  "class": ["videoBox", _prop.alarm ? "alarm" : ""]
10280
- }, [camera.value.brandTypeCode !== "MP4" ? createVNode(VideoPlayerV2, {
10287
+ }, [createVNode(VideoPlayerV2, {
10281
10288
  "ref": player,
10282
10289
  "camera": camera.value,
10283
10290
  "cameraConfig": cameraConfig.value,
@@ -10287,13 +10294,6 @@ const VideoBoxV2 = defineComponent({
10287
10294
  streamType: streamHistory.value || camera.value.streamType
10288
10295
  };
10289
10296
  }
10290
- }, null) : createVNode("video", {
10291
- "class": "videoStatic",
10292
- "src": camera.value.mp4ResourcesPath,
10293
- "controls": true,
10294
- "autoplay": true,
10295
- "loop": true,
10296
- "muted": true
10297
10297
  }, null), camera.value.brandTypeCode !== "MP4" && showInfo.value ? createVNode("div", {
10298
10298
  "class": "selectFields"
10299
10299
  }, [[0, 1, 2, 3, 4, 5].map(index => {
@@ -10315,7 +10315,7 @@ const VideoBoxV2 = defineComponent({
10315
10315
  }, [createVNode("span", null, [camera.value?.name])]), createVNode("div", {
10316
10316
  "class": "tool"
10317
10317
  }, [_prop.btns.map(btn => {
10318
- if (!(camera.value.brandTypeCode === "MP4" && btn !== "close")) {
10318
+ if (!(camera.value.brandTypeCode === "MP4" && btn !== "close" && btn !== "look")) {
10319
10319
  switch (btn) {
10320
10320
  case "fill":
10321
10321
  return createVNode("img", {
@@ -10337,7 +10337,7 @@ const VideoBoxV2 = defineComponent({
10337
10337
  "onClick": e => {
10338
10338
  showInfo.value = !showInfo.value;
10339
10339
  },
10340
- "src": "/micro-assets/inl/video/controls/show.png"
10340
+ "src": showInfo.value ? "/micro-assets/inl/video/controls/show.png" : "/micro-assets/inl/video/controls/hide.svg"
10341
10341
  }, null);
10342
10342
  case "stream":
10343
10343
  return createVNode(resolveComponent("a-popover"), {
@@ -6028,11 +6028,18 @@ const VideoPlayerV2 = vue.defineComponent({
6028
6028
  videoElement.remove();
6029
6029
  }
6030
6030
  });
6031
- return () => vue.createVNode("video", {
6031
+ return () => videoInfo2.value.brandTypeCode !== "MP4" ? vue.createVNode("video", {
6032
6032
  "id": `videoPlayer_${uuid}`,
6033
6033
  "class": `videoComponent ${_prop.fill}`,
6034
6034
  "muted": true,
6035
6035
  "autoplay": true
6036
+ }, null) : vue.createVNode("video", {
6037
+ "class": "videoComponent fill",
6038
+ "src": videoInfo2.value.mp4ResourcesPath,
6039
+ "controls": true,
6040
+ "autoplay": true,
6041
+ "loop": true,
6042
+ "muted": true
6036
6043
  }, null);
6037
6044
  }
6038
6045
  });
@@ -6496,7 +6503,7 @@ const VideoBoxV2 = vue.defineComponent({
6496
6503
  };
6497
6504
  return () => vue.createVNode("div", {
6498
6505
  "class": ["videoBox", _prop.alarm ? "alarm" : ""]
6499
- }, [camera.value.brandTypeCode !== "MP4" ? vue.createVNode(VideoPlayerV2, {
6506
+ }, [vue.createVNode(VideoPlayerV2, {
6500
6507
  "ref": player,
6501
6508
  "camera": camera.value,
6502
6509
  "cameraConfig": cameraConfig.value,
@@ -6506,13 +6513,6 @@ const VideoBoxV2 = vue.defineComponent({
6506
6513
  streamType: streamHistory.value || camera.value.streamType
6507
6514
  };
6508
6515
  }
6509
- }, null) : vue.createVNode("video", {
6510
- "class": "videoStatic",
6511
- "src": camera.value.mp4ResourcesPath,
6512
- "controls": true,
6513
- "autoplay": true,
6514
- "loop": true,
6515
- "muted": true
6516
6516
  }, null), camera.value.brandTypeCode !== "MP4" && showInfo.value ? vue.createVNode("div", {
6517
6517
  "class": "selectFields"
6518
6518
  }, [[0, 1, 2, 3, 4, 5].map(index => {
@@ -6534,7 +6534,7 @@ const VideoBoxV2 = vue.defineComponent({
6534
6534
  }, [vue.createVNode("span", null, [camera.value?.name])]), vue.createVNode("div", {
6535
6535
  "class": "tool"
6536
6536
  }, [_prop.btns.map(btn => {
6537
- if (!(camera.value.brandTypeCode === "MP4" && btn !== "close")) {
6537
+ if (!(camera.value.brandTypeCode === "MP4" && btn !== "close" && btn !== "look")) {
6538
6538
  switch (btn) {
6539
6539
  case "fill":
6540
6540
  return vue.createVNode("img", {
@@ -6556,7 +6556,7 @@ const VideoBoxV2 = vue.defineComponent({
6556
6556
  "onClick": e => {
6557
6557
  showInfo.value = !showInfo.value;
6558
6558
  },
6559
- "src": "/micro-assets/inl/video/controls/show.png"
6559
+ "src": showInfo.value ? "/micro-assets/inl/video/controls/show.png" : "/micro-assets/inl/video/controls/hide.svg"
6560
6560
  }, null);
6561
6561
  case "stream":
6562
6562
  return vue.createVNode(vue.resolveComponent("a-popover"), {
@@ -6019,11 +6019,18 @@ const VideoPlayerV2 = defineComponent({
6019
6019
  videoElement.remove();
6020
6020
  }
6021
6021
  });
6022
- return () => createVNode("video", {
6022
+ return () => videoInfo2.value.brandTypeCode !== "MP4" ? createVNode("video", {
6023
6023
  "id": `videoPlayer_${uuid}`,
6024
6024
  "class": `videoComponent ${_prop.fill}`,
6025
6025
  "muted": true,
6026
6026
  "autoplay": true
6027
+ }, null) : createVNode("video", {
6028
+ "class": "videoComponent fill",
6029
+ "src": videoInfo2.value.mp4ResourcesPath,
6030
+ "controls": true,
6031
+ "autoplay": true,
6032
+ "loop": true,
6033
+ "muted": true
6027
6034
  }, null);
6028
6035
  }
6029
6036
  });
@@ -6487,7 +6494,7 @@ const VideoBoxV2 = defineComponent({
6487
6494
  };
6488
6495
  return () => createVNode("div", {
6489
6496
  "class": ["videoBox", _prop.alarm ? "alarm" : ""]
6490
- }, [camera.value.brandTypeCode !== "MP4" ? createVNode(VideoPlayerV2, {
6497
+ }, [createVNode(VideoPlayerV2, {
6491
6498
  "ref": player,
6492
6499
  "camera": camera.value,
6493
6500
  "cameraConfig": cameraConfig.value,
@@ -6497,13 +6504,6 @@ const VideoBoxV2 = defineComponent({
6497
6504
  streamType: streamHistory.value || camera.value.streamType
6498
6505
  };
6499
6506
  }
6500
- }, null) : createVNode("video", {
6501
- "class": "videoStatic",
6502
- "src": camera.value.mp4ResourcesPath,
6503
- "controls": true,
6504
- "autoplay": true,
6505
- "loop": true,
6506
- "muted": true
6507
6507
  }, null), camera.value.brandTypeCode !== "MP4" && showInfo.value ? createVNode("div", {
6508
6508
  "class": "selectFields"
6509
6509
  }, [[0, 1, 2, 3, 4, 5].map(index => {
@@ -6525,7 +6525,7 @@ const VideoBoxV2 = defineComponent({
6525
6525
  }, [createVNode("span", null, [camera.value?.name])]), createVNode("div", {
6526
6526
  "class": "tool"
6527
6527
  }, [_prop.btns.map(btn => {
6528
- if (!(camera.value.brandTypeCode === "MP4" && btn !== "close")) {
6528
+ if (!(camera.value.brandTypeCode === "MP4" && btn !== "close" && btn !== "look")) {
6529
6529
  switch (btn) {
6530
6530
  case "fill":
6531
6531
  return createVNode("img", {
@@ -6547,7 +6547,7 @@ const VideoBoxV2 = defineComponent({
6547
6547
  "onClick": e => {
6548
6548
  showInfo.value = !showInfo.value;
6549
6549
  },
6550
- "src": "/micro-assets/inl/video/controls/show.png"
6550
+ "src": showInfo.value ? "/micro-assets/inl/video/controls/show.png" : "/micro-assets/inl/video/controls/hide.svg"
6551
6551
  }, null);
6552
6552
  case "stream":
6553
6553
  return createVNode(resolveComponent("a-popover"), {
@@ -6024,11 +6024,18 @@ const VideoPlayerV2 = vue.defineComponent({
6024
6024
  videoElement.remove();
6025
6025
  }
6026
6026
  });
6027
- return () => vue.createVNode("video", {
6027
+ return () => videoInfo2.value.brandTypeCode !== "MP4" ? vue.createVNode("video", {
6028
6028
  "id": `videoPlayer_${uuid}`,
6029
6029
  "class": `videoComponent ${_prop.fill}`,
6030
6030
  "muted": true,
6031
6031
  "autoplay": true
6032
+ }, null) : vue.createVNode("video", {
6033
+ "class": "videoComponent fill",
6034
+ "src": videoInfo2.value.mp4ResourcesPath,
6035
+ "controls": true,
6036
+ "autoplay": true,
6037
+ "loop": true,
6038
+ "muted": true
6032
6039
  }, null);
6033
6040
  }
6034
6041
  });
@@ -6016,11 +6016,18 @@ const VideoPlayerV2 = defineComponent({
6016
6016
  videoElement.remove();
6017
6017
  }
6018
6018
  });
6019
- return () => createVNode("video", {
6019
+ return () => videoInfo2.value.brandTypeCode !== "MP4" ? createVNode("video", {
6020
6020
  "id": `videoPlayer_${uuid}`,
6021
6021
  "class": `videoComponent ${_prop.fill}`,
6022
6022
  "muted": true,
6023
6023
  "autoplay": true
6024
+ }, null) : createVNode("video", {
6025
+ "class": "videoComponent fill",
6026
+ "src": videoInfo2.value.mp4ResourcesPath,
6027
+ "controls": true,
6028
+ "autoplay": true,
6029
+ "loop": true,
6030
+ "muted": true
6024
6031
  }, null);
6025
6032
  }
6026
6033
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inl-ui",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "description": "工业 pc ui库",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",