@moluoxixi/ajax-package 0.0.38 → 0.0.39

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.
Files changed (2) hide show
  1. package/es/index.mjs +5 -10
  2. package/package.json +1 -1
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("631710a0-260c-438a-9571-db68806a8879")) {
5
+ if (!document.getElementById("a252d26b-5a74-4a63-995b-52b98c88f4e5")) {
6
6
  var elementStyle = document.createElement("style");
7
- elementStyle.id = "631710a0-260c-438a-9571-db68806a8879";
7
+ elementStyle.id = "a252d26b-5a74-4a63-995b-52b98c88f4e5";
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
  }
@@ -12308,7 +12308,7 @@ const _BaseHttpClient = class _BaseHttpClient {
12308
12308
  return null;
12309
12309
  }
12310
12310
  }
12311
- return document.body;
12311
+ return null;
12312
12312
  }
12313
12313
  /**
12314
12314
  * 获取或创建 ajaxPackage-container 容器元素
@@ -12637,13 +12637,8 @@ async function copyToClipboard(text) {
12637
12637
  textArea.style.top = "-999999px";
12638
12638
  document.body.appendChild(textArea);
12639
12639
  textArea.select();
12640
- if (document.execCommand("copy")) {
12641
- document.body.removeChild(textArea);
12642
- return true;
12643
- } else {
12644
- document.body.removeChild(textArea);
12645
- return false;
12646
- }
12640
+ textArea.remove();
12641
+ return true;
12647
12642
  }
12648
12643
  } catch (error) {
12649
12644
  console.error("复制到剪贴板失败:", error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moluoxixi/ajax-package",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "description": "AjaxPackage 组件",
5
5
  "sideEffects": [
6
6
  "*.css",