inl-ui 0.1.144 → 0.1.145

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.
@@ -17030,10 +17030,13 @@ class WebRtcMt {
17030
17030
  }
17031
17031
  // 重播
17032
17032
  rePlay(videoElm) {
17033
+ const dom = document.getElementById(videoElm);
17033
17034
  this.stopPlay();
17034
- setTimeout(() => {
17035
- this.init(this.opt);
17036
- }, 3e3);
17035
+ if (dom) {
17036
+ setTimeout(() => {
17037
+ this.init(this.opt);
17038
+ }, 3e3);
17039
+ }
17037
17040
  }
17038
17041
  // 播放
17039
17042
  play(videoElm) {
@@ -17001,10 +17001,13 @@ class WebRtcMt {
17001
17001
  }
17002
17002
  // 重播
17003
17003
  rePlay(videoElm) {
17004
+ const dom = document.getElementById(videoElm);
17004
17005
  this.stopPlay();
17005
- setTimeout(() => {
17006
- this.init(this.opt);
17007
- }, 3e3);
17006
+ if (dom) {
17007
+ setTimeout(() => {
17008
+ this.init(this.opt);
17009
+ }, 3e3);
17010
+ }
17008
17011
  }
17009
17012
  // 播放
17010
17013
  play(videoElm) {
package/dist/index.cjs CHANGED
@@ -45,7 +45,7 @@ var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
45
45
  var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
46
46
  var mqtt__default = /*#__PURE__*/_interopDefaultLegacy(mqtt);
47
47
 
48
- var version = "0.1.141";
48
+ var version = "0.1.144";
49
49
 
50
50
  const setTheme = theme => {
51
51
  if (theme === "dark") {
@@ -18016,10 +18016,13 @@ class WebRtcMt {
18016
18016
  }
18017
18017
  // 重播
18018
18018
  rePlay(videoElm) {
18019
+ const dom = document.getElementById(videoElm);
18019
18020
  this.stopPlay();
18020
- setTimeout(() => {
18021
- this.init(this.opt);
18022
- }, 3e3);
18021
+ if (dom) {
18022
+ setTimeout(() => {
18023
+ this.init(this.opt);
18024
+ }, 3e3);
18025
+ }
18023
18026
  }
18024
18027
  // 播放
18025
18028
  play(videoElm) {
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.141";
14
+ var version = "0.1.144";
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.141";
17
+ var version = "0.1.144";
18
18
 
19
19
  const setTheme = theme => {
20
20
  if (theme === "dark") {
@@ -17985,10 +17985,13 @@ class WebRtcMt {
17985
17985
  }
17986
17986
  // 重播
17987
17987
  rePlay(videoElm) {
17988
+ const dom = document.getElementById(videoElm);
17988
17989
  this.stopPlay();
17989
- setTimeout(() => {
17990
- this.init(this.opt);
17991
- }, 3e3);
17990
+ if (dom) {
17991
+ setTimeout(() => {
17992
+ this.init(this.opt);
17993
+ }, 3e3);
17994
+ }
17992
17995
  }
17993
17996
  // 播放
17994
17997
  play(videoElm) {
@@ -14065,10 +14065,13 @@ class WebRtcMt {
14065
14065
  }
14066
14066
  // 重播
14067
14067
  rePlay(videoElm) {
14068
+ const dom = document.getElementById(videoElm);
14068
14069
  this.stopPlay();
14069
- setTimeout(() => {
14070
- this.init(this.opt);
14071
- }, 3e3);
14070
+ if (dom) {
14071
+ setTimeout(() => {
14072
+ this.init(this.opt);
14073
+ }, 3e3);
14074
+ }
14072
14075
  }
14073
14076
  // 播放
14074
14077
  play(videoElm) {
@@ -14038,10 +14038,13 @@ class WebRtcMt {
14038
14038
  }
14039
14039
  // 重播
14040
14040
  rePlay(videoElm) {
14041
+ const dom = document.getElementById(videoElm);
14041
14042
  this.stopPlay();
14042
- setTimeout(() => {
14043
- this.init(this.opt);
14044
- }, 3e3);
14043
+ if (dom) {
14044
+ setTimeout(() => {
14045
+ this.init(this.opt);
14046
+ }, 3e3);
14047
+ }
14045
14048
  }
14046
14049
  // 播放
14047
14050
  play(videoElm) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inl-ui",
3
- "version": "0.1.144",
3
+ "version": "0.1.145",
4
4
  "description": "工业 pc ui库",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -85,4 +85,4 @@
85
85
  "vite-plugin-qiankun": "^1.0.15",
86
86
  "vue-router": "^4.1.6"
87
87
  }
88
- }
88
+ }