ling-yun-custom-components 0.0.10

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 (123) hide show
  1. package/es/BatchImport.mjs +208 -0
  2. package/es/BuildComponents.mjs +190 -0
  3. package/es/CustomDialog.mjs +7 -0
  4. package/es/CustomDropdown.mjs +145 -0
  5. package/es/CustomPagination.mjs +7 -0
  6. package/es/CustomSelect.mjs +7 -0
  7. package/es/CustomTab.mjs +33 -0
  8. package/es/CustomTitle.mjs +7 -0
  9. package/es/FileList.mjs +7 -0
  10. package/es/GradientButton.mjs +120 -0
  11. package/es/IconEmpty.mjs +7 -0
  12. package/es/IconRenderer.mjs +42 -0
  13. package/es/IconSelect.mjs +120 -0
  14. package/es/PaginationTable.mjs +407 -0
  15. package/es/SearchBar.mjs +7 -0
  16. package/es/TreeSelect.mjs +406 -0
  17. package/es/TreeShowSelect.mjs +82 -0
  18. package/es/UpdatePasswordDialog.mjs +119 -0
  19. package/es/UploadFile.mjs +7 -0
  20. package/es/assets/BuildComponents.css +1 -0
  21. package/es/assets/CustomDropdown.css +1 -0
  22. package/es/assets/CustomTab.css +1 -0
  23. package/es/assets/GradientButton.css +1 -0
  24. package/es/assets/IconSelect.css +1 -0
  25. package/es/assets/PaginationTable.css +1 -0
  26. package/es/assets/TreeSelect.css +1 -0
  27. package/es/assets/TreeShowSelect.css +1 -0
  28. package/es/assets/UpdatePasswordDialog.css +1 -0
  29. package/es/assets/layout.css +0 -0
  30. package/es/assets/layout2.css +1 -0
  31. package/es/assets/layout3.css +1 -0
  32. package/es/assets/layout4.css +1 -0
  33. package/es/assets/layout5.css +1 -0
  34. package/es/assets/layout6.css +1 -0
  35. package/es/chunks/_plugin-vue_export-helper.CHgC5LLL.js +9 -0
  36. package/es/chunks/global.DVwnOczb.js +7828 -0
  37. package/es/chunks/index.D4Kbv-m1.js +8991 -0
  38. package/es/chunks/index.DfOANPhX.js +1729 -0
  39. package/es/chunks/index.DlooXR0t.js +9576 -0
  40. package/es/chunks/index.bCzIhWFw.js +7 -0
  41. package/es/chunks/layout.1y3OJ-ea.js +230 -0
  42. package/es/chunks/layout.2Mabaug0.js +121 -0
  43. package/es/chunks/layout.6MxjcpGc.js +584 -0
  44. package/es/chunks/layout.BJE8rMzK.js +230 -0
  45. package/es/chunks/layout.BKJPyxR8.js +39 -0
  46. package/es/chunks/layout.C0UEMbnF.js +98 -0
  47. package/es/chunks/layout.CTQtuC78.js +584 -0
  48. package/es/chunks/layout.CUOtHOHG.js +66 -0
  49. package/es/chunks/layout.CiNI5oQK.js +149 -0
  50. package/es/chunks/layout.CnANFnM1.js +584 -0
  51. package/es/chunks/layout.CtWHo87D.js +121 -0
  52. package/es/chunks/layout.Day1LJyl.js +234 -0
  53. package/es/chunks/layout.DeAFov0o.js +234 -0
  54. package/es/chunks/layout.Dvw3u-s5.js +234 -0
  55. package/es/chunks/layout.LCKaV7EX.js +230 -0
  56. package/es/chunks/layout.ZxPdKhRp.js +149 -0
  57. package/es/chunks/layout._A_rHZM7.js +149 -0
  58. package/es/chunks/layout.f58eO4Hr.js +98 -0
  59. package/es/chunks/layout.t3qD0LTW.js +121 -0
  60. package/es/chunks/layout.ypvwQzq5.js +98 -0
  61. package/es/index.mjs +81 -0
  62. package/lib/BatchImport.js +1 -0
  63. package/lib/BuildComponents.js +1 -0
  64. package/lib/CustomDialog.js +1 -0
  65. package/lib/CustomDropdown.js +1 -0
  66. package/lib/CustomPagination.js +1 -0
  67. package/lib/CustomSelect.js +1 -0
  68. package/lib/CustomTab.js +1 -0
  69. package/lib/CustomTitle.js +1 -0
  70. package/lib/FileList.js +1 -0
  71. package/lib/GradientButton.js +1 -0
  72. package/lib/IconEmpty.js +1 -0
  73. package/lib/IconRenderer.js +1 -0
  74. package/lib/IconSelect.js +1 -0
  75. package/lib/PaginationTable.js +1 -0
  76. package/lib/SearchBar.js +1 -0
  77. package/lib/TreeSelect.js +1 -0
  78. package/lib/TreeShowSelect.js +1 -0
  79. package/lib/UpdatePasswordDialog.js +1 -0
  80. package/lib/UploadFile.js +1 -0
  81. package/lib/assets/BuildComponents.css +1 -0
  82. package/lib/assets/CustomDropdown.css +1 -0
  83. package/lib/assets/CustomTab.css +1 -0
  84. package/lib/assets/GradientButton.css +1 -0
  85. package/lib/assets/IconSelect.css +1 -0
  86. package/lib/assets/PaginationTable.css +1 -0
  87. package/lib/assets/TreeSelect.css +1 -0
  88. package/lib/assets/TreeShowSelect.css +1 -0
  89. package/lib/assets/UpdatePasswordDialog.css +1 -0
  90. package/lib/assets/layout.css +0 -0
  91. package/lib/assets/layout2.css +1 -0
  92. package/lib/assets/layout3.css +1 -0
  93. package/lib/assets/layout4.css +1 -0
  94. package/lib/assets/layout5.css +1 -0
  95. package/lib/assets/layout6.css +1 -0
  96. package/lib/chunks/_plugin-vue_export-helper.BHFhmbuH.js +1 -0
  97. package/lib/chunks/global.Cv8u--Cy.js +1 -0
  98. package/lib/chunks/index.Bixsw9fA.js +23 -0
  99. package/lib/chunks/index.CkihWzK6.js +1 -0
  100. package/lib/chunks/index.CrvqvcN9.js +23 -0
  101. package/lib/chunks/index.DJKAT9lI.js +1 -0
  102. package/lib/chunks/layout.-yZzrp74.js +1 -0
  103. package/lib/chunks/layout.2PAIPzYY.js +1 -0
  104. package/lib/chunks/layout.5iOiFlVu.js +1 -0
  105. package/lib/chunks/layout.B-T_NE6r.js +1 -0
  106. package/lib/chunks/layout.BBNd1hLQ.js +1 -0
  107. package/lib/chunks/layout.BNJsxQ2g.js +1 -0
  108. package/lib/chunks/layout.BSF3ruxz.js +1 -0
  109. package/lib/chunks/layout.BXdjRFbn.js +1 -0
  110. package/lib/chunks/layout.BhL14Rqh.js +1 -0
  111. package/lib/chunks/layout.BmQYiD_b.js +1 -0
  112. package/lib/chunks/layout.CDg3sCTi.js +1 -0
  113. package/lib/chunks/layout.CeVldGUL.js +1 -0
  114. package/lib/chunks/layout.CjJiAY0w.js +1 -0
  115. package/lib/chunks/layout.CoSBrO12.js +1 -0
  116. package/lib/chunks/layout.CwA4IJ1g.js +1 -0
  117. package/lib/chunks/layout.DDTIwGYp.js +1 -0
  118. package/lib/chunks/layout.DOS2ezSW.js +1 -0
  119. package/lib/chunks/layout.D_TxPvRy.js +1 -0
  120. package/lib/chunks/layout.DfiLurg1.js +1 -0
  121. package/lib/chunks/layout.gqpUcAHO.js +1 -0
  122. package/lib/index.js +1 -0
  123. package/package.json +205 -0
@@ -0,0 +1,406 @@
1
+ import { w as ie } from "./chunks/index.bCzIhWFw.js";
2
+ import { useAttrs as re, ref as x, computed as S, watch as O, nextTick as K, onMounted as de, createBlock as $, openBlock as b, unref as p, withCtx as N, createElementVNode as P, normalizeStyle as ce, createElementBlock as w, createCommentVNode as ue, createVNode as g, normalizeClass as he, mergeProps as fe, toDisplayString as R, withModifiers as pe, Fragment as me, h as H } from "vue";
3
+ import { ElAutoResizer as ye, ElInput as ve, ElIcon as Q, ElTreeV2 as ge } from "element-plus";
4
+ import { c as ke, f as Se, g as be } from "./chunks/index.DfOANPhX.js";
5
+ import { I as Ne } from "./chunks/layout.CUOtHOHG.js";
6
+ import { _ as Ce } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
7
+ import './assets/TreeSelect.css';function Le(o) {
8
+ return {
9
+ name: "element-tree-line",
10
+ props: {
11
+ node: {
12
+ type: Object,
13
+ required: !0
14
+ },
15
+ data: {
16
+ type: Object
17
+ },
18
+ treeData: {
19
+ type: Array
20
+ },
21
+ indent: {
22
+ type: Number,
23
+ default() {
24
+ return 16;
25
+ }
26
+ },
27
+ showLabelLine: {
28
+ type: Boolean,
29
+ default: !0
30
+ }
31
+ },
32
+ render(r) {
33
+ const d = o || r, s = this.getScopedSlot("default"), t = this.getScopedSlot("node-label"), c = this.getScopedSlot("after-node-label"), f = s ? this.getScopedSlotValue(s, {
34
+ node: this.node,
35
+ data: this.data
36
+ }) : [
37
+ t ? this.getScopedSlotValue(t, {
38
+ node: this.node,
39
+ data: this.data
40
+ }) : d(
41
+ "span",
42
+ { class: "element-tree-node-label" },
43
+ this.node.label
44
+ ),
45
+ this.showLabelLine ? d("span", {
46
+ class: "element-tree-node-label-line"
47
+ }) : null,
48
+ this.getScopedSlotValue(c, {
49
+ node: this.node,
50
+ data: this.data
51
+ })
52
+ ], y = [];
53
+ let u = this.node;
54
+ for (; u; ) {
55
+ let n = u.parent;
56
+ if (u.level === 1 && !u.parent) {
57
+ if (!this.treeData || !Array.isArray(this.treeData))
58
+ throw Error(
59
+ "if you using el-tree-v2 (Virtualized Tree) of element-plus,element-tree-line required data."
60
+ );
61
+ n = {
62
+ children: Array.isArray(this.treeData) ? this.treeData.map((m) => ({ ...m, key: m.id })) : [],
63
+ level: 0,
64
+ key: "node-0",
65
+ parent: null
66
+ };
67
+ }
68
+ if (n) {
69
+ const m = (n.children || n.childNodes).findIndex(
70
+ (C) => (C.key || C.id) === (u.key || u.id)
71
+ );
72
+ y.unshift(
73
+ m === (n.children || n.childNodes).length - 1
74
+ );
75
+ }
76
+ u = n;
77
+ }
78
+ const V = [];
79
+ for (let n = 0; n < this.node.level; n++)
80
+ y[n] && this.node.level - 1 !== n || V.push(
81
+ d("span", {
82
+ class: {
83
+ "element-tree-node-line-ver": !0,
84
+ "last-node-isLeaf-line": y[n] && this.node.level - 1 === n
85
+ },
86
+ style: { left: this.indent * n + "px" }
87
+ })
88
+ );
89
+ return d(
90
+ "span",
91
+ {
92
+ class: "element-tree-node-label-wrapper"
93
+ },
94
+ [f].concat(V).concat([
95
+ d("span", {
96
+ class: "element-tree-node-line-hor",
97
+ style: {
98
+ width: (this.node.isLeaf ? 24 : 8) + "px",
99
+ left: (this.node.level - 1) * this.indent + "px"
100
+ }
101
+ })
102
+ ])
103
+ );
104
+ },
105
+ methods: {
106
+ getScopedSlot(r) {
107
+ if (!r)
108
+ return null;
109
+ const d = r.split("||");
110
+ let s = null;
111
+ for (let t = 0; t < d.length; t++) {
112
+ const c = d[t], f = (this.$slots || {})[c];
113
+ if (f) {
114
+ s = f;
115
+ break;
116
+ }
117
+ if (s = (this.$scopedSlots || {})[c], s)
118
+ break;
119
+ }
120
+ return s;
121
+ },
122
+ getScopedSlotValue(r, d, s = null) {
123
+ return typeof r == "function" ? r(d) || s : r || s;
124
+ }
125
+ }
126
+ };
127
+ }
128
+ function U(o) {
129
+ const r = Le(o);
130
+ return o && (r.methods.getScopedSlot = function(s) {
131
+ if (!s)
132
+ return null;
133
+ const t = s.split("||");
134
+ let c = null;
135
+ for (let f = 0; f < t.length; f++) {
136
+ const y = t[f], u = (this.$slots || {})[y];
137
+ if (u) {
138
+ c = u;
139
+ break;
140
+ }
141
+ }
142
+ return c;
143
+ }), r;
144
+ }
145
+ U();
146
+ const xe = {
147
+ key: 0,
148
+ class: "mg-b-16"
149
+ }, Ve = {
150
+ key: 0,
151
+ class: "list-item flex justify-between pd-l-6 pd-r-6 radius-8 items-center w-full"
152
+ }, Me = ["onClick"], Pe = { key: 1 }, we = /* @__PURE__ */ Object.assign({
153
+ name: "TreeSelect"
154
+ }, {
155
+ __name: "layout",
156
+ props: {
157
+ // 初始值
158
+ modelValue: {
159
+ type: Object,
160
+ default: () => []
161
+ },
162
+ // 树形节点对象结构
163
+ treeProps: {
164
+ type: Object,
165
+ default: () => ({
166
+ value: "id",
167
+ label: "label",
168
+ children: "children"
169
+ })
170
+ },
171
+ // 接口配置
172
+ apiConfig: {
173
+ type: Function
174
+ },
175
+ // 请求参数
176
+ reqParams: {
177
+ type: Object,
178
+ default: () => ({})
179
+ },
180
+ // 是否在组件挂载时自动加载数据
181
+ autoLoad: {
182
+ type: Boolean,
183
+ default: !0
184
+ },
185
+ // 是否多选
186
+ isMultiple: {
187
+ type: Boolean,
188
+ default: !0
189
+ },
190
+ // 是否有过滤
191
+ hasFilter: {
192
+ type: Boolean,
193
+ default: !1
194
+ },
195
+ // 是否是列表模式
196
+ isListMode: {
197
+ type: Boolean,
198
+ default: !1
199
+ },
200
+ treeList: {
201
+ type: Array,
202
+ default: () => []
203
+ },
204
+ // 是否有线条样式
205
+ hasTreeLine: {
206
+ type: Boolean,
207
+ default: !0
208
+ },
209
+ // 选中的节点是否包含父节点
210
+ includeParentSelected: {
211
+ type: Boolean,
212
+ default: !1
213
+ }
214
+ },
215
+ emits: ["handleCheck", "handleDeleteNode", "initFinish"],
216
+ setup(o, { expose: r, emit: d }) {
217
+ const s = U(H), t = o, c = d, f = re(), y = () => H(be, {
218
+ style: { color: "var(--text-color-2)", fontSize: "16px" }
219
+ }), u = t.isMultiple ? 20 : 10, V = t.isMultiple ? 15 : 11, n = x([]), m = x(null), C = x(null), D = S(() => t.treeProps.value), _ = S(() => t.treeProps.label), v = S(() => t.treeProps.children), B = x(!1), G = S(() => !t.isMultiple && B.value), J = S(() => typeof t.apiConfig == "function"), T = (e) => String(e).includes("%") ? e : e + "px", W = () => {
220
+ let e = m.value?.getCheckedNodes(), l = e.map((i) => i[D.value]), a = [];
221
+ return e.length && !t.includeParentSelected && (e = e.filter((i) => !i[v.value]), l = e.map((i) => i[D.value])), t.includeParentSelected && (a = X(n.value, l)), {
222
+ selectedNodeValues: l,
223
+ // 选中节点的值的集合
224
+ selectedNodes: e,
225
+ // 选中节点的集合
226
+ selectedParentNodes: a
227
+ // 选中节点的所有父节点
228
+ };
229
+ };
230
+ function X(e, l) {
231
+ const a = /* @__PURE__ */ new Map();
232
+ function i(h, k = []) {
233
+ for (const L of h) {
234
+ const ae = [...k, L];
235
+ L.children && L.children.length > 0 ? i(L.children, ae) : l.includes(L.id) && k.forEach((I) => {
236
+ a.has(I.id) || a.set(I.id, { ...I });
237
+ });
238
+ }
239
+ }
240
+ return i(e), Array.from(a.values());
241
+ }
242
+ const Y = (e) => {
243
+ !t.isMultiple || t.isListMode || E();
244
+ }, Z = (e, l) => {
245
+ t.isMultiple || t.isListMode || (B.value = !0, C.value = l.key, c("handleCheck", {
246
+ selectedValue: [C.value],
247
+ // 选中节点的值
248
+ selectedNode: [l.data]
249
+ // // 选中节点
250
+ }));
251
+ }, z = x(""), ee = (e) => {
252
+ m.value.filter(e);
253
+ }, te = (e, l) => l[_.value].includes(e), le = (e) => {
254
+ let l = 0;
255
+ function a(i) {
256
+ for (const h of i) {
257
+ const k = h[v.value] && h[v.value].length > 0;
258
+ t.includeParentSelected ? l++ : k || l++, k && a(h[v.value]);
259
+ }
260
+ }
261
+ return a(e), l;
262
+ }, ne = S(() => le(n.value));
263
+ function E() {
264
+ const { selectedNodeValues: e, selectedNodes: l, selectedParentNodes: a } = W();
265
+ c("handleCheck", {
266
+ selectedValue: e,
267
+ // 选中节点的值的集合
268
+ selectedNode: l,
269
+ // 选中节点的集合
270
+ selectedParentNodes: a
271
+ });
272
+ }
273
+ const oe = (e, l) => {
274
+ m.value?.setChecked(e, l), E();
275
+ }, F = () => {
276
+ f["default-checked-keys"] && K(() => {
277
+ E();
278
+ });
279
+ }, se = (e) => {
280
+ c("handleDeleteNode", e);
281
+ }, M = (e) => e?.map((l) => ({
282
+ ...l,
283
+ [v.value]: l[v.value]?.length ? M(l[v.value]) : void 0
284
+ })), j = async () => {
285
+ J.value ? t.apiConfig(t.reqParams)?.then((e) => {
286
+ n.value = M(e?.data || []), F(), A(t.modelValue), c("initFinish", n.value);
287
+ }) : q();
288
+ }, q = () => {
289
+ t.isListMode ? n.value = M(t.treeList || []) : (n.value = M(t.treeList || []), n.value.length && (F(), A(t.modelValue)));
290
+ }, A = (e) => {
291
+ const l = e && e.length && e.map((a) => a[t.treeProps.value]);
292
+ m.value?.setCheckedKeys(l);
293
+ };
294
+ return O(
295
+ () => t.treeList,
296
+ () => {
297
+ q();
298
+ },
299
+ { deep: !0 }
300
+ ), O(
301
+ () => t.modelValue,
302
+ (e) => {
303
+ K(() => {
304
+ A(e);
305
+ });
306
+ },
307
+ { deep: !0 }
308
+ ), de(() => {
309
+ j();
310
+ }), r({
311
+ allNodeNumbers: ne,
312
+ loadData: j,
313
+ setNodeCheckStatus: oe
314
+ }), (e, l) => (b(), $(p(ye), null, {
315
+ default: N(({ width: a, height: i }) => [
316
+ P("div", {
317
+ style: ce({
318
+ width: T(a),
319
+ height: T(i)
320
+ })
321
+ }, [
322
+ o.hasFilter ? (b(), w("div", xe, [
323
+ g(p(ve), {
324
+ modelValue: z.value,
325
+ "onUpdate:modelValue": l[0] || (l[0] = (h) => z.value = h),
326
+ placeholder: "请输入",
327
+ onInput: ee
328
+ }, {
329
+ prefix: N(() => [
330
+ g(p(Q), {
331
+ size: 16,
332
+ color: "var(--neutral-color-12)",
333
+ class: "mg-r-4"
334
+ }, {
335
+ default: N(() => [
336
+ g(p(ke))
337
+ ]),
338
+ _: 1
339
+ })
340
+ ]),
341
+ _: 1
342
+ }, 8, ["modelValue"])
343
+ ])) : ue("", !0),
344
+ P("div", {
345
+ class: he(o.hasFilter ? "pd-l-8 pd-r-8" : "")
346
+ }, [
347
+ g(p(ge), fe({
348
+ ref_key: "treeRef",
349
+ ref: m,
350
+ height: o.hasFilter ? i - 48 : i,
351
+ data: n.value,
352
+ props: o.treeProps,
353
+ "node-key": D.value,
354
+ "show-checkbox": o.isMultiple && !o.isListMode,
355
+ "item-size": 34,
356
+ indent: p(u),
357
+ "highlight-current": G.value,
358
+ icon: o.isListMode ? "" : y,
359
+ "filter-method": te
360
+ }, p(f), {
361
+ onNodeClick: Z,
362
+ onCheck: Y
363
+ }), {
364
+ default: N(({ node: h }) => [
365
+ o.isListMode ? (b(), w("div", Ve, [
366
+ P("span", null, R(h.data[_.value]), 1),
367
+ P("div", {
368
+ class: "flex items-center",
369
+ onClick: pe((k) => se(h.data), ["stop"])
370
+ }, [
371
+ g(p(Q), {
372
+ size: 14,
373
+ color: "var(--neutral-color-5)"
374
+ }, {
375
+ default: N(() => [
376
+ g(p(Se))
377
+ ]),
378
+ _: 1
379
+ })
380
+ ], 8, Me)
381
+ ])) : (b(), w(me, { key: 1 }, [
382
+ o.hasTreeLine ? (b(), $(p(s), {
383
+ key: 0,
384
+ node: h,
385
+ treeData: n.value,
386
+ showLabelLine: !1,
387
+ indent: p(V)
388
+ }, null, 8, ["node", "treeData", "indent"])) : (b(), w("span", Pe, R(h.data[_.value]), 1))
389
+ ], 64))
390
+ ]),
391
+ empty: N(() => [
392
+ g(Ne)
393
+ ]),
394
+ _: 1
395
+ }, 16, ["height", "data", "props", "node-key", "show-checkbox", "indent", "highlight-current", "icon"])
396
+ ], 2)
397
+ ], 4)
398
+ ]),
399
+ _: 1
400
+ }));
401
+ }
402
+ }), De = /* @__PURE__ */ Ce(we, [["__scopeId", "data-v-2ed402b3"]]), ze = ie(De);
403
+ export {
404
+ ze as TreeSelect,
405
+ ze as default
406
+ };
@@ -0,0 +1,82 @@
1
+ import { w as g } from "./chunks/index.bCzIhWFw.js";
2
+ import { useAttrs as w, ref as u, computed as y, watch as k, createBlock as P, openBlock as C, unref as s, withCtx as z, createElementVNode as o, normalizeStyle as T, toDisplayString as p, createVNode as m, mergeProps as D } from "vue";
3
+ import { ElAutoResizer as L } from "element-plus";
4
+ import { TreeSelect as f } from "./TreeSelect.mjs";
5
+ import { _ as R } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
6
+ import './assets/TreeShowSelect.css';const j = { class: "left-box w-50-percent flex flex-col" }, A = { class: "head-box fz-14 pd-t-8 pd-b-8 pd-l-12 pd-r-12 mg-b-8 text-202434" }, B = { class: "pd-r-12 pd-l-12 flex-1" }, E = { class: "right-box w-50-percent flex flex-col" }, H = { class: "head-box fz-14 pd-t-8 pd-b-8 pd-l-12 pd-r-12 mg-b-8 text-202434" }, I = { class: "pd-r-12 pd-l-12 flex-1 selected-list overflow-y-auto pd-t-8" }, O = /* @__PURE__ */ Object.assign({
7
+ name: "TreeShowSelect"
8
+ }, {
9
+ __name: "layout",
10
+ props: {
11
+ // 初始值
12
+ modelValue: {
13
+ type: Object,
14
+ default: () => []
15
+ }
16
+ },
17
+ emits: ["getCheckedNode"],
18
+ setup(h, { emit: _ }) {
19
+ const v = h, x = _, d = w(), r = u(), b = y(() => d.treeProps ? d.treeProps : { value: "id", label: "label", children: "children" }), i = (e) => String(e).includes("%") ? e : e + "px", t = u([]), N = (e) => {
20
+ const { selectedNode: l, selectedValue: a, selectedParentNodes: c } = e;
21
+ t.value = l, x("getCheckedNode", {
22
+ selectedValue: a,
23
+ // 选中节点的值的集合
24
+ selectedNode: l,
25
+ // // 选中节点的集合
26
+ selectedParentNodes: c
27
+ });
28
+ }, S = (e) => {
29
+ r.value?.setNodeCheckStatus(e[b.value.value], !1);
30
+ }, V = (e) => {
31
+ t.value = e || [];
32
+ };
33
+ return k(
34
+ () => v.modelValue,
35
+ (e) => {
36
+ V(e);
37
+ },
38
+ { immediate: !0, deep: !0 }
39
+ ), (e, l) => (C(), P(s(L), null, {
40
+ default: z(({ width: a, height: c }) => [
41
+ o("div", {
42
+ class: "out-box flex radius-8 text-202434",
43
+ style: T({
44
+ width: i(a),
45
+ height: i(c)
46
+ })
47
+ }, [
48
+ o("div", j, [
49
+ o("div", A, p(r.value && r.value.allNodeNumbers || 0) + "项 ", 1),
50
+ o("div", B, [
51
+ m(s(f), D({
52
+ modelValue: t.value,
53
+ "onUpdate:modelValue": l[0] || (l[0] = (n) => t.value = n),
54
+ ref_key: "treeRef",
55
+ ref: r
56
+ }, s(d), { onHandleCheck: N }), null, 16, ["modelValue"])
57
+ ])
58
+ ]),
59
+ o("div", E, [
60
+ o("div", H, p(t.value.length) + "项 ", 1),
61
+ o("div", I, [
62
+ m(s(f), {
63
+ modelValue: t.value,
64
+ "onUpdate:modelValue": l[1] || (l[1] = (n) => t.value = n),
65
+ class: "tree-select-list",
66
+ treeProps: s(d).treeProps,
67
+ treeList: t.value,
68
+ isListMode: !0,
69
+ onHandleDeleteNode: S
70
+ }, null, 8, ["modelValue", "treeProps", "treeList"])
71
+ ])
72
+ ])
73
+ ], 4)
74
+ ]),
75
+ _: 1
76
+ }));
77
+ }
78
+ }), U = /* @__PURE__ */ R(O, [["__scopeId", "data-v-506e7300"]]), J = g(U);
79
+ export {
80
+ J as TreeShowSelect,
81
+ J as default
82
+ };
@@ -0,0 +1,119 @@
1
+ import { w as h } from "./chunks/index.bCzIhWFw.js";
2
+ import { ref as P, computed as v, createBlock as x, openBlock as b, withCtx as C, createVNode as I, unref as c, isRef as D } from "vue";
3
+ import { C as k } from "./chunks/layout.Dvw3u-s5.js";
4
+ import { S as A } from "./chunks/layout.CTQtuC78.js";
5
+ import { n as w, b as u, A as y, g as E, M } from "./chunks/index.D4Kbv-m1.js";
6
+ import { _ as U } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
7
+ import './assets/UpdatePasswordDialog.css';const B = () => {
8
+ const d = P({
9
+ password: "",
10
+ confirmPassword: ""
11
+ }), p = v(() => [
12
+ {
13
+ label: "请输入新密码",
14
+ key: "password",
15
+ type: w.text,
16
+ placeholder: "请输入6-20位,需包含大小写字母、数字",
17
+ wide: !0,
18
+ required: !0,
19
+ showPassword: !0,
20
+ validator: r
21
+ },
22
+ {
23
+ label: "请再次输入新密码",
24
+ key: "confirmPassword",
25
+ type: w.text,
26
+ placeholder: "请输入6-20位,需包含大小写字母、数字",
27
+ wide: !0,
28
+ required: !0,
29
+ showPassword: !0,
30
+ validator: l
31
+ }
32
+ ]), r = (n, t, e) => {
33
+ !t || !/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/.test(t) ? e(new Error("请输入6-20位,需包含大小写字母、数字")) : e();
34
+ }, l = (n, t, e) => {
35
+ t === "" ? e(new Error("两次密码不一致")) : t !== d.value.password ? e(new Error("两次密码不一致")) : e();
36
+ };
37
+ return {
38
+ formData: d,
39
+ userFromItems: p
40
+ };
41
+ }, F = {
42
+ __name: "layout",
43
+ props: {
44
+ modelValue: {
45
+ type: Boolean,
46
+ default: !1
47
+ },
48
+ nowUserData: {
49
+ type: Object,
50
+ default: () => {
51
+ }
52
+ },
53
+ apiConfig: {
54
+ // 对象结构: { updatePasswordApi, getSecretKeyApi }
55
+ type: Object,
56
+ default: () => {
57
+ }
58
+ }
59
+ },
60
+ emits: [u.updateModelValue, u.change],
61
+ setup(d, { emit: p }) {
62
+ const r = d, l = p, n = v({
63
+ get: () => r.modelValue,
64
+ set: (o) => l(u.updateModelValue, o)
65
+ }), t = P(null), { formData: e, userFromItems: g } = B(), _ = async () => {
66
+ const o = await r.apiConfig.getSecretKeyApi();
67
+ if (o.code !== y.success) return {};
68
+ const { key: s, iv: a, keyId: i } = o.data, { password: f } = t.value.getFormData(), m = M.encrypt(f, s, a);
69
+ return {
70
+ keyId: i,
71
+ encryptedPassword: m
72
+ };
73
+ }, V = async () => {
74
+ let o = !1;
75
+ return await t.value.validate(async (s) => {
76
+ if (!s) return;
77
+ const { keyId: a, encryptedPassword: i } = await _();
78
+ if (!a || !i) return;
79
+ const f = {
80
+ userId: r.nowUserData.id,
81
+ newPassword: i,
82
+ aesKeyId: a
83
+ };
84
+ (await r.apiConfig.updatePasswordApi(f)).code === y.success && (E("修改成功"), n.value = !1, o = !0, l(u.change));
85
+ }), o;
86
+ };
87
+ return (o, s) => (b(), x(k, {
88
+ modelValue: n.value,
89
+ "onUpdate:modelValue": s[1] || (s[1] = (a) => n.value = a),
90
+ title: "修改密码",
91
+ buttons: {
92
+ confirmText: "确定",
93
+ onConfirm: V
94
+ },
95
+ top: "30vh",
96
+ width: "568px",
97
+ "destroy-on-close": ""
98
+ }, {
99
+ default: C(() => [
100
+ I(A, {
101
+ modelValue: c(e),
102
+ "onUpdate:modelValue": s[0] || (s[0] = (a) => D(e) ? e.value = a : null),
103
+ ref_key: "formRef",
104
+ ref: t,
105
+ items: c(g),
106
+ isExpand: !1,
107
+ operationList: [],
108
+ filterMode: !1,
109
+ labelPosition: "top"
110
+ }, null, 8, ["modelValue", "items"])
111
+ ]),
112
+ _: 1
113
+ }, 8, ["modelValue", "buttons"]));
114
+ }
115
+ }, R = /* @__PURE__ */ U(F, [["__scopeId", "data-v-0088227a"]]), Z = h(R);
116
+ export {
117
+ Z as UpdatePasswordDialog,
118
+ Z as default
119
+ };
@@ -0,0 +1,7 @@
1
+ import { w as o } from "./chunks/index.bCzIhWFw.js";
2
+ import t from "./chunks/layout.1y3OJ-ea.js";
3
+ const r = o(t);
4
+ export {
5
+ r as UploadFile,
6
+ r as default
7
+ };
@@ -0,0 +1 @@
1
+ .text-3d3d3d[data-v-efa99113]{color:#3d3d3d}.text-5a5a5a[data-v-efa99113]{color:#5a5a5a}.lh-38[data-v-efa99113]{line-height:38px}.lh-24[data-v-efa99113]{line-height:24px}.text-gradient-bg[data-v-efa99113]{background:linear-gradient(15.1914541017deg,#1ba3fa 0% 2%,#4520fb);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;padding-bottom:50px}.w-340[data-v-efa99113]{width:340px}.h-180[data-v-efa99113]{height:180px}.w-210[data-v-efa99113]{width:210px}.h-132[data-v-efa99113]{height:132px}.shadow[data-v-efa99113]{box-shadow:0 4px 11px #0000000d;border:1px solid rgba(255,255,255,.7)}.build-button[data-v-efa99113]{padding-top:116px}.arrow-icon[data-v-efa99113]{width:76px}.title-position[data-v-efa99113]{top:0;left:0}.desc-position[data-v-efa99113]{bottom:20px;left:0}.w-50[data-v-efa99113]{width:50px}.default-button[data-v-efa99113]{background:linear-gradient(270deg,#6485ff,#898bff);border:none;color:#fff;width:190px;padding:19px 0;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;cursor:pointer}
@@ -0,0 +1 @@
1
+ .custom-dropdown-trigger[data-v-07e365ee]{display:flex;align-items:center;cursor:pointer;padding:4px 8px;border-radius:4px;transition:background-color .3s ease}.custom-dropdown-trigger[data-v-07e365ee]:hover{background-color:#0000000d}
@@ -0,0 +1 @@
1
+ [data-v-4cd45c17] .el-tabs__item.is-active{background:linear-gradient(270deg,#6788ff,#878bff);border-radius:14px 14px 0 0;color:#fff!important}[data-v-4cd45c17] .el-tabs__item{background:#eef0f7;border-radius:14px 14px 0 0;border:1px solid #e4e6ed;padding:8px 24px;color:var(--text-color-2)!important}[data-v-4cd45c17] .el-tabs__nav.is-top{border:none!important}
@@ -0,0 +1 @@
1
+ .gradient-btn[data-v-5fab0460]{padding:1px}
@@ -0,0 +1 @@
1
+ .icon-select-content[data-v-b6a428ec]{max-height:290px}.icon-select-grid[data-v-b6a428ec]{grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:12px}.w-icon-item[data-v-b6a428ec]{width:70px;height:70px}.icon-item[data-v-b6a428ec]{background:var(--primary-color-8)}.icon-item.active[data-v-b6a428ec]{background:var(--primary-color-9)}.select-icon-box[data-v-b6a428ec]{border:1px dashed var(--border-color)}
@@ -0,0 +1 @@
1
+ [data-v-0c8c6750] .el-table-v2__header-cell-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@@ -0,0 +1 @@
1
+ .el-tree .el-tree-node__content{position:relative}.element-tree-node-label-wrapper{flex:1;display:flex;align-items:center}.element-tree-node-label{font-size:12px}.element-tree-node-line-ver{display:block;position:absolute;top:0;left:0;height:100%;border-left:1px dashed #dcdfe6}.element-tree-node-line-ver.last-node-isLeaf-line{height:50%}.element-tree-node-line-hor{display:block;position:absolute;top:50%;left:0;height:0;border-bottom:1px dashed #dcdfe6}.element-tree-node-label-line{flex:1;border-top:1px dashed #dcdfe6;align-self:center;margin:0 10px}[data-v-2ed402b3] .el-tree-node__label{line-height:22px}[data-v-2ed402b3] .el-tree-node:focus>.el-tree-node__content{background-color:transparent}[data-v-2ed402b3] .el-tree-node__content{border-radius:8px}[data-v-2ed402b3] .el-tree-node__content:hover{background-color:var(--primary-color-5)}[data-v-2ed402b3] .element-tree-node-label{font-size:14px}.list-item[data-v-2ed402b3]{height:32px}.list-item[data-v-2ed402b3]:hover{background:var(--primary-color-5)}[data-v-2ed402b3] .element-tree-node-line-ver{border-left:1px solid var(--neutral-color-19)}[data-v-2ed402b3] .element-tree-node-line-hor{border-bottom:1px solid var(--neutral-color-19)}
@@ -0,0 +1 @@
1
+ .w-50-percent[data-v-506e7300]{width:50%}.out-box[data-v-506e7300]{border:1px solid var(--parting-line)}.out-box .head-box[data-v-506e7300]{border-bottom:1px solid var(--parting-line)}.out-box .left-box[data-v-506e7300]{border-right:1px solid var(--parting-line)}.out-box .selected-list .selected-item[data-v-506e7300]{height:32px}.out-box .selected-list .selected-item[data-v-506e7300]:hover{background:var(--primary-color-5)}.out-box .virtual-scroller[data-v-506e7300]{height:100%}.tree-select-list[data-v-506e7300] .el-tree-node__content{margin-bottom:8px;padding:4px 0;height:32px;border-radius:8px}
@@ -0,0 +1 @@
1
+ [data-v-0088227a] .search-bar-form.el-form--inline.el-form--label-top{padding-bottom:10px}
File without changes
@@ -0,0 +1 @@
1
+ .dialog-content[data-v-425ba25d]{height:calc(100% - 230px);overflow:auto}.title-name[data-v-425ba25d]{padding:16px}.custom-dialog-page.el-dialog{height:calc(100% - 78px)!important;overflow:hidden;display:flex;flex-direction:column}.custom-dialog-page.el-dialog .el-dialog__body{flex:1;overflow-y:auto}
@@ -0,0 +1 @@
1
+ .filter-form[data-v-a3300eb1]{grid-template-columns:repeat(2,1fr);gap:10px}.filter-preview-form[data-v-a3300eb1]{display:flex}.filter-preview-form .el-form-item[data-v-a3300eb1]{width:var(--v5a659130);margin-right:10px}.search-bar-form[data-v-a3300eb1]{grid-template-columns:repeat(auto-fit,minmax(var(--v5a659130),1fr));gap:10px}.search-bar-form.el-form--inline .el-form-item[data-v-a3300eb1]{margin-right:0;margin-bottom:10px}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-a3300eb1]{display:flex;padding:0 14px;background:var(--neutral-color-18);border-radius:8px;border:1px solid var(--parting-line)}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-a3300eb1] .el-form-item__content{justify-content:end}.search-bar-form.el-form--inline.el-form--label-top[data-v-a3300eb1]{display:grid}.search-bar-item--wide[data-v-a3300eb1]{grid-column:span 2}.is-collapsed[data-v-ab52a69e]{max-height:var(--fdcf2012)}.operation-buttons[data-v-ab52a69e]{width:var(--v307de011);z-index:1}.h-32[data-v-ab52a69e]{height:32px}.drawer-header[data-v-ab52a69e]{display:flex;justify-content:space-between;align-items:center;width:100%}.drawer-header .shrink-button[data-v-ab52a69e]{margin-left:auto}.border-top[data-v-ab52a69e]{border-top:1px solid var(--parting-line)}[data-v-ab52a69e] .el-drawer__body{padding:16px 0;display:flex;flex-direction:column;overflow:hidden}.filter-form-popover[data-v-ab52a69e]{max-height:400px}[data-v-ab52a69e] .el-drawer__header{margin-bottom:0;padding:16px 16px 0}
@@ -0,0 +1 @@
1
+ .custom-title[data-v-4d572364]{font-weight:var(--v47d985ee);font-size:var(--v6d50a5d6);color:var(--v4b029cbc)}
@@ -0,0 +1 @@
1
+ [data-v-c9d51ce3] .el-upload-dragger{background:var(--background-color-7);border-radius:6px;border:1px dashed var(--primary-color-8);padding:26px}[data-v-c9d51ce3] .el-upload-dragger:hover{background:var(--background-color-11);border:1px dashed var(--primary-color-6)}.upload-webp[data-v-c9d51ce3]{width:96px;height:96px}.upload-webp .image[data-v-c9d51ce3]{top:50%;left:50%;transform:translate(-50%,-50%);width:150px}
@@ -0,0 +1 @@
1
+ .file-list[data-v-0980a743]{grid-template-columns:repeat(var(--v247946fe),1fr);gap:12px}.file-list .lh-16[data-v-0980a743]{line-height:16px}.file-list .border-error[data-v-0980a743]{border:1px solid var(--error-color-1)}.file-list .border-normal[data-v-0980a743]{border:1px solid var(--parting-line)}.file-list .bg-uploading[data-v-0980a743]{background:linear-gradient(270deg,var(--primary-color-5) 0%,rgba(252,253,255,0) 100%)}
@@ -0,0 +1,9 @@
1
+ const s = (t, r) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [c, e] of r)
4
+ o[c] = e;
5
+ return o;
6
+ };
7
+ export {
8
+ s as _
9
+ };