inl-ui 0.1.12 → 0.1.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.
@@ -7549,9 +7549,7 @@ const VideoPlayerV2 = vue.defineComponent({
7549
7549
  if (videoElement) {
7550
7550
  videoElement.pause();
7551
7551
  videoElement.removeAttribute("src");
7552
- videoElement.src = null;
7553
- videoElement.srcObject = null;
7554
- videoElement.remove();
7552
+ videoElement.load();
7555
7553
  }
7556
7554
  };
7557
7555
  const getVideoDetail = async camera => {
@@ -7600,6 +7598,12 @@ const VideoPlayerV2 = vue.defineComponent({
7600
7598
  vue.onBeforeUnmount(() => {
7601
7599
  stopPlay();
7602
7600
  stopV(`videoPlayer_${uuid}`);
7601
+ const videoElement = document.getElementById(uuid);
7602
+ if (videoElement) {
7603
+ videoElement.src = null;
7604
+ videoElement.srcObject = null;
7605
+ videoElement.remove();
7606
+ }
7603
7607
  });
7604
7608
  return () => vue.createVNode("video", {
7605
7609
  "id": `videoPlayer_${uuid}`,
@@ -7539,9 +7539,7 @@ const VideoPlayerV2 = defineComponent({
7539
7539
  if (videoElement) {
7540
7540
  videoElement.pause();
7541
7541
  videoElement.removeAttribute("src");
7542
- videoElement.src = null;
7543
- videoElement.srcObject = null;
7544
- videoElement.remove();
7542
+ videoElement.load();
7545
7543
  }
7546
7544
  };
7547
7545
  const getVideoDetail = async camera => {
@@ -7590,6 +7588,12 @@ const VideoPlayerV2 = defineComponent({
7590
7588
  onBeforeUnmount(() => {
7591
7589
  stopPlay();
7592
7590
  stopV(`videoPlayer_${uuid}`);
7591
+ const videoElement = document.getElementById(uuid);
7592
+ if (videoElement) {
7593
+ videoElement.src = null;
7594
+ videoElement.srcObject = null;
7595
+ videoElement.remove();
7596
+ }
7593
7597
  });
7594
7598
  return () => createVNode("video", {
7595
7599
  "id": `videoPlayer_${uuid}`,
package/dist/index.cjs CHANGED
@@ -43,7 +43,7 @@ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
43
43
  var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
44
44
  var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
45
45
 
46
- var version = "0.1.11";
46
+ var version = "0.1.12";
47
47
 
48
48
  const setTheme = theme => {
49
49
  if (theme === "dark") {
@@ -8554,9 +8554,7 @@ const VideoPlayerV2 = vue.defineComponent({
8554
8554
  if (videoElement) {
8555
8555
  videoElement.pause();
8556
8556
  videoElement.removeAttribute("src");
8557
- videoElement.src = null;
8558
- videoElement.srcObject = null;
8559
- videoElement.remove();
8557
+ videoElement.load();
8560
8558
  }
8561
8559
  };
8562
8560
  const getVideoDetail = async camera => {
@@ -8605,6 +8603,12 @@ const VideoPlayerV2 = vue.defineComponent({
8605
8603
  vue.onBeforeUnmount(() => {
8606
8604
  stopPlay();
8607
8605
  stopV(`videoPlayer_${uuid}`);
8606
+ const videoElement = document.getElementById(uuid);
8607
+ if (videoElement) {
8608
+ videoElement.src = null;
8609
+ videoElement.srcObject = null;
8610
+ videoElement.remove();
8611
+ }
8608
8612
  });
8609
8613
  return () => vue.createVNode("video", {
8610
8614
  "id": `videoPlayer_${uuid}`,
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.11";
14
+ var version = "0.1.12";
15
15
 
16
16
  declare const _default$o: {
17
17
  set(theme: string): void;
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import { XPopup, CommentBlock, setAxiosOption } from '@sszj-temp/mobile';
13
13
  import { marked } from 'marked';
14
14
  import '@sszj-temp/mobile/style.css';
15
15
 
16
- var version = "0.1.11";
16
+ var version = "0.1.12";
17
17
 
18
18
  const setTheme = theme => {
19
19
  if (theme === "dark") {
@@ -8524,9 +8524,7 @@ const VideoPlayerV2 = defineComponent({
8524
8524
  if (videoElement) {
8525
8525
  videoElement.pause();
8526
8526
  videoElement.removeAttribute("src");
8527
- videoElement.src = null;
8528
- videoElement.srcObject = null;
8529
- videoElement.remove();
8527
+ videoElement.load();
8530
8528
  }
8531
8529
  };
8532
8530
  const getVideoDetail = async camera => {
@@ -8575,6 +8573,12 @@ const VideoPlayerV2 = defineComponent({
8575
8573
  onBeforeUnmount(() => {
8576
8574
  stopPlay();
8577
8575
  stopV(`videoPlayer_${uuid}`);
8576
+ const videoElement = document.getElementById(uuid);
8577
+ if (videoElement) {
8578
+ videoElement.src = null;
8579
+ videoElement.srcObject = null;
8580
+ videoElement.remove();
8581
+ }
8578
8582
  });
8579
8583
  return () => createVNode("video", {
8580
8584
  "id": `videoPlayer_${uuid}`,
@@ -4742,9 +4742,7 @@ const VideoPlayerV2 = vue.defineComponent({
4742
4742
  if (videoElement) {
4743
4743
  videoElement.pause();
4744
4744
  videoElement.removeAttribute("src");
4745
- videoElement.src = null;
4746
- videoElement.srcObject = null;
4747
- videoElement.remove();
4745
+ videoElement.load();
4748
4746
  }
4749
4747
  };
4750
4748
  const getVideoDetail = async camera => {
@@ -4793,6 +4791,12 @@ const VideoPlayerV2 = vue.defineComponent({
4793
4791
  vue.onBeforeUnmount(() => {
4794
4792
  stopPlay();
4795
4793
  stopV(`videoPlayer_${uuid}`);
4794
+ const videoElement = document.getElementById(uuid);
4795
+ if (videoElement) {
4796
+ videoElement.src = null;
4797
+ videoElement.srcObject = null;
4798
+ videoElement.remove();
4799
+ }
4796
4800
  });
4797
4801
  return () => vue.createVNode("video", {
4798
4802
  "id": `videoPlayer_${uuid}`,
@@ -4734,9 +4734,7 @@ const VideoPlayerV2 = defineComponent({
4734
4734
  if (videoElement) {
4735
4735
  videoElement.pause();
4736
4736
  videoElement.removeAttribute("src");
4737
- videoElement.src = null;
4738
- videoElement.srcObject = null;
4739
- videoElement.remove();
4737
+ videoElement.load();
4740
4738
  }
4741
4739
  };
4742
4740
  const getVideoDetail = async camera => {
@@ -4785,6 +4783,12 @@ const VideoPlayerV2 = defineComponent({
4785
4783
  onBeforeUnmount(() => {
4786
4784
  stopPlay();
4787
4785
  stopV(`videoPlayer_${uuid}`);
4786
+ const videoElement = document.getElementById(uuid);
4787
+ if (videoElement) {
4788
+ videoElement.src = null;
4789
+ videoElement.srcObject = null;
4790
+ videoElement.remove();
4791
+ }
4788
4792
  });
4789
4793
  return () => createVNode("video", {
4790
4794
  "id": `videoPlayer_${uuid}`,
@@ -4740,9 +4740,7 @@ const VideoPlayerV2 = vue.defineComponent({
4740
4740
  if (videoElement) {
4741
4741
  videoElement.pause();
4742
4742
  videoElement.removeAttribute("src");
4743
- videoElement.src = null;
4744
- videoElement.srcObject = null;
4745
- videoElement.remove();
4743
+ videoElement.load();
4746
4744
  }
4747
4745
  };
4748
4746
  const getVideoDetail = async camera => {
@@ -4791,6 +4789,12 @@ const VideoPlayerV2 = vue.defineComponent({
4791
4789
  vue.onBeforeUnmount(() => {
4792
4790
  stopPlay();
4793
4791
  stopV(`videoPlayer_${uuid}`);
4792
+ const videoElement = document.getElementById(uuid);
4793
+ if (videoElement) {
4794
+ videoElement.src = null;
4795
+ videoElement.srcObject = null;
4796
+ videoElement.remove();
4797
+ }
4794
4798
  });
4795
4799
  return () => vue.createVNode("video", {
4796
4800
  "id": `videoPlayer_${uuid}`,
@@ -4732,9 +4732,7 @@ const VideoPlayerV2 = defineComponent({
4732
4732
  if (videoElement) {
4733
4733
  videoElement.pause();
4734
4734
  videoElement.removeAttribute("src");
4735
- videoElement.src = null;
4736
- videoElement.srcObject = null;
4737
- videoElement.remove();
4735
+ videoElement.load();
4738
4736
  }
4739
4737
  };
4740
4738
  const getVideoDetail = async camera => {
@@ -4783,6 +4781,12 @@ const VideoPlayerV2 = defineComponent({
4783
4781
  onBeforeUnmount(() => {
4784
4782
  stopPlay();
4785
4783
  stopV(`videoPlayer_${uuid}`);
4784
+ const videoElement = document.getElementById(uuid);
4785
+ if (videoElement) {
4786
+ videoElement.src = null;
4787
+ videoElement.srcObject = null;
4788
+ videoElement.remove();
4789
+ }
4786
4790
  });
4787
4791
  return () => createVNode("video", {
4788
4792
  "id": `videoPlayer_${uuid}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inl-ui",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "工业 pc ui库",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",