ling-yun-custom-components 0.0.65 → 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/PluginDetail.mjs +124 -128
- package/es/assets/PluginDetail.css +1 -1
- 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/PluginDetail.js +1 -1
- package/lib/assets/PluginDetail.css +1 -1
- 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
package/es/PluginDetail.mjs
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { w as
|
|
2
|
-
import { computed as
|
|
3
|
-
import { ElTable as R, ElTableColumn as j,
|
|
4
|
-
import { CustomTitle as
|
|
5
|
-
import { emitsMap as
|
|
1
|
+
import { w as x } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { computed as B, createBlock as c, openBlock as t, unref as p, withCtx as M, createElementBlock as n, Fragment as f, renderList as _, normalizeClass as $, toDisplayString as h, createTextVNode as D, ref as b, watch as I, onMounted as H, createCommentVNode as d, createVNode as P, createElementVNode as S, renderSlot as v, nextTick as z } from "vue";
|
|
3
|
+
import { ElTable as R, ElTableColumn as j, ElSegmented as F, ElButton as J } from "element-plus";
|
|
4
|
+
import { CustomTitle as V } from "color-star-custom-components";
|
|
5
|
+
import { emitsMap as A } from "color-star-custom-methods";
|
|
6
6
|
import { _ as L } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
7
|
-
import './assets/PluginDetail.css';const
|
|
7
|
+
import './assets/PluginDetail.css';const k = {
|
|
8
8
|
name: "name",
|
|
9
9
|
type: "type",
|
|
10
10
|
required: "required",
|
|
11
11
|
description: "description"
|
|
12
|
-
},
|
|
12
|
+
}, U = [
|
|
13
13
|
{
|
|
14
14
|
label: "参数名",
|
|
15
|
-
prop:
|
|
15
|
+
prop: k.name
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
label: "参数类型",
|
|
19
|
-
prop:
|
|
19
|
+
prop: k.type
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
label: "必填",
|
|
23
|
-
prop:
|
|
23
|
+
prop: k.required
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
label: "描述",
|
|
27
|
-
prop:
|
|
27
|
+
prop: k.description
|
|
28
28
|
}
|
|
29
|
-
],
|
|
29
|
+
], W = {
|
|
30
30
|
key: 1,
|
|
31
31
|
class: "type-tag"
|
|
32
|
-
},
|
|
32
|
+
}, O = {
|
|
33
33
|
__name: "ParamsTable",
|
|
34
34
|
props: {
|
|
35
35
|
data: {
|
|
@@ -38,7 +38,7 @@ import './assets/PluginDetail.css';const w = {
|
|
|
38
38
|
},
|
|
39
39
|
columns: {
|
|
40
40
|
type: Array,
|
|
41
|
-
default: () =>
|
|
41
|
+
default: () => U
|
|
42
42
|
},
|
|
43
43
|
hideColumns: {
|
|
44
44
|
type: Array,
|
|
@@ -46,36 +46,36 @@ import './assets/PluginDetail.css';const w = {
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
setup(a) {
|
|
49
|
-
const
|
|
50
|
-
let
|
|
51
|
-
if (typeof
|
|
49
|
+
const s = a, T = B(() => {
|
|
50
|
+
let r = s.data;
|
|
51
|
+
if (typeof r == "string")
|
|
52
52
|
try {
|
|
53
|
-
|
|
54
|
-
} catch (
|
|
55
|
-
return console.error("解析参数数据失败:",
|
|
53
|
+
r = JSON.parse(r);
|
|
54
|
+
} catch (u) {
|
|
55
|
+
return console.error("解析参数数据失败:", u), [];
|
|
56
56
|
}
|
|
57
|
-
return !
|
|
58
|
-
}),
|
|
59
|
-
return (
|
|
60
|
-
data:
|
|
57
|
+
return !r || !Array.isArray(r) ? [] : r;
|
|
58
|
+
}), o = B(() => !s.hideColumns || s.hideColumns.length === 0 ? s.columns : s.columns.filter((r) => !s.hideColumns.includes(r.prop)));
|
|
59
|
+
return (r, u) => (t(), c(p(R), {
|
|
60
|
+
data: T.value,
|
|
61
61
|
"row-key": "uiid",
|
|
62
62
|
"tree-props": { children: "children", hasChildren: "hasChildren" },
|
|
63
63
|
stripe: ""
|
|
64
64
|
}, {
|
|
65
|
-
default:
|
|
66
|
-
(t(!0), n(
|
|
67
|
-
key:
|
|
68
|
-
prop:
|
|
69
|
-
label:
|
|
70
|
-
width:
|
|
71
|
-
"min-width":
|
|
65
|
+
default: M(() => [
|
|
66
|
+
(t(!0), n(f, null, _(o.value, (l) => (t(), c(p(j), {
|
|
67
|
+
key: l.prop,
|
|
68
|
+
prop: l.prop,
|
|
69
|
+
label: l.label,
|
|
70
|
+
width: l.width,
|
|
71
|
+
"min-width": l.minWidth
|
|
72
72
|
}, {
|
|
73
|
-
default:
|
|
74
|
-
|
|
73
|
+
default: M(({ row: i }) => [
|
|
74
|
+
l.prop === "required" ? (t(), n("span", {
|
|
75
75
|
key: 0,
|
|
76
|
-
class:
|
|
77
|
-
},
|
|
78
|
-
|
|
76
|
+
class: $(i.required ? "required-yes" : "required-no")
|
|
77
|
+
}, h(i.required ? "是" : "否"), 3)) : l.prop === "type" ? (t(), n("span", W, h(i.type), 1)) : (t(), n(f, { key: 2 }, [
|
|
78
|
+
D(h(i[l.prop] || "-"), 1)
|
|
79
79
|
], 64))
|
|
80
80
|
]),
|
|
81
81
|
_: 2
|
|
@@ -84,10 +84,10 @@ import './assets/PluginDetail.css';const w = {
|
|
|
84
84
|
_: 1
|
|
85
85
|
}, 8, ["data"]));
|
|
86
86
|
}
|
|
87
|
-
},
|
|
87
|
+
}, G = { key: 0 }, K = { key: 1 }, Q = {
|
|
88
88
|
key: 3,
|
|
89
89
|
class: "radius-12 border-f0f0f0 pd-l-20 pd-r-20 pd-b-24 pd-t-20 mg-b-34"
|
|
90
|
-
},
|
|
90
|
+
}, X = { class: "weight-400 fz-16 text-666666 lh-24" }, Y = { class: "flex justify-end items-center gap-10 text-right" }, Z = /* @__PURE__ */ Object.assign({
|
|
91
91
|
name: "PluginDetail"
|
|
92
92
|
}, {
|
|
93
93
|
__name: "layout",
|
|
@@ -132,7 +132,7 @@ import './assets/PluginDetail.css';const w = {
|
|
|
132
132
|
// 输出参数隐藏的列
|
|
133
133
|
outputParamsHideColumns: {
|
|
134
134
|
type: Array,
|
|
135
|
-
default: () => [
|
|
135
|
+
default: () => [k.required]
|
|
136
136
|
},
|
|
137
137
|
// 是否 显示 插件简介
|
|
138
138
|
showIntro: {
|
|
@@ -140,140 +140,136 @@ import './assets/PluginDetail.css';const w = {
|
|
|
140
140
|
default: !0
|
|
141
141
|
}
|
|
142
142
|
},
|
|
143
|
-
emits: [
|
|
144
|
-
setup(a, { expose:
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
},
|
|
150
|
-
|
|
151
|
-
const e =
|
|
152
|
-
e && (
|
|
143
|
+
emits: [A.updateModelValue, A.tabChange],
|
|
144
|
+
setup(a, { expose: s, emit: T }) {
|
|
145
|
+
const o = a, r = T, u = b(!1), l = b(!1), i = b(null), m = b(o.modelValue), y = B(() => !o.tabItems?.length || !m.value ? null : o.tabItems.find((e) => e.bnid == m.value) || null), N = () => {
|
|
146
|
+
u.value = !u.value;
|
|
147
|
+
}, E = (e) => {
|
|
148
|
+
r(A.updateModelValue, e), r(A.tabChange, e);
|
|
149
|
+
}, q = () => {
|
|
150
|
+
z(() => {
|
|
151
|
+
const e = i.value;
|
|
152
|
+
e && (l.value = e.scrollHeight > 24);
|
|
153
153
|
});
|
|
154
|
-
},
|
|
154
|
+
}, g = b(null);
|
|
155
155
|
return I(
|
|
156
|
-
() =>
|
|
156
|
+
() => y.value?.bnid,
|
|
157
157
|
(e) => {
|
|
158
|
-
e &&
|
|
159
|
-
|
|
158
|
+
e && o.pluginDetailApi(e).then((C) => {
|
|
159
|
+
g.value = C?.data?.[0];
|
|
160
160
|
});
|
|
161
161
|
},
|
|
162
162
|
{ immediate: !0 }
|
|
163
163
|
), I(
|
|
164
|
-
() =>
|
|
164
|
+
() => o.modelValue,
|
|
165
165
|
(e) => {
|
|
166
|
-
|
|
166
|
+
m.value = e;
|
|
167
167
|
}
|
|
168
168
|
), I(
|
|
169
|
-
() =>
|
|
169
|
+
() => o.tabItems,
|
|
170
170
|
(e) => {
|
|
171
|
-
|
|
171
|
+
m.value = e?.[0]?.bnid;
|
|
172
172
|
},
|
|
173
173
|
{ immediate: !0 }
|
|
174
174
|
), I(
|
|
175
|
-
() =>
|
|
175
|
+
() => y.value?.description,
|
|
176
176
|
() => {
|
|
177
|
-
|
|
177
|
+
q();
|
|
178
178
|
},
|
|
179
179
|
{ immediate: !0 }
|
|
180
180
|
), H(() => {
|
|
181
|
-
|
|
182
|
-
}),
|
|
183
|
-
checkShowMoreBtn:
|
|
184
|
-
currentTabItem:
|
|
185
|
-
}), (e,
|
|
186
|
-
a.showIntro ? (t(), n(
|
|
187
|
-
|
|
181
|
+
q();
|
|
182
|
+
}), s({
|
|
183
|
+
checkShowMoreBtn: q,
|
|
184
|
+
currentTabItem: y
|
|
185
|
+
}), (e, C) => (t(), n(f, null, [
|
|
186
|
+
a.showIntro ? (t(), n(f, { key: 0 }, [
|
|
187
|
+
P(p(V), {
|
|
188
188
|
content: "插件简介",
|
|
189
189
|
class: "mg-b-16"
|
|
190
190
|
}),
|
|
191
|
-
|
|
192
|
-
class:
|
|
191
|
+
S("div", {
|
|
192
|
+
class: $(["weight-400 fz-16 text-666", u.value ? "" : "hide-more"]),
|
|
193
193
|
ref_key: "descRef",
|
|
194
|
-
ref:
|
|
194
|
+
ref: i
|
|
195
195
|
}, [
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
v(e.$slots, "intro", {}, () => [
|
|
197
|
+
D(h(a.intro), 1)
|
|
198
198
|
], !0)
|
|
199
199
|
], 2)
|
|
200
|
-
], 64)) :
|
|
201
|
-
|
|
200
|
+
], 64)) : d("", !0),
|
|
201
|
+
a.tabItems?.length ? (t(), c(p(F), {
|
|
202
202
|
key: 1,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
]),
|
|
209
|
-
_: 1
|
|
210
|
-
})) : o("", !0),
|
|
211
|
-
a.tabItems?.length ? (t(), p(u(U), {
|
|
212
|
-
key: 2,
|
|
213
|
-
modelValue: c.value,
|
|
214
|
-
"onUpdate:modelValue": f[0] || (f[0] = (y) => c.value = y),
|
|
215
|
-
options: a.tabItems.map((y) => ({
|
|
216
|
-
label: y.interfaceName,
|
|
217
|
-
value: y.bnid
|
|
203
|
+
modelValue: m.value,
|
|
204
|
+
"onUpdate:modelValue": C[0] || (C[0] = (w) => m.value = w),
|
|
205
|
+
options: a.tabItems.map((w) => ({
|
|
206
|
+
label: w.interfaceName,
|
|
207
|
+
value: w.bnid
|
|
218
208
|
})),
|
|
219
|
-
onChange:
|
|
220
|
-
class: "mg-b-16
|
|
221
|
-
}, null, 8, ["modelValue", "options"])) :
|
|
222
|
-
|
|
209
|
+
onChange: E,
|
|
210
|
+
class: "mg-b-16"
|
|
211
|
+
}, null, 8, ["modelValue", "options"])) : d("", !0),
|
|
212
|
+
P(p(V), {
|
|
223
213
|
content: "工具描述",
|
|
224
214
|
class: "mg-b-16"
|
|
225
215
|
}),
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
autosize: { minRows: 1, maxRows: 3 },
|
|
234
|
-
maxlength: 300,
|
|
235
|
-
"show-word-limit": !0
|
|
236
|
-
}, null, 8, ["modelValue"])) : o("", !0)
|
|
216
|
+
S("div", {
|
|
217
|
+
class: $(["weight-400 fz-16 text-666", u.value ? "" : "hide-more"]),
|
|
218
|
+
ref_key: "descRef",
|
|
219
|
+
ref: i
|
|
220
|
+
}, [
|
|
221
|
+
v(e.$slots, "description", {}, () => [
|
|
222
|
+
D(h(y.value?.description), 1)
|
|
237
223
|
], !0)
|
|
238
|
-
]),
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
224
|
+
], 2),
|
|
225
|
+
l.value ? (t(), c(p(J), {
|
|
226
|
+
key: 2,
|
|
227
|
+
type: "text",
|
|
228
|
+
onClick: N
|
|
229
|
+
}, {
|
|
230
|
+
default: M(() => [
|
|
231
|
+
u.value ? (t(), n("span", K, "收起")) : (t(), n("span", G, "查看更多"))
|
|
232
|
+
]),
|
|
233
|
+
_: 1
|
|
234
|
+
})) : d("", !0),
|
|
235
|
+
e.$slots.default || e.$slots.actions ? (t(), n("div", Q, [
|
|
236
|
+
S("div", X, [
|
|
237
|
+
v(e.$slots, "default", {}, () => [
|
|
238
|
+
D(h(y.value?.description), 1)
|
|
243
239
|
], !0)
|
|
244
240
|
]),
|
|
245
|
-
|
|
246
|
-
|
|
241
|
+
S("div", Y, [
|
|
242
|
+
v(e.$slots, "actions", {}, void 0, !0)
|
|
247
243
|
])
|
|
248
|
-
])) :
|
|
249
|
-
a.showInputParams && a.tabItems?.length ? (t(), n(
|
|
250
|
-
|
|
244
|
+
])) : d("", !0),
|
|
245
|
+
a.showInputParams && a.tabItems?.length ? (t(), n(f, { key: 4 }, [
|
|
246
|
+
P(p(V), {
|
|
251
247
|
content: "输入参数",
|
|
252
248
|
class: "mg-b-16 mg-t-34"
|
|
253
249
|
}),
|
|
254
|
-
|
|
250
|
+
g.value?.paramsOuter ? (t(), c(O, {
|
|
255
251
|
key: 0,
|
|
256
|
-
data:
|
|
252
|
+
data: g.value.paramsOuter,
|
|
257
253
|
"hide-columns": a.inputParamsHideColumns
|
|
258
|
-
}, null, 8, ["data", "hide-columns"])) :
|
|
259
|
-
], 64)) :
|
|
260
|
-
a.showOutputParams && a.tabItems?.length ? (t(), n(
|
|
261
|
-
|
|
254
|
+
}, null, 8, ["data", "hide-columns"])) : d("", !0)
|
|
255
|
+
], 64)) : d("", !0),
|
|
256
|
+
a.showOutputParams && a.tabItems?.length ? (t(), n(f, { key: 5 }, [
|
|
257
|
+
P(p(V), {
|
|
262
258
|
content: "输出参数",
|
|
263
259
|
class: "mg-b-16 mg-t-34"
|
|
264
260
|
}),
|
|
265
|
-
|
|
261
|
+
g.value?.responseOuter ? (t(), c(O, {
|
|
266
262
|
key: 0,
|
|
267
|
-
data:
|
|
263
|
+
data: g.value.responseOuter,
|
|
268
264
|
"hide-columns": a.outputParamsHideColumns
|
|
269
|
-
}, null, 8, ["data", "hide-columns"])) :
|
|
270
|
-
], 64)) :
|
|
271
|
-
|
|
265
|
+
}, null, 8, ["data", "hide-columns"])) : d("", !0)
|
|
266
|
+
], 64)) : d("", !0),
|
|
267
|
+
v(e.$slots, "plugin-detail", {}, void 0, !0)
|
|
272
268
|
], 64));
|
|
273
269
|
}
|
|
274
|
-
}),
|
|
270
|
+
}), ee = /* @__PURE__ */ L(Z, [["__scopeId", "data-v-70e5945d"]]), oe = x(ee), ue = x(O);
|
|
275
271
|
export {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
272
|
+
oe as PluginDetail,
|
|
273
|
+
ue as PluginDetailParamsTable,
|
|
274
|
+
oe as default
|
|
279
275
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.hide-more[data-v-
|
|
1
|
+
.hide-more[data-v-70e5945d]{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.border-f0f0f0[data-v-70e5945d]{border:1px solid var(--neutral-color-6)}
|