china-mobile-international-custom-components 0.1.22 → 0.1.24
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/AddOrEditSupplierDialog.mjs +2 -2
- package/es/AgentDetail.mjs +5 -5
- package/es/ApplicationTypeTag.mjs +3 -3
- package/es/AuthSection.mjs +2 -2
- package/es/AutoShowTooltip.mjs +1 -1
- package/es/AvailableRangePreview.mjs +1 -1
- package/es/AvailableRangeSetting.mjs +5 -5
- package/es/CodeView.mjs +1 -1
- package/es/CommonTagsList.mjs +62 -62
- package/es/CreateMcpForm.mjs +6 -6
- package/es/CustomSidebar.mjs +1 -1
- package/es/CustomTitle.mjs +1 -1
- package/es/CustomToggle.mjs +11 -11
- package/es/DialogContainer.mjs +5 -5
- package/es/DocSyncSelect.mjs +2 -2
- package/es/FileDisplay.mjs +1 -1
- package/es/FilePreview.mjs +9 -9
- package/es/FileUploader.mjs +2 -2
- package/es/ImageComponent.mjs +5 -0
- package/es/Logo.mjs +2 -2
- package/es/McpFormDialog.mjs +1 -1
- package/es/McpParamsSet.mjs +4 -4
- package/es/MdEditor.mjs +3 -3
- package/es/PageContainer.mjs +2 -2
- package/es/ParameterTable.mjs +2 -2
- package/es/PublishRecord.mjs +6 -6
- package/es/RadioGroup.mjs +5 -5
- package/es/SourcePublish.mjs +6 -6
- package/es/Table.mjs +2 -2
- package/es/WorkFlowDialog.mjs +3 -3
- package/es/WorkflowComponent.mjs +1 -1
- package/es/assets/ImageComponent.css +0 -0
- package/es/assets/layout2.css +1 -1
- package/es/chunks/AddAgentDialog.BEDSZ4er.js +244 -0
- package/es/chunks/AddDialog.RuOrCghd.js +1969 -0
- package/es/chunks/BackBar.Ck5CV5ZM.js +629 -0
- package/es/chunks/CreatePluginDialog.DbQIt3Mz.js +775 -0
- package/es/chunks/CreateWorkflow.CIYJ3nGZ.js +268 -0
- package/es/chunks/ImageComponent.BgYVT3ZJ.js +74 -0
- package/es/chunks/ToolList.2k07ztsY.js +106 -0
- package/es/chunks/config.B_uTnClF.js +47 -0
- package/es/chunks/config.e_OOovlY.js +358 -0
- package/es/chunks/i18n.9cHOVn6X.js +4049 -0
- package/es/chunks/index.BGLAHzZm.js +398 -0
- package/es/chunks/index.CCNAKdQj.js +1279 -0
- package/es/chunks/index.CXIY0q5X.js +172 -0
- package/es/chunks/index.Cv9pn5nk.js +4 -0
- package/es/chunks/index.CyiNa6lr.js +256 -0
- package/es/chunks/index.JG8-HCzk.js +29609 -0
- package/es/chunks/layout.BAvYghmE.js +650 -0
- package/es/chunks/layout.BGxsktpj.js +650 -0
- package/es/chunks/layout.CrO2n3Dk.js +648 -0
- package/es/chunks/layout.Iob_aYQ7.js +26 -0
- package/es/chunks/layout.mwJCmdfw.js +648 -0
- package/es/chunks/view.BSjGhafy.js +824 -0
- package/es/index.mjs +66 -66
- package/lib/CommonTagsList.js +1 -1
- package/lib/CustomSidebar.js +1 -1
- package/lib/ImageComponent.js +1 -0
- package/lib/assets/ImageComponent.css +0 -0
- package/lib/assets/layout2.css +1 -1
- package/lib/chunks/ImageComponent.CdPLM_LX.js +1 -0
- package/lib/chunks/index.Cbkv4rXa.js +1 -0
- package/lib/chunks/layout.BPaMqsSV.js +1 -0
- package/lib/chunks/layout.CcvMc8-K.js +1 -0
- package/lib/chunks/layout.zlS8S4UN.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { ref as E, reactive as G, resolveComponent as j, openBlock as A, createBlock as T, unref as e, withCtx as o, createVNode as a, createCommentVNode as z, createElementVNode as f, toDisplayString as p, createTextVNode as c } from "vue";
|
|
2
|
+
import { ElForm as q, ElFormItem as O, ElTooltip as v, ElIcon as I, ElInput as R, ElButton as g, ElMessage as Q } from "element-plus";
|
|
3
|
+
import { useRouter as Z } from "vue-router";
|
|
4
|
+
import { useDialog as X, DialogContainer as $ } from "../DialogContainer.mjs";
|
|
5
|
+
import { g as J, u as Y } from "./index.JG8-HCzk.js";
|
|
6
|
+
import { FilePreview as ee } from "../FilePreview.mjs";
|
|
7
|
+
import { FileUploader as le } from "../FileUploader.mjs";
|
|
8
|
+
import { u as te } from "./i18n.9cHOVn6X.js";
|
|
9
|
+
import { _ as oe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
10
|
+
import '../assets/CreateWorkflow.css';const ae = { class: "label-with-icon" }, re = { style: { "margin-right": "3px" } }, ie = { class: "action-bottom" }, se = {
|
|
11
|
+
__name: "CreateWorkflow",
|
|
12
|
+
props: {
|
|
13
|
+
modal: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: !0
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
emits: ["success"],
|
|
19
|
+
setup(N, { expose: w, emit: F }) {
|
|
20
|
+
const { t: l } = te(), { add: h, edit: K } = J(), b = Y(), x = F, m = E(!1), { dialogRef: S, formRef: _, showDialog: M, hideDialog: W, resetDialog: y } = X(m), D = Z(), d = E(""), C = E(l("CREATEWORKFLOW.BUILD_WORKFLOW") || "构建工作流"), n = E([]), i = G({
|
|
21
|
+
avatar: null,
|
|
22
|
+
title: "",
|
|
23
|
+
description: "",
|
|
24
|
+
identifier: ""
|
|
25
|
+
}), U = {
|
|
26
|
+
identifier: [
|
|
27
|
+
{
|
|
28
|
+
required: !0,
|
|
29
|
+
validator: (r, t, u) => {
|
|
30
|
+
t ? /^[a-zA-Z][a-zA-Z0-9._]*$/.test(t) ? u() : u(
|
|
31
|
+
new Error(
|
|
32
|
+
l("CREATEWORKFLOW.ENGLISH_NAME_INVALID") || "英文名称仅支持英文、数字、下划线、英文点(.),以英文字母开头"
|
|
33
|
+
)
|
|
34
|
+
) : u(
|
|
35
|
+
new Error(
|
|
36
|
+
l("CREATEWORKFLOW.ENGLISH_NAME_REQUIRED") || "请输入英文名称"
|
|
37
|
+
)
|
|
38
|
+
);
|
|
39
|
+
},
|
|
40
|
+
trigger: "blur"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
title: [
|
|
44
|
+
{
|
|
45
|
+
required: !0,
|
|
46
|
+
message: l("CREATEWORKFLOW.WORKFLOW_NAME_REQUIRED") || "请输入工作流名称",
|
|
47
|
+
trigger: "blur"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
description: [
|
|
51
|
+
{
|
|
52
|
+
required: !0,
|
|
53
|
+
message: l("CREATEWORKFLOW.WORKFLOW_DESCRIPTION_REQUIRED") || "请输入工作流描述",
|
|
54
|
+
trigger: "blur"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}, V = () => {
|
|
58
|
+
_.value.validate(async (r) => {
|
|
59
|
+
if (r) {
|
|
60
|
+
let t = null;
|
|
61
|
+
n.value.length && (t = n.value[0].bnid);
|
|
62
|
+
const u = d.value ? K : h;
|
|
63
|
+
m.value = !0;
|
|
64
|
+
const s = { ...i, avatar: t, bnid: d.value };
|
|
65
|
+
d.value || (s.workspaceBnid = b.selectedBusinessSpace);
|
|
66
|
+
const { code: H, data: L } = await u(s).finally(() => {
|
|
67
|
+
m.value = !1;
|
|
68
|
+
});
|
|
69
|
+
H === 0 && (Q.success(l("CREATEWORKFLOW.BUILD_SUCCESS") || "构建成功"), W(), d.value ? x("success", L) : D.push({
|
|
70
|
+
name: "Workflow",
|
|
71
|
+
params: {
|
|
72
|
+
workflowBnid: L
|
|
73
|
+
}
|
|
74
|
+
}));
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}, k = (r = {}) => {
|
|
78
|
+
d.value = r.bnid || "", d.value ? (C.value = l("CREATEWORKFLOW.EDIT_WORKFLOW") || "编辑工作流", Object.keys(i).forEach((t) => {
|
|
79
|
+
i[t] = r[t];
|
|
80
|
+
}), n.value = r.avatar != "-1" ? [
|
|
81
|
+
{
|
|
82
|
+
bnid: r.avatar,
|
|
83
|
+
url: r.avatarUrl,
|
|
84
|
+
suffix: r.avatarSuffix
|
|
85
|
+
}
|
|
86
|
+
] : []) : n.value = [], M();
|
|
87
|
+
}, B = (r) => {
|
|
88
|
+
n.value.splice(r, 1);
|
|
89
|
+
}, P = (r) => {
|
|
90
|
+
n.value.push(r);
|
|
91
|
+
};
|
|
92
|
+
return w({
|
|
93
|
+
updateView: k
|
|
94
|
+
}), (r, t) => {
|
|
95
|
+
const u = j("IconTip");
|
|
96
|
+
return A(), T(e($), {
|
|
97
|
+
modal: N.modal,
|
|
98
|
+
ref_key: "dialogRef",
|
|
99
|
+
ref: S,
|
|
100
|
+
title: C.value,
|
|
101
|
+
onClosed: e(y),
|
|
102
|
+
width: "500"
|
|
103
|
+
}, {
|
|
104
|
+
footer: o(() => [
|
|
105
|
+
f("div", ie, [
|
|
106
|
+
a(e(g), { onClick: e(W) }, {
|
|
107
|
+
default: o(() => [
|
|
108
|
+
c(p(e(l)("COMMON_BUTTON.CANCEL_TEXT") || "取消"), 1)
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
}, 8, ["onClick"]),
|
|
112
|
+
a(e(g), {
|
|
113
|
+
type: "primary",
|
|
114
|
+
onClick: V,
|
|
115
|
+
disabled: m.value
|
|
116
|
+
}, {
|
|
117
|
+
default: o(() => [
|
|
118
|
+
c(p(e(l)("COMMON_BUTTON.CONFIRM_TEXT") || "确定"), 1)
|
|
119
|
+
]),
|
|
120
|
+
_: 1
|
|
121
|
+
}, 8, ["disabled"])
|
|
122
|
+
])
|
|
123
|
+
]),
|
|
124
|
+
default: o(() => [
|
|
125
|
+
a(e(q), {
|
|
126
|
+
ref_key: "formRef",
|
|
127
|
+
ref: _,
|
|
128
|
+
model: i,
|
|
129
|
+
rules: U,
|
|
130
|
+
"label-width": "auto",
|
|
131
|
+
"label-position": "top"
|
|
132
|
+
}, {
|
|
133
|
+
default: o(() => [
|
|
134
|
+
a(e(O), null, {
|
|
135
|
+
label: o(() => [
|
|
136
|
+
f("div", ae, [
|
|
137
|
+
f("span", re, p(e(l)("CREATEWORKFLOW.WORKFLOW_AVATAR") || "工作流头像"), 1),
|
|
138
|
+
a(e(v), { placement: "top" }, {
|
|
139
|
+
content: o(() => [
|
|
140
|
+
c(p(e(l)("COMMON_DATA.PLUGIN_ICON_TIP") || "支持jpg、png格式,"), 1),
|
|
141
|
+
t[3] || (t[3] = f("br", null, null, -1)),
|
|
142
|
+
c(" " + p(e(l)("COMMON_DATA.PLUGIN_ICON_TIP_SIZE") || "大小5MB以内"), 1)
|
|
143
|
+
]),
|
|
144
|
+
default: o(() => [
|
|
145
|
+
a(e(I), {
|
|
146
|
+
size: "14px",
|
|
147
|
+
color: "#999"
|
|
148
|
+
}, {
|
|
149
|
+
default: o(() => [
|
|
150
|
+
a(u)
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
})
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
})
|
|
157
|
+
])
|
|
158
|
+
]),
|
|
159
|
+
default: o(() => [
|
|
160
|
+
a(e(ee), {
|
|
161
|
+
fileList: n.value,
|
|
162
|
+
previewType: "Card",
|
|
163
|
+
onOnRemove: B
|
|
164
|
+
}, {
|
|
165
|
+
CardUploader: o(() => [
|
|
166
|
+
n.value.length === 0 ? (A(), T(e(le), {
|
|
167
|
+
key: 0,
|
|
168
|
+
limitSize: 5,
|
|
169
|
+
acceptType: ".jpg,.png,.jpeg,.gif",
|
|
170
|
+
onOnSuccess: P,
|
|
171
|
+
defaultUploadIcon: "workflow"
|
|
172
|
+
})) : z("", !0)
|
|
173
|
+
]),
|
|
174
|
+
_: 1
|
|
175
|
+
}, 8, ["fileList"])
|
|
176
|
+
]),
|
|
177
|
+
_: 1
|
|
178
|
+
}),
|
|
179
|
+
a(e(O), {
|
|
180
|
+
label: e(l)("CREATEWORKFLOW.WORKFLOW_NAME") || "工作流名称",
|
|
181
|
+
prop: "title",
|
|
182
|
+
class: "mb-24"
|
|
183
|
+
}, {
|
|
184
|
+
default: o(() => [
|
|
185
|
+
a(e(R), {
|
|
186
|
+
style: { width: "472px" },
|
|
187
|
+
modelValue: i.title,
|
|
188
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => i.title = s),
|
|
189
|
+
maxlength: 50,
|
|
190
|
+
type: "text",
|
|
191
|
+
autocomplete: "off",
|
|
192
|
+
"show-word-limit": "",
|
|
193
|
+
placeholder: e(l)("CREATEWORKFLOW.WORKFLOW_NAME_PLACEHOLDER")
|
|
194
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["label"]),
|
|
198
|
+
a(e(O), {
|
|
199
|
+
prop: "identifier",
|
|
200
|
+
class: "mb-24"
|
|
201
|
+
}, {
|
|
202
|
+
label: o(() => [
|
|
203
|
+
f("span", null, [
|
|
204
|
+
c(p(e(l)("CREATEWORKFLOW.ENGLISH_NAME") || "英文名称") + " ", 1),
|
|
205
|
+
a(e(v), {
|
|
206
|
+
placement: "top",
|
|
207
|
+
content: e(l)("CREATEWORKFLOW.ENGLISH_NAME_TIP") || "英文名被大模型识别和调用,仅支持英文、数字、下划线、英文点(.),以英文字母开头"
|
|
208
|
+
}, {
|
|
209
|
+
default: o(() => [
|
|
210
|
+
a(e(I), {
|
|
211
|
+
size: "14px",
|
|
212
|
+
color: "#999"
|
|
213
|
+
}, {
|
|
214
|
+
default: o(() => [
|
|
215
|
+
a(u)
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
})
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
}, 8, ["content"])
|
|
222
|
+
])
|
|
223
|
+
]),
|
|
224
|
+
default: o(() => [
|
|
225
|
+
a(e(R), {
|
|
226
|
+
style: { width: "472px" },
|
|
227
|
+
modelValue: i.identifier,
|
|
228
|
+
"onUpdate:modelValue": t[1] || (t[1] = (s) => i.identifier = s),
|
|
229
|
+
maxlength: 20,
|
|
230
|
+
type: "text",
|
|
231
|
+
autocomplete: "off",
|
|
232
|
+
"show-word-limit": "",
|
|
233
|
+
placeholder: e(l)("CREATEWORKFLOW.ENGLISH_NAME_PLACEHOLDER")
|
|
234
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
235
|
+
]),
|
|
236
|
+
_: 1
|
|
237
|
+
}),
|
|
238
|
+
a(e(O), {
|
|
239
|
+
label: e(l)("CREATEWORKFLOW.WORKFLOW_DESCRIPTION") || "工作流描述",
|
|
240
|
+
prop: "description"
|
|
241
|
+
}, {
|
|
242
|
+
default: o(() => [
|
|
243
|
+
a(e(R), {
|
|
244
|
+
style: { width: "472px" },
|
|
245
|
+
modelValue: i.description,
|
|
246
|
+
"onUpdate:modelValue": t[2] || (t[2] = (s) => i.description = s),
|
|
247
|
+
rows: 4,
|
|
248
|
+
"show-word-limit": "",
|
|
249
|
+
maxlength: 500,
|
|
250
|
+
type: "textarea",
|
|
251
|
+
autocomplete: "off",
|
|
252
|
+
placeholder: e(l)("CREATEWORKFLOW.WORKFLOW_DESCRIPTION_PLACEHOLDER")
|
|
253
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
}, 8, ["label"])
|
|
257
|
+
]),
|
|
258
|
+
_: 1
|
|
259
|
+
}, 8, ["model"])
|
|
260
|
+
]),
|
|
261
|
+
_: 1
|
|
262
|
+
}, 8, ["modal", "title", "onClosed"]);
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
}, Re = /* @__PURE__ */ oe(se, [["__scopeId", "data-v-4ee38dfa"]]);
|
|
266
|
+
export {
|
|
267
|
+
Re as default
|
|
268
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { computed as i, createElementBlock as u, openBlock as d, normalizeStyle as o, normalizeClass as r, createElementVNode as g } from "vue";
|
|
2
|
+
import { i as f } from "./index.Cv9pn5nk.js";
|
|
3
|
+
import { _ as y } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
4
|
+
import '../assets/ImageComponent.css';const p = ["src", "alt"], S = /* @__PURE__ */ Object.assign({
|
|
5
|
+
name: "ImageComponent"
|
|
6
|
+
}, {
|
|
7
|
+
__name: "ImageComponent",
|
|
8
|
+
props: {
|
|
9
|
+
// 图片尺寸 - 可以是数字、字符串或对象
|
|
10
|
+
size: {
|
|
11
|
+
type: [Number, String, Object],
|
|
12
|
+
default: "auto"
|
|
13
|
+
},
|
|
14
|
+
// 图片alt属性
|
|
15
|
+
alt: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: "Image"
|
|
18
|
+
},
|
|
19
|
+
// 容器自定义类名
|
|
20
|
+
containerClass: {
|
|
21
|
+
type: [String, Array, Object],
|
|
22
|
+
default: ""
|
|
23
|
+
},
|
|
24
|
+
// 图片自定义类名
|
|
25
|
+
imageClass: {
|
|
26
|
+
type: [String, Array, Object],
|
|
27
|
+
default: "w-full h-full object-contain"
|
|
28
|
+
},
|
|
29
|
+
// 容器自定义样式
|
|
30
|
+
containerStyle: {
|
|
31
|
+
type: Object,
|
|
32
|
+
default: () => ({})
|
|
33
|
+
},
|
|
34
|
+
// 图片自定义样式
|
|
35
|
+
imageStyle: {
|
|
36
|
+
type: Object,
|
|
37
|
+
default: () => ({})
|
|
38
|
+
},
|
|
39
|
+
// 是否使用默认图片(true使用index.png,false可以自定义src)
|
|
40
|
+
useDefaultImage: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !0
|
|
43
|
+
},
|
|
44
|
+
// 自定义图片源(当useDefaultImage为false时使用)
|
|
45
|
+
src: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: ""
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
emits: ["load", "error"],
|
|
51
|
+
setup(e, { emit: l }) {
|
|
52
|
+
const a = e, n = l, s = i(() => a.useDefaultImage ? f : a.src), c = (t) => {
|
|
53
|
+
n("load", t);
|
|
54
|
+
}, m = (t) => {
|
|
55
|
+
n("error", t);
|
|
56
|
+
};
|
|
57
|
+
return (t, I) => (d(), u("div", {
|
|
58
|
+
class: r(e.containerClass),
|
|
59
|
+
style: o(e.containerStyle)
|
|
60
|
+
}, [
|
|
61
|
+
g("img", {
|
|
62
|
+
src: s.value,
|
|
63
|
+
alt: e.alt,
|
|
64
|
+
class: r(e.imageClass),
|
|
65
|
+
style: o(e.imageStyle),
|
|
66
|
+
onLoad: c,
|
|
67
|
+
onError: m
|
|
68
|
+
}, null, 46, p)
|
|
69
|
+
], 6));
|
|
70
|
+
}
|
|
71
|
+
}), O = /* @__PURE__ */ y(S, [["__scopeId", "data-v-e3d64237"]]);
|
|
72
|
+
export {
|
|
73
|
+
O as I
|
|
74
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { computed as y, resolveDirective as M, openBlock as e, createElementBlock as s, createBlock as m, unref as c, createCommentVNode as f, Fragment as g, renderList as h, toDisplayString as a, createElementVNode as p, withDirectives as v, createTextVNode as T } from "vue";
|
|
2
|
+
import { u as N } from "./i18n.9cHOVn6X.js";
|
|
3
|
+
import { ElEmpty as k } from "element-plus";
|
|
4
|
+
import { T as L, a as w } from "./index.JG8-HCzk.js";
|
|
5
|
+
import { _ as A } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
+
import '../assets/ToolList.css';const I = { class: "prompt-tool-list" }, S = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "prompt-tool-list__title"
|
|
9
|
+
}, j = {
|
|
10
|
+
key: 1,
|
|
11
|
+
class: "prompt-tool-list__content"
|
|
12
|
+
}, B = ["onClick"], K = { class: "prompt-tool-list__content--name" }, P = { class: "prompt-tool-list__content--icon" }, V = ["src"], Y = ["src"], z = { style: { flex: "1" } }, F = { style: { display: "flex", "align-items": "center", width: "100%", "justify-content": "space-between" } }, U = { class: "prompt-tool-list__content--text text-description ellipsis" }, $ = { class: "prompt-tool-list__content--desc text-description ellipsis" }, G = {
|
|
13
|
+
__name: "ToolList",
|
|
14
|
+
props: {
|
|
15
|
+
toolList: {
|
|
16
|
+
type: Array,
|
|
17
|
+
default: () => []
|
|
18
|
+
},
|
|
19
|
+
optionKey: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "bnid"
|
|
22
|
+
},
|
|
23
|
+
optionLabel: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "name"
|
|
26
|
+
},
|
|
27
|
+
emptyText: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: void 0
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: ["on-select"],
|
|
33
|
+
setup(x, { emit: b }) {
|
|
34
|
+
const { t: _ } = N(), E = b, l = x, O = y(() => l.emptyText || _("COMMON_DATA.EMPTY")), C = (t) => typeof t == "object" ? t[l.optionKey] : t, d = (t) => typeof t == "object" ? t[l.optionLabel] : t, u = y(() => {
|
|
35
|
+
if (!l.toolList || l.toolList.length === 0)
|
|
36
|
+
return [];
|
|
37
|
+
const t = {}, r = [];
|
|
38
|
+
return console.log(l.toolList, "props.toolList"), l.toolList.forEach((o) => {
|
|
39
|
+
const i = o.type !== null && o.type !== "" && o.type !== void 0 ? o.type : "default";
|
|
40
|
+
t[i] || (t[i] = [], r.push(i)), t[i].push(o);
|
|
41
|
+
}), console.log(t, "groups"), console.log(r, "typeOrder"), r.map((o) => ({
|
|
42
|
+
type: `${o}`,
|
|
43
|
+
title: L[o]?.title || L.default.title,
|
|
44
|
+
children: t[o]
|
|
45
|
+
}));
|
|
46
|
+
});
|
|
47
|
+
return (t, r) => {
|
|
48
|
+
const o = M("ellipsis-tooltip");
|
|
49
|
+
return e(), s("div", I, [
|
|
50
|
+
u.value.length === 0 ? (e(), m(c(k), {
|
|
51
|
+
key: 0,
|
|
52
|
+
"image-size": 60,
|
|
53
|
+
description: O.value
|
|
54
|
+
}, null, 8, ["description"])) : f("", !0),
|
|
55
|
+
(e(!0), s(g, null, h(u.value, (i, D) => (e(), s("div", { key: D }, [
|
|
56
|
+
i.title ? (e(), s("h4", S, a(i.title), 1)) : f("", !0),
|
|
57
|
+
i.children.length ? (e(), s("ul", j, [
|
|
58
|
+
(e(!0), s(g, null, h(i.children, (n) => (e(), s("li", {
|
|
59
|
+
key: C(n),
|
|
60
|
+
onClick: (q) => E("on-select", n)
|
|
61
|
+
}, [
|
|
62
|
+
p("div", K, [
|
|
63
|
+
p("div", P, [
|
|
64
|
+
n.icon || n.avatarUrl ? (e(), s("img", {
|
|
65
|
+
key: 0,
|
|
66
|
+
src: n.icon || n.avatarUrl,
|
|
67
|
+
alt: "",
|
|
68
|
+
width: "34",
|
|
69
|
+
height: "34"
|
|
70
|
+
}, null, 8, V)) : (e(), s("img", {
|
|
71
|
+
key: 1,
|
|
72
|
+
src: c(w)(i.type),
|
|
73
|
+
width: "34",
|
|
74
|
+
height: "34",
|
|
75
|
+
alt: ""
|
|
76
|
+
}, null, 8, Y)),
|
|
77
|
+
p("div", z, [
|
|
78
|
+
p("div", F, [
|
|
79
|
+
v((e(), s("div", U, [
|
|
80
|
+
T(a(d(n)), 1)
|
|
81
|
+
])), [
|
|
82
|
+
[o, d(n)]
|
|
83
|
+
])
|
|
84
|
+
]),
|
|
85
|
+
v((e(), s("div", $, [
|
|
86
|
+
T(a(n.description || "-"), 1)
|
|
87
|
+
])), [
|
|
88
|
+
[o, n.description]
|
|
89
|
+
])
|
|
90
|
+
])
|
|
91
|
+
])
|
|
92
|
+
])
|
|
93
|
+
], 8, B))), 128))
|
|
94
|
+
])) : (e(), m(c(k), {
|
|
95
|
+
key: 2,
|
|
96
|
+
"image-size": 60,
|
|
97
|
+
description: c(_)("COMMON_DATA.EMPTY")
|
|
98
|
+
}, null, 8, ["description"]))
|
|
99
|
+
]))), 128))
|
|
100
|
+
]);
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
}, X = /* @__PURE__ */ A(G, [["__scopeId", "data-v-c5abb281"]]);
|
|
104
|
+
export {
|
|
105
|
+
X as default
|
|
106
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { g as e } from "./i18n.9cHOVn6X.js";
|
|
2
|
+
const E = {
|
|
3
|
+
ALL: !0,
|
|
4
|
+
PARTIAL: !1
|
|
5
|
+
}, T = [
|
|
6
|
+
{
|
|
7
|
+
value: E.ALL,
|
|
8
|
+
get label() {
|
|
9
|
+
return e("COMMON_DICT.ENUMS.ALL_MEMBERS");
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
value: E.PARTIAL,
|
|
14
|
+
get label() {
|
|
15
|
+
return e("COMMON_DICT.ENUMS.PARTIAL_MEMBERS");
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
], t = {
|
|
19
|
+
MEMBER: 1,
|
|
20
|
+
DEPARTMENT: 2
|
|
21
|
+
}, M = {
|
|
22
|
+
label: "memberName",
|
|
23
|
+
children: "children",
|
|
24
|
+
value: "bnid"
|
|
25
|
+
}, r = {
|
|
26
|
+
one: 1,
|
|
27
|
+
two: 2
|
|
28
|
+
}, s = {
|
|
29
|
+
UNPUBLISHED: 0,
|
|
30
|
+
// 未发布
|
|
31
|
+
PUBLISHED: 2,
|
|
32
|
+
// 已发布
|
|
33
|
+
UNDER_REVIEW: 3,
|
|
34
|
+
// 审核中
|
|
35
|
+
REJECTED: 4,
|
|
36
|
+
// 审核不通过
|
|
37
|
+
FAILED: 5
|
|
38
|
+
// 发布失败
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
r as D,
|
|
42
|
+
t as M,
|
|
43
|
+
s as P,
|
|
44
|
+
E as R,
|
|
45
|
+
M as a,
|
|
46
|
+
T as r
|
|
47
|
+
};
|