matrix_components 2.0.380 → 2.0.382

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.
@@ -6332,6 +6332,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
6332
6332
  const videoCtrlFun = inject("videoCtrlFun");
6333
6333
  const showVideoCtrls = inject("showVideoCtrls");
6334
6334
  const slidValue = inject("slidValue");
6335
+ const hasFullScreen = inject("hasFullScreen");
6335
6336
  const emits = __emit;
6336
6337
  const videoDivRefs = ref$1({});
6337
6338
  const videoPlayerRefs = ref$1({});
@@ -6415,6 +6416,14 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
6415
6416
  }
6416
6417
  function toggleFullScreen(index2) {
6417
6418
  var _a3, _b;
6419
+ try {
6420
+ if (hasFullScreen + "" === "false") {
6421
+ ElMessage.info("当前视频不支持全屏");
6422
+ return;
6423
+ }
6424
+ } catch (error) {
6425
+ console.error(`配置是否全屏失败:`, error);
6426
+ }
6418
6427
  let target = null;
6419
6428
  try {
6420
6429
  target = index2 == null ? void 0 : index2.currentTarget;
@@ -6649,7 +6658,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
6649
6658
  };
6650
6659
  }
6651
6660
  });
6652
- const SplitVideoGroup = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-7ea8a538"]]);
6661
+ const SplitVideoGroup = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-d238d0e7"]]);
6653
6662
  const ctrlApis = {
6654
6663
  fnUrl: "http://199.10.11.47:9091/videoTest/wvpFunction",
6655
6664
  commandUrl: "http://199.10.11.47:9091/videoTest/wvpMove",
@@ -6675,6 +6684,11 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
6675
6684
  type: Boolean,
6676
6685
  default: true
6677
6686
  },
6687
+ // 是否支持全屏
6688
+ hasFullScreen: {
6689
+ type: Boolean,
6690
+ default: true
6691
+ },
6678
6692
  // 显示树
6679
6693
  showTree: {
6680
6694
  type: Boolean,
@@ -6967,6 +6981,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
6967
6981
  provide("showVideoCtrls", props.showVideoCtrls);
6968
6982
  provide("slidValue", slidValue);
6969
6983
  provide("showClose", props.showClose);
6984
+ provide("hasFullScreen", props.hasFullScreen + "" === "false" ? false : true);
6970
6985
  watch(
6971
6986
  () => activeIndex.value,
6972
6987
  (nv) => {
@@ -7254,7 +7269,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
7254
7269
  };
7255
7270
  }
7256
7271
  });
7257
- const NsVideo = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-fea618e6"]]);
7272
+ const NsVideo = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-7def3a14"]]);
7258
7273
  function registerDirective(app2) {
7259
7274
  app2.directive("sline", {
7260
7275
  mounted(el2) {
@@ -77332,7 +77347,9 @@ const get = async (url, params, base = "", customConfig = {}, errorCallback = nu
77332
77347
  return createAxiosInstance(customConfig, errorCallback)({
77333
77348
  url,
77334
77349
  method: RequestHttpEnum.GET,
77335
- params
77350
+ params,
77351
+ ...customConfig
77352
+ // 支持timeout等配置
77336
77353
  });
77337
77354
  };
77338
77355
  const post = (url, data = {}, contentType = null, base = "", customConfig = {}, errorCallback = null) => {
@@ -77354,7 +77371,9 @@ const post = (url, data = {}, contentType = null, base = "", customConfig = {},
77354
77371
  headers: {
77355
77372
  // 如果没有指定 headersType,则默认使用 JSON 类型
77356
77373
  "Content-Type": contentType || ContentTypeEnum.JSON
77357
- }
77374
+ },
77375
+ ...customConfig
77376
+ // 支持timeout等配置
77358
77377
  });
77359
77378
  };
77360
77379
  const put = (url, data = {}, headersType = null, base = "", customConfig = {}, errorCallback = null) => {
@@ -77372,7 +77391,9 @@ const put = (url, data = {}, headersType = null, base = "", customConfig = {}, e
77372
77391
  headers: {
77373
77392
  // 如果没有指定 headersType,则默认使用 JSON 类型
77374
77393
  "Content-Type": headersType || ContentTypeEnum.JSON
77375
- }
77394
+ },
77395
+ ...customConfig
77396
+ // 支持timeout等配置
77376
77397
  });
77377
77398
  };
77378
77399
  const del = (url, data = {}, base = "", customConfig = {}, errorCallback = null) => {
@@ -77394,12 +77415,12 @@ const del = (url, data = {}, base = "", customConfig = {}, errorCallback = null)
77394
77415
  } else {
77395
77416
  url = __url + "?" + data;
77396
77417
  }
77397
- return createAxiosInstance(customConfig, errorCallback).delete(url);
77418
+ return createAxiosInstance(customConfig, errorCallback).delete(url, { ...customConfig });
77398
77419
  }
77399
77420
  } catch (error) {
77400
77421
  console.log("delete接口报错: ", error);
77401
77422
  }
77402
- return createAxiosInstance(customConfig, errorCallback).delete(url, data);
77423
+ return createAxiosInstance(customConfig, errorCallback).delete(url, data, { ...customConfig });
77403
77424
  };
77404
77425
  const download = (url, filename = "", method = RequestHttpEnum.GET, data = {}, base = "", customConfig = {}, errorCallback) => {
77405
77426
  const baseUrl = base || getBaseUrl();
@@ -77418,6 +77439,7 @@ const download = (url, filename = "", method = RequestHttpEnum.GET, data = {}, b
77418
77439
  responseType: "blob",
77419
77440
  // 关键:指定响应类型为二进制流
77420
77441
  ...customConfig
77442
+ // 支持timeout等配置
77421
77443
  };
77422
77444
  if (method === RequestHttpEnum.GET) {
77423
77445
  config.params = data;