ling-yun-custom-components 0.0.47 → 0.0.49
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/AppIntro.mjs +212 -218
- package/es/BatchImport.mjs +1 -1
- package/es/FileList.mjs +1 -1
- package/es/IconRenderer.mjs +2 -2
- package/es/IconSelect.mjs +1 -1
- package/es/PluginDetail.mjs +233 -76
- package/es/SearchBar.mjs +1 -1
- package/es/UpdatePasswordDialog.mjs +1 -1
- package/es/UploadFile.mjs +1 -1
- package/es/assets/AppIntro.css +1 -1
- package/es/assets/PluginDetail.css +1 -1
- package/es/assets/layout6.css +1 -1
- package/es/chunks/global.0D1G5ksU.js +9139 -0
- package/es/chunks/global.C0RGZP_4.js +16414 -0
- package/es/chunks/layout.B2kLz-lA.js +594 -0
- package/es/chunks/layout.BTdDzac6.js +594 -0
- package/es/chunks/layout.BcE_uXfl.js +149 -0
- package/es/chunks/layout.BjpD-aT_.js +230 -0
- package/es/chunks/layout.Co98b6wr.js +150 -0
- package/es/chunks/layout.zm_iHVUd.js +230 -0
- package/es/index.mjs +42 -40
- package/lib/AppIntro.js +1 -1
- package/lib/BatchImport.js +1 -1
- package/lib/FileList.js +1 -1
- package/lib/IconRenderer.js +1 -1
- package/lib/IconSelect.js +1 -1
- package/lib/PluginDetail.js +1 -1
- package/lib/SearchBar.js +1 -1
- package/lib/UpdatePasswordDialog.js +1 -1
- package/lib/UploadFile.js +1 -1
- package/lib/assets/AppIntro.css +1 -1
- package/lib/assets/PluginDetail.css +1 -1
- package/lib/assets/layout6.css +1 -1
- package/lib/chunks/global.CaQoTxsn.js +1 -0
- package/lib/chunks/global.DIPtiMPx.js +1 -0
- package/lib/chunks/layout.B1FEweQJ.js +1 -0
- package/lib/chunks/layout.BZcONKs3.js +1 -0
- package/lib/chunks/layout.BsTMNqYf.js +1 -0
- package/lib/chunks/layout.DGwMUZ22.js +1 -0
- package/lib/chunks/layout.DymT6hAY.js +1 -0
- package/lib/chunks/layout.VaW9ZCxV.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +5 -5
package/es/IconSelect.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { w as S } from "./chunks/index.bCzIhWFw.js";
|
|
|
2
2
|
import { ref as p, computed as v, watch as N, createBlock as c, openBlock as o, unref as n, withCtx as i, createElementVNode as x, createVNode as r, createElementBlock as u, createCommentVNode as E, Fragment as I, renderList as L, normalizeClass as h, resolveDynamicComponent as V, createTextVNode as j } from "vue";
|
|
3
3
|
import { ElPopover as B, ElInput as O, ElIcon as y } from "element-plus";
|
|
4
4
|
import { IconSearch as T, IconAdd as U } from "color-message-lingyun-vue";
|
|
5
|
-
import { icons as g } from "./chunks/global.
|
|
5
|
+
import { icons as g } from "./chunks/global.0D1G5ksU.js";
|
|
6
6
|
import { I as A } from "./chunks/layout.DBgjqaxe.js";
|
|
7
7
|
import { _ as D } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
8
8
|
import './assets/IconSelect.css';const F = { class: "icon-select-content flex flex-col overflow-hidden" }, P = { class: "icon-select-grid overflow-y-auto display-grid" }, $ = ["title", "onClick"], q = {
|
package/es/PluginDetail.mjs
CHANGED
|
@@ -1,14 +1,92 @@
|
|
|
1
|
-
import { w as
|
|
2
|
-
import {
|
|
3
|
-
import { ElButton as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
1
|
+
import { w as N } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { computed as B, createBlock as m, openBlock as t, unref as V, withCtx as D, createElementBlock as n, Fragment as c, renderList as M, normalizeClass as $, toDisplayString as h, createTextVNode as S, ref as y, watch as w, onMounted as H, createCommentVNode as o, createVNode as I, createElementVNode as P, renderSlot as g, nextTick as z } from "vue";
|
|
3
|
+
import { ElTable as R, ElTableColumn as F, ElButton as _, ElSegmented as j } from "element-plus";
|
|
4
|
+
import { C as b } from "./chunks/layout.BKJPyxR8.js";
|
|
5
|
+
import { _ as J } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
+
import './assets/PluginDetail.css';const v = {
|
|
7
|
+
name: "name",
|
|
8
|
+
type: "type",
|
|
9
|
+
required: "required",
|
|
10
|
+
description: "description"
|
|
11
|
+
}, L = [
|
|
12
|
+
{
|
|
13
|
+
label: "参数名",
|
|
14
|
+
prop: v.name
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
label: "参数类型",
|
|
18
|
+
prop: v.type
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
label: "必填",
|
|
22
|
+
prop: v.required
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: "描述",
|
|
26
|
+
prop: v.description
|
|
27
|
+
}
|
|
28
|
+
], U = {
|
|
6
29
|
key: 1,
|
|
7
|
-
class: "
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
30
|
+
class: "type-tag"
|
|
31
|
+
}, x = {
|
|
32
|
+
__name: "ParamsTable",
|
|
33
|
+
props: {
|
|
34
|
+
data: {
|
|
35
|
+
type: [Array, String],
|
|
36
|
+
default: () => []
|
|
37
|
+
},
|
|
38
|
+
columns: {
|
|
39
|
+
type: Array,
|
|
40
|
+
default: () => L
|
|
41
|
+
},
|
|
42
|
+
hideColumns: {
|
|
43
|
+
type: Array,
|
|
44
|
+
default: () => []
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
setup(a) {
|
|
48
|
+
const u = a, A = B(() => {
|
|
49
|
+
let r = u.data;
|
|
50
|
+
if (typeof r == "string")
|
|
51
|
+
try {
|
|
52
|
+
r = JSON.parse(r);
|
|
53
|
+
} catch (i) {
|
|
54
|
+
return console.error("解析参数数据失败:", i), [];
|
|
55
|
+
}
|
|
56
|
+
return !r || !Array.isArray(r) ? [] : r;
|
|
57
|
+
}), s = B(() => !u.hideColumns || u.hideColumns.length === 0 ? u.columns : u.columns.filter((r) => !u.hideColumns.includes(r.prop)));
|
|
58
|
+
return (r, i) => (t(), m(V(R), {
|
|
59
|
+
data: A.value,
|
|
60
|
+
"row-key": "uiid",
|
|
61
|
+
"tree-props": { children: "children", hasChildren: "hasChildren" },
|
|
62
|
+
stripe: ""
|
|
63
|
+
}, {
|
|
64
|
+
default: D(() => [
|
|
65
|
+
(t(!0), n(c, null, M(s.value, (l) => (t(), m(V(F), {
|
|
66
|
+
key: l.prop,
|
|
67
|
+
prop: l.prop,
|
|
68
|
+
label: l.label,
|
|
69
|
+
width: l.width,
|
|
70
|
+
"min-width": l.minWidth
|
|
71
|
+
}, {
|
|
72
|
+
default: D(({ row: d }) => [
|
|
73
|
+
l.prop === "required" ? (t(), n("span", {
|
|
74
|
+
key: 0,
|
|
75
|
+
class: $(d.required ? "required-yes" : "required-no")
|
|
76
|
+
}, h(d.required ? "是" : "否"), 3)) : l.prop === "type" ? (t(), n("span", U, h(d.type), 1)) : (t(), n(c, { key: 2 }, [
|
|
77
|
+
S(h(d[l.prop] || "-"), 1)
|
|
78
|
+
], 64))
|
|
79
|
+
]),
|
|
80
|
+
_: 2
|
|
81
|
+
}, 1032, ["prop", "label", "width", "min-width"]))), 128))
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
}, 8, ["data"]));
|
|
85
|
+
}
|
|
86
|
+
}, W = { key: 0 }, G = { key: 1 }, K = {
|
|
87
|
+
key: 4,
|
|
88
|
+
class: "radius-12 border-f0f0f0 pd-l-20 pd-r-20 pd-b-24 pd-t-20 mg-b-34"
|
|
89
|
+
}, Q = { class: "weight-400 fz-16 text-666666 lh-24" }, X = { class: "flex justify-end items-center gap-10 text-right" }, Y = {
|
|
12
90
|
__name: "layout",
|
|
13
91
|
props: {
|
|
14
92
|
intro: {
|
|
@@ -19,10 +97,6 @@ import './assets/PluginDetail.css';const A = { key: 0 }, D = { key: 1 }, j = {
|
|
|
19
97
|
type: String,
|
|
20
98
|
default: ""
|
|
21
99
|
},
|
|
22
|
-
tabOptions: {
|
|
23
|
-
type: Array,
|
|
24
|
-
default: () => []
|
|
25
|
-
},
|
|
26
100
|
modelValue: {
|
|
27
101
|
type: [String, Number],
|
|
28
102
|
default: ""
|
|
@@ -30,91 +104,174 @@ import './assets/PluginDetail.css';const A = { key: 0 }, D = { key: 1 }, j = {
|
|
|
30
104
|
tabItems: {
|
|
31
105
|
type: Array,
|
|
32
106
|
default: () => []
|
|
107
|
+
},
|
|
108
|
+
// 插件 详情 接口
|
|
109
|
+
pluginDetailApi: {
|
|
110
|
+
type: Function,
|
|
111
|
+
default: () => {
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
// 是否显示输入参数
|
|
115
|
+
showInputParams: {
|
|
116
|
+
type: Boolean,
|
|
117
|
+
default: !0
|
|
118
|
+
},
|
|
119
|
+
// 是否显示输出参数
|
|
120
|
+
showOutputParams: {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
default: !0
|
|
123
|
+
},
|
|
124
|
+
// 输入参数隐藏的列
|
|
125
|
+
inputParamsHideColumns: {
|
|
126
|
+
type: Array,
|
|
127
|
+
default: () => []
|
|
128
|
+
},
|
|
129
|
+
// 输出参数隐藏的列
|
|
130
|
+
outputParamsHideColumns: {
|
|
131
|
+
type: Array,
|
|
132
|
+
default: () => [v.required]
|
|
133
|
+
},
|
|
134
|
+
// 是否 显示 插件简介
|
|
135
|
+
showIntro: {
|
|
136
|
+
type: Boolean,
|
|
137
|
+
default: !0
|
|
33
138
|
}
|
|
34
139
|
},
|
|
35
140
|
emits: ["update:modelValue", "tab-change"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
const e =
|
|
44
|
-
e && (
|
|
141
|
+
setup(a, { expose: u, emit: A }) {
|
|
142
|
+
const s = a, r = A, i = y(!1), l = y(!1), d = y(null), p = y(s.modelValue), T = B(() => !s.tabItems?.length || !p.value ? null : s.tabItems.find((e) => e.bnid == p.value) || null), O = () => {
|
|
143
|
+
i.value = !i.value;
|
|
144
|
+
}, E = (e) => {
|
|
145
|
+
r("update:modelValue", e), r("tab-change", e);
|
|
146
|
+
}, q = () => {
|
|
147
|
+
z(() => {
|
|
148
|
+
const e = d.value;
|
|
149
|
+
e && (l.value = e.scrollHeight > 24);
|
|
45
150
|
});
|
|
46
|
-
};
|
|
47
|
-
return
|
|
48
|
-
() =>
|
|
151
|
+
}, f = y(null);
|
|
152
|
+
return w(
|
|
153
|
+
() => T.value?.bnid,
|
|
49
154
|
(e) => {
|
|
50
|
-
|
|
155
|
+
e && s.pluginDetailApi(e).then((k) => {
|
|
156
|
+
f.value = k?.data?.[0];
|
|
157
|
+
});
|
|
158
|
+
},
|
|
159
|
+
{ immediate: !0 }
|
|
160
|
+
), w(
|
|
161
|
+
() => s.modelValue,
|
|
162
|
+
(e) => {
|
|
163
|
+
p.value = e;
|
|
51
164
|
}
|
|
52
|
-
),
|
|
53
|
-
() =>
|
|
165
|
+
), w(
|
|
166
|
+
() => s.tabItems,
|
|
167
|
+
(e) => {
|
|
168
|
+
p.value = e?.[0]?.bnid;
|
|
169
|
+
},
|
|
170
|
+
{ immediate: !0 }
|
|
171
|
+
), w(
|
|
172
|
+
() => s.description,
|
|
54
173
|
() => {
|
|
55
|
-
|
|
174
|
+
q();
|
|
56
175
|
},
|
|
57
176
|
{ immediate: !0 }
|
|
58
|
-
),
|
|
59
|
-
|
|
60
|
-
}),
|
|
61
|
-
checkShowMoreBtn:
|
|
62
|
-
currentTabItem:
|
|
63
|
-
}), (e,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
177
|
+
), H(() => {
|
|
178
|
+
q();
|
|
179
|
+
}), u({
|
|
180
|
+
checkShowMoreBtn: q,
|
|
181
|
+
currentTabItem: T
|
|
182
|
+
}), (e, k) => (t(), n(c, null, [
|
|
183
|
+
a.showIntro ? (t(), n(c, { key: 0 }, [
|
|
184
|
+
I(b, {
|
|
185
|
+
content: "插件简介",
|
|
186
|
+
class: "mg-b-16"
|
|
187
|
+
}),
|
|
188
|
+
P("div", {
|
|
189
|
+
class: $(["weight-400 fz-16 text-666", i.value ? "" : "hide-more"]),
|
|
190
|
+
ref_key: "descRef",
|
|
191
|
+
ref: d
|
|
192
|
+
}, [
|
|
193
|
+
g(e.$slots, "intro", {}, () => [
|
|
194
|
+
S(h(a.intro), 1)
|
|
195
|
+
], !0)
|
|
196
|
+
], 2)
|
|
197
|
+
], 64)) : o("", !0),
|
|
198
|
+
I(b, {
|
|
199
|
+
content: "工具描述",
|
|
200
|
+
class: "mg-b-16 mg-t-34"
|
|
201
|
+
}),
|
|
202
|
+
P("div", {
|
|
203
|
+
class: $(["weight-400 fz-16 text-666", i.value ? "" : "hide-more"]),
|
|
77
204
|
ref_key: "descRef",
|
|
78
|
-
ref:
|
|
205
|
+
ref: d
|
|
79
206
|
}, [
|
|
80
|
-
|
|
81
|
-
|
|
207
|
+
g(e.$slots, "description", {}, () => [
|
|
208
|
+
S(h(a.description), 1)
|
|
82
209
|
], !0)
|
|
83
210
|
], 2),
|
|
84
|
-
|
|
85
|
-
key:
|
|
211
|
+
l.value ? (t(), m(V(_), {
|
|
212
|
+
key: 1,
|
|
86
213
|
type: "text",
|
|
87
|
-
onClick:
|
|
214
|
+
onClick: O
|
|
88
215
|
}, {
|
|
89
|
-
default:
|
|
90
|
-
|
|
216
|
+
default: D(() => [
|
|
217
|
+
i.value ? (t(), n("span", G, "收起")) : (t(), n("span", W, "查看更多"))
|
|
91
218
|
]),
|
|
92
219
|
_: 1
|
|
93
|
-
})) :
|
|
94
|
-
|
|
95
|
-
o.tabOptions?.length ? (t(), k(V(_), {
|
|
220
|
+
})) : o("", !0),
|
|
221
|
+
a.tabItems?.length ? (t(), m(b, {
|
|
96
222
|
key: 2,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
223
|
+
content: "插件工具",
|
|
224
|
+
class: "mg-b-16 mg-t-34"
|
|
225
|
+
})) : o("", !0),
|
|
226
|
+
a.tabItems?.length ? (t(), m(V(j), {
|
|
227
|
+
key: 3,
|
|
228
|
+
modelValue: p.value,
|
|
229
|
+
"onUpdate:modelValue": k[0] || (k[0] = (C) => p.value = C),
|
|
230
|
+
options: a.tabItems.map((C) => ({
|
|
231
|
+
label: C.interfaceName,
|
|
232
|
+
value: C.bnid
|
|
233
|
+
})),
|
|
234
|
+
onChange: E,
|
|
101
235
|
class: "mg-b-16"
|
|
102
|
-
}, null, 8, ["modelValue", "options"])) :
|
|
103
|
-
e.$slots.default || e.$slots.actions ? (t(),
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
236
|
+
}, null, 8, ["modelValue", "options"])) : o("", !0),
|
|
237
|
+
e.$slots.default || e.$slots.actions ? (t(), n("div", K, [
|
|
238
|
+
P("div", Q, [
|
|
239
|
+
g(e.$slots, "default", {}, () => [
|
|
240
|
+
S(h(T.value?.description), 1)
|
|
107
241
|
], !0)
|
|
108
242
|
]),
|
|
109
|
-
|
|
110
|
-
|
|
243
|
+
P("div", X, [
|
|
244
|
+
g(e.$slots, "actions", {}, void 0, !0)
|
|
111
245
|
])
|
|
112
|
-
])) :
|
|
113
|
-
|
|
246
|
+
])) : o("", !0),
|
|
247
|
+
a.showInputParams && a.tabItems?.length ? (t(), n(c, { key: 5 }, [
|
|
248
|
+
I(b, {
|
|
249
|
+
content: "输入参数",
|
|
250
|
+
class: "mg-b-16"
|
|
251
|
+
}),
|
|
252
|
+
f.value?.paramsOuter ? (t(), m(x, {
|
|
253
|
+
key: 0,
|
|
254
|
+
data: f.value.paramsOuter,
|
|
255
|
+
"hide-columns": a.inputParamsHideColumns
|
|
256
|
+
}, null, 8, ["data", "hide-columns"])) : o("", !0)
|
|
257
|
+
], 64)) : o("", !0),
|
|
258
|
+
a.showOutputParams && a.tabItems?.length ? (t(), n(c, { key: 6 }, [
|
|
259
|
+
I(b, {
|
|
260
|
+
content: "输出参数",
|
|
261
|
+
class: "mg-b-16 mg-t-34"
|
|
262
|
+
}),
|
|
263
|
+
f.value?.responseOuter ? (t(), m(x, {
|
|
264
|
+
key: 0,
|
|
265
|
+
data: f.value.responseOuter,
|
|
266
|
+
"hide-columns": a.outputParamsHideColumns
|
|
267
|
+
}, null, 8, ["data", "hide-columns"])) : o("", !0)
|
|
268
|
+
], 64)) : o("", !0),
|
|
269
|
+
g(e.$slots, "plugin-detail", {}, void 0, !0)
|
|
114
270
|
], 64));
|
|
115
271
|
}
|
|
116
|
-
},
|
|
272
|
+
}, Z = /* @__PURE__ */ J(Y, [["__scopeId", "data-v-92a63eac"]]), ne = N(Z), se = N(x);
|
|
117
273
|
export {
|
|
118
|
-
|
|
119
|
-
|
|
274
|
+
ne as PluginDetail,
|
|
275
|
+
se as PluginDetailParamsTable,
|
|
276
|
+
ne as default
|
|
120
277
|
};
|
package/es/SearchBar.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { w as h } from "./chunks/index.bCzIhWFw.js";
|
|
2
2
|
import { ref as P, computed as v, createBlock as x, openBlock as C, withCtx as I, createVNode as D, unref as f, isRef as b } from "vue";
|
|
3
3
|
import { C as E } from "./chunks/layout.DXw3haOP.js";
|
|
4
|
-
import { S as k } from "./chunks/layout.
|
|
4
|
+
import { S as k } from "./chunks/layout.BTdDzac6.js";
|
|
5
5
|
import { componentType as w, emitsMap as u, codeMap as y, messageSuccess as A, AESCrypto as M } from "ling-yun-methods";
|
|
6
6
|
import { _ as S } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
7
7
|
import './assets/UpdatePasswordDialog.css';const U = () => {
|
package/es/UploadFile.mjs
CHANGED
package/es/assets/AppIntro.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.hover-overlay[data-v-
|
|
1
|
+
.hover-overlay[data-v-f5af90d9]{background:#00000080}[data-v-3a2170d7] .el-timeline-item__timestamp{color:#86909c}[data-v-3a2170d7] .el-card{background:var(--neutral-color-18)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.hide-more[data-v-
|
|
1
|
+
.hide-more[data-v-92a63eac]{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.border-f0f0f0[data-v-92a63eac]{border:1px solid var(--neutral-color-6)}
|
package/es/assets/layout6.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.file-list[data-v-
|
|
1
|
+
.file-list[data-v-c5b5f416]{grid-template-columns:repeat(var(--v751237c3),1fr);gap:12px}.file-list .lh-16[data-v-c5b5f416]{line-height:16px}.file-list .border-error[data-v-c5b5f416]{border:1px solid var(--error-color-1)}.file-list .border-normal[data-v-c5b5f416]{border:1px solid var(--parting-line)}.file-list .bg-uploading[data-v-c5b5f416]{background:linear-gradient(270deg,var(--primary-color-5) 0%,rgba(252,253,255,0) 100%)}
|