@blueking/bkflow-canvas-editor 1.1.0-beta.44 → 1.1.0-beta.45

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 (46) hide show
  1. package/README.md +41 -1
  2. package/dist/advanced.cjs.js +1 -1
  3. package/dist/advanced.d.ts +22 -1
  4. package/dist/advanced.esm.js +1 -1
  5. package/dist/bkflow-canvas-editor_false-B70uLuHL.cjs +1 -0
  6. package/dist/bkflow-canvas-editor_false-BlC281Zg.cjs +1 -0
  7. package/dist/bkflow-canvas-editor_false-Casww7p4.js +5 -0
  8. package/dist/bkflow-canvas-editor_false-i9G8sqQi.js +5 -0
  9. package/dist/context-Bu4mmo1Q.js +1593 -0
  10. package/dist/context-bUpcrt8M.cjs +6 -0
  11. package/dist/index-Bb8gt0ZM.cjs +2 -0
  12. package/dist/index-BynYn4VD.cjs +1 -0
  13. package/dist/index-C1q_QVHM.cjs +1 -0
  14. package/dist/index-C8XJMS_J.js +236 -0
  15. package/dist/index-CddPhY6u.cjs +1 -0
  16. package/dist/{index-DEh6TdMZ.js → index-CgRqOi-E.js} +28949 -29515
  17. package/dist/index-Ci_fP1q2.js +127 -0
  18. package/dist/index-ClbXmmTg.js +168 -0
  19. package/dist/index-DQG9J2SZ.js +137 -0
  20. package/dist/index-FcnoAxWL.cjs +82 -0
  21. package/dist/index-Htumo8sH.cjs +1 -0
  22. package/dist/index-_LhW2Gn_.js +647 -0
  23. package/dist/index-pYNKHhNh.js +73 -0
  24. package/dist/index-rLG78MgZ.cjs +1 -0
  25. package/dist/index.cjs.js +1 -1
  26. package/dist/index.d.ts +47 -2
  27. package/dist/index.esm.js +42 -33
  28. package/dist/style.css +1 -1
  29. package/package.json +1 -1
  30. package/dist/context-CGIQsuRc.cjs +0 -1
  31. package/dist/context-Ce_Xpx5d.js +0 -724
  32. package/dist/index-B1K53ttM.cjs +0 -1
  33. package/dist/index-B5-BwbW-.js +0 -607
  34. package/dist/index-B7cHQkaD.cjs +0 -2
  35. package/dist/index-BhOE6_v7.cjs +0 -1
  36. package/dist/index-BiOM182-.js +0 -135
  37. package/dist/index-Bit4HgBF.cjs +0 -82
  38. package/dist/index-CLiOiJR2.js +0 -125
  39. package/dist/index-CbEGVZdT.cjs +0 -1
  40. package/dist/index-DVeWB2dR.js +0 -73
  41. package/dist/index-DjIpWxVu.cjs +0 -1
  42. package/dist/index-Dmx7sjvz.cjs +0 -1
  43. package/dist/index-DubPNExB.js +0 -234
  44. package/dist/index-sEixnRd3.js +0 -162
  45. package/dist/index.es.min-BpHMrg2Y.cjs +0 -2
  46. package/dist/index.es.min-DYp0DL9J.js +0 -3543
@@ -0,0 +1,127 @@
1
+ import { defineComponent as x, reactive as M, ref as y, watch as v, resolveComponent as m, openBlock as g, createBlock as B, withCtx as p, createElementVNode as e, unref as t, toDisplayString as i, normalizeClass as D, createTextVNode as u, createVNode as d, createElementBlock as N, createCommentVNode as F } from "vue";
2
+ import "./context-Bu4mmo1Q.js";
3
+ import { t as l } from "@blueking/flow-canvas";
4
+ import { _ as H } from "./index-CgRqOi-E.js";
5
+ const I = "data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M47.3922%202.00779L47.193%200.806571L45.9918%200.607344C35.1926%20-1.7951%2023.3914%203.00979%2014.397%2013.604C9.79721%2013.4048%205.79512%2015.0044%201.99812%2018.403L0%2020.2019L10.4007%2026.9991C9.00031%2029.4015%209.80307%2032.9994%2012.3989%2035.601C15.0005%2038.0035%2018.5983%2038.9996%2021.0007%2037.5992L27.7978%2048L29.3975%2046.2011C32.9953%2042.199%2034.5949%2038.4019%2034.3957%2033.6029C44.9957%2024.4033%2049.7947%2012.602%2047.3922%202.00779ZM33.0832%2031.6927L31.5304%2033.0228V35.2436C31.753%2038.5719%2030.1358%2040.9391%2028.3603%2043.5994L21.7097%2033.6205L18.4635%2035.3022C17.5787%2035.7475%2015.5806%2035.3022%2014.0278%2033.7494C12.2524%2032.1966%2012.0297%2030.2043%2012.475%2029.5363L14.1685%2026.3018L4.41226%2019.6511C7.07251%2017.8757%209.73275%2016.6862%2012.8383%2016.6862H14.8364L16.3892%2014.9107C24.8153%204.93175%2035.9016%200.572186%2045.6637%202.12499C47.2165%2011.8871%2042.8394%2023.2665%2033.0832%2031.6927Z'%20fill='%23DCDEE5'/%3e%3cpath%20d='M41.6673%205.44539C35.3228%204.41268%2024.824%2010.6861%2019.3428%2017.3334L18.3346%2018.5145H17.0367C15.0204%2018.5145%2013.288%2019.3039%2011.5556%2020.4909L17.9001%2024.9244L16.7992%2027.0788C16.5095%2027.524%2016.6543%2028.8534%2017.8074%2029.8862C18.8155%2030.9189%2020.1134%2031.2156%2020.6928%2030.9189L22.8018%2029.7971L27.13%2036.4444C28.283%2034.6698%2029.3318%2033.0911%2029.1869%2030.8773V29.3995L30.1951%2028.5151C36.5454%2022.9005%2042.6813%2011.9503%2041.6673%205.44539Z'%20fill='%23A3C5FD'/%3e%3cpath%20d='M8.59356%2037.5135C7.21124%2038.9237%206.22222%2043.5556%206.22222%2043.5556C6.22222%2043.5556%2010.5658%2042.7472%2012.1448%2041.1364C13.3304%2039.9268%2013.5271%2038.1153%2012.7347%2037.1063C11.5548%2036.1033%209.77922%2036.3098%208.59356%2037.5135ZM32.7812%2013.8467C31.6129%2013.1622%2030.1785%2013.1622%2029.016%2013.8467C27.8476%2014.5311%2027.1305%2015.7997%2027.1305%2017.1745C27.1305%2018.5494%2027.8476%2019.818%2029.016%2020.5024C30.1785%2021.1869%2031.6186%2021.1869%2032.7812%2020.5024C33.9495%2019.818%2034.6667%2018.5494%2034.6667%2017.1745C34.6667%2015.8056%2033.9495%2014.537%2032.7812%2013.8467Z'%20fill='%23E1ECFF'/%3e%3c/svg%3e", Z = { class: "release-dialog-body" }, A = { class: "release-illustration" }, S = { class: "release-rocket-badge" }, O = ["src"], R = { class: "release-title" }, T = { class: "release-form" }, q = { class: "form-label" }, G = {
6
+ key: 0,
7
+ class: "form-error"
8
+ }, U = { class: "form-item" }, X = { class: "form-label" }, z = { class: "release-footer" }, P = 32, W = 255, j = /* @__PURE__ */ x({
9
+ __name: "index",
10
+ props: {
11
+ show: { type: Boolean },
12
+ defaultVersion: { default: "" },
13
+ pending: { type: Boolean, default: !1 },
14
+ errorMessage: { default: "" }
15
+ },
16
+ emits: ["update:show", "confirm"],
17
+ setup(L, { emit: w }) {
18
+ const b = l(`在此处填写你本次 FLOW 的关键信息!
19
+ 养成良好的“变更日志”书写习惯,有助于提升信息的管理效率,完善的版本信息能够帮助提升版本管理的有效性和可靠性!`), o = L, C = w, s = M({ version: "", desc: "" }), n = y("");
20
+ v(
21
+ () => o.show,
22
+ (a) => {
23
+ a && (s.version = o.defaultVersion, s.desc = "", n.value = o.errorMessage);
24
+ }
25
+ ), v(
26
+ () => o.errorMessage,
27
+ (a) => {
28
+ n.value = a;
29
+ }
30
+ );
31
+ const k = () => {
32
+ n.value = "";
33
+ }, V = () => {
34
+ if (o.pending) return;
35
+ const a = s.version.trim();
36
+ if (!a) {
37
+ n.value = l("请输入版本号");
38
+ return;
39
+ }
40
+ C("confirm", { version: a, desc: s.desc.trim() });
41
+ }, _ = () => {
42
+ o.pending || C("update:show", !1);
43
+ };
44
+ return (a, r) => {
45
+ const f = m("bk-input"), h = m("bk-button"), E = m("bk-dialog");
46
+ return g(), B(E, {
47
+ "is-show": o.show,
48
+ "dialog-type": "show",
49
+ width: 480,
50
+ "esc-close": !1,
51
+ "quick-close": !1,
52
+ class: "flow-release-dialog",
53
+ onClosed: _
54
+ }, {
55
+ default: p(() => [
56
+ e("div", Z, [
57
+ e("div", A, [
58
+ e("div", S, [
59
+ e("img", {
60
+ src: t(I),
61
+ alt: ""
62
+ }, null, 8, O)
63
+ ])
64
+ ]),
65
+ e("h3", R, i(t(l)("Flow 即将发布上线")), 1),
66
+ e("div", T, [
67
+ e("div", {
68
+ class: D(["form-item", { "is-error": !!n.value }])
69
+ }, [
70
+ e("label", q, [
71
+ u(i(t(l)("版本号")) + " ", 1),
72
+ r[2] || (r[2] = e("span", { class: "required-mark" }, "*", -1))
73
+ ]),
74
+ d(f, {
75
+ modelValue: s.version,
76
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => s.version = c),
77
+ "data-test": "release-version-input",
78
+ placeholder: t(l)("请输入"),
79
+ maxlength: P,
80
+ onInput: k
81
+ }, null, 8, ["modelValue", "placeholder"]),
82
+ n.value ? (g(), N("p", G, i(n.value), 1)) : F("", !0)
83
+ ], 2),
84
+ e("div", U, [
85
+ e("label", X, i(t(l)("版本描述")), 1),
86
+ d(f, {
87
+ modelValue: s.desc,
88
+ "onUpdate:modelValue": r[1] || (r[1] = (c) => s.desc = c),
89
+ type: "textarea",
90
+ rows: 4,
91
+ maxlength: W,
92
+ placeholder: t(b)
93
+ }, null, 8, ["modelValue", "placeholder"])
94
+ ])
95
+ ]),
96
+ e("div", z, [
97
+ d(h, {
98
+ theme: "primary",
99
+ "data-test": "release-confirm",
100
+ loading: o.pending,
101
+ onClick: V
102
+ }, {
103
+ default: p(() => [
104
+ u(i(t(l)("提交并上线")), 1)
105
+ ]),
106
+ _: 1
107
+ }, 8, ["loading"]),
108
+ d(h, {
109
+ disabled: o.pending,
110
+ onClick: _
111
+ }, {
112
+ default: p(() => [
113
+ u(i(t(l)("取消发布")), 1)
114
+ ]),
115
+ _: 1
116
+ }, 8, ["disabled"])
117
+ ])
118
+ ])
119
+ ]),
120
+ _: 1
121
+ }, 8, ["is-show"]);
122
+ };
123
+ }
124
+ }), $ = /* @__PURE__ */ H(j, [["__scopeId", "data-v-5465e0b3"]]);
125
+ export {
126
+ $ as default
127
+ };
@@ -0,0 +1,168 @@
1
+ import { defineComponent as A, ref as v, shallowRef as L, computed as C, watch as P, resolveComponent as _, resolveDirective as W, openBlock as r, createBlock as y, withCtx as u, withDirectives as G, createElementBlock as h, Fragment as H, renderList as K, createVNode as w, createCommentVNode as x, createElementVNode as F, createTextVNode as M, toDisplayString as b, unref as O } from "vue";
2
+ import "./context-Bu4mmo1Q.js";
3
+ import { InfoBox as Q } from "bkui-vue/lib";
4
+ import X from "bkui-vue/lib/message";
5
+ import { u as Y, c as Z, M as $, p as ee, m as te, h as oe, r as B, f as se, a as ae, _ as ne } from "./index-CgRqOi-E.js";
6
+ import { t as s } from "@blueking/flow-canvas";
7
+ const le = { class: "mock-data-sideslider__title" }, re = {
8
+ key: 0,
9
+ class: "mock-data-sideslider__title-sep"
10
+ }, ce = ["title"], ie = { class: "mock-data-sideslider" }, ue = { class: "mock-data-sideslider__footer" }, de = /* @__PURE__ */ A({
11
+ __name: "index",
12
+ props: {
13
+ show: { type: Boolean },
14
+ node: { default: null },
15
+ outputs: { default: () => ({}) },
16
+ pending: { type: Boolean, default: !1 }
17
+ },
18
+ emits: ["confirm", "close", "update:show"],
19
+ setup(D, { emit: j }) {
20
+ const t = D, k = j, E = Y(), f = v(!1), d = L([]), m = v({}), g = v({}), p = v(!1), T = C(
21
+ () => p.value ? s("当前节点的输出不支持mock,是否需要在调试时跳过当前节点?") : s("暂无输出结果")
22
+ ), N = C(
23
+ () => p.value ? s("跳过调试") : s("确定")
24
+ ), R = async () => {
25
+ if (t.node) {
26
+ f.value = !0, g.value = {}, p.value = !1;
27
+ try {
28
+ const e = await ee(E, t.node.component);
29
+ d.value = te(e.outputs ?? []), p.value = oe(e.outputs);
30
+ const l = t.outputs ?? {}, a = {};
31
+ d.value.forEach((o) => {
32
+ const c = Object.prototype.hasOwnProperty.call(l, o.key) ? l[o.key] : o.type === "object" ? {} : void 0, n = B(o);
33
+ a[o.key] = n === "json-editor" || n === "data-table" ? se(c) : c;
34
+ }), m.value = a;
35
+ } catch (e) {
36
+ console.error(e), d.value = [], m.value = {}, p.value = !1, X({ theme: "error", message: s("加载输出结果失败") });
37
+ } finally {
38
+ f.value = !1;
39
+ }
40
+ }
41
+ }, q = () => {
42
+ const e = {}, l = {};
43
+ return d.value.forEach((a) => {
44
+ const o = m.value[a.key], c = B(a);
45
+ if (c === "json-editor" || c === "data-table") {
46
+ const n = ae(o);
47
+ if (!n.valid) {
48
+ e[a.key] = n.message;
49
+ return;
50
+ }
51
+ n.value !== void 0 && (l[a.key] = n.value);
52
+ return;
53
+ }
54
+ o !== void 0 && o !== "" && (l[a.key] = o);
55
+ }), { errors: e, outputs: l };
56
+ }, I = (e) => {
57
+ Q({
58
+ title: s("确认 Mock 输出?"),
59
+ content: s("Mock 输出将覆盖当前输出结果,执行时跳过该节点并以 Mock 值替代实际输出"),
60
+ confirmText: s("确定"),
61
+ cancelText: s("取消"),
62
+ width: 400,
63
+ onConfirm: () => {
64
+ e();
65
+ }
66
+ });
67
+ }, J = () => {
68
+ if (p.value) {
69
+ k("confirm", { outputs: {} });
70
+ return;
71
+ }
72
+ const { errors: e, outputs: l } = q();
73
+ g.value = e, !(Object.keys(e).length > 0) && I(() => k("confirm", { outputs: l }));
74
+ }, V = () => {
75
+ k("close"), k("update:show", !1);
76
+ };
77
+ return P(
78
+ () => [t.show, t.node?.id],
79
+ ([e]) => {
80
+ e && t.node && (m.value = Z(t.outputs ?? {}), R());
81
+ },
82
+ { immediate: !0 }
83
+ ), (e, l) => {
84
+ const a = _("bk-form-item"), o = _("bk-form"), c = _("bk-exception"), n = _("bk-button"), S = _("bk-sideslider"), U = W("bkloading");
85
+ return r(), y(S, {
86
+ "is-show": t.show,
87
+ width: 960,
88
+ "quick-close": "",
89
+ "esc-close": !1,
90
+ onClosed: V
91
+ }, {
92
+ header: u(() => [
93
+ F("span", le, b(O(s)("Mock输出")), 1),
94
+ t.node?.name ? (r(), h("span", re, "-")) : x("", !0),
95
+ t.node?.name ? (r(), h("span", {
96
+ key: 1,
97
+ class: "mock-data-sideslider__title-node",
98
+ title: t.node.name
99
+ }, b(t.node.name), 9, ce)) : x("", !0)
100
+ ]),
101
+ footer: u(() => [
102
+ F("div", ue, [
103
+ w(n, {
104
+ theme: "primary",
105
+ "data-test": "mock-confirm",
106
+ loading: t.pending,
107
+ onClick: J
108
+ }, {
109
+ default: u(() => [
110
+ M(b(N.value), 1)
111
+ ]),
112
+ _: 1
113
+ }, 8, ["loading"]),
114
+ w(n, {
115
+ disabled: t.pending,
116
+ onClick: V
117
+ }, {
118
+ default: u(() => [
119
+ M(b(O(s)("取消")), 1)
120
+ ]),
121
+ _: 1
122
+ }, 8, ["disabled"])
123
+ ])
124
+ ]),
125
+ default: u(() => [
126
+ G((r(), h("div", ie, [
127
+ d.value.length > 0 ? (r(), y(o, {
128
+ key: 0,
129
+ "form-type": "vertical",
130
+ "label-width": 120,
131
+ "data-test": "mock-outputs-form"
132
+ }, {
133
+ default: u(() => [
134
+ (r(!0), h(H, null, K(d.value, (i) => (r(), y(a, {
135
+ key: i.key,
136
+ label: i.name || i.key
137
+ }, {
138
+ default: u(() => [
139
+ w($, {
140
+ modelValue: m.value[i.key],
141
+ "onUpdate:modelValue": (z) => m.value[i.key] = z,
142
+ field: i,
143
+ error: g.value[i.key]
144
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "field", "error"])
145
+ ]),
146
+ _: 2
147
+ }, 1032, ["label"]))), 128))
148
+ ]),
149
+ _: 1
150
+ })) : f.value ? x("", !0) : (r(), y(c, {
151
+ key: 1,
152
+ class: "mock-data-sideslider__exception",
153
+ scene: "part",
154
+ type: "empty",
155
+ title: T.value
156
+ }, null, 8, ["title"]))
157
+ ])), [
158
+ [U, { loading: f.value }]
159
+ ])
160
+ ]),
161
+ _: 1
162
+ }, 8, ["is-show"]);
163
+ };
164
+ }
165
+ }), ye = /* @__PURE__ */ ne(de, [["__scopeId", "data-v-402876f9"]]);
166
+ export {
167
+ ye as default
168
+ };
@@ -0,0 +1,137 @@
1
+ import { openBlock as o, createElementBlock as t, createElementVNode as s, defineComponent as y, computed as B, resolveDirective as w, unref as a, normalizeClass as u, toDisplayString as i, createCommentVNode as h, withDirectives as g, createVNode as V, resolveComponent as v, createBlock as k, withCtx as R, Fragment as H, renderList as T } from "vue";
2
+ import "./context-Bu4mmo1Q.js";
3
+ import { _ as f, e as I } from "./index-CgRqOi-E.js";
4
+ import { t as d } from "@blueking/flow-canvas";
5
+ const $ = {}, Y = { class: "redo-icon" };
6
+ function L(n, l) {
7
+ return o(), t("span", Y, [...l[0] || (l[0] = [
8
+ s("svg", {
9
+ width: "11",
10
+ height: "10",
11
+ viewBox: "0 0 11 10",
12
+ fill: "none",
13
+ "aria-hidden": "true"
14
+ }, [
15
+ s("path", {
16
+ "fill-rule": "evenodd",
17
+ "clip-rule": "evenodd",
18
+ d: "M3.5 5L0 2.5L3.5 0V2H7C9.20914 2 11 3.79086 11 6C11 8.20914 9.20914 10 7 10H4V9H7C8.65685 9 10 7.65685 10 6C10 4.34315 8.65685 3 7 3H3.5V5Z",
19
+ fill: "currentColor"
20
+ })
21
+ ], -1)
22
+ ])]);
23
+ }
24
+ const M = /* @__PURE__ */ f($, [["render", L], ["__scopeId", "data-v-9149475f"]]), N = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20opacity='0.2'%20cx='8'%20cy='8'%20r='6'%20fill='%23C4C6CC'%20/%3e%3ccircle%20cx='8'%20cy='8'%20r='3'%20fill='%23979BA5'%20/%3e%3c/svg%3e", E = { class: "version-history-item" }, j = ["src"], z = { class: "item-head" }, A = {
25
+ key: 0,
26
+ class: "item-online-tag"
27
+ }, F = { class: "item-meta" }, S = {
28
+ key: 0,
29
+ class: "item-desc"
30
+ }, Z = /* @__PURE__ */ y({
31
+ __name: "version-history-item",
32
+ props: {
33
+ snapshot: {},
34
+ online: { type: Boolean, default: !1 },
35
+ active: { type: Boolean, default: !1 },
36
+ showRollback: { type: Boolean, default: !1 },
37
+ rollbackDisabled: { type: Boolean, default: !1 },
38
+ rollbackDisabledTip: { default: "" }
39
+ },
40
+ emits: ["rollback"],
41
+ setup(n, { emit: l }) {
42
+ const e = n, c = l, p = B(() => I(e.snapshot.create_time).format("YYYY-MM-DD HH:mm:ss")), _ = () => {
43
+ e.rollbackDisabled || !e.snapshot.version || c("rollback", e.snapshot.version);
44
+ };
45
+ return (b, x) => {
46
+ const m = w("bk-tooltips");
47
+ return o(), t("div", E, [
48
+ s("img", {
49
+ class: "item-dot",
50
+ src: a(N),
51
+ alt: ""
52
+ }, null, 8, j),
53
+ s("div", z, [
54
+ s("span", {
55
+ class: u(["item-version", { "is-active": e.active }])
56
+ }, "V" + i(e.snapshot.version), 3),
57
+ e.online ? (o(), t("span", A, i(a(d)("线上版本")), 1)) : h("", !0),
58
+ e.showRollback ? g((o(), t("div", {
59
+ key: 1,
60
+ class: u(["item-rollback", { "is-disabled": e.rollbackDisabled }]),
61
+ "data-test": "version-history-rollback",
62
+ onClick: _
63
+ }, [
64
+ V(M),
65
+ s("span", null, i(a(d)("加载至草稿")), 1)
66
+ ], 2)), [
67
+ [m, { content: e.rollbackDisabledTip, disabled: !e.rollbackDisabledTip }]
68
+ ]) : h("", !0)
69
+ ]),
70
+ s("div", F, [
71
+ s("span", null, i(p.value), 1),
72
+ s("span", null, i(e.snapshot.operator), 1)
73
+ ]),
74
+ e.snapshot.desc ? (o(), t("div", S, i(e.snapshot.desc), 1)) : h("", !0)
75
+ ]);
76
+ };
77
+ }
78
+ }), q = /* @__PURE__ */ f(Z, [["__scopeId", "data-v-4f42f220"]]), G = { class: "version-history-slider" }, J = { key: 1 }, K = /* @__PURE__ */ y({
79
+ __name: "index",
80
+ props: {
81
+ show: { type: Boolean },
82
+ snapshots: {},
83
+ onlineVersion: { default: null },
84
+ activeVersion: { default: void 0 },
85
+ loading: { type: Boolean, default: !1 },
86
+ showRollback: { type: Boolean, default: !1 },
87
+ rollbackDisabled: { type: Boolean, default: !1 },
88
+ rollbackDisabledTip: { default: "" }
89
+ },
90
+ emits: ["update:show", "rollback"],
91
+ setup(n, { emit: l }) {
92
+ const e = n, c = l, p = () => {
93
+ c("update:show", !1);
94
+ }, _ = (b) => {
95
+ c("rollback", b);
96
+ };
97
+ return (b, x) => {
98
+ const m = v("bk-exception"), D = v("bk-sideslider"), C = w("bkloading");
99
+ return o(), k(D, {
100
+ title: a(d)("版本历史"),
101
+ "is-show": e.show,
102
+ width: 640,
103
+ "esc-close": !1,
104
+ "before-close": p
105
+ }, {
106
+ default: R(() => [
107
+ g((o(), t("div", G, [
108
+ !e.loading && e.snapshots.length === 0 ? (o(), k(m, {
109
+ key: 0,
110
+ class: "history-empty",
111
+ scene: "part",
112
+ type: "empty",
113
+ title: a(d)("暂无历史版本")
114
+ }, null, 8, ["title"])) : (o(), t("div", J, [
115
+ (o(!0), t(H, null, T(e.snapshots, (r) => (o(), k(q, {
116
+ key: r.id,
117
+ snapshot: r,
118
+ online: r.version === e.onlineVersion,
119
+ active: r.version === e.activeVersion,
120
+ "show-rollback": e.showRollback,
121
+ "rollback-disabled": e.rollbackDisabled,
122
+ "rollback-disabled-tip": e.rollbackDisabledTip,
123
+ onRollback: _
124
+ }, null, 8, ["snapshot", "online", "active", "show-rollback", "rollback-disabled", "rollback-disabled-tip"]))), 128))
125
+ ]))
126
+ ])), [
127
+ [C, { loading: e.loading }]
128
+ ])
129
+ ]),
130
+ _: 1
131
+ }, 8, ["title", "is-show"]);
132
+ };
133
+ }
134
+ }), W = /* @__PURE__ */ f(K, [["__scopeId", "data-v-4b967ce3"]]);
135
+ export {
136
+ W as default
137
+ };