@ganwei-web/gw-base-components-plus 1.0.60 → 1.0.62
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/element-plus-adapter/dist/ElementPlusAdapter.cjs +22 -9
- package/element-plus-adapter/dist/ElementPlusAdapter.cjs.map +1 -1
- package/element-plus-adapter/dist/ElementPlusAdapter.css +23 -5
- package/element-plus-adapter/dist/ElementPlusAdapter.iife.js +22 -9
- package/element-plus-adapter/dist/ElementPlusAdapter.iife.js.map +1 -1
- package/element-plus-adapter/dist/ElementPlusAdapter.js +22 -9
- package/element-plus-adapter/dist/ElementPlusAdapter.js.map +1 -1
- package/file-preview/filePreview.vue +23 -16
- package/formdesigner/vform/designer.style.css +1 -1
- package/formdesigner/vform/designer.umd.js +3 -3
- package/package.json +1 -1
|
@@ -1054,7 +1054,7 @@ const overlayMask = {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
}
|
|
1056
1056
|
};
|
|
1057
|
-
const GwOverlayMaskKey = "
|
|
1057
|
+
const GwOverlayMaskKey = "__gwOverlayMaskRegistry__";
|
|
1058
1058
|
const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
1059
1059
|
__name: "index",
|
|
1060
1060
|
props: {
|
|
@@ -1068,13 +1068,25 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
1068
1068
|
setup(__props, { emit: __emit }) {
|
|
1069
1069
|
const props = __props;
|
|
1070
1070
|
const emit = __emit;
|
|
1071
|
-
const
|
|
1072
|
-
|
|
1073
|
-
|
|
1071
|
+
const existingRegistry = window[GwOverlayMaskKey];
|
|
1072
|
+
const registry = (existingRegistry == null ? void 0 : existingRegistry.owner) && Array.isArray(existingRegistry.instances) ? existingRegistry : {
|
|
1073
|
+
owner: vue.ref(null),
|
|
1074
|
+
instances: []
|
|
1075
|
+
};
|
|
1076
|
+
window[GwOverlayMaskKey] = registry;
|
|
1077
|
+
const instanceId = Symbol("GwOverlayMask");
|
|
1078
|
+
registry.instances.push(instanceId);
|
|
1079
|
+
if (!registry.owner.value) {
|
|
1080
|
+
registry.owner.value = instanceId;
|
|
1074
1081
|
}
|
|
1082
|
+
const isInstance = vue.computed(() => registry.owner.value === instanceId);
|
|
1075
1083
|
vue.onUnmounted(() => {
|
|
1076
|
-
|
|
1077
|
-
|
|
1084
|
+
const index2 = registry.instances.indexOf(instanceId);
|
|
1085
|
+
if (index2 !== -1) {
|
|
1086
|
+
registry.instances.splice(index2, 1);
|
|
1087
|
+
}
|
|
1088
|
+
if (registry.owner.value === instanceId) {
|
|
1089
|
+
registry.owner.value = registry.instances[0] || null;
|
|
1078
1090
|
}
|
|
1079
1091
|
});
|
|
1080
1092
|
const overlayStyle = vue.computed(() => ({
|
|
@@ -1095,7 +1107,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
1095
1107
|
};
|
|
1096
1108
|
return (_ctx, _cache) => {
|
|
1097
1109
|
return vue.openBlock(), vue.createBlock(vue.Teleport, { to: "body" }, [
|
|
1098
|
-
isInstance ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
1110
|
+
isInstance.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
1099
1111
|
key: 0,
|
|
1100
1112
|
class: vue.normalizeClass(["gw-overlay-mask", { "gw-overlay-mask--visible": __props.visible }]),
|
|
1101
1113
|
style: vue.normalizeStyle(overlayStyle.value),
|
|
@@ -1106,7 +1118,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
1106
1118
|
};
|
|
1107
1119
|
}
|
|
1108
1120
|
});
|
|
1109
|
-
const
|
|
1121
|
+
const index_vue_vue_type_style_index_0_scoped_b335d597_lang = "";
|
|
1110
1122
|
const _export_sfc = (sfc, props) => {
|
|
1111
1123
|
const target = sfc.__vccOpts || sfc;
|
|
1112
1124
|
for (const [key, val] of props) {
|
|
@@ -1114,7 +1126,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
1114
1126
|
}
|
|
1115
1127
|
return target;
|
|
1116
1128
|
};
|
|
1117
|
-
const GwOverlayMask = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
1129
|
+
const GwOverlayMask = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-b335d597"]]);
|
|
1118
1130
|
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
1119
1131
|
__name: "index",
|
|
1120
1132
|
setup(__props, { expose: __expose }) {
|
|
@@ -1126,6 +1138,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
1126
1138
|
const { nextZIndex } = elementPlus.useZIndex();
|
|
1127
1139
|
const dialogModal = vue.computed(() => !isInIframe);
|
|
1128
1140
|
function handleOpen() {
|
|
1141
|
+
console.log("[ElDialog adapter] handleOpen", isInIframe);
|
|
1129
1142
|
if (isInIframe) {
|
|
1130
1143
|
const currentCount = window.__elDialogOverlayCount__ || 0;
|
|
1131
1144
|
if (currentCount === 0) {
|