@marktowin/prototype-core 1.2.0 → 1.2.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as dn, computed as C, openBlock as p, createBlock as Ge, resolveDynamicComponent as qo, createElementBlock as f, Fragment as _, renderList as E, normalizeClass as D, createTextVNode as
|
|
1
|
+
import { defineComponent as dn, computed as C, openBlock as p, createBlock as Ge, resolveDynamicComponent as qo, createElementBlock as f, Fragment as _, renderList as E, normalizeClass as D, createTextVNode as H, toDisplayString as c, createElementVNode as e, normalizeStyle as we, createCommentVNode as S, ref as h, watch as Re, createVNode as W, Transition as bl, withCtx as wl, unref as l, withModifiers as ce, withDirectives as N, vModelText as G, createStaticVNode as al, reactive as Xn, onBeforeUnmount as Ha, vModelSelect as Ae, nextTick as Da, onMounted as au, isRef as $n, vModelCheckbox as su, withKeys as lu } from "vue";
|
|
2
2
|
import { Save as iu, CloudUpload as ru, Download as uu, X as eo, Plus as Zn, ChevronDown as cu, ChevronRight as du, Trash2 as _n, RefreshCw as pu, AlertTriangle as vu, CheckCircle2 as fu, CircleDot as sl, Bug as mu, ImagePlus as ll, Filter as gu, Search as hu, Check as yu, CircleAlert as bu, Clipboard as wu, SunMedium as Su, RotateCcw as ku, PanelTop as Sl, BookOpen as xu, Keyboard as Cu } from "@lucide/vue";
|
|
3
|
-
import { g as so, a as $u, s as Iu } from "./index-
|
|
3
|
+
import { g as so, a as $u, s as Iu } from "./index-B6sdCuQy.js";
|
|
4
4
|
const qn = /* @__PURE__ */ dn({
|
|
5
5
|
__name: "ScreenRenderer",
|
|
6
6
|
props: {
|
|
@@ -25,7 +25,7 @@ const qn = /* @__PURE__ */ dn({
|
|
|
25
25
|
onClick: (u) => n.$emit("change", i.id)
|
|
26
26
|
}, [
|
|
27
27
|
(p(), Ge(qo(i.icon), { class: "h-5 w-5" })),
|
|
28
|
-
|
|
28
|
+
H(" " + c(i.label), 1)
|
|
29
29
|
], 10, Du))), 128))
|
|
30
30
|
]));
|
|
31
31
|
}
|
|
@@ -60,7 +60,7 @@ const qn = /* @__PURE__ */ dn({
|
|
|
60
60
|
style: we({ backgroundColor: t.highlightedColors[m.id] }),
|
|
61
61
|
"aria-hidden": "true"
|
|
62
62
|
}, null, 4)) : (p(), f("span", Eu)),
|
|
63
|
-
|
|
63
|
+
H(" " + c(m.label) + " ", 1),
|
|
64
64
|
e("div", Tu, [
|
|
65
65
|
(b = t.countForState) != null && b.call(t, m.id) ? (p(), f("b", Ou, c(t.countForState(m.id)), 1)) : S("", !0)
|
|
66
66
|
])
|
|
@@ -170,7 +170,7 @@ const qn = /* @__PURE__ */ dn({
|
|
|
170
170
|
function et(k) {
|
|
171
171
|
u.value[k].rows.push([]), He(k, u.value[k].rows.length - 1);
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function z(k, x) {
|
|
174
174
|
const B = u.value[k];
|
|
175
175
|
B.rows.length <= 1 || (B.rows.splice(x, 1), g.value >= B.rows.length && (g.value = Math.max(0, B.rows.length - 1)));
|
|
176
176
|
}
|
|
@@ -338,7 +338,7 @@ const qn = /* @__PURE__ */ dn({
|
|
|
338
338
|
onClick: at
|
|
339
339
|
}, [
|
|
340
340
|
W(l(iu), { class: "h-4 w-4" }),
|
|
341
|
-
|
|
341
|
+
H(" " + c(Le.value ? "保存中…" : "保存到当前会话"), 1)
|
|
342
342
|
], 8, Lu),
|
|
343
343
|
e("button", {
|
|
344
344
|
class: "flex items-center gap-1.5 rounded-lg bg-ink px-3 py-1.5 text-sm font-medium text-white transition hover:bg-ocean disabled:cursor-not-allowed disabled:opacity-40",
|
|
@@ -347,14 +347,14 @@ const qn = /* @__PURE__ */ dn({
|
|
|
347
347
|
onClick: wt
|
|
348
348
|
}, [
|
|
349
349
|
W(l(ru), { class: "h-4 w-4" }),
|
|
350
|
-
|
|
350
|
+
H(" " + c(Fe.value ? "推送中…" : "推送到 Gitee"), 1)
|
|
351
351
|
], 8, Fu),
|
|
352
352
|
e("button", {
|
|
353
353
|
class: "flex items-center gap-1.5 rounded-lg bg-ocean px-3 py-1.5 text-sm font-medium text-white hover:opacity-90 transition",
|
|
354
354
|
onClick: pn
|
|
355
355
|
}, [
|
|
356
356
|
W(l(uu), { class: "h-4 w-4" }),
|
|
357
|
-
x[5] || (x[5] =
|
|
357
|
+
x[5] || (x[5] = H(" 导出 JSON ", -1))
|
|
358
358
|
]),
|
|
359
359
|
e("button", {
|
|
360
360
|
class: "flex h-8 w-8 items-center justify-center rounded-full bg-soft text-ink hover:bg-canvas transition",
|
|
@@ -372,7 +372,7 @@ const qn = /* @__PURE__ */ dn({
|
|
|
372
372
|
onClick: dt
|
|
373
373
|
}, [
|
|
374
374
|
W(l(Zn), { class: "h-4 w-4" }),
|
|
375
|
-
x[6] || (x[6] =
|
|
375
|
+
x[6] || (x[6] = H(" 新建主流程 ", -1))
|
|
376
376
|
])
|
|
377
377
|
]),
|
|
378
378
|
e("div", zu, [
|
|
@@ -420,7 +420,7 @@ const qn = /* @__PURE__ */ dn({
|
|
|
420
420
|
e("button", {
|
|
421
421
|
class: "text-muted hover:text-danger transition opacity-0 group-hover/row:opacity-100",
|
|
422
422
|
title: "删除子流程",
|
|
423
|
-
onClick: ce((ke) =>
|
|
423
|
+
onClick: ce((ke) => z(J, ue), ["stop"])
|
|
424
424
|
}, [
|
|
425
425
|
W(l(_n), { class: "h-3 w-3" })
|
|
426
426
|
], 8, qu)
|
|
@@ -430,7 +430,7 @@ const qn = /* @__PURE__ */ dn({
|
|
|
430
430
|
onClick: (Se) => et(J)
|
|
431
431
|
}, [
|
|
432
432
|
W(l(Zn), { class: "h-3 w-3" }),
|
|
433
|
-
x[7] || (x[7] =
|
|
433
|
+
x[7] || (x[7] = H(" 添加子流程 ", -1))
|
|
434
434
|
], 8, Qu)
|
|
435
435
|
])) : S("", !0)
|
|
436
436
|
], 2))), 128))
|
|
@@ -460,7 +460,7 @@ const qn = /* @__PURE__ */ dn({
|
|
|
460
460
|
"aria-label": "缩略图缩放"
|
|
461
461
|
}, null, 512), [
|
|
462
462
|
[
|
|
463
|
-
|
|
463
|
+
G,
|
|
464
464
|
T.value,
|
|
465
465
|
void 0,
|
|
466
466
|
{ number: !0 }
|
|
@@ -474,7 +474,7 @@ const qn = /* @__PURE__ */ dn({
|
|
|
474
474
|
onClick: oe
|
|
475
475
|
}, [
|
|
476
476
|
W(l(Zn), { class: "h-3.5 w-3.5" }),
|
|
477
|
-
x[10] || (x[10] =
|
|
477
|
+
x[10] || (x[10] = H(" 新增空行 ", -1))
|
|
478
478
|
])) : S("", !0)
|
|
479
479
|
])
|
|
480
480
|
]),
|
|
@@ -543,9 +543,9 @@ const qn = /* @__PURE__ */ dn({
|
|
|
543
543
|
e("span", yc, c(((Se = Ze(P.screenId)) == null ? void 0 : Se.title) ?? P.screenId), 1)
|
|
544
544
|
]),
|
|
545
545
|
e("span", bc, [
|
|
546
|
-
|
|
546
|
+
H(c(((ue = Ze(P.screenId)) == null ? void 0 : ue.code) ?? ""), 1),
|
|
547
547
|
P.stateId ? (p(), f(_, { key: 0 }, [
|
|
548
|
-
|
|
548
|
+
H(" · " + c(ze(P).stateLabel), 1)
|
|
549
549
|
], 64)) : S("", !0)
|
|
550
550
|
])
|
|
551
551
|
], 46, rc);
|
|
@@ -1176,7 +1176,7 @@ const xd = { class: "bug-page" }, Cd = { class: "bug-page-head" }, $d = ["disabl
|
|
|
1176
1176
|
} catch {
|
|
1177
1177
|
}
|
|
1178
1178
|
}
|
|
1179
|
-
const
|
|
1179
|
+
const z = Xn({
|
|
1180
1180
|
reporterName: Qe(),
|
|
1181
1181
|
title: "",
|
|
1182
1182
|
type: "功能异常",
|
|
@@ -1317,7 +1317,7 @@ const xd = { class: "bug-page" }, Cd = { class: "bug-page-head" }, $d = ["disabl
|
|
|
1317
1317
|
}
|
|
1318
1318
|
async function ho() {
|
|
1319
1319
|
Z.value = "", ge.value = "";
|
|
1320
|
-
const w =
|
|
1320
|
+
const w = z.reporterName.trim(), d = z.title.trim(), V = z.description.trim(), v = z.sourceSideVersion.trim();
|
|
1321
1321
|
if (!w || !d || !V) {
|
|
1322
1322
|
Z.value = "请填写提报人姓名、标题和问题描述";
|
|
1323
1323
|
return;
|
|
@@ -1336,11 +1336,11 @@ const xd = { class: "bug-page" }, Cd = { class: "bug-page-head" }, $d = ["disabl
|
|
|
1336
1336
|
return [{
|
|
1337
1337
|
id: U,
|
|
1338
1338
|
title: d,
|
|
1339
|
-
type:
|
|
1340
|
-
severity:
|
|
1341
|
-
sourceSide:
|
|
1339
|
+
type: z.type,
|
|
1340
|
+
severity: z.severity,
|
|
1341
|
+
sourceSide: z.sourceSide,
|
|
1342
1342
|
sourceSideVersion: v || void 0,
|
|
1343
|
-
ownerRole:
|
|
1343
|
+
ownerRole: z.ownerRole,
|
|
1344
1344
|
status: "待处理",
|
|
1345
1345
|
description: V,
|
|
1346
1346
|
reporterName: w,
|
|
@@ -1349,7 +1349,7 @@ const xd = { class: "bug-page" }, Cd = { class: "bug-page-head" }, $d = ["disabl
|
|
|
1349
1349
|
attachments: xe,
|
|
1350
1350
|
history: []
|
|
1351
1351
|
}, ...Be];
|
|
1352
|
-
}) && (vt(), et(w),
|
|
1352
|
+
}) && (vt(), et(w), z.reporterName = w, z.title = "", z.sourceSideVersion = v, z.description = "", re.value = U);
|
|
1353
1353
|
}
|
|
1354
1354
|
Ha(() => {
|
|
1355
1355
|
vt();
|
|
@@ -1528,95 +1528,95 @@ const xd = { class: "bug-page" }, Cd = { class: "bug-page-head" }, $d = ["disabl
|
|
|
1528
1528
|
e("label", null, [
|
|
1529
1529
|
d[46] || (d[46] = e("span", null, "提报人姓名", -1)),
|
|
1530
1530
|
N(e("input", {
|
|
1531
|
-
"onUpdate:modelValue": d[2] || (d[2] = (v) =>
|
|
1531
|
+
"onUpdate:modelValue": d[2] || (d[2] = (v) => z.reporterName = v),
|
|
1532
1532
|
type: "text",
|
|
1533
1533
|
placeholder: "请输入姓名"
|
|
1534
1534
|
}, null, 512), [
|
|
1535
|
-
[
|
|
1535
|
+
[G, z.reporterName]
|
|
1536
1536
|
])
|
|
1537
1537
|
]),
|
|
1538
1538
|
e("label", null, [
|
|
1539
1539
|
d[47] || (d[47] = e("span", null, "标题", -1)),
|
|
1540
1540
|
N(e("input", {
|
|
1541
|
-
"onUpdate:modelValue": d[3] || (d[3] = (v) =>
|
|
1541
|
+
"onUpdate:modelValue": d[3] || (d[3] = (v) => z.title = v),
|
|
1542
1542
|
type: "text",
|
|
1543
1543
|
placeholder: "用一句话描述问题"
|
|
1544
1544
|
}, null, 512), [
|
|
1545
|
-
[
|
|
1545
|
+
[G, z.title]
|
|
1546
1546
|
])
|
|
1547
1547
|
]),
|
|
1548
1548
|
e("div", Rd, [
|
|
1549
1549
|
e("label", null, [
|
|
1550
1550
|
d[48] || (d[48] = e("span", null, "类型", -1)),
|
|
1551
1551
|
N(e("select", {
|
|
1552
|
-
"onUpdate:modelValue": d[4] || (d[4] = (v) =>
|
|
1552
|
+
"onUpdate:modelValue": d[4] || (d[4] = (v) => z.type = v)
|
|
1553
1553
|
}, [
|
|
1554
1554
|
(p(!0), f(_, null, E(l(u), (v) => (p(), f("option", {
|
|
1555
1555
|
key: v,
|
|
1556
1556
|
value: v
|
|
1557
1557
|
}, c(v), 9, Bd))), 128))
|
|
1558
1558
|
], 512), [
|
|
1559
|
-
[Ae,
|
|
1559
|
+
[Ae, z.type]
|
|
1560
1560
|
])
|
|
1561
1561
|
]),
|
|
1562
1562
|
e("label", null, [
|
|
1563
1563
|
d[49] || (d[49] = e("span", null, "等级", -1)),
|
|
1564
1564
|
N(e("select", {
|
|
1565
|
-
"onUpdate:modelValue": d[5] || (d[5] = (v) =>
|
|
1565
|
+
"onUpdate:modelValue": d[5] || (d[5] = (v) => z.severity = v)
|
|
1566
1566
|
}, [
|
|
1567
1567
|
(p(!0), f(_, null, E(l(m), (v) => (p(), f("option", {
|
|
1568
1568
|
key: v,
|
|
1569
1569
|
value: v
|
|
1570
1570
|
}, c(v), 9, jd))), 128))
|
|
1571
1571
|
], 512), [
|
|
1572
|
-
[Ae,
|
|
1572
|
+
[Ae, z.severity]
|
|
1573
1573
|
])
|
|
1574
1574
|
]),
|
|
1575
1575
|
e("label", null, [
|
|
1576
1576
|
d[50] || (d[50] = e("span", null, "发生侧", -1)),
|
|
1577
1577
|
N(e("select", {
|
|
1578
|
-
"onUpdate:modelValue": d[6] || (d[6] = (v) =>
|
|
1578
|
+
"onUpdate:modelValue": d[6] || (d[6] = (v) => z.sourceSide = v)
|
|
1579
1579
|
}, [
|
|
1580
1580
|
(p(!0), f(_, null, E(l(g), (v) => (p(), f("option", {
|
|
1581
1581
|
key: v,
|
|
1582
1582
|
value: v
|
|
1583
1583
|
}, c(v), 9, Md))), 128))
|
|
1584
1584
|
], 512), [
|
|
1585
|
-
[Ae,
|
|
1585
|
+
[Ae, z.sourceSide]
|
|
1586
1586
|
])
|
|
1587
1587
|
]),
|
|
1588
1588
|
e("label", null, [
|
|
1589
1589
|
d[51] || (d[51] = e("span", null, "发生侧版本", -1)),
|
|
1590
1590
|
N(e("input", {
|
|
1591
|
-
"onUpdate:modelValue": d[7] || (d[7] = (v) =>
|
|
1591
|
+
"onUpdate:modelValue": d[7] || (d[7] = (v) => z.sourceSideVersion = v),
|
|
1592
1592
|
type: "text",
|
|
1593
1593
|
list: "bug-source-side-version-options",
|
|
1594
1594
|
placeholder: "如 iOS 1.2.3 / 后端 2026.06"
|
|
1595
1595
|
}, null, 512), [
|
|
1596
|
-
[
|
|
1596
|
+
[G, z.sourceSideVersion]
|
|
1597
1597
|
])
|
|
1598
1598
|
]),
|
|
1599
1599
|
e("label", null, [
|
|
1600
1600
|
d[52] || (d[52] = e("span", null, "归属", -1)),
|
|
1601
1601
|
N(e("select", {
|
|
1602
|
-
"onUpdate:modelValue": d[8] || (d[8] = (v) =>
|
|
1602
|
+
"onUpdate:modelValue": d[8] || (d[8] = (v) => z.ownerRole = v)
|
|
1603
1603
|
}, [
|
|
1604
1604
|
(p(!0), f(_, null, E(l(b), (v) => (p(), f("option", {
|
|
1605
1605
|
key: v,
|
|
1606
1606
|
value: v
|
|
1607
1607
|
}, c(v), 9, Ud))), 128))
|
|
1608
1608
|
], 512), [
|
|
1609
|
-
[Ae,
|
|
1609
|
+
[Ae, z.ownerRole]
|
|
1610
1610
|
])
|
|
1611
1611
|
])
|
|
1612
1612
|
]),
|
|
1613
1613
|
e("label", null, [
|
|
1614
1614
|
d[53] || (d[53] = e("span", null, "问题描述", -1)),
|
|
1615
1615
|
N(e("textarea", {
|
|
1616
|
-
"onUpdate:modelValue": d[9] || (d[9] = (v) =>
|
|
1616
|
+
"onUpdate:modelValue": d[9] || (d[9] = (v) => z.description = v),
|
|
1617
1617
|
placeholder: "描述复现步骤、实际结果和期望结果"
|
|
1618
1618
|
}, null, 512), [
|
|
1619
|
-
[
|
|
1619
|
+
[G, z.description]
|
|
1620
1620
|
])
|
|
1621
1621
|
]),
|
|
1622
1622
|
e("section", Vd, [
|
|
@@ -1655,9 +1655,9 @@ const xd = { class: "bug-page" }, Cd = { class: "bug-page-head" }, $d = ["disabl
|
|
|
1655
1655
|
e("div", null, [
|
|
1656
1656
|
e("b", null, c(v.name), 1),
|
|
1657
1657
|
e("span", null, [
|
|
1658
|
-
|
|
1658
|
+
H(c(k(v.size)), 1),
|
|
1659
1659
|
v.originalSize !== v.size ? (p(), f(_, { key: 0 }, [
|
|
1660
|
-
|
|
1660
|
+
H(" / 原图 " + c(k(v.originalSize)), 1)
|
|
1661
1661
|
], 64)) : S("", !0)
|
|
1662
1662
|
]),
|
|
1663
1663
|
v.error ? (p(), f("small", Hd, c(v.error), 1)) : S("", !0)
|
|
@@ -1761,7 +1761,7 @@ const xd = { class: "bug-page" }, Cd = { class: "bug-page-head" }, $d = ["disabl
|
|
|
1761
1761
|
type: "search",
|
|
1762
1762
|
placeholder: "搜索标题、描述、人员、发生侧版本"
|
|
1763
1763
|
}, null, 512), [
|
|
1764
|
-
[
|
|
1764
|
+
[G, O.keyword]
|
|
1765
1765
|
])
|
|
1766
1766
|
])
|
|
1767
1767
|
]),
|
|
@@ -1854,9 +1854,9 @@ const xd = { class: "bug-page" }, Cd = { class: "bug-page-head" }, $d = ["disabl
|
|
|
1854
1854
|
v.attachments.length > 3 ? (p(), f("span", Sp, "+" + c(v.attachments.length - 3), 1)) : S("", !0)
|
|
1855
1855
|
])) : S("", !0),
|
|
1856
1856
|
e("small", null, [
|
|
1857
|
-
|
|
1857
|
+
H("提报人:" + c(v.reporterName) + " · " + c(Zt(v.createdAt)), 1),
|
|
1858
1858
|
v.fixerName ? (p(), f(_, { key: 0 }, [
|
|
1859
|
-
|
|
1859
|
+
H(" · 修复人:" + c(v.fixerName), 1)
|
|
1860
1860
|
], 64)) : S("", !0)
|
|
1861
1861
|
])
|
|
1862
1862
|
]),
|
|
@@ -1932,7 +1932,7 @@ const xd = { class: "bug-page" }, Cd = { class: "bug-page-head" }, $d = ["disabl
|
|
|
1932
1932
|
onClick: aa
|
|
1933
1933
|
}, [
|
|
1934
1934
|
W(l(_n), { class: "h-4 w-4" }),
|
|
1935
|
-
d[66] || (d[66] =
|
|
1935
|
+
d[66] || (d[66] = H(" 删除 Bug ", -1))
|
|
1936
1936
|
]))
|
|
1937
1937
|
]),
|
|
1938
1938
|
le.value ? (p(), f("form", {
|
|
@@ -1952,7 +1952,7 @@ const xd = { class: "bug-page" }, Cd = { class: "bug-page-head" }, $d = ["disabl
|
|
|
1952
1952
|
autocomplete: "off",
|
|
1953
1953
|
placeholder: "请输入密钥"
|
|
1954
1954
|
}, null, 512), [
|
|
1955
|
-
[
|
|
1955
|
+
[G, se.value]
|
|
1956
1956
|
])
|
|
1957
1957
|
]),
|
|
1958
1958
|
Ve.value ? (p(), f("p", Ep, c(Ve.value), 1)) : S("", !0),
|
|
@@ -1979,7 +1979,7 @@ const xd = { class: "bug-page" }, Cd = { class: "bug-page-head" }, $d = ["disabl
|
|
|
1979
1979
|
"onUpdate:modelValue": d[25] || (d[25] = (v) => F.title = v),
|
|
1980
1980
|
type: "text"
|
|
1981
1981
|
}, null, 512), [
|
|
1982
|
-
[
|
|
1982
|
+
[G, F.title]
|
|
1983
1983
|
])
|
|
1984
1984
|
]),
|
|
1985
1985
|
e("div", Op, [
|
|
@@ -2030,7 +2030,7 @@ const xd = { class: "bug-page" }, Cd = { class: "bug-page-head" }, $d = ["disabl
|
|
|
2030
2030
|
list: "bug-source-side-version-options",
|
|
2031
2031
|
placeholder: "如 iOS 1.2.3 / 后端 2026.06"
|
|
2032
2032
|
}, null, 512), [
|
|
2033
|
-
[
|
|
2033
|
+
[G, F.sourceSideVersion]
|
|
2034
2034
|
])
|
|
2035
2035
|
]),
|
|
2036
2036
|
e("label", null, [
|
|
@@ -2052,7 +2052,7 @@ const xd = { class: "bug-page" }, Cd = { class: "bug-page-head" }, $d = ["disabl
|
|
|
2052
2052
|
N(e("textarea", {
|
|
2053
2053
|
"onUpdate:modelValue": d[31] || (d[31] = (v) => F.description = v)
|
|
2054
2054
|
}, null, 512), [
|
|
2055
|
-
[
|
|
2055
|
+
[G, F.description]
|
|
2056
2056
|
])
|
|
2057
2057
|
]),
|
|
2058
2058
|
e("section", Up, [
|
|
@@ -2181,7 +2181,7 @@ const xd = { class: "bug-page" }, Cd = { class: "bug-page-head" }, $d = ["disabl
|
|
|
2181
2181
|
type: "text",
|
|
2182
2182
|
placeholder: "必填"
|
|
2183
2183
|
}, null, 512), [
|
|
2184
|
-
[
|
|
2184
|
+
[G, Q.operatorName]
|
|
2185
2185
|
])
|
|
2186
2186
|
]),
|
|
2187
2187
|
e("label", null, [
|
|
@@ -2191,7 +2191,7 @@ const xd = { class: "bug-page" }, Cd = { class: "bug-page-head" }, $d = ["disabl
|
|
|
2191
2191
|
type: "text",
|
|
2192
2192
|
placeholder: Q.status === "已修复" ? "已修复时必填" : "选填"
|
|
2193
2193
|
}, null, 8, rv), [
|
|
2194
|
-
[
|
|
2194
|
+
[G, Q.fixerName]
|
|
2195
2195
|
])
|
|
2196
2196
|
])
|
|
2197
2197
|
]),
|
|
@@ -2201,7 +2201,7 @@ const xd = { class: "bug-page" }, Cd = { class: "bug-page-head" }, $d = ["disabl
|
|
|
2201
2201
|
"onUpdate:modelValue": d[36] || (d[36] = (v) => Q.note = v),
|
|
2202
2202
|
placeholder: "说明修复内容、验证结论或无需处理原因"
|
|
2203
2203
|
}, null, 512), [
|
|
2204
|
-
[
|
|
2204
|
+
[G, Q.note]
|
|
2205
2205
|
])
|
|
2206
2206
|
]),
|
|
2207
2207
|
ze.value ? (p(), f("p", uv, c(ze.value), 1)) : S("", !0),
|
|
@@ -2768,7 +2768,7 @@ Git 状态:未提交 / 已提交 / 已推送
|
|
|
2768
2768
|
__name: "PrototypeCoreHelpPage",
|
|
2769
2769
|
emits: ["close"],
|
|
2770
2770
|
setup(t) {
|
|
2771
|
-
const n = h("idle"), s = "1.2.
|
|
2771
|
+
const n = h("idle"), s = "1.2.1";
|
|
2772
2772
|
let i;
|
|
2773
2773
|
function u() {
|
|
2774
2774
|
const g = document.createElement("textarea");
|
|
@@ -2815,7 +2815,7 @@ Git 状态:未提交 / 已提交 / 已推送
|
|
|
2815
2815
|
key: 2,
|
|
2816
2816
|
class: "h-4 w-4"
|
|
2817
2817
|
})),
|
|
2818
|
-
|
|
2818
|
+
H(" " + c(n.value === "copied" ? "已复制" : n.value === "error" ? "请手动选择复制" : "复制全文"), 1)
|
|
2819
2819
|
]),
|
|
2820
2820
|
e("button", {
|
|
2821
2821
|
class: "is-icon",
|
|
@@ -3350,7 +3350,7 @@ async function Ho(t, n) {
|
|
|
3350
3350
|
}
|
|
3351
3351
|
}
|
|
3352
3352
|
async function Cf() {
|
|
3353
|
-
var dt, qe, Qe, et,
|
|
3353
|
+
var dt, qe, Qe, et, z;
|
|
3354
3354
|
typeof window < "u" && (window.__PROTOTYPE_CORE__ = { syncPageDescriptionsFromJson: Ii });
|
|
3355
3355
|
const t = (dt = ft()) == null ? void 0 : dt.getItem(ti);
|
|
3356
3356
|
t && (nt.value = t);
|
|
@@ -3385,7 +3385,7 @@ async function Cf() {
|
|
|
3385
3385
|
}), dl("pageDescriptions", Z);
|
|
3386
3386
|
}
|
|
3387
3387
|
const T = Nn("annotations"), ie = Nn("pageDescriptions"), pe = Object.values(T.scopes).flatMap((Z) => Z.value), q = Object.values(ie.scopes).map((Z) => Z.value), _e = new Set(Object.keys(T.scopes)), De = new Set(Object.keys(ie.scopes)), ct = [...g.annotations.filter((Z) => !_e.has(A(Z.screenId, Z.stateId))), ...pe], me = [...g.pageDescriptions.filter((Z) => !De.has(A(Z.screenId, Z.stateId))), ...q], Ee = $l("flows"), Xe = _e.size ? { value: ct, source: "local-cache" } : { value: g.annotations, source: "local-seed" }, He = De.size ? { value: me, source: "local-cache" } : { value: g.pageDescriptions, source: "local-seed" }, Ze = Xc(Ee, g.flows);
|
|
3388
|
-
X.value = Xe.value, $e.value = He.value, Ce.value = Ze.value, ee("annotations", Xe.source, "idle"), ee("pageDescriptions", He.source, "idle"), ee("flows", Ze.source, "idle"), mt.value = ((
|
|
3388
|
+
X.value = Xe.value, $e.value = He.value, Ce.value = Ze.value, ee("annotations", Xe.source, "idle"), ee("pageDescriptions", He.source, "idle"), ee("flows", Ze.source, "idle"), mt.value = ((z = Ce.value[0]) == null ? void 0 : z.id) ?? "", At.value ? await Zo(!1) : zt.value = be.unavailableReason, go(), ii.value = !0;
|
|
3389
3389
|
}
|
|
3390
3390
|
Re([Pt, gt], () => {
|
|
3391
3391
|
var t;
|
|
@@ -4177,7 +4177,7 @@ const um = {
|
|
|
4177
4177
|
collaborationSources: qe,
|
|
4178
4178
|
collaborationSourceLabel: Qe,
|
|
4179
4179
|
collaborationSourceTone: et,
|
|
4180
|
-
collaborationSourceDetail:
|
|
4180
|
+
collaborationSourceDetail: z,
|
|
4181
4181
|
collaborationLastSyncedAt: Z,
|
|
4182
4182
|
collaborationBootstrapStatus: re,
|
|
4183
4183
|
collaborationBootstrapProgress: O,
|
|
@@ -4270,7 +4270,7 @@ const um = {
|
|
|
4270
4270
|
gitee: "Gitee",
|
|
4271
4271
|
"local-cache": "缓存",
|
|
4272
4272
|
"local-seed": "种子"
|
|
4273
|
-
}, Hi = C(() => dt.codeBranch || "未知分支"), ys = C(() => Z.value ? Date.now() - new Date(Z.value).getTime() < 6e4 ? "刚刚同步" : new Date(Z.value).toLocaleTimeString("zh-CN", { hour: "2-digit", minute: "2-digit" }) : ""), zi = C(() => re.value === "running" ? `${
|
|
4273
|
+
}, Hi = C(() => dt.codeBranch || "未知分支"), ys = C(() => Z.value ? Date.now() - new Date(Z.value).getTime() < 6e4 ? "刚刚同步" : new Date(Z.value).toLocaleTimeString("zh-CN", { hour: "2-digit", minute: "2-digit" }) : ""), zi = C(() => re.value === "running" ? `${z.value} · ${O.value.label}` : re.value === "success" || re.value === "partial" || !dt.remoteWritable || et.value === "conflict" ? z.value : [
|
|
4274
4274
|
`注释 ${ra[qe.value.annotations.source]}`,
|
|
4275
4275
|
`页面描述 ${ra[qe.value.pageDescriptions.source]}`,
|
|
4276
4276
|
`流程 ${ra[qe.value.flows.source]}`
|
|
@@ -4362,7 +4362,7 @@ const um = {
|
|
|
4362
4362
|
]
|
|
4363
4363
|
}
|
|
4364
4364
|
];
|
|
4365
|
-
}), ks = C(() => ca.value.reduce((r, o) => r + o.items.length, 0)), xs = C(() => ca.value.reduce((r, o) => r + o.items.filter((a) => a.configured).length, 0)), da = C(() => ks.value - xs.value), pa = "1.2.
|
|
4365
|
+
}), ks = C(() => ca.value.reduce((r, o) => r + o.items.length, 0)), xs = C(() => ca.value.reduce((r, o) => r + o.items.filter((a) => a.configured).length, 0)), da = C(() => ks.value - xs.value), pa = "1.2.1", va = h(""), nn = h("idle"), Qi = C(() => nn.value === "success" && va.value !== pa), er = C(() => nn.value === "success" ? `v${va.value}` : nn.value === "error" ? "版本暂不可用" : "版本检测中");
|
|
4366
4366
|
async function tr() {
|
|
4367
4367
|
if (nn.value !== "idle") return;
|
|
4368
4368
|
nn.value = "loading";
|
|
@@ -4428,7 +4428,7 @@ const um = {
|
|
|
4428
4428
|
}
|
|
4429
4429
|
const To = h(null), As = h(null), ga = h(0), yn = h(1440), Kn = h(900), bn = h(0), wn = h(120), Oo = h(!1);
|
|
4430
4430
|
let Gn = { x: 0, y: 0, panX: 0, panY: 0 };
|
|
4431
|
-
const
|
|
4431
|
+
const K = C(() => ne.value ? "interactive" : i.value), lr = C(
|
|
4432
4432
|
() => ne.value ? [yt.value] : Le.value
|
|
4433
4433
|
), Sn = C(
|
|
4434
4434
|
() => at.value ? pn(u.value, at.value) : ""
|
|
@@ -4753,13 +4753,13 @@ const um = {
|
|
|
4753
4753
|
function Or() {
|
|
4754
4754
|
if (je.value)
|
|
4755
4755
|
return Math.min(Ra, yn.value, Math.max(0, Kn.value - 48) * 16 / 9);
|
|
4756
|
-
if (
|
|
4757
|
-
if (
|
|
4756
|
+
if (K.value === "overview") return Us.value;
|
|
4757
|
+
if (K.value === "flow") return cy;
|
|
4758
4758
|
const r = ga.value || yn.value;
|
|
4759
4759
|
return Math.min(1440, r, Math.max(0, Kn.value - 120) * 16 / 9);
|
|
4760
4760
|
}
|
|
4761
4761
|
function Rr(r) {
|
|
4762
|
-
const o =
|
|
4762
|
+
const o = K.value === "flow" ? Ri(r) : {};
|
|
4763
4763
|
if (r.platform !== "pc") {
|
|
4764
4764
|
if (!je.value) return o;
|
|
4765
4765
|
const M = Math.min(
|
|
@@ -5196,7 +5196,7 @@ const um = {
|
|
|
5196
5196
|
class: D(["mode-btn bug-nav-btn rounded-full bg-panel ring-1 ring-line", { active: ae.value === "bugs" }]),
|
|
5197
5197
|
onClick: Zr
|
|
5198
5198
|
}, [
|
|
5199
|
-
o[92] || (o[92] =
|
|
5199
|
+
o[92] || (o[92] = H(" Bug ", -1)),
|
|
5200
5200
|
l(hs) ? (p(), f("span", km, c(l(hs)), 1)) : S("", !0)
|
|
5201
5201
|
], 2),
|
|
5202
5202
|
e("div", xm, [
|
|
@@ -5232,7 +5232,7 @@ const um = {
|
|
|
5232
5232
|
class: "theme-swatch",
|
|
5233
5233
|
style: we({ "--swatch-color": l(pt).ocean })
|
|
5234
5234
|
}, null, 4),
|
|
5235
|
-
|
|
5235
|
+
H(" " + c(l(I)("themeButton")), 1)
|
|
5236
5236
|
], 2),
|
|
5237
5237
|
l(b) ? (p(), f("div", Im, [
|
|
5238
5238
|
e("div", _m, [
|
|
@@ -5326,10 +5326,10 @@ const um = {
|
|
|
5326
5326
|
})) : S("", !0),
|
|
5327
5327
|
ae.value === "prototype" ? (p(), f("section", {
|
|
5328
5328
|
key: 3,
|
|
5329
|
-
class: D(["prototype-stage mx-auto flex w-full flex-col gap-6 px-4 py-6 lg:px-8",
|
|
5329
|
+
class: D(["prototype-stage mx-auto flex w-full flex-col gap-6 px-4 py-6 lg:px-8", K.value === "overview" ? "max-w-none" : K.value === "interactive" && l(bt) === "pc" ? "max-w-[1504px]" : "max-w-7xl"])
|
|
5330
5330
|
}, [
|
|
5331
5331
|
ne.value ? S("", !0) : (p(), f("section", jm, [
|
|
5332
|
-
|
|
5332
|
+
K.value === "interactive" ? (p(), f("button", {
|
|
5333
5333
|
key: 0,
|
|
5334
5334
|
class: "page-description-summary",
|
|
5335
5335
|
type: "button",
|
|
@@ -5339,16 +5339,16 @@ const um = {
|
|
|
5339
5339
|
}, [
|
|
5340
5340
|
e("p", null, [
|
|
5341
5341
|
o[94] || (o[94] = e("b", null, "页面结构:", -1)),
|
|
5342
|
-
|
|
5342
|
+
H(c(it.value.structure), 1)
|
|
5343
5343
|
]),
|
|
5344
5344
|
e("p", null, [
|
|
5345
5345
|
o[95] || (o[95] = e("b", null, "核心功能:", -1)),
|
|
5346
|
-
|
|
5346
|
+
H(c(it.value.features), 1)
|
|
5347
5347
|
])
|
|
5348
5348
|
])) : (p(), f("p", Mm, c(l(I)("heroCopy")), 1))
|
|
5349
5349
|
])),
|
|
5350
5350
|
e("div", Um, [
|
|
5351
|
-
|
|
5351
|
+
K.value === "interactive" && !ne.value ? (p(), f("aside", {
|
|
5352
5352
|
key: 0,
|
|
5353
5353
|
class: D(["apple-side-nav interactive-side-nav", {
|
|
5354
5354
|
"can-scroll-up": Ln.value,
|
|
@@ -5398,7 +5398,7 @@ const um = {
|
|
|
5398
5398
|
])])) : S("", !0)
|
|
5399
5399
|
]))
|
|
5400
5400
|
], 2)) : S("", !0),
|
|
5401
|
-
|
|
5401
|
+
K.value === "overview" ? (p(), f("aside", Jm, [
|
|
5402
5402
|
o[102] || (o[102] = e("p", { class: "px-2 pb-3 text-sm font-semibold text-muted" }, "显示设置", -1)),
|
|
5403
5403
|
e("div", Wm, [
|
|
5404
5404
|
o[100] || (o[100] = e("label", { class: "mb-2 block text-xs font-semibold text-muted" }, "每行数量", -1)),
|
|
@@ -5414,7 +5414,7 @@ const um = {
|
|
|
5414
5414
|
"aria-label": "每行数量"
|
|
5415
5415
|
}, null, 512), [
|
|
5416
5416
|
[
|
|
5417
|
-
|
|
5417
|
+
G,
|
|
5418
5418
|
l(en),
|
|
5419
5419
|
void 0,
|
|
5420
5420
|
{ number: !0 }
|
|
@@ -5448,7 +5448,7 @@ const um = {
|
|
|
5448
5448
|
])
|
|
5449
5449
|
])
|
|
5450
5450
|
])) : S("", !0),
|
|
5451
|
-
|
|
5451
|
+
K.value === "flow" ? (p(), f("aside", eg, [
|
|
5452
5452
|
e("div", tg, [
|
|
5453
5453
|
o[104] || (o[104] = e("p", { class: "text-sm font-semibold text-muted" }, "主流程", -1)),
|
|
5454
5454
|
e("button", {
|
|
@@ -5467,7 +5467,7 @@ const um = {
|
|
|
5467
5467
|
e("path", { d: "M12 20h9" }),
|
|
5468
5468
|
e("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z" })
|
|
5469
5469
|
], -1),
|
|
5470
|
-
|
|
5470
|
+
H(" 编辑流程 ", -1)
|
|
5471
5471
|
])])
|
|
5472
5472
|
]),
|
|
5473
5473
|
(p(!0), f(_, null, E(l(Nt), (a) => (p(), f("button", {
|
|
@@ -5487,7 +5487,7 @@ const um = {
|
|
|
5487
5487
|
ref: To,
|
|
5488
5488
|
class: "flex-1 relative"
|
|
5489
5489
|
}, [
|
|
5490
|
-
|
|
5490
|
+
K.value === "flow" ? (p(), f("div", ag, [
|
|
5491
5491
|
e("div", sg, [
|
|
5492
5492
|
e("button", {
|
|
5493
5493
|
type: "button",
|
|
@@ -5502,7 +5502,7 @@ const um = {
|
|
|
5502
5502
|
"aria-label": "流程画布缩放"
|
|
5503
5503
|
}, null, 512), [
|
|
5504
5504
|
[
|
|
5505
|
-
|
|
5505
|
+
G,
|
|
5506
5506
|
l(T),
|
|
5507
5507
|
void 0,
|
|
5508
5508
|
{ number: !0 }
|
|
@@ -5524,23 +5524,23 @@ const um = {
|
|
|
5524
5524
|
])) : S("", !0),
|
|
5525
5525
|
e("div", {
|
|
5526
5526
|
class: D([
|
|
5527
|
-
|
|
5527
|
+
K.value === "overview" ? "overview-canvas" : K.value === "flow" ? "flow-grid" : "grid gap-6 place-items-center",
|
|
5528
5528
|
{ "is-flow-panning": l(ie), "is-overview-panning": Oo.value }
|
|
5529
5529
|
]),
|
|
5530
|
-
style: we(
|
|
5531
|
-
onMousedown: o[24] || (o[24] = (a) =>
|
|
5532
|
-
onMousemove: o[25] || (o[25] = (a) =>
|
|
5533
|
-
onMouseup: o[26] || (o[26] = (a) =>
|
|
5534
|
-
onMouseleave: o[27] || (o[27] = (a) =>
|
|
5535
|
-
onWheel: o[28] || (o[28] = (a) =>
|
|
5530
|
+
style: we(K.value === "flow" ? l(k) : void 0),
|
|
5531
|
+
onMousedown: o[24] || (o[24] = (a) => K.value === "flow" ? l(ji)(a) : K.value === "overview" ? Mr(a) : void 0),
|
|
5532
|
+
onMousemove: o[25] || (o[25] = (a) => K.value === "flow" ? l(Mi)(a) : K.value === "overview" ? Ur(a) : void 0),
|
|
5533
|
+
onMouseup: o[26] || (o[26] = (a) => K.value === "flow" ? l(gs)() : Fs()),
|
|
5534
|
+
onMouseleave: o[27] || (o[27] = (a) => K.value === "flow" ? l(gs)() : Fs()),
|
|
5535
|
+
onWheel: o[28] || (o[28] = (a) => K.value === "flow" ? l(Ui)(a) : K.value === "overview" ? Vr(a) : void 0)
|
|
5536
5536
|
}, [
|
|
5537
5537
|
e("div", {
|
|
5538
5538
|
ref_key: "overviewGridRef",
|
|
5539
5539
|
ref: As,
|
|
5540
|
-
class: D(
|
|
5541
|
-
style: we(
|
|
5540
|
+
class: D(K.value === "overview" ? "overview-grid" : "contents"),
|
|
5541
|
+
style: we(K.value === "overview" ? Br.value : void 0)
|
|
5542
5542
|
}, [
|
|
5543
|
-
(p(!0), f(_, null, E(
|
|
5543
|
+
(p(!0), f(_, null, E(K.value === "flow" ? l(ot) : [], (a) => (p(), f("div", {
|
|
5544
5544
|
key: a.key,
|
|
5545
5545
|
class: "flow-row-label",
|
|
5546
5546
|
style: we(l(Bi)(a.row))
|
|
@@ -5549,24 +5549,24 @@ const um = {
|
|
|
5549
5549
|
e("strong", null, c(a.label), 1)
|
|
5550
5550
|
], 4))), 128)),
|
|
5551
5551
|
(p(!0), f(_, null, E(lr.value, (a) => (p(), f("article", {
|
|
5552
|
-
key:
|
|
5552
|
+
key: K.value === "flow" ? `${a.id}-${a.stateId ?? "default"}-${a.flowRow}-${a.flowCol}` : `${a.id}-${a.stateId ?? "default"}`,
|
|
5553
5553
|
class: D([
|
|
5554
5554
|
a.platform === "pc" ? "desktop-shell" : "phone-shell",
|
|
5555
5555
|
{
|
|
5556
|
-
"flow-phone-shell":
|
|
5557
|
-
"flow-desktop-shell":
|
|
5558
|
-
"flow-has-next":
|
|
5556
|
+
"flow-phone-shell": K.value === "flow" && a.platform === "mobile",
|
|
5557
|
+
"flow-desktop-shell": K.value === "flow" && a.platform === "pc",
|
|
5558
|
+
"flow-has-next": K.value === "flow" && a.hasNext
|
|
5559
5559
|
}
|
|
5560
5560
|
]),
|
|
5561
5561
|
style: we(Rr(a))
|
|
5562
5562
|
}, [
|
|
5563
5563
|
e("div", {
|
|
5564
5564
|
class: D(["prototype-preview-scaler", {
|
|
5565
|
-
"overview-phone-scale":
|
|
5566
|
-
"overview-desktop-scale":
|
|
5565
|
+
"overview-phone-scale": K.value === "overview" && a.platform === "mobile",
|
|
5566
|
+
"overview-desktop-scale": K.value === "overview" && a.platform === "pc"
|
|
5567
5567
|
}])
|
|
5568
5568
|
}, [
|
|
5569
|
-
|
|
5569
|
+
K.value === "interactive" && !ne.value && a.platform === "mobile" && l(Fe).length && l(at) ? (p(), Ge(Ru, {
|
|
5570
5570
|
key: 0,
|
|
5571
5571
|
title: l(I)("prototypeStateSwitch"),
|
|
5572
5572
|
options: l(Fe),
|
|
@@ -5586,13 +5586,13 @@ const um = {
|
|
|
5586
5586
|
class: D(["screen-content", {
|
|
5587
5587
|
"desktop-screen-content": a.platform === "pc",
|
|
5588
5588
|
"tab-screen-content": a.platform === "mobile" && a.hasTabBar,
|
|
5589
|
-
"is-placing-annotation":
|
|
5589
|
+
"is-placing-annotation": K.value === "interactive" && !ne.value && l(Q)
|
|
5590
5590
|
}]),
|
|
5591
5591
|
onClickCapture: (y) => !ne.value && l(la)(y, a.id)
|
|
5592
5592
|
}, [
|
|
5593
5593
|
e("div", rg, [
|
|
5594
5594
|
W(qn, { screen: a }, null, 8, ["screen"]),
|
|
5595
|
-
|
|
5595
|
+
K.value === "interactive" && !ne.value && !je.value && l(q) === "annotations" && l(te) ? (p(), f("div", ug, [
|
|
5596
5596
|
(p(!0), f(_, null, E(l(B), (y, M) => {
|
|
5597
5597
|
var L;
|
|
5598
5598
|
return p(), f("div", {
|
|
@@ -5636,24 +5636,24 @@ const um = {
|
|
|
5636
5636
|
], 42, ig),
|
|
5637
5637
|
a.platform === "mobile" && a.hasTabBar ? (p(), Ge(Pu, {
|
|
5638
5638
|
key: 1,
|
|
5639
|
-
active: l(pe),
|
|
5639
|
+
active: K.value === "interactive" ? l(pe) : a.id,
|
|
5640
5640
|
items: Gi.value,
|
|
5641
5641
|
onChange: l(sa)
|
|
5642
5642
|
}, null, 8, ["active", "items", "onChange"])) : S("", !0)
|
|
5643
5643
|
], 2)
|
|
5644
5644
|
], 2),
|
|
5645
|
-
|
|
5645
|
+
K.value === "overview" || K.value === "flow" ? (p(), f("div", {
|
|
5646
5646
|
key: 0,
|
|
5647
|
-
class: D(["prototype-screen-caption mt-3 text-center text-sm font-semibold text-muted", { "flow-caption":
|
|
5647
|
+
class: D(["prototype-screen-caption mt-3 text-center text-sm font-semibold text-muted", { "flow-caption": K.value === "flow" }])
|
|
5648
5648
|
}, [
|
|
5649
5649
|
e("span", {
|
|
5650
5650
|
class: D(["platform-badge is-small", a.platform === "pc" ? "is-pc" : "is-mobile"]),
|
|
5651
5651
|
"aria-hidden": "true"
|
|
5652
5652
|
}, c(a.platform === "pc" ? "P" : "M"), 3),
|
|
5653
5653
|
a.platform === "mobile" ? (p(), f("br", pg)) : S("", !0),
|
|
5654
|
-
|
|
5654
|
+
H(" " + c(a.code) + " · " + c(a.title), 1),
|
|
5655
5655
|
a.stateLabel ? (p(), f(_, { key: 1 }, [
|
|
5656
|
-
|
|
5656
|
+
H(" · " + c(a.stateLabel), 1)
|
|
5657
5657
|
], 64)) : S("", !0)
|
|
5658
5658
|
], 2)) : S("", !0)
|
|
5659
5659
|
], 6))), 128))
|
|
@@ -5662,7 +5662,7 @@ const um = {
|
|
|
5662
5662
|
], 512)
|
|
5663
5663
|
])
|
|
5664
5664
|
], 2)) : S("", !0),
|
|
5665
|
-
ae.value === "prototype" &&
|
|
5665
|
+
ae.value === "prototype" && K.value === "interactive" && !ne.value ? (p(), f("aside", {
|
|
5666
5666
|
key: 4,
|
|
5667
5667
|
class: D(["annotation-side-panel", { collapsed: l(ve), "description-view-mode": l(q) === "pageDescription" }])
|
|
5668
5668
|
}, [
|
|
@@ -5676,9 +5676,9 @@ const um = {
|
|
|
5676
5676
|
e("div", null, [
|
|
5677
5677
|
e("p", null, c(l(I)("annotationPanelTitle")), 1),
|
|
5678
5678
|
e("span", null, [
|
|
5679
|
-
|
|
5679
|
+
H(c(l(I)("annotationPanelSubtitle")) + " · " + c(l(ht).code), 1),
|
|
5680
5680
|
Sn.value ? (p(), f(_, { key: 0 }, [
|
|
5681
|
-
|
|
5681
|
+
H(" · " + c(Sn.value), 1)
|
|
5682
5682
|
], 64)) : S("", !0)
|
|
5683
5683
|
])
|
|
5684
5684
|
]),
|
|
@@ -5748,7 +5748,7 @@ const um = {
|
|
|
5748
5748
|
type: "text",
|
|
5749
5749
|
placeholder: l(I)("annotationAuthorPlaceholder")
|
|
5750
5750
|
}, null, 8, wg), [
|
|
5751
|
-
[
|
|
5751
|
+
[G, l(me)]
|
|
5752
5752
|
])
|
|
5753
5753
|
]),
|
|
5754
5754
|
e("label", Sg, [
|
|
@@ -5762,7 +5762,7 @@ const um = {
|
|
|
5762
5762
|
type: "number"
|
|
5763
5763
|
}, null, 512), [
|
|
5764
5764
|
[
|
|
5765
|
-
|
|
5765
|
+
G,
|
|
5766
5766
|
l(Xe),
|
|
5767
5767
|
void 0,
|
|
5768
5768
|
{ number: !0 }
|
|
@@ -5792,9 +5792,9 @@ const um = {
|
|
|
5792
5792
|
e("p", null, c(a.featureDescription), 1),
|
|
5793
5793
|
e("small", null, c(a.specialNote), 1),
|
|
5794
5794
|
a.authorName || a.updatedAt ? (p(), f("small", Dg, [
|
|
5795
|
-
|
|
5795
|
+
H(c(a.authorName || "未署名"), 1),
|
|
5796
5796
|
wa(a.updatedAt) ? (p(), f(_, { key: 0 }, [
|
|
5797
|
-
|
|
5797
|
+
H(" · " + c(wa(a.updatedAt)), 1)
|
|
5798
5798
|
], 64)) : S("", !0)
|
|
5799
5799
|
])) : S("", !0)
|
|
5800
5800
|
]),
|
|
@@ -5842,9 +5842,9 @@ const um = {
|
|
|
5842
5842
|
e("span", Bg, c(l(et) === "warning" || l(et) === "conflict" ? "⚠" : "●"), 1),
|
|
5843
5843
|
e("strong", null, c(Wi.value), 1),
|
|
5844
5844
|
e("small", null, [
|
|
5845
|
-
|
|
5845
|
+
H("· " + c(Hi.value), 1),
|
|
5846
5846
|
ys.value ? (p(), f(_, { key: 0 }, [
|
|
5847
|
-
|
|
5847
|
+
H(" · " + c(ys.value), 1)
|
|
5848
5848
|
], 64)) : S("", !0)
|
|
5849
5849
|
])
|
|
5850
5850
|
]),
|
|
@@ -5876,9 +5876,9 @@ const um = {
|
|
|
5876
5876
|
e("p", {
|
|
5877
5877
|
class: D({ "has-missing": da.value > 0 })
|
|
5878
5878
|
}, [
|
|
5879
|
-
|
|
5879
|
+
H(c(xs.value) + " / " + c(ks.value) + " 已配置 ", 1),
|
|
5880
5880
|
da.value ? (p(), f(_, { key: 0 }, [
|
|
5881
|
-
|
|
5881
|
+
H(" · 缺失 " + c(da.value) + " 项", 1)
|
|
5882
5882
|
], 64)) : S("", !0)
|
|
5883
5883
|
], 2)
|
|
5884
5884
|
]),
|
|
@@ -5917,7 +5917,7 @@ const um = {
|
|
|
5917
5917
|
onClick: o[47] || (o[47] = (a) => $t.value = !$t.value)
|
|
5918
5918
|
}, [
|
|
5919
5919
|
W(l(Cu), { class: "h-4 w-4" }),
|
|
5920
|
-
|
|
5920
|
+
H(" " + c($t.value ? "快捷键" : "收起快捷键"), 1)
|
|
5921
5921
|
]),
|
|
5922
5922
|
$t.value ? S("", !0) : (p(), f(_, { key: 0 }, [
|
|
5923
5923
|
o[111] || (o[111] = e("div", { class: "shortcut-panel-head" }, [
|
|
@@ -5955,9 +5955,9 @@ const um = {
|
|
|
5955
5955
|
e("div", null, [
|
|
5956
5956
|
e("p", null, c(l(j) ? "编辑页面描述" : "新增页面描述"), 1),
|
|
5957
5957
|
e("span", null, [
|
|
5958
|
-
|
|
5958
|
+
H(c(l(ht).code) + " · " + c(l(ht).title), 1),
|
|
5959
5959
|
Sn.value ? (p(), f(_, { key: 0 }, [
|
|
5960
|
-
|
|
5960
|
+
H(" · " + c(Sn.value), 1)
|
|
5961
5961
|
], 64)) : S("", !0)
|
|
5962
5962
|
])
|
|
5963
5963
|
]),
|
|
@@ -6002,7 +6002,7 @@ const um = {
|
|
|
6002
6002
|
placeholder: "#12b981",
|
|
6003
6003
|
onKeydown: lu(ce(Ss, ["prevent"]), ["enter"])
|
|
6004
6004
|
}, null, 40, Zg), [
|
|
6005
|
-
[
|
|
6005
|
+
[G, xo.value]
|
|
6006
6006
|
]),
|
|
6007
6007
|
e("button", {
|
|
6008
6008
|
type: "button",
|
|
@@ -6017,7 +6017,7 @@ const um = {
|
|
|
6017
6017
|
"onUpdate:modelValue": o[50] || (o[50] = (a) => l(R).purpose = a),
|
|
6018
6018
|
placeholder: l(I)("pageDescriptionPurposePlaceholder")
|
|
6019
6019
|
}, null, 8, Qg), [
|
|
6020
|
-
[
|
|
6020
|
+
[G, l(R).purpose]
|
|
6021
6021
|
])
|
|
6022
6022
|
]),
|
|
6023
6023
|
e("label", null, [
|
|
@@ -6026,7 +6026,7 @@ const um = {
|
|
|
6026
6026
|
"onUpdate:modelValue": o[51] || (o[51] = (a) => l(R).structure = a),
|
|
6027
6027
|
placeholder: l(I)("pageDescriptionStructurePlaceholder")
|
|
6028
6028
|
}, null, 8, eh), [
|
|
6029
|
-
[
|
|
6029
|
+
[G, l(R).structure]
|
|
6030
6030
|
])
|
|
6031
6031
|
]),
|
|
6032
6032
|
e("label", null, [
|
|
@@ -6035,7 +6035,7 @@ const um = {
|
|
|
6035
6035
|
"onUpdate:modelValue": o[52] || (o[52] = (a) => l(R).features = a),
|
|
6036
6036
|
placeholder: l(I)("pageDescriptionFeaturesPlaceholder")
|
|
6037
6037
|
}, null, 8, th), [
|
|
6038
|
-
[
|
|
6038
|
+
[G, l(R).features]
|
|
6039
6039
|
])
|
|
6040
6040
|
]),
|
|
6041
6041
|
e("label", null, [
|
|
@@ -6044,7 +6044,7 @@ const um = {
|
|
|
6044
6044
|
"onUpdate:modelValue": o[53] || (o[53] = (a) => l(R).flowPosition = a),
|
|
6045
6045
|
placeholder: l(I)("pageDescriptionFlowPlaceholder")
|
|
6046
6046
|
}, null, 8, nh), [
|
|
6047
|
-
[
|
|
6047
|
+
[G, l(R).flowPosition]
|
|
6048
6048
|
])
|
|
6049
6049
|
]),
|
|
6050
6050
|
e("label", null, [
|
|
@@ -6053,7 +6053,7 @@ const um = {
|
|
|
6053
6053
|
"onUpdate:modelValue": o[54] || (o[54] = (a) => l(R).interactionRules = a),
|
|
6054
6054
|
placeholder: "说明用户操作后的页面跳转、状态变化、按钮行为和不可直接跳过的流程。"
|
|
6055
6055
|
}, null, 512), [
|
|
6056
|
-
[
|
|
6056
|
+
[G, l(R).interactionRules]
|
|
6057
6057
|
])
|
|
6058
6058
|
]),
|
|
6059
6059
|
e("label", null, [
|
|
@@ -6062,7 +6062,7 @@ const um = {
|
|
|
6062
6062
|
"onUpdate:modelValue": o[55] || (o[55] = (a) => l(R).stateCriteria = a),
|
|
6063
6063
|
placeholder: "用中文业务语义说明页面展示依赖哪些状态,不写接口字段名。"
|
|
6064
6064
|
}, null, 512), [
|
|
6065
|
-
[
|
|
6065
|
+
[G, l(R).stateCriteria]
|
|
6066
6066
|
])
|
|
6067
6067
|
]),
|
|
6068
6068
|
e("label", null, [
|
|
@@ -6071,7 +6071,7 @@ const um = {
|
|
|
6071
6071
|
"onUpdate:modelValue": o[56] || (o[56] = (a) => l(R).edgeCases = a),
|
|
6072
6072
|
placeholder: "说明空态、失败态、权限、断连、重复点击、数据不足等边界。"
|
|
6073
6073
|
}, null, 512), [
|
|
6074
|
-
[
|
|
6074
|
+
[G, l(R).edgeCases]
|
|
6075
6075
|
])
|
|
6076
6076
|
]),
|
|
6077
6077
|
e("label", null, [
|
|
@@ -6080,7 +6080,7 @@ const um = {
|
|
|
6080
6080
|
"onUpdate:modelValue": o[57] || (o[57] = (a) => l(R).acceptanceCriteria = a),
|
|
6081
6081
|
placeholder: "说明开发完成后如何判断页面、状态、流程和指标语义实现正确。"
|
|
6082
6082
|
}, null, 512), [
|
|
6083
|
-
[
|
|
6083
|
+
[G, l(R).acceptanceCriteria]
|
|
6084
6084
|
])
|
|
6085
6085
|
]),
|
|
6086
6086
|
e("label", null, [
|
|
@@ -6089,7 +6089,7 @@ const um = {
|
|
|
6089
6089
|
"onUpdate:modelValue": o[58] || (o[58] = (a) => l(R).developmentNotes = a),
|
|
6090
6090
|
placeholder: l(I)("pageDescriptionDevelopmentPlaceholder")
|
|
6091
6091
|
}, null, 8, oh), [
|
|
6092
|
-
[
|
|
6092
|
+
[G, l(R).developmentNotes]
|
|
6093
6093
|
])
|
|
6094
6094
|
]),
|
|
6095
6095
|
e("div", ah, [
|
|
@@ -6144,7 +6144,7 @@ const um = {
|
|
|
6144
6144
|
type: "text",
|
|
6145
6145
|
placeholder: l(I)("annotationNamePlaceholder")
|
|
6146
6146
|
}, null, 8, uh), [
|
|
6147
|
-
[
|
|
6147
|
+
[G, l(oe).featureName]
|
|
6148
6148
|
])
|
|
6149
6149
|
]),
|
|
6150
6150
|
e("label", null, [
|
|
@@ -6153,7 +6153,7 @@ const um = {
|
|
|
6153
6153
|
"onUpdate:modelValue": o[63] || (o[63] = (a) => l(oe).featureDescription = a),
|
|
6154
6154
|
placeholder: l(I)("annotationDescPlaceholder")
|
|
6155
6155
|
}, null, 8, ch), [
|
|
6156
|
-
[
|
|
6156
|
+
[G, l(oe).featureDescription]
|
|
6157
6157
|
])
|
|
6158
6158
|
]),
|
|
6159
6159
|
e("label", null, [
|
|
@@ -6162,7 +6162,7 @@ const um = {
|
|
|
6162
6162
|
"onUpdate:modelValue": o[64] || (o[64] = (a) => l(oe).specialNote = a),
|
|
6163
6163
|
placeholder: l(I)("annotationNotePlaceholder")
|
|
6164
6164
|
}, null, 8, dh), [
|
|
6165
|
-
[
|
|
6165
|
+
[G, l(oe).specialNote]
|
|
6166
6166
|
])
|
|
6167
6167
|
]),
|
|
6168
6168
|
e("label", null, [
|
|
@@ -6172,7 +6172,7 @@ const um = {
|
|
|
6172
6172
|
type: "text",
|
|
6173
6173
|
placeholder: l(I)("annotationAuthorPlaceholder")
|
|
6174
6174
|
}, null, 8, ph), [
|
|
6175
|
-
[
|
|
6175
|
+
[G, l(me)]
|
|
6176
6176
|
])
|
|
6177
6177
|
]),
|
|
6178
6178
|
e("div", vh, [
|
|
@@ -6205,7 +6205,7 @@ const um = {
|
|
|
6205
6205
|
type: "text",
|
|
6206
6206
|
readonly: l(le) === "view"
|
|
6207
6207
|
}, null, 8, gh), [
|
|
6208
|
-
[
|
|
6208
|
+
[G, l(se).featureName]
|
|
6209
6209
|
])
|
|
6210
6210
|
]),
|
|
6211
6211
|
e("label", null, [
|
|
@@ -6214,7 +6214,7 @@ const um = {
|
|
|
6214
6214
|
"onUpdate:modelValue": o[69] || (o[69] = (a) => l(se).featureDescription = a),
|
|
6215
6215
|
readonly: l(le) === "view"
|
|
6216
6216
|
}, null, 8, hh), [
|
|
6217
|
-
[
|
|
6217
|
+
[G, l(se).featureDescription]
|
|
6218
6218
|
])
|
|
6219
6219
|
]),
|
|
6220
6220
|
e("label", null, [
|
|
@@ -6223,7 +6223,7 @@ const um = {
|
|
|
6223
6223
|
"onUpdate:modelValue": o[70] || (o[70] = (a) => l(se).specialNote = a),
|
|
6224
6224
|
readonly: l(le) === "view"
|
|
6225
6225
|
}, null, 8, yh), [
|
|
6226
|
-
[
|
|
6226
|
+
[G, l(se).specialNote]
|
|
6227
6227
|
])
|
|
6228
6228
|
]),
|
|
6229
6229
|
l(le) === "edit" ? (p(), f("label", bh, [
|
|
@@ -6233,7 +6233,7 @@ const um = {
|
|
|
6233
6233
|
type: "text",
|
|
6234
6234
|
placeholder: l(I)("annotationAuthorPlaceholder")
|
|
6235
6235
|
}, null, 8, wh), [
|
|
6236
|
-
[
|
|
6236
|
+
[G, l(me)]
|
|
6237
6237
|
])
|
|
6238
6238
|
])) : S("", !0),
|
|
6239
6239
|
e("div", {
|
|
@@ -6262,9 +6262,9 @@ const um = {
|
|
|
6262
6262
|
e("div", null, [
|
|
6263
6263
|
o[119] || (o[119] = e("p", null, "页面描述", -1)),
|
|
6264
6264
|
e("span", null, [
|
|
6265
|
-
|
|
6265
|
+
H(c(l(ht).code) + " · " + c(l(ht).title), 1),
|
|
6266
6266
|
Sn.value ? (p(), f(_, { key: 0 }, [
|
|
6267
|
-
|
|
6267
|
+
H(" · " + c(Sn.value), 1)
|
|
6268
6268
|
], 64)) : S("", !0)
|
|
6269
6269
|
])
|
|
6270
6270
|
]),
|
|
@@ -6306,7 +6306,7 @@ const um = {
|
|
|
6306
6306
|
key: a.id
|
|
6307
6307
|
}, [
|
|
6308
6308
|
e("b", null, c(a.label) + ":", 1),
|
|
6309
|
-
|
|
6309
|
+
H(c(a.value), 1)
|
|
6310
6310
|
]))), 128)) : (p(), f("p", _h, "请选择要展示的描述部分。"))
|
|
6311
6311
|
]),
|
|
6312
6312
|
e("div", Dh, [
|
|
@@ -6486,7 +6486,7 @@ const um = {
|
|
|
6486
6486
|
type: "search",
|
|
6487
6487
|
placeholder: "搜索 P 编号、页面或状态"
|
|
6488
6488
|
}, null, 512), [
|
|
6489
|
-
[
|
|
6489
|
+
[G, Un.value]
|
|
6490
6490
|
]),
|
|
6491
6491
|
e("div", ty, [
|
|
6492
6492
|
(p(!0), f(_, null, E(ir.value, (a) => (p(), f("section", {
|
|
@@ -6513,7 +6513,7 @@ const um = {
|
|
|
6513
6513
|
onClick: (M) => ou(a.screen.id, y.id)
|
|
6514
6514
|
}, [
|
|
6515
6515
|
o[127] || (o[127] = e("span", null, null, -1)),
|
|
6516
|
-
|
|
6516
|
+
H(" " + c(y.label), 1)
|
|
6517
6517
|
], 10, iy))), 128))
|
|
6518
6518
|
])) : S("", !0)
|
|
6519
6519
|
]))), 128))
|
|
@@ -6553,7 +6553,7 @@ const um = {
|
|
|
6553
6553
|
type: "text",
|
|
6554
6554
|
autocomplete: "username"
|
|
6555
6555
|
}, null, 512), [
|
|
6556
|
-
[
|
|
6556
|
+
[G, So.value]
|
|
6557
6557
|
])
|
|
6558
6558
|
]),
|
|
6559
6559
|
e("label", pm, [
|
|
@@ -6564,7 +6564,7 @@ const um = {
|
|
|
6564
6564
|
type: "password",
|
|
6565
6565
|
autocomplete: "current-password"
|
|
6566
6566
|
}, null, 512), [
|
|
6567
|
-
[
|
|
6567
|
+
[G, ko.value]
|
|
6568
6568
|
])
|
|
6569
6569
|
])
|
|
6570
6570
|
]),
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,53 +1,55 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@marktowin/prototype-core",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "面向移动端与 PC Web 原型的 Vue 评审、流程和协作内核",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@marktowin/prototype-core",
|
|
3
|
+
"version": "1.2.1",
|
|
4
|
+
"description": "面向移动端与 PC Web 原型的 Vue 评审、流程和协作内核",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"README.md",
|
|
12
|
+
"LICENSE"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./style.css": "./dist/style.css"
|
|
20
|
+
},
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"registry": "https://registry.npmjs.org",
|
|
23
|
+
"access": "public",
|
|
24
|
+
"provenance": true
|
|
25
|
+
},
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/MarkTina/prototype-core.git"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"@lucide/vue": "^1.16.0",
|
|
32
|
+
"vue": "^3.5.13"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@lucide/vue": "^1.16.0",
|
|
36
|
+
"@vitejs/plugin-vue": "^5.2.3",
|
|
37
|
+
"autoprefixer": "^10.4.20",
|
|
38
|
+
"postcss": "^8.4.49",
|
|
39
|
+
"tailwindcss": "^3.4.17",
|
|
40
|
+
"typescript": "^5.6.3",
|
|
41
|
+
"vite": "^6.0.5",
|
|
42
|
+
"vite-plugin-dts": "^4.5.4",
|
|
43
|
+
"vue": "^3.5.13",
|
|
44
|
+
"vue-tsc": "^2.1.10"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"dev": "pnpm --dir examples/basic dev",
|
|
48
|
+
"check:architecture": "node scripts/check-architecture.mjs",
|
|
49
|
+
"test": "node --experimental-strip-types --test tests/collaborationPolicy.test.ts",
|
|
50
|
+
"build:core": "vite build",
|
|
51
|
+
"build:example": "pnpm --dir examples/basic build",
|
|
52
|
+
"build": "pnpm check:architecture && pnpm test && pnpm build:core && pnpm build:example",
|
|
53
|
+
"pack:check": "pnpm pack --pack-destination .packages"
|
|
54
|
+
}
|
|
55
|
+
}
|