@ximatai/muyun-web-app 0.26.12 → 0.26.14

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 (152) hide show
  1. package/dist/BusinessActivityLogView-BUg5WTm-.js +16 -0
  2. package/dist/BusinessLogListDrawer-BOTE_7aT.js +825 -0
  3. package/dist/LoginAuditLogView-DBNtvmIy.js +16 -0
  4. package/dist/{ModuleActionManagementView-BHEooZ5L.js → ModuleActionManagementView-Bq1VO51Y.js} +207 -206
  5. package/dist/{ModuleGovernanceView-DB3TWlMy.js → ModuleGovernanceView-B8u4_erd.js} +4036 -3213
  6. package/dist/RequestErrorLogView-BrtH3ptj.js +16 -0
  7. package/dist/RoleDetailWorkspaceView-6LW3tLA1.js +1397 -0
  8. package/dist/RuntimeLogView-s3X5CdHB.js +297 -0
  9. package/dist/index.css +1 -1
  10. package/dist/index.js +499 -469
  11. package/dist/{moduleGovernanceWorkspaceView-C5pqJOEJ.js → moduleGovernanceWorkspaceView-BRgJbUjJ.js} +2 -2
  12. package/dist/platform-components-Dt859Hbr.js +18627 -0
  13. package/dist/platform-workbench-DfqFnlm-.js +14701 -0
  14. package/dist/sse-mGbuCAax.js +187 -0
  15. package/dist/types/consumer/index.d.ts +7 -0
  16. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +2418 -0
  17. package/dist/types/dynamic-page-runtime/ModulePageBusinessState.vue.d.ts +11 -0
  18. package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +20 -4
  19. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +4643 -0
  20. package/dist/types/dynamic-page-runtime/ModulePageHostSession.vue.d.ts +43 -0
  21. package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +2 -2
  22. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +3 -0
  23. package/dist/types/dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue.d.ts +42 -0
  24. package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +2 -2
  25. package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -2
  26. package/dist/types/dynamic-page-runtime/TenantScopeExplorer.vue.d.ts +21 -0
  27. package/dist/types/dynamic-page-runtime/assistantRecordEditorPolicy.d.ts +6 -0
  28. package/dist/types/dynamic-page-runtime/composables/useModulePageActions.d.ts +1 -1
  29. package/dist/types/dynamic-page-runtime/composables/useModulePageDetailActionRuntime.d.ts +5 -0
  30. package/dist/types/dynamic-page-runtime/composables/useModulePageListSession.d.ts +1 -0
  31. package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +1 -0
  32. package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +2 -0
  33. package/dist/types/dynamic-page-runtime/formActionResult.d.ts +2 -0
  34. package/dist/types/dynamic-page-runtime/index.d.ts +3 -0
  35. package/dist/types/dynamic-page-runtime/inputValidationActionStatus.d.ts +20 -0
  36. package/dist/types/dynamic-page-runtime/modulePageAssistantScope.d.ts +8 -0
  37. package/dist/types/dynamic-page-runtime/modulePageAssistantSurface.d.ts +6 -0
  38. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +7 -3
  39. package/dist/types/dynamic-page-runtime/modulePageUnsavedState.d.ts +10 -0
  40. package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +1 -0
  41. package/dist/types/dynamic-page-runtime/recordMutationPayload.d.ts +3 -2
  42. package/dist/types/dynamic-page-runtime/referenceRecordProjection.d.ts +6 -0
  43. package/dist/types/dynamic-page-runtime/sessionViewBindings.d.ts +3 -0
  44. package/dist/types/dynamic-page-runtime/sourceReferencePickerConfig.d.ts +26 -0
  45. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +1833 -0
  46. package/dist/types/dynamic-page-runtime/useTenantScopeController.d.ts +19 -0
  47. package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +5 -0
  48. package/dist/types/platform-admin-runtime/role/roleScopeSelectionClient.d.ts +52 -0
  49. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +13 -2
  50. package/dist/types/platform-components/DictionaryOptionDialog.vue.d.ts +37 -0
  51. package/dist/types/platform-components/DictionaryOptionDialogChoiceList.vue.d.ts +21 -0
  52. package/dist/types/platform-components/DictionaryPicker.vue.d.ts +47 -0
  53. package/dist/types/platform-components/DictionaryRadioGroup.vue.d.ts +20 -0
  54. package/dist/types/platform-components/EmployeePicker.vue.d.ts +40 -0
  55. package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
  56. package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +34 -0
  57. package/dist/types/platform-components/QueryCriteriaComposer.vue.d.ts +29 -0
  58. package/dist/types/platform-components/QueryCriteriaGroupEditor.vue.d.ts +36 -0
  59. package/dist/types/platform-components/QueryValueEditor.vue.d.ts +33 -0
  60. package/dist/types/platform-components/ReadonlyReferenceValue.vue.d.ts +11 -0
  61. package/dist/types/platform-components/RecordContentSectionHeading.vue.d.ts +4 -2
  62. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +8 -3
  63. package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +7 -3
  64. package/dist/types/platform-components/RecordDetailFields.vue.d.ts +4 -6
  65. package/dist/types/platform-components/RecordFormFields.vue.d.ts +6 -6
  66. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +11 -3
  67. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +2 -2
  68. package/dist/types/platform-components/RecordPicker.vue.d.ts +2 -2
  69. package/dist/types/platform-components/RecordQueryListCell.vue.d.ts +1 -1
  70. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +26 -4
  71. package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +20 -0
  72. package/dist/types/platform-components/ReferencePicker.vue.d.ts +47 -0
  73. package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +55 -0
  74. package/dist/types/platform-components/ScopedTreePicker.vue.d.ts +31 -0
  75. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +5 -2
  76. package/dist/types/platform-components/UserPicker.vue.d.ts +47 -0
  77. package/dist/types/platform-components/dictionaryOptionDialogModel.d.ts +23 -0
  78. package/dist/types/platform-components/employeePickerModel.d.ts +19 -0
  79. package/dist/types/platform-components/identityPickerModel.d.ts +18 -0
  80. package/dist/types/platform-components/index.d.ts +32 -2
  81. package/dist/types/platform-components/optionFieldOptionCache.d.ts +1 -1
  82. package/dist/types/platform-components/queryCriteriaDraft.d.ts +24 -0
  83. package/dist/types/platform-components/queryReferencePickerProvider.d.ts +19 -0
  84. package/dist/types/platform-components/querySettlementController.d.ts +5 -0
  85. package/dist/types/platform-components/readonlyReferenceDisplay.d.ts +19 -0
  86. package/dist/types/platform-components/recordEditorSessionState.d.ts +11 -4
  87. package/dist/types/platform-components/recordFormFieldModel.d.ts +28 -2
  88. package/dist/types/platform-components/recordQueryListColumnModel.d.ts +10 -1
  89. package/dist/types/platform-components/recordQueryListQueryController.d.ts +36 -0
  90. package/dist/types/platform-components/recordTreeQueryController.d.ts +18 -0
  91. package/dist/types/platform-components/referencePickerModel.d.ts +105 -0
  92. package/dist/types/platform-components/referencePickerReadError.d.ts +24 -0
  93. package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +48 -0
  94. package/dist/types/platform-components/scopedTreePickerModel.d.ts +46 -0
  95. package/dist/types/platform-components/sourceReferencePickerProvider.d.ts +26 -0
  96. package/dist/types/platform-components/staticCrudManagementState.d.ts +7 -6
  97. package/dist/types/platform-components/userPickerModel.d.ts +45 -0
  98. package/dist/types/platform-components/userReferencePicker.d.ts +17 -0
  99. package/dist/types/platform-workbench/AssistantMarkdownContent.vue.d.ts +6 -0
  100. package/dist/types/platform-workbench/AssistantSelectionCard.vue.d.ts +15 -0
  101. package/dist/types/platform-workbench/Workbench.vue.d.ts +7 -2
  102. package/dist/types/platform-workbench/WorkbenchAssistantPanel.vue.d.ts +12 -0
  103. package/dist/types/platform-workbench/assistantMarkdown.d.ts +1 -0
  104. package/dist/types/platform-workbench/index.d.ts +1 -0
  105. package/dist/types/platform-workbench/useWorkspaceViewUnsavedState.d.ts +1 -1
  106. package/dist/types/platform-workbench/workbenchAssistantCapabilities.d.ts +3 -0
  107. package/dist/types/platform-workbench/workspaceViewHost.d.ts +1 -1
  108. package/dist/types/platform-workbench/workspaceViewUnsavedState.d.ts +3 -1
  109. package/dist/types/views/BusinessActivityLogView.vue.d.ts +3 -0
  110. package/dist/types/views/BusinessLogListDrawer.vue.d.ts +9 -0
  111. package/dist/types/views/BusinessLogRetentionControl.vue.d.ts +7 -0
  112. package/dist/types/views/LoginAuditLogView.vue.d.ts +3 -0
  113. package/dist/types/views/RequestErrorLogView.vue.d.ts +3 -0
  114. package/dist/types/views/RuntimeLogView.vue.d.ts +3 -0
  115. package/dist/types/views/businessLogClient.d.ts +88 -0
  116. package/dist/types/views/businessLogRetentionClient.d.ts +25 -0
  117. package/dist/types/views/dictionaryRadioEligibility.d.ts +18 -0
  118. package/dist/types/views/dictionaryRadioFactRequestEpoch.d.ts +10 -0
  119. package/dist/types/views/metadataGovernanceAssistantSurface.d.ts +122 -0
  120. package/dist/types/views/metadataModelChangeSetClient.d.ts +36 -0
  121. package/dist/types/views/metadataModelEditSession.d.ts +10 -1
  122. package/dist/types/views/metadataNaming.d.ts +4 -0
  123. package/dist/types/views/pageCompositionDraftState.d.ts +29 -0
  124. package/dist/types/views/roleDetailWorkspaceSession.d.ts +1 -0
  125. package/dist/types/views/roleGrantClient.d.ts +0 -1
  126. package/dist/types/views/runtimeLogClient.d.ts +12 -0
  127. package/dist/types/views/runtimeLogSse.d.ts +3 -0
  128. package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +15 -0
  129. package/dist/types/vue-ui-antdv/components/UiSearchInput.vue.d.ts +16 -2
  130. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +23 -1
  131. package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +9 -2
  132. package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +2 -0
  133. package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +1 -1
  134. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +23 -1
  135. package/dist/types/vue-ui-antdv/drawerDismissal.d.ts +18 -0
  136. package/dist/types/vue-ui-antdv/drawerWidth.d.ts +22 -0
  137. package/dist/types/vue-ui-antdv/index.d.ts +4 -0
  138. package/dist/types/web-contracts/assistant.d.ts +59 -0
  139. package/dist/types/web-contracts/index.d.ts +67 -6
  140. package/dist/types/web-core/assistantRuntime.d.ts +77 -0
  141. package/dist/types/web-core/assistantSurface.d.ts +92 -0
  142. package/dist/types/web-core/assistantTurnClient.d.ts +8 -0
  143. package/dist/types/web-core/http.d.ts +2 -0
  144. package/dist/types/web-core/index.d.ts +4 -0
  145. package/dist/types/web-core/module/moduleContext.d.ts +15 -2
  146. package/dist/types/web-core/module/runtimeContext.d.ts +3 -2
  147. package/dist/types/web-core/module/staticModuleClient.d.ts +5 -1
  148. package/dist/types/web-core/sse.d.ts +9 -0
  149. package/dist/{workspaceViews-DI_1vYX9.js → workspaceViews-DijY4n32.js} +1190 -1085
  150. package/package.json +1 -1
  151. package/dist/RoleDetailWorkspaceView-D6X7pAj5.js +0 -1379
  152. package/dist/platform-workbench-DJj42YQP.js +0 -22911
@@ -0,0 +1,297 @@
1
+ import { A as e, Dt as t, Jt as n, Lt as r, Mt as i, Tn as a, Ut as ee, gn as o, hn as te, ot as ne, vn as s } from "./platform-components-Dt859Hbr.js";
2
+ import { r as c, t as l } from "./sse-mGbuCAax.js";
3
+ import { computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, nextTick as v, onBeforeUnmount as y, openBlock as b, ref as x, toDisplayString as S, unref as C, watch as re, withCtx as w } from "vue";
4
+ //#region src/views/runtimeLogClient.ts
5
+ var T = "/platform.runtime_log";
6
+ function E(e) {
7
+ if (!c(e)) throw Error("当前 HTTP 客户端不支持运行日志流。");
8
+ return {
9
+ download(t) {
10
+ return e.stream({
11
+ path: `${T}/files/${encodeURIComponent(t)}/download`,
12
+ headers: { Accept: "application/octet-stream" }
13
+ });
14
+ },
15
+ activeStream(t, n) {
16
+ return e.stream({
17
+ method: "POST",
18
+ path: `${T}/active/stream`,
19
+ body: { tailLines: t },
20
+ headers: { Accept: "text/event-stream, application/json" },
21
+ ...n ? { signal: n } : {}
22
+ });
23
+ }
24
+ };
25
+ }
26
+ //#endregion
27
+ //#region src/views/runtimeLogSse.ts
28
+ var D = l, O = { class: "runtime-log-view" }, k = { class: "runtime-log-view__header-actions" }, A = { key: 2 }, j = { key: 3 }, ie = { class: "runtime-log-view__row-actions" }, ae = {
29
+ key: 0,
30
+ class: "runtime-log-view__content"
31
+ }, oe = 500, M = /*#__PURE__*/ s(/* @__PURE__ */ _({
32
+ name: "RuntimeLogView",
33
+ __name: "RuntimeLogView",
34
+ setup(s) {
35
+ let c = a({ moduleAlias: "platform.runtime_log" }), l = E(c.http), _ = x(), T = x(), M = x(!1), N = x(), P = x(""), F = x("closed"), I = x(), L = x(), R = x(!0), z = 0, B, V, H = 0, U = u(() => I.value ? I.value : {
36
+ connecting: "正在连接实时日志…",
37
+ live: "正在实时更新",
38
+ rotated: "日志文件已轮转,请重新连接。",
39
+ error: "实时日志连接已中断。",
40
+ closed: "实时日志已关闭。"
41
+ }[F.value]), W = u(() => [
42
+ "closed",
43
+ "error",
44
+ "rotated"
45
+ ].includes(F.value)), G = [
46
+ {
47
+ key: "name",
48
+ title: "文件名称",
49
+ width: "360px"
50
+ },
51
+ {
52
+ key: "sizeBytes",
53
+ title: "文件大小",
54
+ width: "140px",
55
+ align: "right"
56
+ },
57
+ {
58
+ key: "lastModifiedAt",
59
+ title: "最后修改时间",
60
+ width: "208px"
61
+ },
62
+ {
63
+ key: "active",
64
+ title: "状态",
65
+ width: "132px"
66
+ }
67
+ ];
68
+ y(J), re(P, () => {
69
+ R.value && Y();
70
+ });
71
+ function K() {
72
+ M.value = !0, N.value = void 0, P.value = "", R.value = !0, H = 0, q();
73
+ }
74
+ function se() {
75
+ M.value && (P.value = "", R.value = !0, H = 0, q());
76
+ }
77
+ function ce() {
78
+ M.value = !1, N.value = void 0, J();
79
+ }
80
+ function q() {
81
+ J();
82
+ let e = ++z, t = new AbortController();
83
+ V = t, F.value = "connecting", I.value = void 0, le(e, t);
84
+ }
85
+ async function le(e, t) {
86
+ try {
87
+ let n = await l.activeStream(oe, t.signal);
88
+ if (t.signal.aborted || e !== z) {
89
+ await n.cancel();
90
+ return;
91
+ }
92
+ let r = n.getReader();
93
+ B = r;
94
+ let i = new TextDecoder(), a = D((n) => ue(n, e, t));
95
+ for (; !t.signal.aborted && e === z;) {
96
+ let { done: e, value: t } = await r.read();
97
+ if (e) break;
98
+ t && a.push(i.decode(t, { stream: !0 }));
99
+ }
100
+ a.push(i.decode()), a.finish(), !t.signal.aborted && e === z && F.value !== "rotated" && (F.value = "closed", I.value = "实时日志连接已结束。");
101
+ } catch (n) {
102
+ !t.signal.aborted && e === z && (F.value = "error", I.value = $(n, "实时日志连接失败,请重新连接。"), i(n, {
103
+ source: "runtime-log-stream",
104
+ phase: "load"
105
+ }));
106
+ } finally {
107
+ e === z && (B = void 0);
108
+ }
109
+ }
110
+ function ue(e, t, n) {
111
+ if (!(n.signal.aborted || t !== z)) switch (e.event) {
112
+ case "snapshot":
113
+ case "reset": {
114
+ let t = X(e.data);
115
+ P.value = Z(t.text), N.value = Q(t.fileName) ?? N.value, F.value = "live", I.value = e.event === "reset" ? "日志内容已重置,正在继续实时更新。" : void 0;
116
+ return;
117
+ }
118
+ case "append": {
119
+ let t = X(e.data);
120
+ P.value += Z(t.text), F.value = "live", I.value = void 0;
121
+ return;
122
+ }
123
+ case "rotated": {
124
+ let t = X(e.data);
125
+ N.value = Q(t.fileName) ?? N.value, H < 1 ? (H += 1, F.value = "connecting", I.value = "日志文件已轮转,正在重新连接最新文件…", v(() => q())) : (F.value = "rotated", I.value = "日志文件再次轮转,请手动重新连接。", J());
126
+ return;
127
+ }
128
+ case "error": {
129
+ let t = X(e.data);
130
+ F.value = "error", I.value = Q(t.message) ?? "实时日志连接出现错误,请重新连接。", J();
131
+ }
132
+ }
133
+ }
134
+ function J() {
135
+ z += 1, V?.abort(), V = void 0;
136
+ let e = B;
137
+ B = void 0, e && e.cancel().catch(() => void 0);
138
+ }
139
+ async function de(e) {
140
+ if (!T.value) {
141
+ T.value = e.name;
142
+ try {
143
+ let t = await fe(await l.download(e.name)), n = t.buffer.slice(t.byteOffset, t.byteOffset + t.byteLength), r = URL.createObjectURL(new Blob([n], { type: "text/plain;charset=utf-8" })), i = document.createElement("a");
144
+ i.href = r, i.download = e.name, i.click(), window.setTimeout(() => URL.revokeObjectURL(r), 6e4);
145
+ } catch (t) {
146
+ _.value = $(t, `下载 ${e.name} 失败,请稍后重试。`), i(t, {
147
+ source: "runtime-log-download",
148
+ phase: "load"
149
+ });
150
+ } finally {
151
+ T.value = void 0;
152
+ }
153
+ }
154
+ }
155
+ async function fe(e) {
156
+ let t = e.getReader(), n = [], r = 0;
157
+ try {
158
+ for (;;) {
159
+ let { done: e, value: i } = await t.read();
160
+ if (e) break;
161
+ i && (n.push(i), r += i.length);
162
+ }
163
+ } finally {
164
+ t.releaseLock();
165
+ }
166
+ let i = new Uint8Array(r), a = 0;
167
+ for (let e of n) i.set(e, a), a += e.length;
168
+ return i;
169
+ }
170
+ function pe() {
171
+ let e = L.value;
172
+ e && (R.value = e.scrollTop + e.clientHeight >= e.scrollHeight - 24);
173
+ }
174
+ async function Y() {
175
+ await v();
176
+ let e = L.value;
177
+ e && (e.scrollTop = e.scrollHeight);
178
+ }
179
+ function X(e) {
180
+ try {
181
+ let t = JSON.parse(e);
182
+ return t && typeof t == "object" && !Array.isArray(t) ? t : {};
183
+ } catch {
184
+ return {};
185
+ }
186
+ }
187
+ function Z(e) {
188
+ return typeof e == "string" ? e : "";
189
+ }
190
+ function Q(e) {
191
+ return typeof e == "string" && e ? e : void 0;
192
+ }
193
+ function $(e, t) {
194
+ return e instanceof Error && e.message ? e.message : t;
195
+ }
196
+ return (i, a) => (b(), p("section", O, [
197
+ _.value ? (b(), d(C(ee), {
198
+ key: 0,
199
+ class: "runtime-log-view__error",
200
+ message: _.value
201
+ }, null, 8, ["message"])) : f("v-if", !0),
202
+ g(C(e), {
203
+ class: "runtime-log-view__list",
204
+ context: C(c),
205
+ title: "程序日志",
206
+ columns: G,
207
+ "row-key": "name",
208
+ "show-recycle-bin": !1,
209
+ "standard-crud-actions": !1,
210
+ "page-size": 20,
211
+ "page-size-options": [
212
+ 10,
213
+ 20,
214
+ 50
215
+ ],
216
+ "empty-description": "当前日志目录中没有可用的日志文件",
217
+ "row-actions-of": () => [],
218
+ "row-actions-title": "操作",
219
+ "action-column-width": "176"
220
+ }, {
221
+ operations: w(() => [m("div", k, [g(C(o), {
222
+ type: "primary",
223
+ "icon-name": "eye",
224
+ onClick: K
225
+ }, {
226
+ default: w(() => [...a[0] ||= [h(" 实时查看 ", -1)]]),
227
+ _: 1
228
+ })])]),
229
+ cell: w(({ column: e, record: n }) => [e.key === "sizeBytes" ? (b(), d(C(t), {
230
+ key: 0,
231
+ value: n.sizeBytes
232
+ }, null, 8, ["value"])) : e.key === "lastModifiedAt" ? (b(), d(C(r), {
233
+ key: 1,
234
+ value: n.lastModifiedAt
235
+ }, null, 8, ["value"])) : e.key === "active" ? (b(), p("span", A, S(n.active ? "正在写入" : "已归档"), 1)) : (b(), p("span", j, S(n[e.key]), 1))]),
236
+ rowActions: w(({ record: e }) => [m("div", ie, [e.active === !0 ? (b(), d(C(o), {
237
+ key: 0,
238
+ type: "link",
239
+ size: "small",
240
+ "icon-name": "eye",
241
+ onClick: K
242
+ }, {
243
+ default: w(() => [...a[1] ||= [h(" 实时查看 ", -1)]]),
244
+ _: 1
245
+ })) : f("v-if", !0), g(C(o), {
246
+ type: "link",
247
+ size: "small",
248
+ "icon-name": "download",
249
+ loading: T.value === e.name,
250
+ disabled: !!T.value && T.value !== e.name,
251
+ onClick: (t) => de(e)
252
+ }, {
253
+ default: w(() => [...a[2] ||= [h(" 下载 ", -1)]]),
254
+ _: 1
255
+ }, 8, [
256
+ "loading",
257
+ "disabled",
258
+ "onClick"
259
+ ])])]),
260
+ _: 1
261
+ }, 8, ["context"]),
262
+ g(C(ne), {
263
+ open: M.value,
264
+ title: N.value ? `实时日志 · ${N.value}` : "实时日志",
265
+ subtitle: U.value,
266
+ width: "standard",
267
+ "render-mode": "inline",
268
+ dismissal: "dismissible",
269
+ onClose: ce
270
+ }, {
271
+ "header-actions": w(() => [W.value ? (b(), d(C(te), {
272
+ key: 0,
273
+ emphasis: "quiet",
274
+ "icon-name": "reload",
275
+ title: "重新连接",
276
+ onClick: se
277
+ })) : f("v-if", !0)]),
278
+ default: w(() => [m("div", {
279
+ ref_key: "logViewport",
280
+ ref: L,
281
+ class: "runtime-log-view__viewport",
282
+ onScroll: pe
283
+ }, [P.value ? (b(), p("pre", ae, S(P.value), 1)) : (b(), d(C(n), {
284
+ key: 1,
285
+ description: F.value === "connecting" ? "正在读取日志末尾内容…" : "暂无日志内容"
286
+ }, null, 8, ["description"]))], 544)]),
287
+ _: 1
288
+ }, 8, [
289
+ "open",
290
+ "title",
291
+ "subtitle"
292
+ ])
293
+ ]));
294
+ }
295
+ }), [["__scopeId", "data-v-7370d66a"]]);
296
+ //#endregion
297
+ export { M as default };