matrix_components 2.0.314 → 2.0.316
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.
|
@@ -47203,13 +47203,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
47203
47203
|
},
|
|
47204
47204
|
setup(__props) {
|
|
47205
47205
|
useCssVars((_ctx) => ({
|
|
47206
|
-
"
|
|
47207
|
-
"
|
|
47208
|
-
"
|
|
47209
|
-
"
|
|
47210
|
-
"
|
|
47211
|
-
"
|
|
47212
|
-
"
|
|
47206
|
+
"v2a0461eb": __props.modalColor,
|
|
47207
|
+
"v4158ad9e": _height.value,
|
|
47208
|
+
"v123aabaf": dialogPosition.value.left,
|
|
47209
|
+
"v7c75a0ad": dialogPosition.value.top,
|
|
47210
|
+
"a2a34c24": tbPadding.value,
|
|
47211
|
+
"eac4a054": lrPadding.value,
|
|
47212
|
+
"v103f4334": _centerHeight.value
|
|
47213
47213
|
}));
|
|
47214
47214
|
const asyncDom = computed(() => {
|
|
47215
47215
|
var _a3;
|
|
@@ -47393,12 +47393,24 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
47393
47393
|
},
|
|
47394
47394
|
{ immediate: true }
|
|
47395
47395
|
);
|
|
47396
|
+
const handleKeydown = (event) => {
|
|
47397
|
+
if (visible.value && props.showFooter && event.key === "Enter") {
|
|
47398
|
+
if (!props.footerDom) {
|
|
47399
|
+
event.preventDefault();
|
|
47400
|
+
dealConfirm();
|
|
47401
|
+
}
|
|
47402
|
+
}
|
|
47403
|
+
};
|
|
47396
47404
|
onMounted(() => {
|
|
47397
47405
|
visible.value = true;
|
|
47398
47406
|
currentWidth.value = props.width;
|
|
47399
47407
|
currentHeight.value = props.height;
|
|
47400
47408
|
currentX.value = props.x;
|
|
47401
47409
|
currentY.value = props.y;
|
|
47410
|
+
document.addEventListener("keydown", handleKeydown);
|
|
47411
|
+
});
|
|
47412
|
+
onUnmounted(() => {
|
|
47413
|
+
document.removeEventListener("keydown", handleKeydown);
|
|
47402
47414
|
});
|
|
47403
47415
|
const toggleMaximize = () => {
|
|
47404
47416
|
if (!props.maxSize) return;
|
|
@@ -72999,9 +73011,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
72999
73011
|
return {
|
|
73000
73012
|
fontSize: 12,
|
|
73001
73013
|
fill: ((_a4 = props.config) == null ? void 0 : _a4.axisTextColor) || "#666666",
|
|
73002
|
-
x: -
|
|
73014
|
+
x: -50,
|
|
73003
73015
|
y: item.height + 8,
|
|
73004
|
-
text: item.
|
|
73016
|
+
text: item.pointName,
|
|
73017
|
+
align: "center",
|
|
73018
|
+
width: wall_width.value + 100
|
|
73005
73019
|
};
|
|
73006
73020
|
}
|
|
73007
73021
|
const xUnitTextConfig = ref$1({
|
|
@@ -73258,7 +73272,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
73258
73272
|
if (yMaxMin.value[1] - _num < y_right_percent.value * 2) {
|
|
73259
73273
|
break;
|
|
73260
73274
|
}
|
|
73261
|
-
|
|
73275
|
+
const tmp = {
|
|
73262
73276
|
...yTmp,
|
|
73263
73277
|
text: Number(yOffset.value + _num).toFixed(0),
|
|
73264
73278
|
y: changeY(_num)
|
|
@@ -73282,7 +73296,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
73282
73296
|
x: changeX(originZeroX.value + Number(item.xPoint)),
|
|
73283
73297
|
y: changeY(Number(item.yPoint), true),
|
|
73284
73298
|
height: item.height * yScale.value,
|
|
73285
|
-
pointCode: item.pointCode || parseInt(Math.round(Math.random() * 1e6))
|
|
73299
|
+
pointCode: item.pointCode || parseInt(Math.round(Math.random() * 1e6)),
|
|
73300
|
+
pointName: item.pointName
|
|
73286
73301
|
};
|
|
73287
73302
|
return tmp;
|
|
73288
73303
|
});
|
|
@@ -73907,12 +73922,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
73907
73922
|
]),
|
|
73908
73923
|
_: 1
|
|
73909
73924
|
}, 8, ["config", "onDragstart", "onDragend"])) : createCommentVNode("", true),
|
|
73910
|
-
createVNode(_component_NoData, {
|
|
73925
|
+
createVNode(_component_NoData, {
|
|
73926
|
+
noData: noData.value,
|
|
73927
|
+
height: "100px"
|
|
73928
|
+
}, null, 8, ["noData"])
|
|
73911
73929
|
], 2);
|
|
73912
73930
|
};
|
|
73913
73931
|
}
|
|
73914
73932
|
});
|
|
73915
|
-
const NsSaturationLine = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
73933
|
+
const NsSaturationLine = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-51b573d9"]]);
|
|
73916
73934
|
NsSaturationLine.install = (app2) => {
|
|
73917
73935
|
app2.component(NsSaturationLine.name, NsSaturationLine);
|
|
73918
73936
|
};
|