@ganwei-web/gw-base-components-plus 1.0.61 → 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/package.json +1 -1
|
@@ -1136,13 +1136,13 @@
|
|
|
1136
1136
|
}
|
|
1137
1137
|
.el-alert .el-alert__close-btn:hover {
|
|
1138
1138
|
color: var(--frame-main-color);
|
|
1139
|
-
}.gw-overlay-mask[data-v-
|
|
1139
|
+
}.gw-overlay-mask[data-v-b335d597] {
|
|
1140
1140
|
pointer-events: none;
|
|
1141
1141
|
opacity: 0;
|
|
1142
1142
|
transition: opacity 0.2s linear;
|
|
1143
1143
|
will-change: opacity;
|
|
1144
1144
|
}
|
|
1145
|
-
.gw-overlay-mask--visible[data-v-
|
|
1145
|
+
.gw-overlay-mask--visible[data-v-b335d597] {
|
|
1146
1146
|
opacity: 1;
|
|
1147
1147
|
pointer-events: auto;
|
|
1148
1148
|
}.el-dialog {
|
|
@@ -1245,7 +1245,15 @@
|
|
|
1245
1245
|
.el-tooltip__popper.is-light .el-popper__arrow::before {
|
|
1246
1246
|
background-color: var(--popper-background);
|
|
1247
1247
|
border-color: var(--popper-border);
|
|
1248
|
-
}.el-message-box {
|
|
1248
|
+
}.el-overlay-message-box .el-message-box {
|
|
1249
|
+
padding-bottom: 0;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
.el-overlay-message-box .el-message-box .el-message-box__btns {
|
|
1253
|
+
padding: 20px 0;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
.el-message-box {
|
|
1249
1257
|
border: unset;
|
|
1250
1258
|
padding-bottom: 0;
|
|
1251
1259
|
background-color: var(--message-box-background);
|
|
@@ -1266,7 +1274,7 @@
|
|
|
1266
1274
|
.el-message-box .el-message-box__content {
|
|
1267
1275
|
color: var(--message-box-color);
|
|
1268
1276
|
padding-top: 20px;
|
|
1269
|
-
padding-bottom:
|
|
1277
|
+
padding-bottom: 20px;
|
|
1270
1278
|
}
|
|
1271
1279
|
|
|
1272
1280
|
.el-message-box .el-message-box__content p {
|
|
@@ -1297,7 +1305,17 @@
|
|
|
1297
1305
|
|
|
1298
1306
|
.el-message-box .el-message-box__btns .el-button:nth-child(2) {
|
|
1299
1307
|
color: var(--message-box-button-color);
|
|
1300
|
-
}.el-notification
|
|
1308
|
+
}.el-notification {
|
|
1309
|
+
background-color: var(--notification-background);
|
|
1310
|
+
border: 0;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
.el-notification .el-notification__title,
|
|
1314
|
+
.el-notification .el-notification__content p {
|
|
1315
|
+
color: var(--notification-color);
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
.el-notification.success {
|
|
1301
1319
|
background-color: #f0ffe2;
|
|
1302
1320
|
}
|
|
1303
1321
|
|
|
@@ -1052,7 +1052,7 @@ var ElementPlusAdapter = function(exports, elementPlus, vue) {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
}
|
|
1054
1054
|
};
|
|
1055
|
-
const GwOverlayMaskKey = "
|
|
1055
|
+
const GwOverlayMaskKey = "__gwOverlayMaskRegistry__";
|
|
1056
1056
|
const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
1057
1057
|
__name: "index",
|
|
1058
1058
|
props: {
|
|
@@ -1066,13 +1066,25 @@ var ElementPlusAdapter = function(exports, elementPlus, vue) {
|
|
|
1066
1066
|
setup(__props, { emit: __emit }) {
|
|
1067
1067
|
const props = __props;
|
|
1068
1068
|
const emit = __emit;
|
|
1069
|
-
const
|
|
1070
|
-
|
|
1071
|
-
|
|
1069
|
+
const existingRegistry = window[GwOverlayMaskKey];
|
|
1070
|
+
const registry = (existingRegistry == null ? void 0 : existingRegistry.owner) && Array.isArray(existingRegistry.instances) ? existingRegistry : {
|
|
1071
|
+
owner: vue.ref(null),
|
|
1072
|
+
instances: []
|
|
1073
|
+
};
|
|
1074
|
+
window[GwOverlayMaskKey] = registry;
|
|
1075
|
+
const instanceId = Symbol("GwOverlayMask");
|
|
1076
|
+
registry.instances.push(instanceId);
|
|
1077
|
+
if (!registry.owner.value) {
|
|
1078
|
+
registry.owner.value = instanceId;
|
|
1072
1079
|
}
|
|
1080
|
+
const isInstance = vue.computed(() => registry.owner.value === instanceId);
|
|
1073
1081
|
vue.onUnmounted(() => {
|
|
1074
|
-
|
|
1075
|
-
|
|
1082
|
+
const index2 = registry.instances.indexOf(instanceId);
|
|
1083
|
+
if (index2 !== -1) {
|
|
1084
|
+
registry.instances.splice(index2, 1);
|
|
1085
|
+
}
|
|
1086
|
+
if (registry.owner.value === instanceId) {
|
|
1087
|
+
registry.owner.value = registry.instances[0] || null;
|
|
1076
1088
|
}
|
|
1077
1089
|
});
|
|
1078
1090
|
const overlayStyle = vue.computed(() => ({
|
|
@@ -1093,7 +1105,7 @@ var ElementPlusAdapter = function(exports, elementPlus, vue) {
|
|
|
1093
1105
|
};
|
|
1094
1106
|
return (_ctx, _cache) => {
|
|
1095
1107
|
return vue.openBlock(), vue.createBlock(vue.Teleport, { to: "body" }, [
|
|
1096
|
-
isInstance ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
1108
|
+
isInstance.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
1097
1109
|
key: 0,
|
|
1098
1110
|
class: vue.normalizeClass(["gw-overlay-mask", { "gw-overlay-mask--visible": __props.visible }]),
|
|
1099
1111
|
style: vue.normalizeStyle(overlayStyle.value),
|
|
@@ -1104,7 +1116,7 @@ var ElementPlusAdapter = function(exports, elementPlus, vue) {
|
|
|
1104
1116
|
};
|
|
1105
1117
|
}
|
|
1106
1118
|
});
|
|
1107
|
-
const
|
|
1119
|
+
const index_vue_vue_type_style_index_0_scoped_b335d597_lang = "";
|
|
1108
1120
|
const _export_sfc = (sfc, props) => {
|
|
1109
1121
|
const target = sfc.__vccOpts || sfc;
|
|
1110
1122
|
for (const [key, val] of props) {
|
|
@@ -1112,7 +1124,7 @@ var ElementPlusAdapter = function(exports, elementPlus, vue) {
|
|
|
1112
1124
|
}
|
|
1113
1125
|
return target;
|
|
1114
1126
|
};
|
|
1115
|
-
const GwOverlayMask = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
1127
|
+
const GwOverlayMask = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-b335d597"]]);
|
|
1116
1128
|
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
1117
1129
|
__name: "index",
|
|
1118
1130
|
setup(__props, { expose: __expose }) {
|
|
@@ -1124,6 +1136,7 @@ var ElementPlusAdapter = function(exports, elementPlus, vue) {
|
|
|
1124
1136
|
const { nextZIndex } = elementPlus.useZIndex();
|
|
1125
1137
|
const dialogModal = vue.computed(() => !isInIframe);
|
|
1126
1138
|
function handleOpen() {
|
|
1139
|
+
console.log("[ElDialog adapter] handleOpen", isInIframe);
|
|
1127
1140
|
if (isInIframe) {
|
|
1128
1141
|
const currentCount = window.__elDialogOverlayCount__ || 0;
|
|
1129
1142
|
if (currentCount === 0) {
|