aibox-custom-component-packages 0.0.6 → 0.0.8
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 +836 -0
- package/es/ApplicationTypeTag.mjs +58 -0
- package/es/AuthSection.mjs +199 -0
- package/es/AutoShowTooltip.mjs +90 -0
- package/es/AvailableRangePreview.mjs +1 -1
- package/es/AvailableRangeSetting.mjs +16 -11
- package/es/CodeView.mjs +7 -0
- package/es/CommonTagsList.mjs +5 -5
- package/es/CreateMcpForm.mjs +385 -0
- package/es/CustomSidebar.mjs +717 -0
- package/es/CustomTitle.mjs +7 -0
- package/es/CustomToggle.mjs +224 -0
- package/es/DialogContainer.mjs +21 -21
- package/es/DocSyncSelect.mjs +2661 -0
- package/es/FileDisplay.mjs +4 -0
- package/es/FilePreview.mjs +179 -0
- package/es/FileUploader.mjs +263 -9
- package/es/Logo.mjs +72 -0
- package/es/McpFormDialog.mjs +8 -0
- package/es/McpParamsSet.mjs +630 -0
- package/es/MdEditor.mjs +201 -0
- package/es/PageContainer.mjs +582 -11
- package/es/ParameterTable.mjs +2290 -0
- package/es/PublishRecord.mjs +59 -58
- package/es/RadioGroup.mjs +119 -0
- package/es/SourcePublish.mjs +96 -94
- package/es/Table.mjs +2 -2
- package/es/assets/AddOrEditSupplierDialog.css +1 -0
- package/es/assets/AiboxTable.css +1 -0
- package/es/assets/ApplicationTypeTag.css +1 -0
- package/es/assets/AuthSection.css +1 -0
- package/es/assets/AutoShowTooltip.css +1 -0
- package/es/assets/CommonTagsList.css +1 -1
- package/es/assets/CreateMcpForm.css +1 -0
- package/es/assets/CustomSidebar.css +1 -0
- package/es/assets/CustomToggle.css +1 -0
- package/es/assets/DocSyncSelect.css +1 -0
- package/es/assets/FilePreview.css +1 -0
- package/es/assets/FileUploader.css +1 -0
- package/es/assets/Logo.css +1 -0
- package/es/assets/McpParamsSet.css +1 -0
- package/es/assets/MdEditor.css +1 -0
- package/es/assets/PageContainer.css +1 -0
- package/es/assets/ParameterTable.css +1 -0
- package/es/assets/PublishRecord.css +1 -1
- package/es/assets/RadioGroup.css +1 -0
- package/es/assets/SourcePublish.css +1 -1
- package/es/assets/index.css +1 -1
- package/es/assets/index2.css +1 -1
- package/es/assets/index3.css +1 -0
- package/es/assets/index4.css +1 -0
- package/es/assets/index5.css +1 -0
- package/es/assets/layout.css +1 -0
- package/es/assets/legacy.css +1 -0
- package/es/assets/usePreview.css +1 -0
- package/es/chunks/{BackBar.Cv1wxUcM.js → AiboxTable.CF4T_OCu.js} +123 -123
- package/es/chunks/{BackBar.DJV4JaUM.js → AiboxTable.DUGBBVXh.js} +123 -123
- package/es/chunks/{config.BU21Gda2.js → config.DPkdwjwD.js} +1 -1
- package/es/chunks/{config.BzCGum_W.js → config.Dklrsn-B.js} +1 -1
- package/es/chunks/{config.BPp4hMBq.js → config.RrNwuFkQ.js} +2 -2
- package/es/chunks/{config.DTMcCH58.js → config.gNZ_rT87.js} +2 -2
- package/es/chunks/{enums.CfSBDD6u.js → enums.Dvec-maC.js} +11 -32
- package/es/chunks/enums.WrpwbF4w.js +14 -0
- package/es/chunks/field-types.CPnMOjle.js +13 -0
- package/es/chunks/files.cduUqjHX.js +16 -0
- package/es/chunks/i18n.DDMVloiU.js +443 -0
- package/es/chunks/{i18n.DmqkiK-h.js → i18n.k9Q_HVMs.js} +25 -26
- package/es/chunks/index.BDd6hHiU.js +172 -0
- package/es/chunks/index.BT1khSY9.js +111 -0
- package/es/chunks/{index.DB0ayMv8.js → index.CDvh263l.js} +3 -3
- package/es/chunks/{index.aMb6IVQD.js → index.CF_YHLP5.js} +19 -19
- package/es/chunks/index.CSjjAi3w.js +396 -0
- package/es/chunks/index.CdEBk4F_.js +134 -0
- package/es/chunks/index.DdD1VsH1.js +396 -0
- package/es/chunks/index.Dx-mCS4E.js +1298 -0
- package/es/chunks/layout.BREUWPEJ.js +26 -0
- package/es/chunks/layout.CygCXa6s.js +26 -0
- package/es/chunks/{publish.BCb7nCo9.js → publish.DlD0o09n.js} +1 -1
- package/es/chunks/request.24c3shPx.js +5 -0
- package/es/chunks/usePreview.B5lboHeg.js +153 -0
- package/es/chunks/usePreview.BHvXwaNi.js +157 -0
- package/es/index.mjs +404 -307
- package/lib/AddOrEditSupplierDialog.js +1 -0
- package/lib/ApplicationTypeTag.js +1 -0
- package/lib/AuthSection.js +1 -0
- package/lib/AutoShowTooltip.js +1 -0
- package/lib/AvailableRangePreview.js +1 -1
- package/lib/AvailableRangeSetting.js +1 -1
- package/lib/CodeView.js +1 -0
- package/lib/CommonTagsList.js +1 -1
- package/lib/CreateMcpForm.js +1 -0
- package/lib/CustomSidebar.js +1 -0
- package/lib/CustomTitle.js +1 -0
- package/lib/CustomToggle.js +1 -0
- package/lib/DialogContainer.js +1 -1
- package/lib/DocSyncSelect.js +2 -0
- package/lib/FileDisplay.js +1 -0
- package/lib/FilePreview.js +1 -0
- package/lib/FileUploader.js +1 -1
- package/lib/Logo.js +1 -0
- package/lib/McpFormDialog.js +1 -0
- package/lib/McpParamsSet.js +1 -0
- package/lib/MdEditor.js +1 -0
- package/lib/PageContainer.js +1 -1
- package/lib/ParameterTable.js +1 -0
- package/lib/PublishRecord.js +4 -4
- package/lib/RadioGroup.js +1 -0
- package/lib/SourcePublish.js +1 -1
- package/lib/Table.js +1 -1
- package/lib/assets/AddOrEditSupplierDialog.css +1 -0
- package/lib/assets/AiboxTable.css +1 -0
- package/lib/assets/ApplicationTypeTag.css +1 -0
- package/lib/assets/AuthSection.css +1 -0
- package/lib/assets/AutoShowTooltip.css +1 -0
- package/lib/assets/CommonTagsList.css +1 -1
- package/lib/assets/CreateMcpForm.css +1 -0
- package/lib/assets/CustomSidebar.css +1 -0
- package/lib/assets/CustomToggle.css +1 -0
- package/lib/assets/DocSyncSelect.css +1 -0
- package/lib/assets/FilePreview.css +1 -0
- package/lib/assets/FileUploader.css +1 -0
- package/lib/assets/Logo.css +1 -0
- package/lib/assets/McpParamsSet.css +1 -0
- package/lib/assets/MdEditor.css +1 -0
- package/lib/assets/PageContainer.css +1 -0
- package/lib/assets/ParameterTable.css +1 -0
- package/lib/assets/PublishRecord.css +1 -1
- package/lib/assets/RadioGroup.css +1 -0
- package/lib/assets/SourcePublish.css +1 -1
- package/lib/assets/index.css +1 -1
- package/lib/assets/index2.css +1 -1
- package/lib/assets/index3.css +1 -0
- package/lib/assets/index4.css +1 -0
- package/lib/assets/index5.css +1 -0
- package/lib/assets/layout.css +1 -0
- package/lib/assets/legacy.css +1 -0
- package/lib/assets/usePreview.css +1 -0
- package/lib/chunks/AiboxTable.BnoHJ7xL.js +1 -0
- package/lib/chunks/AiboxTable.CJOPGJtU.js +1 -0
- package/lib/chunks/{config.B0XKkp1w.js → config.1oaIKLGn.js} +1 -1
- package/lib/chunks/{config.BCAuBVxV.js → config.BF7MO0O5.js} +1 -1
- package/lib/chunks/enums.DnuzPZCR.js +1 -0
- package/lib/chunks/enums.DpU2er5r.js +1 -0
- package/lib/chunks/field-types.Ch_2yDfg.js +1 -0
- package/lib/chunks/files.B3-8UC0v.js +1 -0
- package/lib/chunks/i18n.DgOp_D7R.js +1 -0
- package/lib/chunks/index.BNivYbtq.js +1 -0
- package/lib/chunks/{index.Bk-RwmaH.js → index.B_keI1Aq.js} +1 -1
- package/lib/chunks/{index.BsN4urmi.js → index.Bc71XWQn.js} +1 -1
- package/lib/chunks/index.C7aZx6RG.js +6 -0
- package/lib/chunks/index.CH7XdMru.js +1 -0
- package/lib/chunks/index.CJFk1R2u.js +59 -0
- package/lib/chunks/index.CaidDlAx.js +1 -0
- package/lib/chunks/index.DGWHQFdx.js +6 -0
- package/lib/chunks/layout.DbBSbLgm.js +1 -0
- package/lib/chunks/layout.sgE9JoNq.js +1 -0
- package/lib/chunks/publish.3TrK3fZf.js +1 -0
- package/lib/chunks/request.D8T4MgGX.js +1 -0
- package/lib/chunks/usePreview.2PZJSy5w.js +1 -0
- package/lib/chunks/usePreview.BojIDW7Z.js +1 -0
- package/lib/index.js +2 -4
- package/package.json +3 -3
- package/es/ExampleComponent.mjs +0 -35
- package/es/assets/BackBar.css +0 -1
- package/es/assets/ExampleComponent.css +0 -1
- package/es/chunks/BackBar.Bc2NIuzk.js +0 -645
- package/es/chunks/config.8htFF04x.js +0 -325
- package/es/chunks/config.CFWGjEdA.js +0 -49
- package/es/chunks/config.CfWAdyUH.js +0 -325
- package/es/chunks/i18n.Vhq-tZPw.js +0 -94
- package/es/chunks/i18n.ro9yz7rE.js +0 -94
- package/es/chunks/index.ml5i7aB5.js +0 -257
- package/es/chunks/index.s-YxIOfq.js +0 -301
- package/es/chunks/publish.D6friivo.js +0 -50
- package/es/chunks/publish.Dqzn7qEl.js +0 -50
- package/es/i18n.mjs +0 -17
- package/lib/ExampleComponent.js +0 -1
- package/lib/assets/BackBar.css +0 -1
- package/lib/assets/ExampleComponent.css +0 -1
- package/lib/chunks/BackBar.CZsNxoX1.js +0 -1
- package/lib/chunks/BackBar.s5_vN6jt.js +0 -1
- package/lib/chunks/config.Bs7sh3aP.js +0 -1
- package/lib/chunks/config.C1w4hgfw.js +0 -1
- package/lib/chunks/config.ClERt2RF.js +0 -1
- package/lib/chunks/enums.Dmq4PdUc.js +0 -1
- package/lib/chunks/i18n.CL5L6nx6.js +0 -1
- package/lib/chunks/i18n.aAXi5igh.js +0 -1
- package/lib/chunks/index.BNqTEn3K.js +0 -1
- package/lib/chunks/publish.Bw1acrSu.js +0 -1
- package/lib/chunks/publish.CA1uSVnm.js +0 -1
- package/lib/i18n.js +0 -1
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { ref as w, shallowRef as O, watch as B, onMounted as k, createElementBlock as A, openBlock as m, normalizeClass as N, createBlock as I, createCommentVNode as M, createVNode as u, unref as s, withCtx as y } from "vue";
|
|
2
|
+
import { ElMessage as g, ElIcon as P, ElScrollbar as b } from "element-plus";
|
|
3
|
+
import { Codemirror as L } from "vue-codemirror";
|
|
4
|
+
import { EditorView as h } from "@codemirror/view";
|
|
5
|
+
import { json as x } from "@codemirror/lang-json";
|
|
6
|
+
import { oneDark as V } from "@codemirror/theme-one-dark";
|
|
7
|
+
import { codeFolding as _ } from "@codemirror/language";
|
|
8
|
+
import { IconCopy1 as R } from "color-message-aibox-vue";
|
|
9
|
+
import { u as T } from "./i18n.k9Q_HVMs.js";
|
|
10
|
+
import F from "copy-to-clipboard";
|
|
11
|
+
import { _ as j } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
12
|
+
import '../assets/index.css';const D = () => {
|
|
13
|
+
const { t: a } = T();
|
|
14
|
+
return {
|
|
15
|
+
copyText: (l) => {
|
|
16
|
+
F(l) ? g({
|
|
17
|
+
message: a("MESSAGE_REMIND.COPY_SUCCESS"),
|
|
18
|
+
type: "success"
|
|
19
|
+
}) : g({
|
|
20
|
+
message: a("COMMON_STORE_LIBRARY.LABEL_COPY_FAIL"),
|
|
21
|
+
type: "error"
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
}, J = {
|
|
26
|
+
__name: "index",
|
|
27
|
+
props: {
|
|
28
|
+
code: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: ""
|
|
31
|
+
},
|
|
32
|
+
language: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "json"
|
|
35
|
+
},
|
|
36
|
+
customExpandDepth: {
|
|
37
|
+
type: Number,
|
|
38
|
+
default: 1 / 0
|
|
39
|
+
},
|
|
40
|
+
sort: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !0
|
|
43
|
+
},
|
|
44
|
+
noPadding: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: !1
|
|
47
|
+
},
|
|
48
|
+
theme: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: "light"
|
|
51
|
+
},
|
|
52
|
+
showLength: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: !1
|
|
55
|
+
},
|
|
56
|
+
maxHeight: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: "calc(100% - 125px)"
|
|
59
|
+
},
|
|
60
|
+
showCopy: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: !1
|
|
63
|
+
},
|
|
64
|
+
// 是否自定义折叠
|
|
65
|
+
enableFolding: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: !1
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
setup(a) {
|
|
71
|
+
const { copyText: d } = D(), l = a, i = w(""), p = {
|
|
72
|
+
json: () => x()
|
|
73
|
+
}, C = () => {
|
|
74
|
+
const r = l.language.toLowerCase();
|
|
75
|
+
return p[r] ? p[r]() : x();
|
|
76
|
+
}, f = O([]), E = (r) => {
|
|
77
|
+
const t = r.trim(), n = (o) => {
|
|
78
|
+
try {
|
|
79
|
+
return JSON.parse(o);
|
|
80
|
+
} catch {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
let e = null;
|
|
85
|
+
if ((t.startsWith("{") || t.startsWith("[")) && (e = n(t)), !e) {
|
|
86
|
+
const o = `{${t.replace(/,\s*$/, "")}}`;
|
|
87
|
+
e = n(o);
|
|
88
|
+
}
|
|
89
|
+
if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
90
|
+
const o = e.role;
|
|
91
|
+
if (o) return "role: " + o;
|
|
92
|
+
}
|
|
93
|
+
return "";
|
|
94
|
+
}, S = () => {
|
|
95
|
+
const r = [
|
|
96
|
+
C(),
|
|
97
|
+
h.editable.of(!1),
|
|
98
|
+
// 只读模式
|
|
99
|
+
h.lineWrapping
|
|
100
|
+
// 自动换行
|
|
101
|
+
];
|
|
102
|
+
l.enableFolding && r.push(
|
|
103
|
+
// 配置代码折叠,自定义折叠后的显示内容
|
|
104
|
+
_({
|
|
105
|
+
preparePlaceholder: (t, n) => {
|
|
106
|
+
try {
|
|
107
|
+
const e = t.doc.sliceString(n.from, n.to);
|
|
108
|
+
return E(e);
|
|
109
|
+
} catch (e) {
|
|
110
|
+
return console.error("Error getting fold preview:", e), "...";
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
placeholderDOM: (t, n, e) => {
|
|
114
|
+
const o = document.createElement("span");
|
|
115
|
+
return o.className = "cm-foldPlaceholder", o.onclick = n, o.style.cursor = "pointer", o.style.color = "#888", o.style.padding = "0 4px", o.style.borderRadius = "3px", o.textContent = e ? `${e}...` : "...", o;
|
|
116
|
+
}
|
|
117
|
+
})
|
|
118
|
+
), l.theme === "dark" && r.push(V), f.value = r;
|
|
119
|
+
}, v = (r) => {
|
|
120
|
+
try {
|
|
121
|
+
const t = JSON.parse(r);
|
|
122
|
+
if (l.sort && typeof t == "object" && t !== null) {
|
|
123
|
+
const n = (e) => Array.isArray(e) ? e.map(n) : typeof e == "object" && e !== null ? Object.keys(e).sort().reduce((o, c) => (o[c] = n(e[c]), o), {}) : e;
|
|
124
|
+
return JSON.stringify(n(t), null, 2);
|
|
125
|
+
}
|
|
126
|
+
return JSON.stringify(t, null, 2);
|
|
127
|
+
} catch {
|
|
128
|
+
return r;
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
return B(
|
|
132
|
+
() => l.code,
|
|
133
|
+
(r) => {
|
|
134
|
+
l.language === "json" ? i.value = v(r) : i.value = r;
|
|
135
|
+
},
|
|
136
|
+
{ immediate: !0 }
|
|
137
|
+
), k(() => {
|
|
138
|
+
S();
|
|
139
|
+
}), (r, t) => (m(), A("div", {
|
|
140
|
+
class: N(["code-viewer", { "no-padding": a.noPadding, dark: a.theme === "dark" }])
|
|
141
|
+
}, [
|
|
142
|
+
a.showCopy ? (m(), I(s(P), {
|
|
143
|
+
key: 0,
|
|
144
|
+
onClick: t[0] || (t[0] = (n) => s(d)(a.code)),
|
|
145
|
+
class: "code-viewer__copy",
|
|
146
|
+
color: "#96A0AB",
|
|
147
|
+
size: "18px"
|
|
148
|
+
}, {
|
|
149
|
+
default: y(() => [
|
|
150
|
+
u(s(R))
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
})) : M("", !0),
|
|
154
|
+
u(s(b), { "max-height": a.maxHeight }, {
|
|
155
|
+
default: y(() => [
|
|
156
|
+
u(s(L), {
|
|
157
|
+
modelValue: i.value,
|
|
158
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => i.value = n),
|
|
159
|
+
style: { height: "100%", minHeight: "100px" },
|
|
160
|
+
extensions: f.value,
|
|
161
|
+
disabled: !0
|
|
162
|
+
}, null, 8, ["modelValue", "extensions"])
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, ["max-height"])
|
|
166
|
+
], 2));
|
|
167
|
+
}
|
|
168
|
+
}, Z = /* @__PURE__ */ j(J, [["__scopeId", "data-v-011cdc70"]]);
|
|
169
|
+
export {
|
|
170
|
+
Z as C,
|
|
171
|
+
D as u
|
|
172
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { w as I } from "./index.bCzIhWFw.js";
|
|
2
|
+
import { resolveComponent as v, resolveDirective as h, createElementBlock as t, createCommentVNode as w, openBlock as l, Fragment as y, renderList as N, withDirectives as k, createElementVNode as d, createBlock as a, createVNode as f, withCtx as u, unref as n, resolveDynamicComponent as S, createTextVNode as V, toDisplayString as g } from "vue";
|
|
3
|
+
import { n as E, c as x, u as M } from "./usePreview.B5lboHeg.js";
|
|
4
|
+
import { Error as B } from "color-message-aibox-vue";
|
|
5
|
+
import { _ as R } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
+
import '../assets/index.css';const $ = (o) => {
|
|
7
|
+
if (!o) return "";
|
|
8
|
+
let s = 0;
|
|
9
|
+
for (; Math.abs(o) >= 1024 && (o = o / 1024, s++, s !== 4); )
|
|
10
|
+
;
|
|
11
|
+
const r = ["B", "KB", "MB", "GB", "TB"];
|
|
12
|
+
return Math.round(o * 100) / 100 + " " + r[s];
|
|
13
|
+
}, T = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "file-display"
|
|
16
|
+
}, j = { class: "file-img overflow-hidden" }, A = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "file-img__failed w-full h-full flex items-center justify-center"
|
|
19
|
+
}, G = { class: "file-display__item--name text-ellipsis" }, K = { class: "file-display__item--size" }, P = {
|
|
20
|
+
__name: "index",
|
|
21
|
+
props: {
|
|
22
|
+
fileList: {
|
|
23
|
+
type: Array,
|
|
24
|
+
default: () => []
|
|
25
|
+
},
|
|
26
|
+
showRemove: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !0
|
|
29
|
+
},
|
|
30
|
+
showLoading: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
emits: ["remove-file"],
|
|
36
|
+
setup(o, { emit: s }) {
|
|
37
|
+
const { previewImage: r } = E(), _ = s, C = (i, m) => {
|
|
38
|
+
_("remove-file", i, m);
|
|
39
|
+
}, L = (i) => {
|
|
40
|
+
x(i.suffix, i.url) ? r(i.url) : window.open(i.url, "_blank");
|
|
41
|
+
};
|
|
42
|
+
return (i, m) => {
|
|
43
|
+
const c = v("el-icon"), b = v("el-image"), D = h("loading"), z = h("ellipsis-tooltip");
|
|
44
|
+
return o.fileList.length ? (l(), t("div", T, [
|
|
45
|
+
(l(!0), t(y, null, N(o.fileList, (e, p) => (l(), t("div", {
|
|
46
|
+
key: p,
|
|
47
|
+
class: "file-display__item"
|
|
48
|
+
}, [
|
|
49
|
+
k((l(), t("div", j, [
|
|
50
|
+
e.failed && o.showLoading ? (l(), t("div", A, [
|
|
51
|
+
f(c, {
|
|
52
|
+
size: "22px",
|
|
53
|
+
color: "#f56c6c"
|
|
54
|
+
}, {
|
|
55
|
+
default: u(() => [
|
|
56
|
+
f(n(B))
|
|
57
|
+
]),
|
|
58
|
+
_: 1
|
|
59
|
+
})
|
|
60
|
+
])) : (l(), t(y, { key: 1 }, [
|
|
61
|
+
n(x)(e.suffix, e.url) ? (l(), a(b, {
|
|
62
|
+
key: 0,
|
|
63
|
+
src: e.url,
|
|
64
|
+
"zoom-rate": 1.2,
|
|
65
|
+
"max-scale": 7,
|
|
66
|
+
"min-scale": 0.2,
|
|
67
|
+
onClick: (F) => L(e),
|
|
68
|
+
fit: "cover"
|
|
69
|
+
}, null, 8, ["src", "onClick"])) : (l(), a(c, {
|
|
70
|
+
key: 1,
|
|
71
|
+
size: "38px"
|
|
72
|
+
}, {
|
|
73
|
+
default: u(() => [
|
|
74
|
+
(l(), a(S(n(M)(e))))
|
|
75
|
+
]),
|
|
76
|
+
_: 2
|
|
77
|
+
}, 1024))
|
|
78
|
+
], 64))
|
|
79
|
+
])), [
|
|
80
|
+
[D, !e.bnid && !e.failed && o.showLoading]
|
|
81
|
+
]),
|
|
82
|
+
d("div", null, [
|
|
83
|
+
k((l(), t("p", G, [
|
|
84
|
+
V(g(e.name), 1)
|
|
85
|
+
])), [
|
|
86
|
+
[z, e.name]
|
|
87
|
+
]),
|
|
88
|
+
d("p", K, [
|
|
89
|
+
d("span", null, g(n($)(e.size)), 1)
|
|
90
|
+
])
|
|
91
|
+
]),
|
|
92
|
+
o.showRemove ? (l(), a(c, {
|
|
93
|
+
key: 0,
|
|
94
|
+
class: "icon-remove",
|
|
95
|
+
size: "18",
|
|
96
|
+
onClick: (F) => C(p, e.bnid)
|
|
97
|
+
}, {
|
|
98
|
+
default: u(() => [
|
|
99
|
+
f(n(B))
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
}, 8, ["onClick"])) : w("", !0)
|
|
103
|
+
]))), 128))
|
|
104
|
+
])) : w("", !0);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
}, U = /* @__PURE__ */ R(P, [["__scopeId", "data-v-444edb90"]]), W = I(U);
|
|
108
|
+
export {
|
|
109
|
+
W as F,
|
|
110
|
+
$ as f
|
|
111
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { w as _ } from "./index.bCzIhWFw.js";
|
|
2
2
|
import { computed as p, createElementBlock as b, createCommentVNode as h, openBlock as m, Fragment as N, createElementVNode as M, toDisplayString as E, normalizeClass as w, createBlock as D, renderList as k, unref as i, withCtx as A, ref as P, watch as O, onMounted as L, createVNode as z, createTextVNode as U, nextTick as F } from "vue";
|
|
3
3
|
import { ElPopover as $, ElButton as G } from "element-plus";
|
|
4
|
-
import { D as g, M as c, R as B, r as Y } from "./config.
|
|
4
|
+
import { D as g, M as c, R as B, r as Y } from "./config.Dklrsn-B.js";
|
|
5
5
|
import { _ as q } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
-
import { u as H } from "./i18n.
|
|
7
|
-
import '../assets/
|
|
6
|
+
import { u as H } from "./i18n.DDMVloiU.js";
|
|
7
|
+
import '../assets/index4.css';const W = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "pd-l-16 text-dee0e3 pd-r-16"
|
|
10
10
|
}, X = { class: "fz-14 text-646a73 nowrap" }, j = { class: "tag-item nowrap fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe pointer" }, J = { class: "tag-list-popover overflow-y-auto flex gap-4 flex-wrap" }, K = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { w as _ } from "./index.bCzIhWFw.js";
|
|
2
|
-
import { computed as p, createElementBlock as
|
|
2
|
+
import { computed as p, createElementBlock as y, createCommentVNode as h, openBlock as m, Fragment as N, createElementVNode as M, toDisplayString as E, normalizeClass as w, createBlock as D, renderList as k, unref as i, withCtx as A, ref as P, watch as O, onMounted as L, createVNode as z, createTextVNode as U, nextTick as F } from "vue";
|
|
3
3
|
import { ElPopover as $, ElButton as G } from "element-plus";
|
|
4
|
-
import { D as g, M as c, R as B, r as Y } from "./config.
|
|
4
|
+
import { D as g, M as c, R as B, r as Y } from "./config.DPkdwjwD.js";
|
|
5
5
|
import { _ as q } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
-
import { u as H } from "./i18n.
|
|
7
|
-
import '../assets/
|
|
6
|
+
import { u as H } from "./i18n.k9Q_HVMs.js";
|
|
7
|
+
import '../assets/index3.css';const W = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "pd-l-16 text-dee0e3 pd-r-16"
|
|
10
10
|
}, X = { class: "fz-14 text-646a73 nowrap" }, j = { class: "tag-item nowrap fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe pointer" }, J = { class: "tag-list-popover overflow-y-auto flex gap-4 flex-wrap" }, K = {
|
|
@@ -28,13 +28,13 @@ import '../assets/index2.css';const W = {
|
|
|
28
28
|
},
|
|
29
29
|
setup(e) {
|
|
30
30
|
const t = e, l = p(() => t.readonly ? t.items : t.items.slice(0, g.one)), d = p(() => t.items.length > g.one), T = p(() => t.items.length - g.one), u = p(() => t.items.slice(g.one));
|
|
31
|
-
return (n, s) => e.items.length > 0 ? (m(),
|
|
32
|
-
e.readonly ? h("", !0) : (m(),
|
|
31
|
+
return (n, s) => e.items.length > 0 ? (m(), y(N, { key: 0 }, [
|
|
32
|
+
e.readonly ? h("", !0) : (m(), y("span", W, "|")),
|
|
33
33
|
M("span", X, E(e.label), 1),
|
|
34
34
|
M("div", {
|
|
35
35
|
class: w(["tag-list", { "flex items-center gap-4": !e.readonly }])
|
|
36
36
|
}, [
|
|
37
|
-
(m(!0),
|
|
37
|
+
(m(!0), y(N, null, k(l.value, (a) => (m(), y("div", {
|
|
38
38
|
key: a.memberId,
|
|
39
39
|
class: w(["tag-item fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe nowrap", { "mg-r-4 mg-b-4": e.readonly }])
|
|
40
40
|
}, E(a.memberName), 3))), 128)),
|
|
@@ -50,7 +50,7 @@ import '../assets/index2.css';const W = {
|
|
|
50
50
|
]),
|
|
51
51
|
default: A(() => [
|
|
52
52
|
M("div", J, [
|
|
53
|
-
(m(!0),
|
|
53
|
+
(m(!0), y(N, null, k(u.value, (a) => (m(), y("span", {
|
|
54
54
|
key: a.memberId,
|
|
55
55
|
class: "tag-item nowrap fz-12 pd-l-8 pd-r-8 radius-4 bg-eaf0fe text-3271fe"
|
|
56
56
|
}, E(a.memberName), 1))), 128))
|
|
@@ -61,7 +61,7 @@ import '../assets/index2.css';const W = {
|
|
|
61
61
|
], 2)
|
|
62
62
|
], 64)) : h("", !0);
|
|
63
63
|
}
|
|
64
|
-
}, R = /* @__PURE__ */ q(K, [["__scopeId", "data-v-
|
|
64
|
+
}, R = /* @__PURE__ */ q(K, [["__scopeId", "data-v-a2c44011"]]), V = (e, t) => e?.filter(t) || [], I = (e, t) => V(e, (l) => l.memberType === t), x = (e, t) => {
|
|
65
65
|
if (e.children)
|
|
66
66
|
for (const l of e.children)
|
|
67
67
|
l.memberType === c.MEMBER ? t(l) : l.memberType === c.DEPARTMENT && x(l, t);
|
|
@@ -79,8 +79,8 @@ function Q(e, t, l = !1) {
|
|
|
79
79
|
if (s.length > 0 && t.value && t.value.length > 0) {
|
|
80
80
|
const a = /* @__PURE__ */ new Set();
|
|
81
81
|
s.forEach((o) => {
|
|
82
|
-
const f = (
|
|
83
|
-
for (const v of
|
|
82
|
+
const f = (b) => {
|
|
83
|
+
for (const v of b) {
|
|
84
84
|
if (v.memberType === c.DEPARTMENT && v.memberId === o.memberId)
|
|
85
85
|
return x(
|
|
86
86
|
v,
|
|
@@ -130,7 +130,7 @@ function Q(e, t, l = !1) {
|
|
|
130
130
|
const o = S(r);
|
|
131
131
|
return o.length === 0 ? !1 : o.every(
|
|
132
132
|
(f) => d.value.some(
|
|
133
|
-
(
|
|
133
|
+
(b) => b.memberType === c.MEMBER && b.memberId === f
|
|
134
134
|
)
|
|
135
135
|
);
|
|
136
136
|
}, a = (r, o = !1) => {
|
|
@@ -144,11 +144,11 @@ function Q(e, t, l = !1) {
|
|
|
144
144
|
bnid: r.bnid,
|
|
145
145
|
children: r.children
|
|
146
146
|
}), r.children)
|
|
147
|
-
for (const
|
|
148
|
-
a(
|
|
147
|
+
for (const b of r.children)
|
|
148
|
+
a(b, !0);
|
|
149
149
|
} else if (!f && r.children)
|
|
150
|
-
for (const
|
|
151
|
-
a(
|
|
150
|
+
for (const b of r.children)
|
|
151
|
+
a(b, !1);
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
154
|
for (const r of t.value)
|
|
@@ -208,14 +208,14 @@ const Z = { class: "text-1f2329" }, ee = { class: "fz-14 text-1f2329" }, te = {
|
|
|
208
208
|
T();
|
|
209
209
|
}), t({
|
|
210
210
|
allSelectedItems: a
|
|
211
|
-
}), (r, o) => (m(),
|
|
211
|
+
}), (r, o) => (m(), y("div", {
|
|
212
212
|
ref_key: "previewRef",
|
|
213
213
|
ref: d,
|
|
214
214
|
class: w(["available-range-preview w-full overflow-hidden", {
|
|
215
215
|
"flex items-center": !e.readonly
|
|
216
216
|
}])
|
|
217
217
|
}, [
|
|
218
|
-
e.readonly ? h("", !0) : (m(),
|
|
218
|
+
e.readonly ? h("", !0) : (m(), y(N, { key: 0 }, [
|
|
219
219
|
M("div", Z, E(i(l)("COMMON_DICT.ENUMS.AVAILABLE_RANGE")) + ": ", 1),
|
|
220
220
|
M("span", ee, E(i(Y).find((f) => f.value === e.allVisible)?.label), 1),
|
|
221
221
|
z(i(G), {
|
|
@@ -230,7 +230,7 @@ const Z = { class: "text-1f2329" }, ee = { class: "fz-14 text-1f2329" }, te = {
|
|
|
230
230
|
_: 1
|
|
231
231
|
})
|
|
232
232
|
], 64)),
|
|
233
|
-
e.allVisible === i(B).PARTIAL ? (m(),
|
|
233
|
+
e.allVisible === i(B).PARTIAL ? (m(), y("div", {
|
|
234
234
|
key: 1,
|
|
235
235
|
class: w(["flex-1 overflow-hidden", { "flex items-center": !e.readonly }])
|
|
236
236
|
}, [
|