mtxt-ui3 0.0.34 → 0.0.35

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.
@@ -6561,12 +6561,12 @@ class WebRtcMt$1 {
6561
6561
  resolve(res);
6562
6562
  } else {
6563
6563
  console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
6564
- reject(false);
6564
+ reject("error");
6565
6565
  }
6566
6566
  });
6567
6567
  }).catch(err => {
6568
6568
  console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
6569
- reject(false);
6569
+ reject("error");
6570
6570
  });
6571
6571
  });
6572
6572
  }
@@ -6634,7 +6634,7 @@ class WebRtcMt$1 {
6634
6634
  this.stopPlay();
6635
6635
  setTimeout(() => {
6636
6636
  console.log("\u5E95\u90E8\u91CD\u64AD---");
6637
- this.p_player.value = false;
6637
+ this.p_player.value = "error";
6638
6638
  console.info("v2---", this.p_player.value);
6639
6639
  }, 5 * 1e3);
6640
6640
  }
@@ -6809,6 +6809,20 @@ const VideoPlayerV2 = vue.defineComponent({
6809
6809
  immediate: true,
6810
6810
  deep: true
6811
6811
  });
6812
+ let eee;
6813
+ const xxxxx = () => {
6814
+ eee = setInterval(() => {
6815
+ console.info(11, play?.p_player);
6816
+ if (play?.p_player === "error") {
6817
+ stopPlay();
6818
+ getVideoDetail(_prop.camera);
6819
+ }
6820
+ }, 1e3);
6821
+ };
6822
+ xxxxx();
6823
+ vue.onUnmounted(() => {
6824
+ clearInterval(eee);
6825
+ });
6812
6826
  vue.watch(() => play?.p_player, nval => {
6813
6827
  if (nval) {
6814
6828
  console.info("p_player ===> ", nval);
@@ -1,4 +1,4 @@
1
- import { defineComponent, createVNode, ref, reactive, computed, inject, resolveComponent, withDirectives, vShow, provide, nextTick, watch, onBeforeUnmount, Fragment, isVNode, mergeProps, onBeforeUpdate, onMounted, onUnmounted, createTextVNode } from 'vue';
1
+ import { defineComponent, createVNode, ref, reactive, computed, inject, resolveComponent, withDirectives, vShow, provide, nextTick, watch, onUnmounted, onBeforeUnmount, Fragment, isVNode, mergeProps, onBeforeUpdate, onMounted, createTextVNode } from 'vue';
2
2
  import { useRouter } from 'vue-router';
3
3
  import { message, Form, Row, Col, FormItem, SelectOption, Input, Select, Switch, InputNumber } from 'ant-design-vue';
4
4
  import axios$2 from 'axios';
@@ -6551,12 +6551,12 @@ class WebRtcMt$1 {
6551
6551
  resolve(res);
6552
6552
  } else {
6553
6553
  console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
6554
- reject(false);
6554
+ reject("error");
6555
6555
  }
6556
6556
  });
6557
6557
  }).catch(err => {
6558
6558
  console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
6559
- reject(false);
6559
+ reject("error");
6560
6560
  });
6561
6561
  });
6562
6562
  }
@@ -6624,7 +6624,7 @@ class WebRtcMt$1 {
6624
6624
  this.stopPlay();
6625
6625
  setTimeout(() => {
6626
6626
  console.log("\u5E95\u90E8\u91CD\u64AD---");
6627
- this.p_player.value = false;
6627
+ this.p_player.value = "error";
6628
6628
  console.info("v2---", this.p_player.value);
6629
6629
  }, 5 * 1e3);
6630
6630
  }
@@ -6799,6 +6799,20 @@ const VideoPlayerV2 = defineComponent({
6799
6799
  immediate: true,
6800
6800
  deep: true
6801
6801
  });
6802
+ let eee;
6803
+ const xxxxx = () => {
6804
+ eee = setInterval(() => {
6805
+ console.info(11, play?.p_player);
6806
+ if (play?.p_player === "error") {
6807
+ stopPlay();
6808
+ getVideoDetail(_prop.camera);
6809
+ }
6810
+ }, 1e3);
6811
+ };
6812
+ xxxxx();
6813
+ onUnmounted(() => {
6814
+ clearInterval(eee);
6815
+ });
6802
6816
  watch(() => play?.p_player, nval => {
6803
6817
  if (nval) {
6804
6818
  console.info("p_player ===> ", nval);
@@ -5971,12 +5971,12 @@ class WebRtcMt {
5971
5971
  resolve(res);
5972
5972
  } else {
5973
5973
  console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
5974
- reject(false);
5974
+ reject("error");
5975
5975
  }
5976
5976
  });
5977
5977
  }).catch(err => {
5978
5978
  console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
5979
- reject(false);
5979
+ reject("error");
5980
5980
  });
5981
5981
  });
5982
5982
  }
@@ -6044,7 +6044,7 @@ class WebRtcMt {
6044
6044
  this.stopPlay();
6045
6045
  setTimeout(() => {
6046
6046
  console.log("\u5E95\u90E8\u91CD\u64AD---");
6047
- this.p_player.value = false;
6047
+ this.p_player.value = "error";
6048
6048
  console.info("v2---", this.p_player.value);
6049
6049
  }, 5 * 1e3);
6050
6050
  }
@@ -5962,12 +5962,12 @@ class WebRtcMt {
5962
5962
  resolve(res);
5963
5963
  } else {
5964
5964
  console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
5965
- reject(false);
5965
+ reject("error");
5966
5966
  }
5967
5967
  });
5968
5968
  }).catch(err => {
5969
5969
  console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
5970
- reject(false);
5970
+ reject("error");
5971
5971
  });
5972
5972
  });
5973
5973
  }
@@ -6035,7 +6035,7 @@ class WebRtcMt {
6035
6035
  this.stopPlay();
6036
6036
  setTimeout(() => {
6037
6037
  console.log("\u5E95\u90E8\u91CD\u64AD---");
6038
- this.p_player.value = false;
6038
+ this.p_player.value = "error";
6039
6039
  console.info("v2---", this.p_player.value);
6040
6040
  }, 5 * 1e3);
6041
6041
  }
package/dist/index.cjs CHANGED
@@ -21,7 +21,7 @@ var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
21
21
  var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
22
22
  var zhCN__default = /*#__PURE__*/_interopDefaultLegacy(zhCN);
23
23
 
24
- var version = "0.0.33";
24
+ var version = "0.0.34";
25
25
 
26
26
  const setRem = opt => {
27
27
  const fontSize = opt.fontSize || 14;
@@ -6577,12 +6577,12 @@ class WebRtcMt$1 {
6577
6577
  resolve(res);
6578
6578
  } else {
6579
6579
  console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
6580
- reject(false);
6580
+ reject("error");
6581
6581
  }
6582
6582
  });
6583
6583
  }).catch(err => {
6584
6584
  console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
6585
- reject(false);
6585
+ reject("error");
6586
6586
  });
6587
6587
  });
6588
6588
  }
@@ -6650,7 +6650,7 @@ class WebRtcMt$1 {
6650
6650
  this.stopPlay();
6651
6651
  setTimeout(() => {
6652
6652
  console.log("\u5E95\u90E8\u91CD\u64AD---");
6653
- this.p_player.value = false;
6653
+ this.p_player.value = "error";
6654
6654
  console.info("v2---", this.p_player.value);
6655
6655
  }, 5 * 1e3);
6656
6656
  }
@@ -7340,6 +7340,20 @@ const VideoPlayerV2 = vue.defineComponent({
7340
7340
  immediate: true,
7341
7341
  deep: true
7342
7342
  });
7343
+ let eee;
7344
+ const xxxxx = () => {
7345
+ eee = setInterval(() => {
7346
+ console.info(11, play?.p_player);
7347
+ if (play?.p_player === "error") {
7348
+ stopPlay();
7349
+ getVideoDetail(_prop.camera);
7350
+ }
7351
+ }, 1e3);
7352
+ };
7353
+ xxxxx();
7354
+ vue.onUnmounted(() => {
7355
+ clearInterval(eee);
7356
+ });
7343
7357
  vue.watch(() => play?.p_player, nval => {
7344
7358
  if (nval) {
7345
7359
  console.info("p_player ===> ", nval);
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ import { MaybeRef, MaybeComputedRef } from '@vueuse/core';
7
7
  import { Key } from 'ant-design-vue/lib/table/interface';
8
8
  import * as vue_jsx_runtime from 'vue/jsx-runtime';
9
9
 
10
- var version = "0.0.33";
10
+ var version = "0.0.34";
11
11
 
12
12
  /**
13
13
  *
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import axios$2 from 'axios';
2
2
  import ant, { message, Form, Row, Col, FormItem, SelectOption, Input, Select, Switch, InputNumber } from 'ant-design-vue';
3
3
  import _, { isPlainObject as isPlainObject$1, omit, cloneDeep, isObject as isObject$2 } from 'lodash';
4
- import { ref, reactive, computed, watch, onBeforeUnmount, watchEffect, defineComponent, createVNode, inject, resolveComponent, withDirectives, vShow, provide, nextTick, Fragment, isVNode, mergeProps, onBeforeUpdate, onMounted, onUnmounted, createTextVNode } from 'vue';
4
+ import { ref, reactive, computed, watch, onBeforeUnmount, watchEffect, defineComponent, createVNode, inject, resolveComponent, withDirectives, vShow, provide, nextTick, onUnmounted, Fragment, isVNode, mergeProps, onBeforeUpdate, onMounted, createTextVNode } from 'vue';
5
5
  import { useIntervalFn, useEventBus, resolveRef, useEventListener, useBreakpoints, breakpointsAntDesign, useToggle, useVModel } from '@vueuse/core';
6
6
  import dayjs from 'dayjs';
7
7
  import { useRouter } from 'vue-router';
@@ -9,7 +9,7 @@ import { SearchOutlined, CaretUpOutlined, CaretRightOutlined, CaretDownOutlined,
9
9
  import 'ant-design-vue/dist/antd.less';
10
10
  import zhCN from 'dayjs/locale/zh-cn';
11
11
 
12
- var version = "0.0.33";
12
+ var version = "0.0.34";
13
13
 
14
14
  const setRem = opt => {
15
15
  const fontSize = opt.fontSize || 14;
@@ -6565,12 +6565,12 @@ class WebRtcMt$1 {
6565
6565
  resolve(res);
6566
6566
  } else {
6567
6567
  console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
6568
- reject(false);
6568
+ reject("error");
6569
6569
  }
6570
6570
  });
6571
6571
  }).catch(err => {
6572
6572
  console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
6573
- reject(false);
6573
+ reject("error");
6574
6574
  });
6575
6575
  });
6576
6576
  }
@@ -6638,7 +6638,7 @@ class WebRtcMt$1 {
6638
6638
  this.stopPlay();
6639
6639
  setTimeout(() => {
6640
6640
  console.log("\u5E95\u90E8\u91CD\u64AD---");
6641
- this.p_player.value = false;
6641
+ this.p_player.value = "error";
6642
6642
  console.info("v2---", this.p_player.value);
6643
6643
  }, 5 * 1e3);
6644
6644
  }
@@ -7328,6 +7328,20 @@ const VideoPlayerV2 = defineComponent({
7328
7328
  immediate: true,
7329
7329
  deep: true
7330
7330
  });
7331
+ let eee;
7332
+ const xxxxx = () => {
7333
+ eee = setInterval(() => {
7334
+ console.info(11, play?.p_player);
7335
+ if (play?.p_player === "error") {
7336
+ stopPlay();
7337
+ getVideoDetail(_prop.camera);
7338
+ }
7339
+ }, 1e3);
7340
+ };
7341
+ xxxxx();
7342
+ onUnmounted(() => {
7343
+ clearInterval(eee);
7344
+ });
7331
7345
  watch(() => play?.p_player, nval => {
7332
7346
  if (nval) {
7333
7347
  console.info("p_player ===> ", nval);
@@ -5786,12 +5786,12 @@ class WebRtcMt$1 {
5786
5786
  resolve(res);
5787
5787
  } else {
5788
5788
  console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
5789
- reject(false);
5789
+ reject("error");
5790
5790
  }
5791
5791
  });
5792
5792
  }).catch(err => {
5793
5793
  console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
5794
- reject(false);
5794
+ reject("error");
5795
5795
  });
5796
5796
  });
5797
5797
  }
@@ -5859,7 +5859,7 @@ class WebRtcMt$1 {
5859
5859
  this.stopPlay();
5860
5860
  setTimeout(() => {
5861
5861
  console.log("\u5E95\u90E8\u91CD\u64AD---");
5862
- this.p_player.value = false;
5862
+ this.p_player.value = "error";
5863
5863
  console.info("v2---", this.p_player.value);
5864
5864
  }, 5 * 1e3);
5865
5865
  }
@@ -6051,6 +6051,20 @@ const VideoPlayerV2 = vue.defineComponent({
6051
6051
  immediate: true,
6052
6052
  deep: true
6053
6053
  });
6054
+ let eee;
6055
+ const xxxxx = () => {
6056
+ eee = setInterval(() => {
6057
+ console.info(11, play?.p_player);
6058
+ if (play?.p_player === "error") {
6059
+ stopPlay();
6060
+ getVideoDetail(_prop.camera);
6061
+ }
6062
+ }, 1e3);
6063
+ };
6064
+ xxxxx();
6065
+ vue.onUnmounted(() => {
6066
+ clearInterval(eee);
6067
+ });
6054
6068
  vue.watch(() => play?.p_player, nval => {
6055
6069
  if (nval) {
6056
6070
  console.info("p_player ===> ", nval);
@@ -1,4 +1,4 @@
1
- import { ref, defineComponent, reactive, watch, onBeforeUnmount, createVNode, Fragment } from 'vue';
1
+ import { ref, defineComponent, reactive, watch, onUnmounted, onBeforeUnmount, createVNode, Fragment } from 'vue';
2
2
  import axios$2 from 'axios';
3
3
 
4
4
  const Events$1 = {
@@ -5778,12 +5778,12 @@ class WebRtcMt$1 {
5778
5778
  resolve(res);
5779
5779
  } else {
5780
5780
  console.log("\u62C9\u6D41\u63A5\u53E3\u8FD4\u56DE\u5931\u8D25");
5781
- reject(false);
5781
+ reject("error");
5782
5782
  }
5783
5783
  });
5784
5784
  }).catch(err => {
5785
5785
  console.log("\u62C9\u6D41\u63A5\u53E3\u5931\u8D25");
5786
- reject(false);
5786
+ reject("error");
5787
5787
  });
5788
5788
  });
5789
5789
  }
@@ -5851,7 +5851,7 @@ class WebRtcMt$1 {
5851
5851
  this.stopPlay();
5852
5852
  setTimeout(() => {
5853
5853
  console.log("\u5E95\u90E8\u91CD\u64AD---");
5854
- this.p_player.value = false;
5854
+ this.p_player.value = "error";
5855
5855
  console.info("v2---", this.p_player.value);
5856
5856
  }, 5 * 1e3);
5857
5857
  }
@@ -6043,6 +6043,20 @@ const VideoPlayerV2 = defineComponent({
6043
6043
  immediate: true,
6044
6044
  deep: true
6045
6045
  });
6046
+ let eee;
6047
+ const xxxxx = () => {
6048
+ eee = setInterval(() => {
6049
+ console.info(11, play?.p_player);
6050
+ if (play?.p_player === "error") {
6051
+ stopPlay();
6052
+ getVideoDetail(_prop.camera);
6053
+ }
6054
+ }, 1e3);
6055
+ };
6056
+ xxxxx();
6057
+ onUnmounted(() => {
6058
+ clearInterval(eee);
6059
+ });
6046
6060
  watch(() => play?.p_player, nval => {
6047
6061
  if (nval) {
6048
6062
  console.info("p_player ===> ", nval);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mtxt-ui3",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "description": "系统运营组件库",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",