matrix_components 2.0.315 → 2.0.317
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.
- package/README.md +14 -0
- package/dist/matrix_components.css +1 -1
- package/dist/matrix_components.js +55 -28
- package/dist/matrix_components.umd.cjs +1 -1
- package/package.json +1 -1
- package/dist/ComponentDemo/DialogDemo.vue +0 -210
- package/dist/ComponentDemo/ExampleFormConfig.js +0 -270
- package/dist/ComponentDemo/ExcelDemo.vue +0 -263
- package/dist/ComponentDemo/FormDemo.vue +0 -400
- package/dist/ComponentDemo/ImageDemo.vue +0 -143
- package/dist/ComponentDemo/MDDemo.vue +0 -20
- package/dist/ComponentDemo/OfficeDemo.vue +0 -189
- package/dist/ComponentDemo/PdfDemo.vue +0 -207
- package/dist/ComponentDemo/SaturationLineDemo.vue +0 -155
- package/dist/ComponentDemo/SimpleFormConfig.json +0 -97
- package/dist/ComponentDemo/Test.vue +0 -347
- package/dist/ComponentDemo/TestFormConfig.js +0 -129
- package/dist/ComponentDemo/VideoDemo.vue +0 -297
- package/dist/ComponentDemo/WordDemo.vue +0 -191
|
@@ -5786,7 +5786,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
5786
5786
|
default: -1
|
|
5787
5787
|
}
|
|
5788
5788
|
},
|
|
5789
|
-
emits: ["dblclick", "error", "urlError"],
|
|
5789
|
+
emits: ["dblclick", "error", "urlError", "videoOriginalInfo"],
|
|
5790
5790
|
setup(__props, { emit: __emit }) {
|
|
5791
5791
|
const props = __props;
|
|
5792
5792
|
console.info("----------初始化----------");
|
|
@@ -5819,7 +5819,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
5819
5819
|
playerInfo.isPlay = true;
|
|
5820
5820
|
setTimeout(
|
|
5821
5821
|
(url) => {
|
|
5822
|
-
console.log("4==>onPlayer:", player.value);
|
|
5823
5822
|
if (player.value) {
|
|
5824
5823
|
player.value.play(url).then(() => {
|
|
5825
5824
|
}).catch((e6) => {
|
|
@@ -5836,7 +5835,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
5836
5835
|
try {
|
|
5837
5836
|
return new Promise((resolve2) => {
|
|
5838
5837
|
try {
|
|
5839
|
-
console.log("000==>onDestroy:", player.value);
|
|
5840
5838
|
if (player.value) {
|
|
5841
5839
|
player.value.destroy();
|
|
5842
5840
|
player.value = null;
|
|
@@ -5857,7 +5855,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
5857
5855
|
}
|
|
5858
5856
|
function onReplay(videoUrl) {
|
|
5859
5857
|
onDestroy().then(() => {
|
|
5860
|
-
console.log("6==>onReplay:", videoUrl);
|
|
5861
5858
|
setTimeout(() => {
|
|
5862
5859
|
try {
|
|
5863
5860
|
playCreate(videoUrl);
|
|
@@ -5869,26 +5866,19 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
5869
5866
|
}
|
|
5870
5867
|
async function playCreate(videoUrl) {
|
|
5871
5868
|
let container = easyRef.value;
|
|
5872
|
-
console.log("1==>播放容器:", container);
|
|
5873
5869
|
if (container) {
|
|
5874
|
-
console.log("1.1", container);
|
|
5875
5870
|
createPlay(container);
|
|
5876
5871
|
onPlayer(videoUrl);
|
|
5877
5872
|
} else {
|
|
5878
|
-
console.log("2==>播放容器不存在");
|
|
5879
5873
|
setTimeout(async () => {
|
|
5880
|
-
console.log("2.1", container);
|
|
5881
5874
|
container = easyRef.value;
|
|
5882
|
-
console.log("2.2", container);
|
|
5883
5875
|
await nextTick();
|
|
5884
|
-
console.log("2.3", container);
|
|
5885
5876
|
createPlay(container);
|
|
5886
5877
|
onPlayer(videoUrl);
|
|
5887
5878
|
}, 500);
|
|
5888
5879
|
}
|
|
5889
5880
|
}
|
|
5890
5881
|
function createPlay(container) {
|
|
5891
|
-
console.log("3==>createPlay:", container);
|
|
5892
5882
|
player.value = new EasyPlayerPro(container, {
|
|
5893
5883
|
stretch: !props.stretch,
|
|
5894
5884
|
MSE: props.MSE,
|
|
@@ -5901,6 +5891,14 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
5901
5891
|
bufferTime: 3
|
|
5902
5892
|
// 缓存时长
|
|
5903
5893
|
});
|
|
5894
|
+
player.value.on("videoInfo", (videoOriginalInfo) => {
|
|
5895
|
+
try {
|
|
5896
|
+
console.log("视频原始信息:", videoOriginalInfo);
|
|
5897
|
+
emits("videoOriginalInfo", videoOriginalInfo);
|
|
5898
|
+
} catch (error) {
|
|
5899
|
+
console.warn("视频原始信息错误:", error);
|
|
5900
|
+
}
|
|
5901
|
+
});
|
|
5904
5902
|
player.value.on("timeout", () => {
|
|
5905
5903
|
console.error("播放器超时");
|
|
5906
5904
|
appendLoading();
|
|
@@ -5950,7 +5948,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
5950
5948
|
};
|
|
5951
5949
|
}
|
|
5952
5950
|
});
|
|
5953
|
-
const EasyPlayView = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
5951
|
+
const EasyPlayView = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-1a2b8584"]]);
|
|
5954
5952
|
class hkVideo {
|
|
5955
5953
|
constructor(options) {
|
|
5956
5954
|
this.hkVideoInfo = reactive({
|
|
@@ -6118,7 +6116,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
6118
6116
|
default: -1
|
|
6119
6117
|
}
|
|
6120
6118
|
},
|
|
6121
|
-
emits: ["dblclick", "error", "urlError"],
|
|
6119
|
+
emits: ["dblclick", "error", "urlError", "videoOriginalInfo"],
|
|
6122
6120
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
6123
6121
|
const videoRandomId = parseInt(Math.random() * 999999999 + "");
|
|
6124
6122
|
const hkPath = inject("hkPath");
|
|
@@ -6217,6 +6215,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
6217
6215
|
const firstFrameDisplay = (iWndIndex, iWidth, iHeight) => {
|
|
6218
6216
|
console.log("海康开始播放");
|
|
6219
6217
|
videoLoading.value = false;
|
|
6218
|
+
emits("videoOriginalInfo", {
|
|
6219
|
+
width: iWidth,
|
|
6220
|
+
height: iHeight
|
|
6221
|
+
});
|
|
6220
6222
|
};
|
|
6221
6223
|
const getVideoDom = () => {
|
|
6222
6224
|
const dom = {
|
|
@@ -6285,7 +6287,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
6285
6287
|
};
|
|
6286
6288
|
}
|
|
6287
6289
|
});
|
|
6288
|
-
const HKPlayView = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
6290
|
+
const HKPlayView = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-a962f649"]]);
|
|
6289
6291
|
const _hoisted_1$6 = { class: "split-box" };
|
|
6290
6292
|
const _hoisted_2$5 = ["onMouseover", "onMouseleave"];
|
|
6291
6293
|
const _hoisted_3$4 = {
|
|
@@ -6312,7 +6314,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
6312
6314
|
}
|
|
6313
6315
|
}
|
|
6314
6316
|
},
|
|
6315
|
-
emits: ["removeVideo", "errorVideo", "urlError"],
|
|
6317
|
+
emits: ["removeVideo", "errorVideo", "urlError", "videoOriginalInfo"],
|
|
6316
6318
|
setup(__props, { emit: __emit }) {
|
|
6317
6319
|
const videoModelsInfo = ref$1({
|
|
6318
6320
|
easyplayer: {
|
|
@@ -6348,6 +6350,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
6348
6350
|
function urlErrorHandler(e6, index2) {
|
|
6349
6351
|
emits("urlError", index2);
|
|
6350
6352
|
}
|
|
6353
|
+
function videoOriginalInfoHandler(e6, index2) {
|
|
6354
|
+
emits("videoOriginalInfo", e6, index2);
|
|
6355
|
+
}
|
|
6351
6356
|
function videoDivRefHandler(el2, index2) {
|
|
6352
6357
|
if (el2) {
|
|
6353
6358
|
videoDivRefs.value[index2] = el2;
|
|
@@ -6506,8 +6511,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
6506
6511
|
hkPath: info == null ? void 0 : info.hkPath,
|
|
6507
6512
|
onDblclick: toggleFullScreen,
|
|
6508
6513
|
onError: ($event) => messageHandler($event, index2),
|
|
6509
|
-
onUrlError: ($event) => urlErrorHandler($event, index2)
|
|
6510
|
-
|
|
6514
|
+
onUrlError: ($event) => urlErrorHandler($event, index2),
|
|
6515
|
+
onVideoOriginalInfo: ($event) => videoOriginalInfoHandler($event, index2)
|
|
6516
|
+
}, null, 40, ["videoUrl", "MSE", "WCS", "WASM", "WASMSIMD", "loadTimeReplay", "stretch", "hasAudio", "isLive", "playerIndex", "hkPath", "onError", "onUrlError", "onVideoOriginalInfo"])),
|
|
6511
6517
|
withDirectives(createVNode(_component_el_button, {
|
|
6512
6518
|
onClick: ($event) => closeVideoHandler(index2),
|
|
6513
6519
|
type: "info",
|
|
@@ -6638,7 +6644,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
6638
6644
|
};
|
|
6639
6645
|
}
|
|
6640
6646
|
});
|
|
6641
|
-
const SplitVideoGroup = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
6647
|
+
const SplitVideoGroup = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-44d9e037"]]);
|
|
6642
6648
|
const ctrlApis = {
|
|
6643
6649
|
fnUrl: "http://199.10.11.47:9091/videoTest/wvpFunction",
|
|
6644
6650
|
commandUrl: "http://199.10.11.47:9091/videoTest/wvpMove",
|
|
@@ -6742,7 +6748,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
6742
6748
|
WASMSIMD: true,
|
|
6743
6749
|
isLive: true,
|
|
6744
6750
|
hasAudio: false,
|
|
6745
|
-
stretch:
|
|
6751
|
+
stretch: false
|
|
6746
6752
|
};
|
|
6747
6753
|
}
|
|
6748
6754
|
},
|
|
@@ -6797,6 +6803,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
6797
6803
|
}
|
|
6798
6804
|
},
|
|
6799
6805
|
emits: [
|
|
6806
|
+
"videoOriginalInfo",
|
|
6800
6807
|
"up",
|
|
6801
6808
|
"down",
|
|
6802
6809
|
"left",
|
|
@@ -7102,6 +7109,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
7102
7109
|
}
|
|
7103
7110
|
function removeVideo(index2, toNext = true) {
|
|
7104
7111
|
setVideoUrl("", toNext, index2);
|
|
7112
|
+
try {
|
|
7113
|
+
delete videoOriginalInfos.value[index2];
|
|
7114
|
+
} catch (error) {
|
|
7115
|
+
console.warn("删除视频原始信息:", error);
|
|
7116
|
+
}
|
|
7105
7117
|
}
|
|
7106
7118
|
function errorVideo(index2, toNext = true) {
|
|
7107
7119
|
var _a3, _b;
|
|
@@ -7130,6 +7142,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
7130
7142
|
console.warn("【url错误】播放失败");
|
|
7131
7143
|
removeVideo(index2);
|
|
7132
7144
|
}
|
|
7145
|
+
const videoOriginalInfos = ref$1({});
|
|
7146
|
+
function videoOriginalInfo(originalInfo, index2) {
|
|
7147
|
+
videoOriginalInfos.value[index2] = originalInfo;
|
|
7148
|
+
emit("videoOriginalInfo", videoOriginalInfos.value);
|
|
7149
|
+
}
|
|
7133
7150
|
function checkTreeNodeIsPlayHandler(data) {
|
|
7134
7151
|
var _a3;
|
|
7135
7152
|
let isPlay = false;
|
|
@@ -7147,7 +7164,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
7147
7164
|
return "";
|
|
7148
7165
|
}
|
|
7149
7166
|
}
|
|
7150
|
-
|
|
7167
|
+
function getOriginalInfo() {
|
|
7168
|
+
return videoOriginalInfos.value;
|
|
7169
|
+
}
|
|
7170
|
+
__expose({ setVideoUrl, removeVideo, fouceIndex, videoInfos, treeRef, getOriginalInfo });
|
|
7151
7171
|
return (_ctx, _cache) => {
|
|
7152
7172
|
const _component_el_tree = resolveComponent("el-tree");
|
|
7153
7173
|
const _directive_sline = resolveDirective("sline");
|
|
@@ -7210,7 +7230,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
7210
7230
|
videoErrorMaxCount: __props.videoErrorMaxCount,
|
|
7211
7231
|
onRemoveVideo: removeVideo,
|
|
7212
7232
|
onErrorVideo: errorVideo,
|
|
7213
|
-
onUrlError: urlError
|
|
7233
|
+
onUrlError: urlError,
|
|
7234
|
+
onVideoOriginalInfo: videoOriginalInfo
|
|
7214
7235
|
}, null, 8, ["class", "videoConfig", "videoErrorMaxCount"])
|
|
7215
7236
|
], true),
|
|
7216
7237
|
renderSlot(_ctx.$slots, "video-player-foot", {}, void 0, true)
|
|
@@ -7226,7 +7247,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
7226
7247
|
};
|
|
7227
7248
|
}
|
|
7228
7249
|
});
|
|
7229
|
-
const NsVideo = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-
|
|
7250
|
+
const NsVideo = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-428a0f85"]]);
|
|
7230
7251
|
function registerDirective(app2) {
|
|
7231
7252
|
app2.directive("sline", {
|
|
7232
7253
|
mounted(el2) {
|
|
@@ -73011,9 +73032,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
73011
73032
|
return {
|
|
73012
73033
|
fontSize: 12,
|
|
73013
73034
|
fill: ((_a4 = props.config) == null ? void 0 : _a4.axisTextColor) || "#666666",
|
|
73014
|
-
x: -
|
|
73035
|
+
x: -50,
|
|
73015
73036
|
y: item.height + 8,
|
|
73016
|
-
text: item.
|
|
73037
|
+
text: item.pointName,
|
|
73038
|
+
align: "center",
|
|
73039
|
+
width: wall_width.value + 100
|
|
73017
73040
|
};
|
|
73018
73041
|
}
|
|
73019
73042
|
const xUnitTextConfig = ref$1({
|
|
@@ -73270,7 +73293,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
73270
73293
|
if (yMaxMin.value[1] - _num < y_right_percent.value * 2) {
|
|
73271
73294
|
break;
|
|
73272
73295
|
}
|
|
73273
|
-
|
|
73296
|
+
const tmp = {
|
|
73274
73297
|
...yTmp,
|
|
73275
73298
|
text: Number(yOffset.value + _num).toFixed(0),
|
|
73276
73299
|
y: changeY(_num)
|
|
@@ -73294,7 +73317,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
73294
73317
|
x: changeX(originZeroX.value + Number(item.xPoint)),
|
|
73295
73318
|
y: changeY(Number(item.yPoint), true),
|
|
73296
73319
|
height: item.height * yScale.value,
|
|
73297
|
-
pointCode: item.pointCode || parseInt(Math.round(Math.random() * 1e6))
|
|
73320
|
+
pointCode: item.pointCode || parseInt(Math.round(Math.random() * 1e6)),
|
|
73321
|
+
pointName: item.pointName
|
|
73298
73322
|
};
|
|
73299
73323
|
return tmp;
|
|
73300
73324
|
});
|
|
@@ -73919,12 +73943,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
73919
73943
|
]),
|
|
73920
73944
|
_: 1
|
|
73921
73945
|
}, 8, ["config", "onDragstart", "onDragend"])) : createCommentVNode("", true),
|
|
73922
|
-
createVNode(_component_NoData, {
|
|
73946
|
+
createVNode(_component_NoData, {
|
|
73947
|
+
noData: noData.value,
|
|
73948
|
+
height: "100px"
|
|
73949
|
+
}, null, 8, ["noData"])
|
|
73923
73950
|
], 2);
|
|
73924
73951
|
};
|
|
73925
73952
|
}
|
|
73926
73953
|
});
|
|
73927
|
-
const NsSaturationLine = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
73954
|
+
const NsSaturationLine = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-51b573d9"]]);
|
|
73928
73955
|
NsSaturationLine.install = (app2) => {
|
|
73929
73956
|
app2.component(NsSaturationLine.name, NsSaturationLine);
|
|
73930
73957
|
};
|