@moluoxixi/ajax-package 0.0.42 → 0.0.44
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/es/index.mjs +9 -6
- package/package.json +2 -2
package/es/index.mjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
try {
|
|
4
4
|
if (typeof document !== "undefined") {
|
|
5
|
-
if (!document.getElementById("
|
|
5
|
+
if (!document.getElementById("947d485d-b206-40b0-bb32-d8033cbf6dd3")) {
|
|
6
6
|
var elementStyle = document.createElement("style");
|
|
7
|
-
elementStyle.id = "
|
|
7
|
+
elementStyle.id = "947d485d-b206-40b0-bb32-d8033cbf6dd3";
|
|
8
8
|
elementStyle.appendChild(document.createTextNode("._root_11p33_1 .el-dialog__header {\n padding: 0 12px 12px;\n}\n\n._root_11p33_1 .el-dialog__body {\n border-top: 1px solid #e5e7eb;\n border-bottom: 1px solid #e5e7eb;\n padding: 0 12px;\n}\n\n._root_11p33_1 .el-dialog__footer {\n padding: 0 12px;\n}"));
|
|
9
9
|
document.head.appendChild(elementStyle);
|
|
10
10
|
}
|
|
@@ -7496,6 +7496,7 @@ const _BaseHttpClient = class _BaseHttpClient {
|
|
|
7496
7496
|
return _BaseHttpClient.hasDocument;
|
|
7497
7497
|
}
|
|
7498
7498
|
resolveAppendToTarget() {
|
|
7499
|
+
/* @__PURE__ */ console.log("1111111111111111111是否是浏览器环境", this.hasDocument);
|
|
7499
7500
|
if (!this.hasDocument) {
|
|
7500
7501
|
return document.body;
|
|
7501
7502
|
}
|
|
@@ -7531,9 +7532,10 @@ const _BaseHttpClient = class _BaseHttpClient {
|
|
|
7531
7532
|
return null;
|
|
7532
7533
|
}
|
|
7533
7534
|
if (!this.containerId) {
|
|
7534
|
-
|
|
7535
|
-
this.
|
|
7536
|
-
this.
|
|
7535
|
+
const targetElementId = generateUUID();
|
|
7536
|
+
this.containerId = `ajaxPackage-container-${targetElementId}`;
|
|
7537
|
+
this.popoverContainerId = `ajaxPackage-popover-${targetElementId}`;
|
|
7538
|
+
this.messageContainerId = `ajaxPackage-message-${targetElementId}`;
|
|
7537
7539
|
}
|
|
7538
7540
|
let container = document.getElementById(this.containerId);
|
|
7539
7541
|
if (!container) {
|
|
@@ -8551,8 +8553,9 @@ const SystemErrorDialog = defineComponent({
|
|
|
8551
8553
|
}
|
|
8552
8554
|
function showMessage(options) {
|
|
8553
8555
|
const container = getAjaxPackageMessageContainer();
|
|
8556
|
+
const dialogContainer = container || document.querySelector(`.${cssModules.root}`);
|
|
8554
8557
|
const { type = "info", message: message2 } = options;
|
|
8555
|
-
const finalOptions =
|
|
8558
|
+
const finalOptions = dialogContainer ? { type, message: message2, appendTo: dialogContainer } : { type, message: message2 };
|
|
8556
8559
|
ElMessage(finalOptions);
|
|
8557
8560
|
}
|
|
8558
8561
|
async function handleReport() {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moluoxixi/ajax-package",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.44",
|
|
4
4
|
"description": "AjaxPackage 组件",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
7
7
|
"*.scss"
|
|
8
8
|
],
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"vue": "3.5.
|
|
10
|
+
"vue": "3.5.27"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {},
|
|
13
13
|
"publishConfig": {
|