matrix_components 2.0.380 → 2.0.385
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-
|
|
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-
|
|
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,10 +77347,12 @@ 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
|
-
const post = (url, data = {},
|
|
77355
|
+
const post = (url, data = {}, base = "", customConfig = {}, errorCallback = null) => {
|
|
77339
77356
|
const baseUrl = base || getBaseUrl();
|
|
77340
77357
|
if (baseUrl.endsWith("/") || url.startsWith("/")) {
|
|
77341
77358
|
if (baseUrl.endsWith("/") && url.startsWith("/")) {
|
|
@@ -77346,6 +77363,7 @@ const post = (url, data = {}, contentType = null, base = "", customConfig = {},
|
|
|
77346
77363
|
} else {
|
|
77347
77364
|
url = baseUrl + "/" + url;
|
|
77348
77365
|
}
|
|
77366
|
+
const contentType = (customConfig == null ? void 0 : customConfig.contentType) || ContentTypeEnum.JSON;
|
|
77349
77367
|
return createAxiosInstance(customConfig, errorCallback)({
|
|
77350
77368
|
url,
|
|
77351
77369
|
// url: import.meta.env.VITE_BASE_URL + url,
|
|
@@ -77353,11 +77371,13 @@ const post = (url, data = {}, contentType = null, base = "", customConfig = {},
|
|
|
77353
77371
|
data: contentType == ContentTypeEnum.FORM_URLENCODED ? qs.stringify(data) : data,
|
|
77354
77372
|
headers: {
|
|
77355
77373
|
// 如果没有指定 headersType,则默认使用 JSON 类型
|
|
77356
|
-
"Content-Type": contentType
|
|
77357
|
-
}
|
|
77374
|
+
"Content-Type": contentType
|
|
77375
|
+
},
|
|
77376
|
+
...customConfig
|
|
77377
|
+
// 支持timeout等配置
|
|
77358
77378
|
});
|
|
77359
77379
|
};
|
|
77360
|
-
const put = (url, data = {},
|
|
77380
|
+
const put = (url, data = {}, base = "", customConfig = {}, errorCallback = null) => {
|
|
77361
77381
|
const baseUrl = base || getBaseUrl();
|
|
77362
77382
|
if (baseUrl.endsWith("/") || url.startsWith("/")) {
|
|
77363
77383
|
if (baseUrl.endsWith("/") && url.startsWith("/")) {
|
|
@@ -77368,11 +77388,14 @@ const put = (url, data = {}, headersType = null, base = "", customConfig = {}, e
|
|
|
77368
77388
|
} else {
|
|
77369
77389
|
url = baseUrl + "/" + url;
|
|
77370
77390
|
}
|
|
77391
|
+
const contentType = (customConfig == null ? void 0 : customConfig.contentType) || ContentTypeEnum.JSON;
|
|
77371
77392
|
return createAxiosInstance(customConfig, errorCallback).put(url, data, {
|
|
77372
77393
|
headers: {
|
|
77373
77394
|
// 如果没有指定 headersType,则默认使用 JSON 类型
|
|
77374
|
-
"Content-Type":
|
|
77375
|
-
}
|
|
77395
|
+
"Content-Type": contentType
|
|
77396
|
+
},
|
|
77397
|
+
...customConfig
|
|
77398
|
+
// 支持timeout等配置
|
|
77376
77399
|
});
|
|
77377
77400
|
};
|
|
77378
77401
|
const del = (url, data = {}, base = "", customConfig = {}, errorCallback = null) => {
|
|
@@ -77394,12 +77417,12 @@ const del = (url, data = {}, base = "", customConfig = {}, errorCallback = null)
|
|
|
77394
77417
|
} else {
|
|
77395
77418
|
url = __url + "?" + data;
|
|
77396
77419
|
}
|
|
77397
|
-
return createAxiosInstance(customConfig, errorCallback).delete(url);
|
|
77420
|
+
return createAxiosInstance(customConfig, errorCallback).delete(url, { ...customConfig });
|
|
77398
77421
|
}
|
|
77399
77422
|
} catch (error) {
|
|
77400
77423
|
console.log("delete接口报错: ", error);
|
|
77401
77424
|
}
|
|
77402
|
-
return createAxiosInstance(customConfig, errorCallback).delete(url, data);
|
|
77425
|
+
return createAxiosInstance(customConfig, errorCallback).delete(url, data, { ...customConfig });
|
|
77403
77426
|
};
|
|
77404
77427
|
const download = (url, filename = "", method = RequestHttpEnum.GET, data = {}, base = "", customConfig = {}, errorCallback) => {
|
|
77405
77428
|
const baseUrl = base || getBaseUrl();
|
|
@@ -77418,6 +77441,7 @@ const download = (url, filename = "", method = RequestHttpEnum.GET, data = {}, b
|
|
|
77418
77441
|
responseType: "blob",
|
|
77419
77442
|
// 关键:指定响应类型为二进制流
|
|
77420
77443
|
...customConfig
|
|
77444
|
+
// 支持timeout等配置
|
|
77421
77445
|
};
|
|
77422
77446
|
if (method === RequestHttpEnum.GET) {
|
|
77423
77447
|
config.params = data;
|