ling-yun-custom-components 0.0.39 → 0.0.41

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 (39) hide show
  1. package/es/AppIntro.mjs +536 -0
  2. package/es/BuildComponents.mjs +1 -1
  3. package/es/IconRenderer.mjs +1 -1
  4. package/es/PageNotFound.mjs +23 -27
  5. package/es/PaginationTable.mjs +5 -4
  6. package/es/assets/AppIntro.css +1 -0
  7. package/es/assets/BuildComponents.css +1 -1
  8. package/es/assets/PageNotFound.css +0 -0
  9. package/es/assets/PaginationTable.css +1 -1
  10. package/es/chunks/global.DLyUBjAm.js +8080 -0
  11. package/es/chunks/global.Dasz_fnL.js +16065 -0
  12. package/es/chunks/global.DpSgdQXX.js +7906 -0
  13. package/es/chunks/layout.BgtHhnxJ.js +66 -0
  14. package/es/chunks/layout.CRtj9xK9.js +230 -0
  15. package/es/chunks/layout.CYgILBXq.js +592 -0
  16. package/es/chunks/layout.DTDMwNO7.js +231 -0
  17. package/es/chunks/layout.D_fCzVf0.js +39 -0
  18. package/es/chunks/layout.DdM4MaRr.js +149 -0
  19. package/es/index.mjs +93 -80
  20. package/lib/AppIntro.js +1 -0
  21. package/lib/BuildComponents.js +1 -1
  22. package/lib/IconRenderer.js +1 -1
  23. package/lib/PageNotFound.js +1 -1
  24. package/lib/PaginationTable.js +1 -1
  25. package/lib/assets/AppIntro.css +1 -0
  26. package/lib/assets/BuildComponents.css +1 -1
  27. package/lib/assets/PageNotFound.css +0 -0
  28. package/lib/assets/PaginationTable.css +1 -1
  29. package/lib/chunks/global.3UE6pLnj.js +1 -0
  30. package/lib/chunks/global.BNjIXg3D.js +1 -0
  31. package/lib/chunks/global.Cmc2k3td.js +1 -0
  32. package/lib/chunks/layout.BCsKDB9S.js +1 -0
  33. package/lib/chunks/layout.BbWwZ-k5.js +1 -0
  34. package/lib/chunks/layout.BlY_nSey.js +1 -0
  35. package/lib/chunks/layout.CsWdFS5P.js +1 -0
  36. package/lib/chunks/layout.DE2mqrz_.js +1 -0
  37. package/lib/chunks/layout.YVnsUDl7.js +1 -0
  38. package/lib/index.js +1 -1
  39. package/package.json +6 -4
@@ -0,0 +1,231 @@
1
+ import { useAttrs as $, computed as d, onMounted as L, createBlock as p, openBlock as c, unref as a, mergeProps as U, withCtx as r, createElementBlock as y, renderSlot as g, createElementVNode as v, createCommentVNode as A, createTextVNode as h, toDisplayString as C, Fragment as R, createVNode as E } from "vue";
2
+ import { ElDialog as q, ElButton as x, ElIcon as z } from "element-plus";
3
+ import { IconClose as H, IconBack as J } from "color-message-lingyun-vue";
4
+ import { emitsMap as e } from "ling-yun-methods";
5
+ import { _ as K } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
+ import '../assets/layout.css';const t = {
7
+ DEFAULT: "default",
8
+ PAGE: "page"
9
+ }, Q = {
10
+ key: 0,
11
+ class: "flex justify-center w-full"
12
+ }, W = {
13
+ class: "dialog-content flex flex-col",
14
+ style: { width: "60%" }
15
+ }, X = {
16
+ key: 0,
17
+ class: "title-name flex items-center"
18
+ }, Y = { class: "dialog-footer" }, Z = {
19
+ key: 0,
20
+ class: "flex justify-center items-center w-full"
21
+ }, ee = {
22
+ class: "flex justify-center items-center",
23
+ style: { width: "60%" }
24
+ }, oe = { class: "flex justify-end items-center w-full" }, te = /* @__PURE__ */ Object.assign({
25
+ name: "CustomDialog"
26
+ }, {
27
+ __name: "layout",
28
+ props: {
29
+ // 绑定值
30
+ modelValue: {
31
+ type: Boolean,
32
+ default: !1
33
+ },
34
+ // 对话框宽度
35
+ width: {
36
+ type: [String, Number],
37
+ default: "50%"
38
+ },
39
+ // 是否可以通过点击 modal 关闭对话框
40
+ closeOnClickModal: {
41
+ type: Boolean,
42
+ default: !1
43
+ },
44
+ // 是否可以通过按下 ESC 关闭对话框
45
+ closeOnPressEscape: {
46
+ type: Boolean,
47
+ default: !1
48
+ },
49
+ // 是否在对话框出现时将 body 滚动锁定
50
+ lockScroll: {
51
+ type: Boolean,
52
+ default: !0
53
+ },
54
+ // 关闭图标
55
+ closeIcon: {
56
+ type: Object,
57
+ default: H
58
+ },
59
+ // 按钮配置对象
60
+ buttons: {
61
+ type: Object,
62
+ default: () => ({})
63
+ },
64
+ appendToBody: {
65
+ type: Boolean,
66
+ default: !0
67
+ },
68
+ // 弹窗覆盖的模式 default|page
69
+ dialogMode: {
70
+ type: String,
71
+ default: t.DEFAULT
72
+ },
73
+ // route模式下标题值
74
+ titleName: {
75
+ type: String,
76
+ default: "默认标题"
77
+ }
78
+ },
79
+ emits: [
80
+ e.updateModelValue,
81
+ e.open,
82
+ e.opened,
83
+ e.close,
84
+ e.closed,
85
+ e.openAutoFocus,
86
+ e.closeAutoFocus,
87
+ e.cancel,
88
+ e.confirm
89
+ ],
90
+ setup(u, { emit: M }) {
91
+ const P = {
92
+ showCancel: !0,
93
+ showConfirm: !0,
94
+ cancelText: "取消",
95
+ confirmText: "确认",
96
+ onCancel: null,
97
+ onConfirm: null
98
+ }, o = u, m = $(), n = M, b = d(() => o.dialogMode === t.PAGE ? {
99
+ marginLeft: "250px",
100
+ borderRadius: "24px",
101
+ boxShadow: "none"
102
+ } : {}), _ = d(() => o.dialogMode === t.PAGE ? !1 : m.modal ? m.modal : !0), B = d(() => o.dialogMode === t.PAGE ? !0 : m.modalPenetrable ? m.modalPenetrable : !1), V = d(() => o.dialogMode === t.PAGE ? "calc(100% - 250px - 12px)" : o.width), F = d(() => o.dialogMode === t.PAGE ? "66px" : o.top || "15vh"), i = d({
103
+ get: () => o.modelValue,
104
+ set: (s) => {
105
+ n(e.updateModelValue, s);
106
+ }
107
+ }), l = d(() => ({
108
+ ...P,
109
+ ...o.buttons
110
+ })), G = d(() => {
111
+ const { modelValue: s, ...f } = o;
112
+ return f;
113
+ }), O = () => {
114
+ n(e.open);
115
+ }, T = () => {
116
+ n(e.opened);
117
+ }, S = () => {
118
+ n(e.close);
119
+ }, j = () => {
120
+ n(e.closed);
121
+ }, N = () => {
122
+ n(e.openAutoFocus);
123
+ }, D = () => {
124
+ n(e.closeAutoFocus);
125
+ }, I = () => {
126
+ l.value.onCancel ? l.value.onCancel() : i.value = !1, n(e.cancel);
127
+ }, k = async () => {
128
+ if (l.value.onConfirm)
129
+ try {
130
+ await l.value.onConfirm() !== !1 && (i.value = !1);
131
+ } catch {
132
+ }
133
+ else
134
+ i.value = !1;
135
+ n(e.confirm);
136
+ };
137
+ return L(() => {
138
+ o.dialogMode === t.PAGE && (document.querySelector(".el-overlay-dialog").style.overflow = "hidden");
139
+ }), (s, f) => (c(), p(a(q), U({
140
+ ref: "dialogRef",
141
+ modelValue: i.value,
142
+ "onUpdate:modelValue": f[1] || (f[1] = (w) => i.value = w)
143
+ }, G.value, {
144
+ width: V.value,
145
+ top: F.value,
146
+ style: b.value,
147
+ modal: _.value,
148
+ "modal-penetrable": B.value,
149
+ onOpen: O,
150
+ onOpened: T,
151
+ onClose: S,
152
+ onClosed: j,
153
+ onOpenAutoFocus: N,
154
+ onCloseAutoFocus: D,
155
+ "append-to-body": u.appendToBody,
156
+ class: {
157
+ "custom-dialog-page": u.dialogMode === a(t).PAGE
158
+ }
159
+ }), {
160
+ header: r(() => [
161
+ u.dialogMode === a(t).PAGE ? (c(), y("div", X, [
162
+ E(a(z), {
163
+ size: 20,
164
+ color: "var(--text-color-1)",
165
+ class: "mg-r-6 pointer",
166
+ onClick: f[0] || (f[0] = (w) => i.value = !1)
167
+ }, {
168
+ default: r(() => [
169
+ E(a(J))
170
+ ]),
171
+ _: 1
172
+ }),
173
+ h(" " + C(u.titleName), 1)
174
+ ])) : g(s.$slots, "header", { key: 1 }, void 0, !0)
175
+ ]),
176
+ footer: r(() => [
177
+ g(s.$slots, "footer", {}, () => [
178
+ v("div", Y, [
179
+ u.dialogMode === a(t).PAGE ? (c(), y("div", Z, [
180
+ v("div", ee, [
181
+ v("div", oe, [
182
+ l.value.showConfirm ? (c(), p(a(x), {
183
+ key: 0,
184
+ type: "primary",
185
+ onClick: k
186
+ }, {
187
+ default: r(() => [
188
+ h(C(l.value.confirmText), 1)
189
+ ]),
190
+ _: 1
191
+ })) : A("", !0)
192
+ ])
193
+ ])
194
+ ])) : (c(), y(R, { key: 1 }, [
195
+ l.value.showCancel ? (c(), p(a(x), {
196
+ key: 0,
197
+ onClick: I
198
+ }, {
199
+ default: r(() => [
200
+ h(C(l.value.cancelText), 1)
201
+ ]),
202
+ _: 1
203
+ })) : A("", !0),
204
+ l.value.showConfirm ? (c(), p(a(x), {
205
+ key: 1,
206
+ type: "primary",
207
+ onClick: k
208
+ }, {
209
+ default: r(() => [
210
+ h(C(l.value.confirmText), 1)
211
+ ]),
212
+ _: 1
213
+ })) : A("", !0)
214
+ ], 64))
215
+ ])
216
+ ], !0)
217
+ ]),
218
+ default: r(() => [
219
+ u.dialogMode === a(t).PAGE ? (c(), y("div", Q, [
220
+ v("div", W, [
221
+ g(s.$slots, "default", {}, void 0, !0)
222
+ ])
223
+ ])) : g(s.$slots, "default", { key: 1 }, void 0, !0)
224
+ ]),
225
+ _: 3
226
+ }, 16, ["modelValue", "width", "top", "style", "modal", "modal-penetrable", "append-to-body", "class"]));
227
+ }
228
+ }), ce = /* @__PURE__ */ K(te, [["__scopeId", "data-v-9fa594c0"]]);
229
+ export {
230
+ ce as C
231
+ };
@@ -0,0 +1,39 @@
1
+ import { useCssVars as o, createElementBlock as c, openBlock as n, toDisplayString as a } from "vue";
2
+ import { _ as s } from "./_plugin-vue_export-helper.CHgC5LLL.js";
3
+ import '../assets/layout3.css';const r = { class: "custom-title" }, i = /* @__PURE__ */ Object.assign({
4
+ name: "CustomTitle"
5
+ }, {
6
+ __name: "layout",
7
+ props: {
8
+ // 标题内容
9
+ content: {
10
+ type: String,
11
+ default: "自定义标题"
12
+ },
13
+ // 字体大小
14
+ fontSize: {
15
+ type: Number,
16
+ default: 18
17
+ },
18
+ // 字体颜色
19
+ color: {
20
+ type: String,
21
+ default: "var(--text-color-1)"
22
+ },
23
+ // 字体粗细
24
+ fontWeight: {
25
+ type: Number,
26
+ default: 700
27
+ }
28
+ },
29
+ setup(t) {
30
+ return o((e) => ({
31
+ v47d985ee: t.fontWeight,
32
+ v6d50a5d6: t.fontSize + "px",
33
+ v4b029cbc: t.color
34
+ })), (e, l) => (n(), c("div", r, a(t.content), 1));
35
+ }
36
+ }), d = /* @__PURE__ */ s(i, [["__scopeId", "data-v-4d572364"]]);
37
+ export {
38
+ d as C
39
+ };
@@ -0,0 +1,149 @@
1
+ import { useCssVars as L, ref as N, watch as U, createElementBlock as u, createCommentVNode as v, openBlock as r, Fragment as x, renderList as j, normalizeClass as z, unref as o, createElementVNode as m, createBlock as f, normalizeStyle as O, withCtx as S, resolveDynamicComponent as T, toDisplayString as k, renderSlot as M, createVNode as E } from "vue";
2
+ import { ElImage as R, ElIcon as w } from "element-plus";
3
+ import { emitsMap as c, uploadFileTypeMap as P, uploadFileType as a } from "ling-yun-methods";
4
+ import { IconTxt as A, IconPpt as F, IconXls as I, IconDoc as b, IconPdf as G, IconDelete as K } from "color-message-lingyun-vue";
5
+ import { _ as X } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
+ import '../assets/layout5.css';const i = {
7
+ uploading: "uploading",
8
+ success: "success",
9
+ error: "error"
10
+ }, q = {
11
+ key: 0,
12
+ class: "file-list display-grid pd-t-12 pd-b-12"
13
+ }, H = { class: "flex overflow-hidden flex-1 pd-r-10" }, J = { class: "pd-l-8 flex-1 overflow-hidden" }, Q = ["title"], W = { class: "fz-12 text-ellipsis lh-16" }, Y = {
14
+ key: 1,
15
+ class: "text-74798c"
16
+ }, Z = /* @__PURE__ */ Object.assign({
17
+ name: "FileList"
18
+ }, {
19
+ __name: "layout",
20
+ props: {
21
+ // 文件列表数据
22
+ modelValue: {
23
+ type: Array,
24
+ default: () => []
25
+ },
26
+ // 是否显示删除按钮
27
+ showDelete: {
28
+ type: Boolean,
29
+ default: !0
30
+ },
31
+ // 字段映射配置
32
+ fieldMapping: {
33
+ type: Object,
34
+ default: () => ({
35
+ // fileName: 'fileName',
36
+ // fileUrl: 'fileUrl',
37
+ })
38
+ },
39
+ rowCount: {
40
+ type: Number,
41
+ default: 2
42
+ },
43
+ // 图标大小
44
+ iconSize: {
45
+ type: Number,
46
+ default: 36
47
+ }
48
+ },
49
+ emits: [c.delete, c.change, c.updateModelValue],
50
+ setup(l, { emit: _ }) {
51
+ L((e) => ({
52
+ v247946fe: l.rowCount
53
+ }));
54
+ const p = l, y = _, n = N(p.modelValue), B = Object.fromEntries(
55
+ Object.entries(P).map(([e, s]) => [s, e])
56
+ ), g = (e) => e[p.fieldMapping.fileUrl] ? e[p.fieldMapping.fileUrl] : e.raw && e.raw instanceof File ? URL.createObjectURL(e.raw) : e instanceof File ? URL.createObjectURL(e) : "", C = {
57
+ [a.pdf]: G,
58
+ [a.doc]: b,
59
+ [a.docx]: b,
60
+ [a.xls]: I,
61
+ [a.xlsx]: I,
62
+ [a.ppt]: F,
63
+ [a.pptx]: F,
64
+ [a.txt]: A
65
+ }, V = (e) => e?.includes("image"), $ = (e) => {
66
+ const s = B[e];
67
+ return C[s];
68
+ }, h = (e) => {
69
+ if (!e || e === 0) return "0 B";
70
+ const s = 1024, t = ["B", "KB", "MB", "GB"], d = Math.floor(Math.log(e) / Math.log(s));
71
+ return `${parseFloat((e / Math.pow(s, d)).toFixed(2))} ${t[d]}`;
72
+ }, D = (e, s) => {
73
+ n.value.splice(s, 1), y(c.delete, e), y(c.updateModelValue, n.value), y(c.change, n.value);
74
+ };
75
+ return U(
76
+ () => p.modelValue,
77
+ (e) => {
78
+ n.value = e;
79
+ },
80
+ { immediate: !0 }
81
+ ), (e, s) => n.value?.length ? (r(), u("div", q, [
82
+ (r(!0), u(x, null, j(n.value, (t, d) => (r(), u("div", {
83
+ key: d,
84
+ class: z(["pd-l-8 pd-r-8 pd-t-6 pd-b-6 radius-8 file-item overflow-hidden flex items-center", {
85
+ "bg-uploading": t.fileStatus === o(i).uploading,
86
+ "bg-fcfdff": t.fileStatus !== o(i).uploading,
87
+ "border-error": t.fileStatus === o(i).error,
88
+ "border-normal": t.fileStatus !== o(i).error
89
+ }])
90
+ }, [
91
+ m("div", H, [
92
+ V(t?.type) && g(t) ? (r(), f(o(R), {
93
+ key: 0,
94
+ src: g(t),
95
+ class: "radius-4",
96
+ fit: "cover",
97
+ style: O({ width: `${l.iconSize}px`, height: `${l.iconSize}px` })
98
+ }, null, 8, ["src", "style"])) : (r(), f(o(w), {
99
+ key: 1,
100
+ size: l.iconSize,
101
+ class: "pointer"
102
+ }, {
103
+ default: S(() => [
104
+ (r(), f(T($(t?.type))))
105
+ ]),
106
+ _: 2
107
+ }, 1032, ["size"])),
108
+ m("div", J, [
109
+ m("div", {
110
+ class: z(["fz-14 text-ellipsis lh-20 flex-1", {
111
+ "text-ec0e13": t.fileStatus === o(i).error,
112
+ "text-262626": t.fileStatus !== o(i).error
113
+ }]),
114
+ title: t[l.fieldMapping.fileName]
115
+ }, k(t[l.fieldMapping.fileName]), 11, Q),
116
+ m("div", W, [
117
+ e.$slots.status ? M(e.$slots, "status", {
118
+ key: 0,
119
+ file: t
120
+ }, void 0, !0) : (r(), u(x, { key: 1 }, [
121
+ e.$slots.size ? M(e.$slots, "size", {
122
+ key: 0,
123
+ file: t,
124
+ size: h(t.size)
125
+ }, void 0, !0) : (r(), u("span", Y, k(h(t.size)), 1))
126
+ ], 64))
127
+ ])
128
+ ])
129
+ ]),
130
+ l.showDelete ? (r(), f(o(w), {
131
+ key: 0,
132
+ size: 16,
133
+ color: t.fileStatus === o(i).error ? "var(--error-color-1)" : "var(--text-color-4)",
134
+ class: "pointer",
135
+ onClick: (ee) => D(t, d)
136
+ }, {
137
+ default: S(() => [
138
+ E(o(K))
139
+ ]),
140
+ _: 1
141
+ }, 8, ["color", "onClick"])) : v("", !0)
142
+ ], 2))), 128))
143
+ ])) : v("", !0);
144
+ }
145
+ }), ae = /* @__PURE__ */ X(Z, [["__scopeId", "data-v-0980a743"]]);
146
+ export {
147
+ ae as _,
148
+ i as u
149
+ };
package/es/index.mjs CHANGED
@@ -1,86 +1,99 @@
1
- import { CustomSelect as m } from "./CustomSelect.mjs";
2
- import { SearchBar as e } from "./SearchBar.mjs";
3
- import { PaginationTable as i } from "./PaginationTable.mjs";
4
- import { UploadFile as p } from "./UploadFile.mjs";
5
- import { FileList as n } from "./FileList.mjs";
6
- import { BatchImport as a } from "./BatchImport.mjs";
7
- import { GradientButton as f } from "./GradientButton.mjs";
8
- import { CustomDialog as l } from "./CustomDialog.mjs";
9
- import { CustomPagination as s } from "./CustomPagination.mjs";
10
- import { CustomTitle as c } from "./CustomTitle.mjs";
11
- import { CustomDropdown as S } from "./CustomDropdown.mjs";
12
- import { TreeSelect as u } from "./TreeSelect.mjs";
13
- import { TreeShowSelect as d } from "./TreeShowSelect.mjs";
14
- import { IconEmpty as T } from "./IconEmpty.mjs";
15
- import { IconRenderer as I, iconLibraryMap as _ } from "./IconRenderer.mjs";
16
- import { IconSelect as B } from "./IconSelect.mjs";
17
- import { PageNotFound as L } from "./PageNotFound.mjs";
18
- import { UpdatePasswordDialog as P } from "./UpdatePasswordDialog.mjs";
19
- import { BUILD_BIG_TITLES as g, BUILD_STEPS as C, BUILD_TITLES as D, BUILD_TYPES as E, BuildComponents as b, STEP_ARROW_IMAGE as U } from "./BuildComponents.mjs";
20
- import { CustomTab as y } from "./CustomTab.mjs";
21
- import { dayjs as w } from "element-plus";
1
+ import { AppIntro as m, auditStatusMap as e, mediaTypeMap as i, operationTypeMap as p, operationTypeToTextMap as a, tabTypeMap as n } from "./AppIntro.mjs";
2
+ import { CustomSelect as f } from "./CustomSelect.mjs";
3
+ import { SearchBar as l } from "./SearchBar.mjs";
4
+ import { PaginationTable as s } from "./PaginationTable.mjs";
5
+ import { UploadFile as T } from "./UploadFile.mjs";
6
+ import { FileList as c } from "./FileList.mjs";
7
+ import { BatchImport as u } from "./BatchImport.mjs";
8
+ import { GradientButton as S } from "./GradientButton.mjs";
9
+ import { CustomDialog as d } from "./CustomDialog.mjs";
10
+ import { CustomPagination as I } from "./CustomPagination.mjs";
11
+ import { CustomTitle as _ } from "./CustomTitle.mjs";
12
+ import { CustomDropdown as y } from "./CustomDropdown.mjs";
13
+ import { TreeSelect as B } from "./TreeSelect.mjs";
14
+ import { TreeShowSelect as L } from "./TreeShowSelect.mjs";
15
+ import { IconEmpty as M } from "./IconEmpty.mjs";
16
+ import { IconRenderer as P, iconLibraryMap as b } from "./IconRenderer.mjs";
17
+ import { IconSelect as g } from "./IconSelect.mjs";
18
+ import { PageNotFound as C } from "./PageNotFound.mjs";
19
+ import { UpdatePasswordDialog as D } from "./UpdatePasswordDialog.mjs";
20
+ import { BUILD_BIG_TITLES as E, BUILD_STEPS as U, BUILD_TITLES as w, BUILD_TYPES as h, BuildComponents as j, STEP_ARROW_IMAGE as x } from "./BuildComponents.mjs";
21
+ import { CustomTab as A } from "./CustomTab.mjs";
22
+ import { dayjs as F } from "element-plus";
22
23
  const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23
24
  __proto__: null,
24
- BUILD_BIG_TITLES: g,
25
- BUILD_STEPS: C,
26
- BUILD_TITLES: D,
27
- BUILD_TYPES: E,
28
- BatchImport: a,
29
- BuildComponents: b,
30
- CustomDialog: l,
31
- CustomDropdown: S,
32
- CustomPagination: s,
33
- CustomSelect: m,
34
- CustomTab: y,
35
- CustomTitle: c,
36
- FileList: n,
37
- GradientButton: f,
38
- IconEmpty: T,
39
- IconRenderer: I,
40
- IconSelect: B,
41
- PageNotFound: L,
42
- PaginationTable: i,
43
- STEP_ARROW_IMAGE: U,
44
- SearchBar: e,
45
- TreeSelect: u,
46
- TreeShowSelect: d,
47
- UpdatePasswordDialog: P,
48
- UploadFile: p,
49
- iconLibraryMap: _
25
+ AppIntro: m,
26
+ BUILD_BIG_TITLES: E,
27
+ BUILD_STEPS: U,
28
+ BUILD_TITLES: w,
29
+ BUILD_TYPES: h,
30
+ BatchImport: u,
31
+ BuildComponents: j,
32
+ CustomDialog: d,
33
+ CustomDropdown: y,
34
+ CustomPagination: I,
35
+ CustomSelect: f,
36
+ CustomTab: A,
37
+ CustomTitle: _,
38
+ FileList: c,
39
+ GradientButton: S,
40
+ IconEmpty: M,
41
+ IconRenderer: P,
42
+ IconSelect: g,
43
+ PageNotFound: C,
44
+ PaginationTable: s,
45
+ STEP_ARROW_IMAGE: x,
46
+ SearchBar: l,
47
+ TreeSelect: B,
48
+ TreeShowSelect: L,
49
+ UpdatePasswordDialog: D,
50
+ UploadFile: T,
51
+ auditStatusMap: e,
52
+ iconLibraryMap: b,
53
+ mediaTypeMap: i,
54
+ operationTypeMap: p,
55
+ operationTypeToTextMap: a,
56
+ tabTypeMap: n
50
57
  }, Symbol.toStringTag, { value: "Module" }));
51
- w.en.weekStart = 1;
52
- const h = (t) => {
53
- for (const r in o)
54
- o[r].install && t.use(o[r]);
55
- }, Z = {
56
- install: h
58
+ F.en.weekStart = 1;
59
+ const G = (r) => {
60
+ for (const t in o)
61
+ o[t].install && r.use(o[t]);
62
+ }, io = {
63
+ install: G
57
64
  };
58
65
  export {
59
- g as BUILD_BIG_TITLES,
60
- C as BUILD_STEPS,
61
- D as BUILD_TITLES,
62
- E as BUILD_TYPES,
63
- a as BatchImport,
64
- b as BuildComponents,
65
- l as CustomDialog,
66
- S as CustomDropdown,
67
- s as CustomPagination,
68
- m as CustomSelect,
69
- y as CustomTab,
70
- c as CustomTitle,
71
- n as FileList,
72
- f as GradientButton,
73
- T as IconEmpty,
74
- I as IconRenderer,
75
- B as IconSelect,
76
- L as PageNotFound,
77
- i as PaginationTable,
78
- U as STEP_ARROW_IMAGE,
79
- e as SearchBar,
80
- u as TreeSelect,
81
- d as TreeShowSelect,
82
- P as UpdatePasswordDialog,
83
- p as UploadFile,
84
- Z as default,
85
- _ as iconLibraryMap
66
+ m as AppIntro,
67
+ E as BUILD_BIG_TITLES,
68
+ U as BUILD_STEPS,
69
+ w as BUILD_TITLES,
70
+ h as BUILD_TYPES,
71
+ u as BatchImport,
72
+ j as BuildComponents,
73
+ d as CustomDialog,
74
+ y as CustomDropdown,
75
+ I as CustomPagination,
76
+ f as CustomSelect,
77
+ A as CustomTab,
78
+ _ as CustomTitle,
79
+ c as FileList,
80
+ S as GradientButton,
81
+ M as IconEmpty,
82
+ P as IconRenderer,
83
+ g as IconSelect,
84
+ C as PageNotFound,
85
+ s as PaginationTable,
86
+ x as STEP_ARROW_IMAGE,
87
+ l as SearchBar,
88
+ B as TreeSelect,
89
+ L as TreeShowSelect,
90
+ D as UpdatePasswordDialog,
91
+ T as UploadFile,
92
+ e as auditStatusMap,
93
+ io as default,
94
+ b as iconLibraryMap,
95
+ i as mediaTypeMap,
96
+ p as operationTypeMap,
97
+ a as operationTypeToTextMap,
98
+ n as tabTypeMap
86
99
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/AppIntro.css');const _=require("./chunks/index.CkihWzK6.js"),e=require("vue"),c=require("element-plus"),B=require("color-message-lingyun-vue"),C=require("./chunks/layout.B9EVVV-O.js"),k=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),N=require("ling-yun-methods"),V={class:"flex w-full mg-b-10"},b={class:"config-item__label text-right inline-block"},w={class:"flex-1 flex justify-start items-flex-start flex-wrap flex-gap-row-wrap-8 fz-14",style:{color:"#303133"}},S=Object.assign({name:"ConfigItem"},{__name:"ConfigItem",props:{title:{type:String,required:!0}},setup(a){return(s,p)=>(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("div",b,[e.createElementVNode("span",null,e.toDisplayString(a.title),1)]),e.createElementVNode("div",w,[e.renderSlot(s.$slots,"default",{},void 0,!0)])]))}}),E=k._export_sfc(S,[["__scopeId","data-v-410e68d5"]]),o={LISTING:1,DELISTING:2,ONLINE:3,OFFLINE:4},y={PENDING:0,APPROVED:1,REJECTED:2},g={IMAGE:1,VIDEO:2},x={INTRO:"intro",TIMELINE:"timeline"},v={[o.LISTING]:"上架申请",[o.DELISTING]:"下架申请",[o.ONLINE]:"上线应用",[o.OFFLINE]:"下线应用"},D={class:"app-intro-content overflow-hidden h-full"},L={key:0,class:"media-section w-full pd-b-12"},O={class:"media-content relative w-full"},$={key:0,class:"media-video relative w-full"},M=["src"],F={key:1,class:"media-image relative w-full"},G=["src"],A=["onClick"],q={class:"info-section"},P={class:"text-item"},R={class:"text-item"},j={class:"file-list"},U={key:0,class:"preview-content"},z=["src"],H={key:1,class:"preview-content"},J=["src"],W=Object.assign({name:"AppIntroContent"},{__name:"AppIntroContent",props:{pics:{type:Array,default:()=>[]},appCreatorName:{type:String,default:""},appCreatorOrg:{type:String,default:""},appDesc:{type:String,default:""},accessSystem:{type:String,default:""},businessBackground:{type:String,default:""},businessTarget:{type:String,default:""},resultData:{type:String,default:""},attachements:{type:Array,default:()=>[]}},setup(a){const s=a,p=e.computed(()=>[{title:"申请人:",value:s.appCreatorName},{title:"应用省份:",value:s.appCreatorOrg},{title:"应用说明:",value:s.appDesc},{title:"接入系统:",value:s.accessSystem},{title:"业务背景:",value:s.businessBackground},{title:"业务目标:",value:s.businessTarget},{title:"成效数据:",value:s.resultData}]),d=e.ref(!1),i=e.ref(null),f=r=>{i.value=r,d.value=!0},u=()=>{d.value=!1,i.value=null},m=r=>{try{const n=document.createElement("a");n.href=r.attachementUrl,n.download=r.attachementName,n.style.display="none",n.target="_blank",document.body.appendChild(n),n.click(),document.body.removeChild(n)}catch(n){console.error(n)}};return(r,n)=>{const t=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",D,[a.pics.length>0?(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("div",O,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.pics,(l,h)=>(e.openBlock(),e.createElementBlock("div",{key:h,class:"media-item w-full"},[l.type===e.unref(g).VIDEO?(e.openBlock(),e.createElementBlock("div",$,[e.createElementVNode("video",{class:"w-full",src:l.url,controls:""},null,8,M)])):e.createCommentVNode("",!0),l.type===e.unref(g).IMAGE?(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("img",{class:"w-full",src:l.url,alt:""},null,8,G)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"hover-overlay absolute top-0 left-0 w-full h-full flex justify-center items-center",onClick:I=>f(l)},[e.createVNode(e.unref(c.ElIcon),{size:24,class:"view-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(B.IconLook))]),_:1})],8,A)]))),128))])])):e.createCommentVNode("",!0),e.createElementVNode("div",q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,l=>(e.openBlock(),e.createBlock(E,{key:l.title,title:l.title},{default:e.withCtx(()=>[e.createElementVNode("div",P,e.toDisplayString(l.value??"--"),1)]),_:2},1032,["title"]))),128)),e.createVNode(E,{title:"附件:"},{default:e.withCtx(()=>[e.createElementVNode("div",R,[e.createElementVNode("div",j,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.attachements,(l,h)=>(e.openBlock(),e.createElementBlock("div",{key:h,class:"file-item"},[e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.createTextVNode(e.toDisplayString(l.attachementName)+" ",1),l.attachementUrl?(e.openBlock(),e.createBlock(e.unref(c.ElLink),{key:0,type:"primary",underline:!1,onClick:I=>m(l)},{default:e.withCtx(()=>[...n[1]||(n[1]=[e.createTextVNode(" 点击查看 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])),[[t,!l.attachementUrl]])]))),128))])])]),_:1})]),e.createVNode(C.CustomDialog,{modelValue:d.value,"onUpdate:modelValue":n[0]||(n[0]=l=>d.value=l),width:"60%","show-close":!0,onClose:u,buttons:{showCancel:!1,showConfirm:!1}},{default:e.withCtx(()=>[i.value?.type===e.unref(g).IMAGE?(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("img",{class:"preview-media w-full",src:i.value.url,alt:""},null,8,z)])):(e.openBlock(),e.createElementBlock("div",H,[e.createElementVNode("video",{class:"preview-media w-full",src:i.value?.url,controls:""},null,8,J)]))]),_:1},8,["modelValue"])])}}}),Y=k._export_sfc(W,[["__scopeId","data-v-4137d33a"]]),K={class:"flex items-center flex-gap-row-nowrap-8 mg-b-12"},Q={class:"fz-14 weight-500",style:{color:"#1d2129"}},X={class:"fz-14",style:{color:"#4e5969"}},Z={key:0,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},ee={key:1,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},te={key:2,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},ae={key:3,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},oe={key:4,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},ne={key:5,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},le={key:6,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},re={key:7,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},se={key:8,class:"mg-t-8 mg-b-8",style:{"line-height":"1.5"}},ce=Object.assign({name:"AppTimeline"},{__name:"AppTimeline",props:{appId:{type:String,default:""},square:{type:Boolean,default:!1},vueRouter:{type:Object,default:()=>({})},prefixUrl:{type:String,default:""}},setup(a){const s=a,p=async r=>{s.vueRouter.push({path:"/promptTestDetail",query:{id:r.id,type:r.auditStatus,sourceFlag:"1",operationType:r.operationType,sourceHistory:"1"}})},d=r=>[o.LISTING,o.DELISTING].includes(r),i=N.createRequest(s.prefixUrl),f=()=>i.post({url:`${N.apiPrefix.cslmManagerAgent}/microApp/appOperationList`,data:{appId:s.appId,operationType:[o.LISTING,o.DELISTING,o.ONLINE,o.OFFLINE].join(","),pageNum:N.pageParams.pageNum,pageSize:1e6}}),u=ref([]),m=async()=>{await f().then(({data:r})=>{u.value=r.list})};return onMounted(()=>{m()}),(r,n)=>(e.openBlock(),e.createBlock(e.unref(c.ElTimeline),{class:"overflow-y-auto h-full pd-l-12"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),t=>(e.openBlock(),e.createBlock(e.unref(c.ElTimelineItem),{key:t.id,timestamp:t.createTime,placement:"top",color:"#165dff"},{default:e.withCtx(()=>[e.createVNode(e.unref(c.ElCard),{shadow:"hover"},{default:e.withCtx(()=>[e.createElementVNode("div",K,[e.createElementVNode("span",Q,e.toDisplayString(e.unref(v)[t.operationType]||"--"),1),d(t.operationType)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.auditStatus===e.unref(y).PENDING?(e.openBlock(),e.createBlock(e.unref(c.ElTag),{key:0,type:"warning",size:"small",class:"weight-500"},{default:e.withCtx(()=>[...n[0]||(n[0]=[e.createTextVNode(" 待审核 ",-1)])]),_:1})):t.auditStatus===e.unref(y).APPROVED?(e.openBlock(),e.createBlock(e.unref(c.ElTag),{key:1,type:"primary",size:"small",class:"weight-500"},{default:e.withCtx(()=>[...n[1]||(n[1]=[e.createTextVNode(" 已通过 ",-1)])]),_:1})):t.auditStatus===e.unref(y).REJECTED?(e.openBlock(),e.createBlock(e.unref(c.ElTag),{key:2,type:"danger",size:"small",class:"weight-500"},{default:e.withCtx(()=>[...n[2]||(n[2]=[e.createTextVNode(" 已驳回 ",-1)])]),_:1})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),e.createElementVNode("div",X,[t.operationType===e.unref(o).LISTING||t.operationType===e.unref(o).DELISTING?(e.openBlock(),e.createElementBlock("p",Z," 申请人:"+e.toDisplayString(t.creatorName??"--"),1)):e.createCommentVNode("",!0),t.operationType===e.unref(o).ONLINE||t.operationType===e.unref(o).OFFLINE?(e.openBlock(),e.createElementBlock("p",ee," 操作人:"+e.toDisplayString(t.creatorName??"--"),1)):e.createCommentVNode("",!0),t.operationType===e.unref(o).DELISTING?(e.openBlock(),e.createElementBlock("p",te," 下架原因:"+e.toDisplayString(t.delistingReason??"--"),1)):e.createCommentVNode("",!0),t.operationType===e.unref(o).LISTING?(e.openBlock(),e.createElementBlock("p",ae," 成效数据:"+e.toDisplayString(t.resultData??"--"),1)):e.createCommentVNode("",!0),t.operationType===e.unref(o).LISTING?(e.openBlock(),e.createElementBlock("p",oe," 推荐理由:"+e.toDisplayString(t.recommendReason??"--"),1)):e.createCommentVNode("",!0),t.operationType===e.unref(o).ONLINE||t.operationType===e.unref(o).OFFLINE?(e.openBlock(),e.createElementBlock("p",ne," 版本号:"+e.toDisplayString(t.appVersionNum?"V"+t.appVersionNum:"--"),1)):e.createCommentVNode("",!0),t.operationType===e.unref(o).ONLINE?(e.openBlock(),e.createElementBlock("p",le," 配置摘要:"+e.toDisplayString(t.configSummary??"--"),1)):e.createCommentVNode("",!0),t.operationType===e.unref(o).ONLINE||t.operationType===e.unref(o).OFFLINE?(e.openBlock(),e.createElementBlock("p",re," 版本说明:"+e.toDisplayString(t.publishRemark??"--"),1)):e.createCommentVNode("",!0),t.operationType===e.unref(o).OFFLINE?(e.openBlock(),e.createElementBlock("p",se," 下线原因:"+e.toDisplayString(t.offlineReason??"--"),1)):e.createCommentVNode("",!0),t.operationType===e.unref(o).LISTING&&!a.square?(e.openBlock(),e.createBlock(e.unref(c.ElLink),{key:9,type:"primary",underline:!1,class:"mg-t-8",onClick:l=>p(t)},{default:e.withCtx(()=>[...n[3]||(n[3]=[e.createTextVNode(" 查看上架申请 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),t.operationType===e.unref(o).DELISTING&&!a.square?(e.openBlock(),e.createBlock(e.unref(c.ElLink),{key:10,type:"primary",underline:!1,class:"mg-t-8",onClick:l=>p(t)},{default:e.withCtx(()=>[...n[4]||(n[4]=[e.createTextVNode(" 查看下架申请 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])]),_:2},1024)]),_:2},1032,["timestamp"]))),128))]),_:1}))}}),ie=k._export_sfc(ce,[["__scopeId","data-v-4e41255e"]]),ue=Object.assign({name:"AppIntro"},{__name:"layout",props:{introData:{type:Object,default:()=>({})},square:{type:Boolean,default:!1},defaultTab:{type:String,default:"intro",validator:a=>["intro","timeline"].includes(a)},prefixUrl:{type:String,default:""},vueRouter:{type:Object,default:()=>({})},appId:{type:String,default:""}},emits:["tab-change"],setup(a,{emit:s}){const p=a,d=s,i=e.ref(p.defaultTab);e.watch(()=>p.defaultTab,u=>{i.value=u});const f=u=>{d("tab-change",u)};return(u,m)=>(e.openBlock(),e.createBlock(e.unref(c.ElTabs),{class:"overflow-hidden h-full",modelValue:i.value,"onUpdate:modelValue":m[0]||(m[0]=r=>i.value=r),onTabChange:f},{default:e.withCtx(()=>[e.createVNode(e.unref(c.ElTabPane),{label:"应用介绍",name:"intro"},{default:e.withCtx(()=>[e.createVNode(Y,{pics:a.introData?.pics,"app-creator-name":a.introData?.appCreatorName,"app-creator-org":a.introData?.appCreatorOrg,"app-desc":a.introData?.appDesc,"access-system":a.introData?.accessSystem,"business-background":a.introData?.businessBackground,"business-target":a.introData?.businessTarget,"result-data":a.introData?.resultData,attachements:a.introData?.attachements},null,8,["pics","app-creator-name","app-creator-org","app-desc","access-system","business-background","business-target","result-data","attachements"])]),_:1}),e.createVNode(e.unref(c.ElTabPane),{label:"迭代时间轴",name:"timeline"},{default:e.withCtx(()=>[e.createVNode(ie,{prefixUrl:a.prefixUrl,square:a.square,"vue-router":a.vueRouter,"app-id":a.appId},null,8,["prefixUrl","square","vue-router","app-id"])]),_:1})]),_:1},8,["modelValue"]))}}),pe=k._export_sfc(ue,[["__scopeId","data-v-0ffdf013"]]),T=_.withInstall(pe);exports.AppIntro=T;exports.auditStatusMap=y;exports.default=T;exports.mediaTypeMap=g;exports.operationTypeMap=o;exports.operationTypeToTextMap=v;exports.tabTypeMap=x;