@zyzgroup/core-web 0.0.36 → 0.0.37
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/dist/better.css +1 -1
- package/dist/standard.css +51 -0
- package/dist/zyzgroup_core_web.iife.js +2 -2
- package/dist/zyzgroup_core_web.iife.js.map +1 -1
- package/dist/zyzgroup_core_web.js +14 -10
- package/dist/zyzgroup_core_web.js.map +1 -1
- package/dist/zyzgroup_core_web.umd.cjs +2 -2
- package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
- package/package.json +4 -3
- package/types/fetch.d.ts.map +1 -1
- package/types/ui/balmui.d.ts +1 -0
- package/types/ui/balmui.d.ts.map +1 -0
- package/types/ui/weui.d.ts +1 -0
- package/types/ui/weui.d.ts.map +1 -0
|
@@ -16778,13 +16778,17 @@ function x_(r) {
|
|
|
16778
16778
|
method: i = "GET",
|
|
16779
16779
|
url: s = "",
|
|
16780
16780
|
data: a = "",
|
|
16781
|
-
headers: n = {
|
|
16782
|
-
// Accept: "application/json"
|
|
16783
|
-
},
|
|
16781
|
+
headers: n = {},
|
|
16784
16782
|
responseType: o = "json",
|
|
16785
16783
|
timeout: l = 3e4,
|
|
16786
16784
|
boundary: h = ""
|
|
16787
|
-
} = r
|
|
16785
|
+
} = r;
|
|
16786
|
+
Object.assign(n, {
|
|
16787
|
+
Accept: "*/*"
|
|
16788
|
+
// POST 出错
|
|
16789
|
+
// Authorization: "Bearer efded2d72a664f9799e08266d801000c"
|
|
16790
|
+
});
|
|
16791
|
+
const f = vu();
|
|
16788
16792
|
f.onreadystatechange = function(u) {
|
|
16789
16793
|
f.readyState === 4 && (f.status === 200 ? e(f.response) : t(f.statusText));
|
|
16790
16794
|
}, f.ontimeout = function() {
|
|
@@ -16829,7 +16833,8 @@ function x_(r) {
|
|
|
16829
16833
|
},
|
|
16830
16834
|
!1
|
|
16831
16835
|
), f.timeout = l, f.responseType = o;
|
|
16832
|
-
|
|
16836
|
+
const d = i.toUpperCase();
|
|
16837
|
+
function c() {
|
|
16833
16838
|
for (const u in n)
|
|
16834
16839
|
f.setRequestHeader(u, n[u]);
|
|
16835
16840
|
h && f.setRequestHeader(
|
|
@@ -16837,14 +16842,13 @@ function x_(r) {
|
|
|
16837
16842
|
"multipart/form-data; boundary=" + h
|
|
16838
16843
|
);
|
|
16839
16844
|
}
|
|
16840
|
-
|
|
16841
|
-
if (c === "GET") {
|
|
16845
|
+
if (d === "GET") {
|
|
16842
16846
|
let u = "";
|
|
16843
|
-
typeof a == "string" ? u = a : a instanceof FormData ? u = cf(a) : uo(a) && (u = R6(a)), f.open("GET", I1(s, u), !0),
|
|
16847
|
+
typeof a == "string" ? u = a : a instanceof FormData ? u = cf(a) : uo(a) && (u = R6(a)), f.open("GET", I1(s, u), !0), c(), f.send(null);
|
|
16844
16848
|
} else
|
|
16845
|
-
|
|
16849
|
+
d === "POST" ? (f.open("POST", s, !0), c(), h ? f.sendAsBinary(h + `\r
|
|
16846
16850
|
` + a + h + `--\r
|
|
16847
|
-
`) : f.send(JSON.stringify(a))) : (f.open(
|
|
16851
|
+
`) : f.send(JSON.stringify(a))) : (f.open(d, s, !0), c(), f.send(JSON.stringify(a)));
|
|
16848
16852
|
});
|
|
16849
16853
|
}
|
|
16850
16854
|
function eT(r, e) {
|