matrix_components 2.0.313 → 2.0.315
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 +15 -0
- package/dist/matrix_components.css +1 -1
- package/dist/matrix_components.js +20 -8
- package/dist/matrix_components.umd.cjs +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -54474,7 +54486,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
54474
54486
|
};
|
|
54475
54487
|
}
|
|
54476
54488
|
});
|
|
54477
|
-
const NsWord = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
54489
|
+
const NsWord = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-5777b155"]]);
|
|
54478
54490
|
NsWord.install = (app2) => {
|
|
54479
54491
|
app2.component(NsWord.name, NsWord);
|
|
54480
54492
|
};
|