ling-yun-custom-components 0.0.66 → 0.0.67
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/es/chunks/AppIntro.DubEs5q_.js +431 -0
- package/es/chunks/BuildComponents.Bu-jJtCo.js +203 -0
- package/es/chunks/CustomDialog.T0DjhxY4.js +5 -0
- package/es/chunks/CustomDropdown.BoSVXB8_.js +132 -0
- package/es/chunks/CustomPagination.D26A7iFP.js +5 -0
- package/es/chunks/CustomTab.BCs2BQZr.js +52 -0
- package/es/chunks/GradientButton.BVlXDphQ.js +91 -0
- package/es/chunks/PageNotFound.CLFUj6wN.js +31 -0
- package/es/chunks/PaginationTable.DCYPUxcZ.js +357 -0
- package/es/chunks/PluginDetail.CV8dYPPL.js +223 -0
- package/es/chunks/UpdatePasswordDialog.CkKA35QX.js +110 -0
- package/es/chunks/_plugin-vue_export-helper.Cf-_TWPK.js +6 -0
- package/es/chunks/layout.BqQQsRMO.js +95 -0
- package/es/chunks/layout.BuyWf5hx.js +189 -0
- package/es/chunks/utils.BhlZXNZ6.js +19 -0
- package/lib/chunks/AppIntro.CIDfpAQM.js +1 -0
- package/lib/chunks/BuildComponents.CmF7gV_k.js +1 -0
- package/lib/chunks/CustomDialog.lBdGLThM.js +1 -0
- package/lib/chunks/CustomDropdown.DS2fIdjY.js +1 -0
- package/lib/chunks/CustomPagination.Cyej-_3r.js +1 -0
- package/lib/chunks/CustomTab.DccrszIL.js +1 -0
- package/lib/chunks/GradientButton.DVbHjYJL.js +1 -0
- package/lib/chunks/PageNotFound.DWUdrtNX.js +1 -0
- package/lib/chunks/PaginationTable.BfbaK5Og.js +1 -0
- package/lib/chunks/PluginDetail.BUfKJRob.js +1 -0
- package/lib/chunks/UpdatePasswordDialog.B-POajDC.js +1 -0
- package/lib/chunks/_plugin-vue_export-helper.C55-DZV2.js +1 -0
- package/lib/chunks/layout.C5f-mOl4.js +1 -0
- package/lib/chunks/layout.uCgAET3T.js +1 -0
- package/lib/chunks/utils.BT5Uuz2Q.js +1 -0
- package/package.json +10 -10
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
import { t as withInstall } from "./utils.BhlZXNZ6.js";
|
|
2
|
+
import { t as layout_default$1 } from "./layout.BuyWf5hx.js";
|
|
3
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.Cf-_TWPK.js";
|
|
4
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
5
|
+
import { ElCard, ElForm, ElFormItem, ElIcon, ElLink, ElSegmented, ElTag, ElTimeline, ElTimelineItem } from "element-plus";
|
|
6
|
+
import { IconLook } from "color-message-lingyun-vue";
|
|
7
|
+
import { emitsMap, pageParams } from "color-star-custom-methods";
|
|
8
|
+
import { CustomTitle } from "color-star-custom-components";
|
|
9
|
+
import '../assets/AppIntro.css';const operationTypeMap = {
|
|
10
|
+
LISTING: 1,
|
|
11
|
+
DELISTING: 2,
|
|
12
|
+
ONLINE: 3,
|
|
13
|
+
OFFLINE: 4
|
|
14
|
+
}, auditStatusMap = {
|
|
15
|
+
PENDING: 0,
|
|
16
|
+
APPROVED: 1,
|
|
17
|
+
REJECTED: 2
|
|
18
|
+
}, mediaTypeMap = {
|
|
19
|
+
IMAGE: 1,
|
|
20
|
+
VIDEO: 2
|
|
21
|
+
}, tabTypeMap = {
|
|
22
|
+
INTRO: "intro",
|
|
23
|
+
TIMELINE: "timeline"
|
|
24
|
+
}, operationTypeToTextMap = {
|
|
25
|
+
[operationTypeMap.LISTING]: "上架申请",
|
|
26
|
+
[operationTypeMap.DELISTING]: "下架申请",
|
|
27
|
+
[operationTypeMap.ONLINE]: "上线应用",
|
|
28
|
+
[operationTypeMap.OFFLINE]: "下线应用"
|
|
29
|
+
}, auditStatusConfig = {
|
|
30
|
+
[auditStatusMap.PENDING]: {
|
|
31
|
+
type: "warning",
|
|
32
|
+
text: "待审核"
|
|
33
|
+
},
|
|
34
|
+
[auditStatusMap.APPROVED]: {
|
|
35
|
+
type: "primary",
|
|
36
|
+
text: "已通过"
|
|
37
|
+
},
|
|
38
|
+
[auditStatusMap.REJECTED]: {
|
|
39
|
+
type: "danger",
|
|
40
|
+
text: "已驳回"
|
|
41
|
+
}
|
|
42
|
+
}, infoItemsConfig = [
|
|
43
|
+
{
|
|
44
|
+
title: "申请人:",
|
|
45
|
+
field: "appCreatorName"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
title: "应用省份:",
|
|
49
|
+
field: "appCreatorOrg"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
title: "应用说明:",
|
|
53
|
+
field: "appDesc"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
title: "接入系统:",
|
|
57
|
+
field: "accessSystem"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
title: "业务背景:",
|
|
61
|
+
field: "businessBackground"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
title: "业务目标:",
|
|
65
|
+
field: "businessTarget"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
title: "成效数据:",
|
|
69
|
+
field: "resultData"
|
|
70
|
+
}
|
|
71
|
+
], timelineDetailFieldsConfig = [
|
|
72
|
+
{
|
|
73
|
+
title: "申请人",
|
|
74
|
+
field: "creatorName",
|
|
75
|
+
showForTypes: [operationTypeMap.LISTING, operationTypeMap.DELISTING]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
title: "操作人",
|
|
79
|
+
field: "creatorName",
|
|
80
|
+
showForTypes: [operationTypeMap.ONLINE, operationTypeMap.OFFLINE]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
title: "下架原因",
|
|
84
|
+
field: "delistingReason",
|
|
85
|
+
showForTypes: [operationTypeMap.DELISTING]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
title: "成效数据",
|
|
89
|
+
field: "resultData",
|
|
90
|
+
showForTypes: [operationTypeMap.LISTING]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
title: "推荐理由",
|
|
94
|
+
field: "recommendReason",
|
|
95
|
+
showForTypes: [operationTypeMap.LISTING]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
title: "版本号",
|
|
99
|
+
field: "appVersionNum",
|
|
100
|
+
showForTypes: [operationTypeMap.ONLINE, operationTypeMap.OFFLINE],
|
|
101
|
+
formatter: (f) => f ? `V${f}` : "--"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
title: "配置摘要",
|
|
105
|
+
field: "configSummary",
|
|
106
|
+
showForTypes: [operationTypeMap.ONLINE]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
title: "版本说明",
|
|
110
|
+
field: "publishRemark",
|
|
111
|
+
showForTypes: [operationTypeMap.ONLINE, operationTypeMap.OFFLINE]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
title: "下线原因",
|
|
115
|
+
field: "offlineReason",
|
|
116
|
+
showForTypes: [operationTypeMap.OFFLINE]
|
|
117
|
+
}
|
|
118
|
+
], timelineLinkConfig = {
|
|
119
|
+
[operationTypeMap.LISTING]: { text: "查看上架申请" },
|
|
120
|
+
[operationTypeMap.DELISTING]: { text: "查看下架申请" }
|
|
121
|
+
};
|
|
122
|
+
var _hoisted_1$3 = {
|
|
123
|
+
key: 0,
|
|
124
|
+
class: "media-video relative"
|
|
125
|
+
}, _hoisted_2$3 = ["src"], _hoisted_3$3 = {
|
|
126
|
+
key: 1,
|
|
127
|
+
class: "media-image relative"
|
|
128
|
+
}, _hoisted_4$2 = ["src"], MediaViewer_default = /* @__PURE__ */ _plugin_vue_export_helper_default({
|
|
129
|
+
__name: "MediaViewer",
|
|
130
|
+
props: { media: {
|
|
131
|
+
type: Object,
|
|
132
|
+
default: null
|
|
133
|
+
} },
|
|
134
|
+
setup(f) {
|
|
135
|
+
return (V, H) => f.media?.type === unref(mediaTypeMap).VIDEO ? (openBlock(), createElementBlock("div", _hoisted_1$3, [createElementVNode("video", {
|
|
136
|
+
class: "w-full",
|
|
137
|
+
src: f.media.url,
|
|
138
|
+
controls: ""
|
|
139
|
+
}, null, 8, _hoisted_2$3)])) : f.media?.type === unref(mediaTypeMap).IMAGE ? (openBlock(), createElementBlock("div", _hoisted_3$3, [createElementVNode("img", {
|
|
140
|
+
class: "w-full h-full",
|
|
141
|
+
src: f.media.url,
|
|
142
|
+
alt: ""
|
|
143
|
+
}, null, 8, _hoisted_4$2)])) : createCommentVNode("", !0);
|
|
144
|
+
}
|
|
145
|
+
}, [["__scopeId", "data-v-6cc88baf"]]), _hoisted_1$2 = { class: "app-intro-content overflow-hidden h-full" }, _hoisted_2$2 = {
|
|
146
|
+
key: 0,
|
|
147
|
+
class: "media-section w-full pd-b-12"
|
|
148
|
+
}, _hoisted_3$2 = { class: "media-content relative w-full" }, _hoisted_4$1 = ["onClick"], _hoisted_5 = {
|
|
149
|
+
key: 1,
|
|
150
|
+
class: "info-section"
|
|
151
|
+
}, _hoisted_6 = { class: "flex items-center" }, _hoisted_7 = { class: "fz-14 text-666 pd-r-12" }, _hoisted_8 = {
|
|
152
|
+
key: 2,
|
|
153
|
+
class: "flex flex-col mg-t-20",
|
|
154
|
+
style: { gap: "16px" }
|
|
155
|
+
}, _hoisted_9 = { class: "title-desc mg-r-2 fz-14" }, _hoisted_10 = { class: "value-desc fz-14" }, _hoisted_11 = {
|
|
156
|
+
key: 0,
|
|
157
|
+
class: "flex"
|
|
158
|
+
}, _hoisted_12 = { class: "flex items-center" }, _hoisted_13 = { class: "fz-14 text-666 pd-r-12" }, _hoisted_14 = { class: "preview-content" }, AppIntroContent_default = /* @__PURE__ */ _plugin_vue_export_helper_default({
|
|
159
|
+
__name: "AppIntroContent",
|
|
160
|
+
props: {
|
|
161
|
+
introData: {
|
|
162
|
+
type: Object,
|
|
163
|
+
default: () => ({})
|
|
164
|
+
},
|
|
165
|
+
layoutType: {
|
|
166
|
+
type: String,
|
|
167
|
+
default: "normal"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
setup(f) {
|
|
171
|
+
let H = ref(!1), U = ref(null), K = (f) => {
|
|
172
|
+
U.value = f, H.value = !0;
|
|
173
|
+
}, Y = () => {
|
|
174
|
+
H.value = !1, U.value = null;
|
|
175
|
+
}, Q = (f) => {
|
|
176
|
+
try {
|
|
177
|
+
let V = document.createElement("a");
|
|
178
|
+
V.href = f.attachementUrl, V.download = f.attachementName, V.style.display = "none", V.target = "_blank", document.body.appendChild(V), V.click(), document.body.removeChild(V);
|
|
179
|
+
} catch (f) {
|
|
180
|
+
console.error(f);
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
return (q, $) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
184
|
+
f.introData?.pics?.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_2$2, [createElementVNode("div", _hoisted_3$2, [(openBlock(!0), createElementBlock(Fragment, null, renderList(f.introData.pics, (f, V) => (openBlock(), createElementBlock("div", {
|
|
185
|
+
key: V,
|
|
186
|
+
class: "media-item w-full"
|
|
187
|
+
}, [createVNode(MediaViewer_default, { media: f }, null, 8, ["media"]), createElementVNode("div", {
|
|
188
|
+
class: "hover-overlay absolute top-0 left-0 flex justify-center items-center",
|
|
189
|
+
style: {
|
|
190
|
+
width: "262px",
|
|
191
|
+
height: "148px"
|
|
192
|
+
},
|
|
193
|
+
onClick: (V) => K(f)
|
|
194
|
+
}, [createVNode(unref(ElIcon), {
|
|
195
|
+
size: 24,
|
|
196
|
+
class: "view-icon"
|
|
197
|
+
}, {
|
|
198
|
+
default: withCtx(() => [createVNode(unref(IconLook))]),
|
|
199
|
+
_: 1
|
|
200
|
+
})], 8, _hoisted_4$1)]))), 128))])])) : createCommentVNode("", !0),
|
|
201
|
+
renderSlot(q.$slots, "default", {}, void 0, !0),
|
|
202
|
+
f.layoutType === "normal" ? (openBlock(), createElementBlock("div", _hoisted_5, [createVNode(unref(ElForm), {
|
|
203
|
+
model: f.introData,
|
|
204
|
+
"label-width": "auto"
|
|
205
|
+
}, {
|
|
206
|
+
default: withCtx(() => [["agent", "workflow"].includes(f.introData?.appCategory) ? (openBlock(!0), createElementBlock(Fragment, { key: 0 }, renderList(unref(infoItemsConfig), (V) => (openBlock(), createBlock(unref(ElFormItem), {
|
|
207
|
+
key: V.field,
|
|
208
|
+
label: V.title,
|
|
209
|
+
class: "mg-b-0"
|
|
210
|
+
}, {
|
|
211
|
+
default: withCtx(() => [createTextVNode(toDisplayString(f.introData?.[V.field] ?? "--"), 1)]),
|
|
212
|
+
_: 2
|
|
213
|
+
}, 1032, ["label"]))), 128)) : createCommentVNode("", !0)]),
|
|
214
|
+
_: 1
|
|
215
|
+
}, 8, ["model"]), f.introData?.attachements?.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(unref(CustomTitle), {
|
|
216
|
+
content: "附件:",
|
|
217
|
+
class: "pd-b-12 pd-t-24"
|
|
218
|
+
}), (openBlock(!0), createElementBlock(Fragment, null, renderList(f.introData.attachements, (f, V) => (openBlock(), createElementBlock("div", {
|
|
219
|
+
key: V,
|
|
220
|
+
class: "mg-b-8"
|
|
221
|
+
}, [createElementVNode("div", _hoisted_6, [createElementVNode("span", _hoisted_7, toDisplayString(f.attachementName), 1), f.attachementUrl ? (openBlock(), createBlock(unref(ElLink), {
|
|
222
|
+
key: 0,
|
|
223
|
+
type: "primary",
|
|
224
|
+
underline: !1,
|
|
225
|
+
onClick: (V) => Q(f)
|
|
226
|
+
}, {
|
|
227
|
+
default: withCtx(() => [...$[1] ||= [createTextVNode(" 点击查看 ", -1)]]),
|
|
228
|
+
_: 1
|
|
229
|
+
}, 8, ["onClick"])) : createCommentVNode("", !0)])]))), 128))], 64)) : createCommentVNode("", !0)])) : f.layoutType === "list" ? (openBlock(), createElementBlock("div", _hoisted_8, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(infoItemsConfig), (V) => (openBlock(), createElementBlock("div", {
|
|
230
|
+
key: V.field,
|
|
231
|
+
class: "flex"
|
|
232
|
+
}, [createElementVNode("div", _hoisted_9, toDisplayString(V.title), 1), createElementVNode("div", _hoisted_10, toDisplayString(f.introData?.[V.field] ?? "--"), 1)]))), 128)), f.introData?.attachements?.length ? (openBlock(), createElementBlock("div", _hoisted_11, [$[3] ||= createElementVNode("div", { class: "title-desc mg-r-2 fz-14" }, "附件:", -1), createElementVNode("div", null, [(openBlock(!0), createElementBlock(Fragment, null, renderList(f.introData.attachements, (f, V) => (openBlock(), createElementBlock("div", {
|
|
233
|
+
key: V,
|
|
234
|
+
class: "mg-b-8"
|
|
235
|
+
}, [createElementVNode("div", _hoisted_12, [createElementVNode("span", _hoisted_13, toDisplayString(f.attachementName), 1), f.attachementUrl ? (openBlock(), createBlock(unref(ElLink), {
|
|
236
|
+
key: 0,
|
|
237
|
+
type: "primary",
|
|
238
|
+
underline: !1,
|
|
239
|
+
onClick: (V) => Q(f)
|
|
240
|
+
}, {
|
|
241
|
+
default: withCtx(() => [...$[2] ||= [createTextVNode(" 点击查看 ", -1)]]),
|
|
242
|
+
_: 1
|
|
243
|
+
}, 8, ["onClick"])) : createCommentVNode("", !0)])]))), 128))])])) : createCommentVNode("", !0)])) : createCommentVNode("", !0),
|
|
244
|
+
createVNode(layout_default$1, {
|
|
245
|
+
modelValue: H.value,
|
|
246
|
+
"onUpdate:modelValue": $[0] ||= (f) => H.value = f,
|
|
247
|
+
width: "60%",
|
|
248
|
+
"show-close": !0,
|
|
249
|
+
onClose: Y,
|
|
250
|
+
buttons: {
|
|
251
|
+
showCancel: !1,
|
|
252
|
+
showConfirm: !1
|
|
253
|
+
}
|
|
254
|
+
}, {
|
|
255
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_14, [createVNode(MediaViewer_default, {
|
|
256
|
+
media: U.value,
|
|
257
|
+
class: "preview-media"
|
|
258
|
+
}, null, 8, ["media"])])]),
|
|
259
|
+
_: 1
|
|
260
|
+
}, 8, ["modelValue"])
|
|
261
|
+
]));
|
|
262
|
+
}
|
|
263
|
+
}, [["__scopeId", "data-v-1201fcb2"]]), _hoisted_1$1 = { class: "flex items-center flex-gap-row-nowrap-8 mg-b-12" }, _hoisted_2$1 = {
|
|
264
|
+
class: "fz-14 weight-500",
|
|
265
|
+
style: { color: "#1d2129" }
|
|
266
|
+
}, _hoisted_3$1 = {
|
|
267
|
+
class: "fz-14",
|
|
268
|
+
style: { color: "#4e5969" }
|
|
269
|
+
}, AppTimeline_default = /* @__PURE__ */ _plugin_vue_export_helper_default({
|
|
270
|
+
__name: "AppTimeline",
|
|
271
|
+
props: {
|
|
272
|
+
appId: {
|
|
273
|
+
type: String,
|
|
274
|
+
default: ""
|
|
275
|
+
},
|
|
276
|
+
square: {
|
|
277
|
+
type: Boolean,
|
|
278
|
+
default: !1
|
|
279
|
+
},
|
|
280
|
+
vueRouter: {
|
|
281
|
+
type: Object,
|
|
282
|
+
default: () => ({})
|
|
283
|
+
},
|
|
284
|
+
appOperationList: {
|
|
285
|
+
type: Function,
|
|
286
|
+
default: () => {}
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
setup(f) {
|
|
290
|
+
let V = f, H = async (f) => {
|
|
291
|
+
V.vueRouter.push({
|
|
292
|
+
path: "/promptTestDetail",
|
|
293
|
+
query: {
|
|
294
|
+
id: f.id,
|
|
295
|
+
type: f.auditStatus,
|
|
296
|
+
sourceFlag: "1",
|
|
297
|
+
operationType: f.operationType,
|
|
298
|
+
sourceHistory: "1"
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
}, U = (f) => [operationTypeMap.LISTING, operationTypeMap.DELISTING].includes(f), J = (f) => timelineDetailFieldsConfig.filter((V) => V.showForTypes.includes(f)), X = ref([]), Z = async () => {
|
|
302
|
+
await V.appOperationList({
|
|
303
|
+
appId: V.appId,
|
|
304
|
+
operationType: [
|
|
305
|
+
operationTypeMap.LISTING,
|
|
306
|
+
operationTypeMap.DELISTING,
|
|
307
|
+
operationTypeMap.ONLINE,
|
|
308
|
+
operationTypeMap.OFFLINE
|
|
309
|
+
].join(","),
|
|
310
|
+
pageNum: pageParams.pageNum,
|
|
311
|
+
pageSize: 1e6
|
|
312
|
+
}).then(({ data: f }) => {
|
|
313
|
+
X.value = f.list;
|
|
314
|
+
});
|
|
315
|
+
};
|
|
316
|
+
return onMounted(() => {
|
|
317
|
+
Z();
|
|
318
|
+
}), (V, K) => (openBlock(), createBlock(unref(ElTimeline), { class: "overflow-y-auto h-full pd-l-4" }, {
|
|
319
|
+
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(X.value, (V) => (openBlock(), createBlock(unref(ElTimelineItem), {
|
|
320
|
+
key: V.id,
|
|
321
|
+
timestamp: V.createTime,
|
|
322
|
+
placement: "top",
|
|
323
|
+
color: "var(--primary-color-1)"
|
|
324
|
+
}, {
|
|
325
|
+
default: withCtx(() => [createVNode(unref(ElCard), { shadow: "hover" }, {
|
|
326
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$1, [createElementVNode("span", _hoisted_2$1, toDisplayString(unref(operationTypeToTextMap)[V.operationType] || "--"), 1), U(V.operationType) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [unref(auditStatusConfig)[V.auditStatus] ? (openBlock(), createBlock(unref(ElTag), {
|
|
327
|
+
key: 0,
|
|
328
|
+
type: unref(auditStatusConfig)[V.auditStatus].type
|
|
329
|
+
}, {
|
|
330
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(auditStatusConfig)[V.auditStatus].text), 1)]),
|
|
331
|
+
_: 2
|
|
332
|
+
}, 1032, ["type"])) : createCommentVNode("", !0)], 64)) : createCommentVNode("", !0)]), createElementVNode("div", _hoisted_3$1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(J(V.operationType), (f) => (openBlock(), createElementBlock("div", {
|
|
333
|
+
key: f.field + f.title,
|
|
334
|
+
class: "mg-t-8 mg-b-8",
|
|
335
|
+
style: { "line-height": "1.5" }
|
|
336
|
+
}, toDisplayString(f.title) + ":" + toDisplayString(f.formatter ? f.formatter(V[f.field]) : V[f.field] ?? "--"), 1))), 128)), unref(timelineLinkConfig)[V.operationType] && !f.square ? (openBlock(), createBlock(unref(ElLink), {
|
|
337
|
+
key: 0,
|
|
338
|
+
type: "primary",
|
|
339
|
+
underline: !1,
|
|
340
|
+
class: "mg-t-8",
|
|
341
|
+
onClick: (f) => H(V)
|
|
342
|
+
}, {
|
|
343
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(timelineLinkConfig)[V.operationType].text), 1)]),
|
|
344
|
+
_: 2
|
|
345
|
+
}, 1032, ["onClick"])) : createCommentVNode("", !0)])]),
|
|
346
|
+
_: 2
|
|
347
|
+
}, 1024)]),
|
|
348
|
+
_: 2
|
|
349
|
+
}, 1032, ["timestamp"]))), 128))]),
|
|
350
|
+
_: 1
|
|
351
|
+
}));
|
|
352
|
+
}
|
|
353
|
+
}, [["__scopeId", "data-v-c5a86032"]]), _hoisted_1 = { class: "h-full overflow-hidden flex flex-col pd-t-12" }, _hoisted_2 = { class: "pd-b-12" }, _hoisted_3 = {
|
|
354
|
+
key: 0,
|
|
355
|
+
class: "flex-1 overflow-hidden"
|
|
356
|
+
}, _hoisted_4 = {
|
|
357
|
+
key: 1,
|
|
358
|
+
class: "flex-1 overflow-hidden"
|
|
359
|
+
};
|
|
360
|
+
const AppIntro = withInstall(/* @__PURE__ */ Object.assign({ name: "AppIntro" }, {
|
|
361
|
+
__name: "layout",
|
|
362
|
+
props: {
|
|
363
|
+
introData: {
|
|
364
|
+
type: Object,
|
|
365
|
+
default: () => ({})
|
|
366
|
+
},
|
|
367
|
+
square: {
|
|
368
|
+
type: Boolean,
|
|
369
|
+
default: !1
|
|
370
|
+
},
|
|
371
|
+
vueRouter: {
|
|
372
|
+
type: Object,
|
|
373
|
+
default: () => ({})
|
|
374
|
+
},
|
|
375
|
+
appId: {
|
|
376
|
+
type: String,
|
|
377
|
+
default: ""
|
|
378
|
+
},
|
|
379
|
+
appOperationList: {
|
|
380
|
+
type: Function,
|
|
381
|
+
default: () => {}
|
|
382
|
+
},
|
|
383
|
+
isOnlyAppIntroContent: {
|
|
384
|
+
type: Boolean,
|
|
385
|
+
default: !1
|
|
386
|
+
},
|
|
387
|
+
layoutType: {
|
|
388
|
+
type: String,
|
|
389
|
+
default: "normal"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
emits: [emitsMap.tabChange],
|
|
393
|
+
setup(f, { emit: V }) {
|
|
394
|
+
let H = V, W = ref(tabTypeMap.INTRO), G = computed(() => [{
|
|
395
|
+
label: "应用介绍",
|
|
396
|
+
value: tabTypeMap.INTRO
|
|
397
|
+
}, {
|
|
398
|
+
label: "迭代时间轴",
|
|
399
|
+
value: tabTypeMap.TIMELINE
|
|
400
|
+
}]), K = (f) => {
|
|
401
|
+
H(emitsMap.tabChange, f);
|
|
402
|
+
};
|
|
403
|
+
return (V, H) => (openBlock(), createElementBlock("div", _hoisted_1, [f.isOnlyAppIntroContent ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [H[1] ||= createElementVNode("div", {
|
|
404
|
+
class: "fz-16 mg-b-14",
|
|
405
|
+
style: { color: "var(--text-color-1)" }
|
|
406
|
+
}, "应用介绍", -1), createVNode(AppIntroContent_default, {
|
|
407
|
+
"intro-data": f.introData,
|
|
408
|
+
layoutType: f.layoutType
|
|
409
|
+
}, null, 8, ["intro-data", "layoutType"])], 64)) : (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("div", _hoisted_2, [createVNode(unref(ElSegmented), {
|
|
410
|
+
modelValue: W.value,
|
|
411
|
+
"onUpdate:modelValue": H[0] ||= (f) => W.value = f,
|
|
412
|
+
options: G.value,
|
|
413
|
+
onChange: K
|
|
414
|
+
}, null, 8, ["modelValue", "options"])]), W.value === unref(tabTypeMap).INTRO ? (openBlock(), createElementBlock("div", _hoisted_3, [createVNode(AppIntroContent_default, { "intro-data": f.introData }, {
|
|
415
|
+
default: withCtx(() => [renderSlot(V.$slots, "plugin-detail")]),
|
|
416
|
+
_: 3
|
|
417
|
+
}, 8, ["intro-data"])])) : W.value === unref(tabTypeMap).TIMELINE ? (openBlock(), createElementBlock("div", _hoisted_4, [createVNode(AppTimeline_default, {
|
|
418
|
+
"app-operation-list": f.appOperationList,
|
|
419
|
+
square: f.square,
|
|
420
|
+
"vue-router": f.vueRouter,
|
|
421
|
+
"app-id": f.appId
|
|
422
|
+
}, null, 8, [
|
|
423
|
+
"app-operation-list",
|
|
424
|
+
"square",
|
|
425
|
+
"vue-router",
|
|
426
|
+
"app-id"
|
|
427
|
+
])])) : createCommentVNode("", !0)], 64))]));
|
|
428
|
+
}
|
|
429
|
+
}));
|
|
430
|
+
var AppIntro_default = AppIntro;
|
|
431
|
+
export { AppIntro_default as n, AppIntro as t };
|