mvframe 1.0.96 → 1.1.1
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/.cursor/rules/style-system.mdc +1 -1
- package/dist/composition.js +36 -36
- package/dist/css/style.css +1 -1
- package/dist/vendor.js +1 -1
- package/package.json +1 -1
|
@@ -119,7 +119,7 @@ alwaysApply: true
|
|
|
119
119
|
|
|
120
120
|
### 渐变色字体 .colorfulFont
|
|
121
121
|
|
|
122
|
-
需配合 `background-clip: text
|
|
122
|
+
需配合 `background-clip: text`;颜色变体与 `var.scss` 中 `$colorNames` 自动同步,当前会为 `primary`、`blue`、`green`、`orange`、`red`、`purple`、`pink`、`yellow` 生成渐变类,不为 `white` / `black` / `body` / `dark` / `gray` 生成。
|
|
123
123
|
|
|
124
124
|
## 4. 布局(layout.scss)
|
|
125
125
|
|
package/dist/composition.js
CHANGED
|
@@ -23,9 +23,9 @@ const q = "lang", ye = (e, t) => {
|
|
|
23
23
|
pageWidth: s.innerWidth
|
|
24
24
|
};
|
|
25
25
|
f && (c.visualViewportWidth = f.width, c.visualViewportHeight = f.height, c.visualViewportScale = f.scale);
|
|
26
|
-
const
|
|
26
|
+
const h = l.userAgent || "";
|
|
27
27
|
return c.env = {
|
|
28
|
-
userAgent:
|
|
28
|
+
userAgent: h,
|
|
29
29
|
language: l.language || "",
|
|
30
30
|
languages: l.languages ? [...l.languages] : [],
|
|
31
31
|
platform: l.platform || "",
|
|
@@ -34,7 +34,7 @@ const q = "lang", ye = (e, t) => {
|
|
|
34
34
|
maxTouchPoints: l.maxTouchPoints || 0,
|
|
35
35
|
isTouch: "ontouchstart" in s || (l.maxTouchPoints || 0) > 0,
|
|
36
36
|
isMobile: /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile/i.test(
|
|
37
|
-
|
|
37
|
+
h
|
|
38
38
|
)
|
|
39
39
|
}, console.info(c), c;
|
|
40
40
|
}, o = () => {
|
|
@@ -59,12 +59,12 @@ const q = "lang", ye = (e, t) => {
|
|
|
59
59
|
W(i),
|
|
60
60
|
((f = globalThis.$config) == null ? void 0 : f.langMaps) || {},
|
|
61
61
|
r.langMaps || {}
|
|
62
|
-
), s = (c,
|
|
62
|
+
), s = (c, h) => {
|
|
63
63
|
if (c)
|
|
64
|
-
if (
|
|
64
|
+
if (h && globalThis.$getType(h) === "Object") {
|
|
65
65
|
let m = a[c] || c;
|
|
66
|
-
return Object.keys(
|
|
67
|
-
m[`{${
|
|
66
|
+
return Object.keys(h).forEach((p) => {
|
|
67
|
+
m[`{${p}}`] = h[p];
|
|
68
68
|
}), m;
|
|
69
69
|
} else
|
|
70
70
|
return a[c] || c;
|
|
@@ -136,16 +136,16 @@ const q = "lang", ye = (e, t) => {
|
|
|
136
136
|
response: u = "blob",
|
|
137
137
|
openIn: f = "self",
|
|
138
138
|
expectExcel: c,
|
|
139
|
-
filename:
|
|
139
|
+
filename: h,
|
|
140
140
|
name: m,
|
|
141
|
-
error:
|
|
141
|
+
error: p = () => {
|
|
142
142
|
},
|
|
143
143
|
// 避免 legacy 字段渗入后续逻辑
|
|
144
|
-
type:
|
|
145
|
-
data:
|
|
144
|
+
type: de,
|
|
145
|
+
data: pe,
|
|
146
146
|
headers: fe,
|
|
147
|
-
...
|
|
148
|
-
} = t, v =
|
|
147
|
+
...he
|
|
148
|
+
} = t, v = h ?? m;
|
|
149
149
|
try {
|
|
150
150
|
if (r === "inline") {
|
|
151
151
|
if (o instanceof Blob) {
|
|
@@ -153,31 +153,31 @@ const q = "lang", ye = (e, t) => {
|
|
|
153
153
|
return;
|
|
154
154
|
}
|
|
155
155
|
if (n == null) {
|
|
156
|
-
|
|
156
|
+
p(new Error("content or blob is required for inline"));
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
|
-
const
|
|
159
|
+
const d = typeof n == "string" ? n : String(n), R = i ? "\uFEFF" + d : d, P = a || (i ? "text/csv;charset=utf-8" : "text/plain;charset=utf-8");
|
|
160
160
|
$(new Blob([R], { type: P }), v);
|
|
161
161
|
return;
|
|
162
162
|
}
|
|
163
163
|
if (r === "fetch") {
|
|
164
164
|
if (!s) {
|
|
165
|
-
|
|
165
|
+
p(new Error("url is required for fetch"));
|
|
166
166
|
return;
|
|
167
167
|
}
|
|
168
|
-
const
|
|
169
|
-
if (!
|
|
170
|
-
|
|
168
|
+
const d = await fetch(s, l);
|
|
169
|
+
if (!d.ok) {
|
|
170
|
+
p(new Error(`fetch failed: ${d.status}`));
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
173
|
if (u === "text") {
|
|
174
|
-
const P = await
|
|
174
|
+
const P = await d.text(), B = i ? "\uFEFF" + P : P, U = a || (i ? "text/csv;charset=utf-8" : "text/plain;charset=utf-8");
|
|
175
175
|
$(new Blob([B], { type: U }), v);
|
|
176
176
|
return;
|
|
177
177
|
}
|
|
178
|
-
const R = await
|
|
178
|
+
const R = await d.blob();
|
|
179
179
|
if (c && !z(R)) {
|
|
180
|
-
|
|
180
|
+
p(new Error("excel does not exist"));
|
|
181
181
|
return;
|
|
182
182
|
}
|
|
183
183
|
$(R, v);
|
|
@@ -185,15 +185,15 @@ const q = "lang", ye = (e, t) => {
|
|
|
185
185
|
}
|
|
186
186
|
if (r === "open") {
|
|
187
187
|
if (!s) {
|
|
188
|
-
|
|
188
|
+
p(new Error("url is required for open"));
|
|
189
189
|
return;
|
|
190
190
|
}
|
|
191
191
|
f === "blank" ? window.open(s, "_blank", "noopener,noreferrer") : window.location.href = s;
|
|
192
192
|
return;
|
|
193
193
|
}
|
|
194
|
-
|
|
195
|
-
} catch (
|
|
196
|
-
d
|
|
194
|
+
p(new Error(`unknown source: ${r}`));
|
|
195
|
+
} catch (d) {
|
|
196
|
+
p(d instanceof Error ? d : new Error(String(d)));
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
199
|
function K(e, t, r) {
|
|
@@ -370,19 +370,19 @@ const E = C.create({
|
|
|
370
370
|
timeout: 0,
|
|
371
371
|
withCredentials: !1
|
|
372
372
|
});
|
|
373
|
-
let
|
|
373
|
+
let g = [];
|
|
374
374
|
const ie = C.CancelToken, ae = (e) => {
|
|
375
375
|
const t = e.url + "_" + e.headers["Content-HI"] + "_" + e.ex, r = [];
|
|
376
|
-
if (
|
|
377
|
-
for (let n in
|
|
378
|
-
|
|
379
|
-
r.length > 0 && (
|
|
376
|
+
if (g.length)
|
|
377
|
+
for (let n in g)
|
|
378
|
+
g[n].v === t && r.push(n);
|
|
379
|
+
r.length > 0 && (g[r[0]].cb(), g.splice(r[0], 1));
|
|
380
380
|
}, _ = (e) => {
|
|
381
381
|
if (e != null && e.url) {
|
|
382
382
|
const t = e.url + "_" + e.headers["Content-HI"] + "_" + e.ex;
|
|
383
|
-
for (let r in
|
|
384
|
-
if (
|
|
385
|
-
|
|
383
|
+
for (let r in g)
|
|
384
|
+
if (g[r].v === t) {
|
|
385
|
+
g.splice(r, 1);
|
|
386
386
|
break;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
@@ -391,8 +391,8 @@ E.interceptors.request.use(
|
|
|
391
391
|
(e) => {
|
|
392
392
|
e.headers = e.headers || {};
|
|
393
393
|
const { login: t, accountInfo: r = {} } = window.$store.launch(), { access_token: n } = t.info;
|
|
394
|
-
return n && e.headers["Content-HI"] && (e.headers.Authorization = `Bearer ${n}`), r.partner_org_id && (e.data ? e.method.toLowerCase() === "get" ? e.params.
|
|
395
|
-
|
|
394
|
+
return n && e.headers["Content-HI"] && (e.headers.Authorization = `Bearer ${n}`), r.partner_org_id && (e.data ? e.method.toLowerCase() === "get" ? e.params.account_id = r.partner_org_id : e.data.account_id = r.partner_org_id : e.method.toLowerCase() === "get" ? e.params = { account_id: r.partner_org_id } : e.data = { account_id: r.partner_org_id }), ae(e), e.cancelToken = new ie((o) => {
|
|
395
|
+
g.push({
|
|
396
396
|
v: e.url + "_" + e.headers["Content-HI"] + "_" + e.ex,
|
|
397
397
|
cb: o
|
|
398
398
|
});
|