ling-yun-custom-components 0.0.10 → 0.0.18
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/BatchImport.mjs +50 -50
- package/es/CustomDialog.mjs +1 -1
- package/es/CustomDropdown.mjs +24 -24
- package/es/CustomPagination.mjs +1 -1
- package/es/CustomSelect.mjs +1 -1
- package/es/FileList.mjs +1 -1
- package/es/GradientButton.mjs +23 -23
- package/es/IconEmpty.mjs +1 -1
- package/es/IconSelect.mjs +33 -33
- package/es/PaginationTable.mjs +37 -37
- package/es/SearchBar.mjs +1 -1
- package/es/TreeSelect.mjs +25 -25
- package/es/UpdatePasswordDialog.mjs +21 -21
- package/es/UploadFile.mjs +1 -1
- package/es/chunks/{index.D4Kbv-m1.js → index.CRROL-C7.js} +100 -100
- package/es/chunks/{index.DlooXR0t.js → index._uj6b1Kd.js} +2953 -3583
- package/es/chunks/{layout.C0UEMbnF.js → layout.3r4JjCjq.js} +1 -1
- package/es/chunks/layout.B8mwOOqx.js +149 -0
- package/es/chunks/{layout.LCKaV7EX.js → layout.BHroZ9U9.js} +1 -1
- package/es/chunks/{layout.DeAFov0o.js → layout.BSdpu71J.js} +1 -1
- package/es/chunks/{layout.6MxjcpGc.js → layout.BZ373u9D.js} +43 -43
- package/es/chunks/{layout.CnANFnM1.js → layout.Bg387XYI.js} +31 -31
- package/es/chunks/{layout._A_rHZM7.js → layout.BsiNPYtX.js} +1 -1
- package/es/chunks/{layout.ypvwQzq5.js → layout.BzQrppiO.js} +19 -19
- package/es/chunks/{layout.Dvw3u-s5.js → layout.CSYJ22Ac.js} +22 -22
- package/es/chunks/{layout.CtWHo87D.js → layout.CmH2-6H-.js} +1 -1
- package/es/chunks/{layout.BJE8rMzK.js → layout.D7cg-xRZ.js} +2 -2
- package/es/chunks/layout.DBgjqaxe.js +66 -0
- package/es/chunks/{layout.t3qD0LTW.js → layout.DLUJzpco.js} +4 -4
- package/es/chunks/{layout.Day1LJyl.js → layout.Epzao23T.js} +9 -9
- package/es/chunks/{layout.f58eO4Hr.js → layout.dhOtQkoC.js} +13 -13
- package/es/chunks/{layout.1y3OJ-ea.js → layout.iUFnoCjZ.js} +2 -2
- package/es/chunks/{layout.CTQtuC78.js → layout.o_B8gly4.js} +2 -2
- package/es/chunks/{layout.CiNI5oQK.js → layout.vvR_4ki7.js} +48 -48
- package/lib/BatchImport.js +1 -1
- package/lib/CustomDialog.js +1 -1
- package/lib/CustomDropdown.js +1 -1
- package/lib/CustomPagination.js +1 -1
- package/lib/CustomSelect.js +1 -1
- package/lib/FileList.js +1 -1
- package/lib/GradientButton.js +1 -1
- package/lib/IconEmpty.js +1 -1
- package/lib/IconSelect.js +1 -1
- package/lib/PaginationTable.js +1 -1
- package/lib/SearchBar.js +1 -1
- package/lib/TreeSelect.js +1 -1
- package/lib/UpdatePasswordDialog.js +1 -1
- package/lib/UploadFile.js +1 -1
- package/lib/chunks/index.BKVX0AJJ.js +23 -0
- package/lib/chunks/{index.CrvqvcN9.js → index.Cm0zRaZN.js} +2 -2
- package/lib/chunks/{layout.BXdjRFbn.js → layout.-2KgXQBu.js} +1 -1
- package/lib/chunks/layout.7-8MCU-f.js +1 -0
- package/lib/chunks/{layout.CoSBrO12.js → layout.9Q_gwznp.js} +1 -1
- package/lib/chunks/layout.B8EsRYB6.js +1 -0
- package/lib/chunks/layout.B8d4J538.js +1 -0
- package/lib/chunks/{layout.CwA4IJ1g.js → layout.BeQpU6RU.js} +1 -1
- package/lib/chunks/{layout.5iOiFlVu.js → layout.BqWe_qix.js} +1 -1
- package/lib/chunks/{layout.-yZzrp74.js → layout.C2BGVUSH.js} +1 -1
- package/lib/chunks/{layout.DDTIwGYp.js → layout.D3OyheOl.js} +1 -1
- package/lib/chunks/layout.DE2WIKAN.js +1 -0
- package/lib/chunks/{layout.BhL14Rqh.js → layout.DWbm8gXV.js} +1 -1
- package/lib/chunks/layout.DYKJPi9L.js +1 -0
- package/lib/chunks/layout.DYnlhiPO.js +1 -0
- package/lib/chunks/layout.Dt0IRZ49.js +1 -0
- package/lib/chunks/layout.Js61I3wA.js +1 -0
- package/lib/chunks/layout.XtG7xOYE.js +1 -0
- package/lib/chunks/{layout.CDg3sCTi.js → layout.s-xNK0r5.js} +1 -1
- package/lib/chunks/{layout.DfiLurg1.js → layout.vff7gZ3-.js} +1 -1
- package/package.json +14 -14
- package/es/chunks/layout.ZxPdKhRp.js +0 -149
- package/lib/chunks/index.Bixsw9fA.js +0 -23
- package/lib/chunks/layout.2PAIPzYY.js +0 -1
- package/lib/chunks/layout.BBNd1hLQ.js +0 -1
- package/lib/chunks/layout.BNJsxQ2g.js +0 -1
- package/lib/chunks/layout.BmQYiD_b.js +0 -1
- package/lib/chunks/layout.CeVldGUL.js +0 -1
- package/lib/chunks/layout.CjJiAY0w.js +0 -1
- package/lib/chunks/layout.DOS2ezSW.js +0 -1
- package/lib/chunks/layout.D_TxPvRy.js +0 -1
package/es/PaginationTable.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { w as ye } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
-
import { useSlots as Se, computed as C, ref as v, watch as ee, onMounted as be, nextTick as Ce, createElementBlock as w, openBlock as g, createElementVNode as m, createCommentVNode as B, unref as r, renderSlot as A, Fragment as xe, createBlock as te, withCtx as E, createTextVNode as le, toDisplayString as Te, createVNode as K, createSlots as we, renderList as Be, normalizeProps as Re, guardReactiveProps as ze, h as
|
|
2
|
+
import { useSlots as Se, computed as C, ref as v, watch as ee, onMounted as be, nextTick as Ce, createElementBlock as w, openBlock as g, createElementVNode as m, createCommentVNode as B, unref as r, renderSlot as A, Fragment as xe, createBlock as te, withCtx as E, createTextVNode as le, toDisplayString as Te, createVNode as K, createSlots as we, renderList as Be, normalizeProps as Re, guardReactiveProps as ze, h as M } from "vue";
|
|
3
3
|
import { ElButton as ae, ElAutoResizer as ke, ElTableV2 as Ne, ElCheckbox as Pe } from "element-plus";
|
|
4
|
-
import {
|
|
5
|
-
import { _ as Ie } from "./chunks/layout.
|
|
4
|
+
import { emitsMap as ne, paginationConfig as Ae, calculateScale as Ee } from "ling-yun-methods";
|
|
5
|
+
import { _ as Ie } from "./chunks/layout.BzQrppiO.js";
|
|
6
6
|
import { _ as _e } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
7
7
|
import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col" }, je = {
|
|
8
8
|
class: "w-full flex justify-between overflow-hidden",
|
|
@@ -16,7 +16,7 @@ import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col"
|
|
|
16
16
|
}, Ke = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "flex items-center mg-b-18"
|
|
19
|
-
},
|
|
19
|
+
}, Me = { class: "fz-12 text-74798c" }, We = { class: "btn-group mg-l-12" }, Fe = { class: "w-full flex-1 overflow-hidden flex flex-col" }, $e = { class: "flex-1 overflow-hidden TABLE-AREA" }, Le = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "flex justify-end mg-t-20",
|
|
22
22
|
style: { height: "auto" }
|
|
@@ -105,18 +105,18 @@ import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col"
|
|
|
105
105
|
"handleTableSelect",
|
|
106
106
|
"handleBatchDelete"
|
|
107
107
|
],
|
|
108
|
-
setup(h, { expose:
|
|
109
|
-
const R =
|
|
110
|
-
get: () => z.value ? y.value :
|
|
108
|
+
setup(h, { expose: ue, emit: se }) {
|
|
109
|
+
const R = se, s = h, I = Se(), z = C(() => typeof s.requestFn == "function"), c = C({
|
|
110
|
+
get: () => z.value ? y.value : s.tableData,
|
|
111
111
|
set: (e) => {
|
|
112
112
|
z.value ? y.value = e : R("updateTableData", e);
|
|
113
113
|
}
|
|
114
|
-
}), _ = v(0),
|
|
114
|
+
}), _ = v(0), W = C(() => z.value ? _.value : s.total), y = v([]), d = C(() => s.pageMapping.pageNum), k = C(() => s.pageMapping.pageSize), D = {
|
|
115
115
|
[d.value]: 1,
|
|
116
116
|
[k.value]: 20
|
|
117
117
|
}, i = v({
|
|
118
118
|
...D
|
|
119
|
-
}), f = v([]), n = v([]),
|
|
119
|
+
}), f = v([]), n = v([]), F = v([]), S = v({}), $ = C(() => ie(S.value));
|
|
120
120
|
function ie(e) {
|
|
121
121
|
const t = /* @__PURE__ */ new Set();
|
|
122
122
|
for (const l in e)
|
|
@@ -125,15 +125,15 @@ import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col"
|
|
|
125
125
|
});
|
|
126
126
|
return t;
|
|
127
127
|
}
|
|
128
|
-
const L = ({ value: e, intermediate: t = !1, onChange: l }) =>
|
|
128
|
+
const L = ({ value: e, intermediate: t = !1, onChange: l }) => M(Pe, {
|
|
129
129
|
onChange: l,
|
|
130
130
|
modelValue: e,
|
|
131
131
|
indeterminate: t
|
|
132
132
|
}), oe = (e, t) => {
|
|
133
133
|
if (e.selected = t, t ? n.value.some((l) => l.id === e.id) || n.value.push(e) : n.value = n.value.filter(({ id: l }) => l !== e.id), e.children && e.children.length > 0) {
|
|
134
134
|
const l = (a) => {
|
|
135
|
-
a.forEach((
|
|
136
|
-
|
|
135
|
+
a.forEach((u) => {
|
|
136
|
+
u.selected = t, t ? n.value.some((o) => o.id === u.id) || n.value.push(u) : n.value = n.value.filter(({ id: o }) => o !== u.id), u.children && u.children.length > 0 && l(u.children);
|
|
137
137
|
});
|
|
138
138
|
};
|
|
139
139
|
l(e.children);
|
|
@@ -177,18 +177,18 @@ import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col"
|
|
|
177
177
|
width: 50,
|
|
178
178
|
cellRenderer: (e) => {
|
|
179
179
|
const { rowData: t } = e, a = t.children && t.children.length > 0 ? de(t) : !1;
|
|
180
|
-
return
|
|
180
|
+
return M(L, {
|
|
181
181
|
value: t.selected,
|
|
182
182
|
intermediate: a,
|
|
183
|
-
onChange: (
|
|
183
|
+
onChange: (u) => oe(t, u)
|
|
184
184
|
});
|
|
185
185
|
},
|
|
186
186
|
headerCellRenderer: () => {
|
|
187
187
|
const e = r(c), t = e.every((a) => {
|
|
188
|
-
const
|
|
189
|
-
return
|
|
188
|
+
const u = a.selected, o = J(a);
|
|
189
|
+
return u && o;
|
|
190
190
|
}), l = e.some((a) => a.selected || Q(a));
|
|
191
|
-
return
|
|
191
|
+
return M(L, {
|
|
192
192
|
value: t,
|
|
193
193
|
intermediate: l && !t,
|
|
194
194
|
// 目前是当前页全选就是全选状态,也就是每页的全选状态单独的
|
|
@@ -240,25 +240,25 @@ import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col"
|
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
242
|
const T = () => {
|
|
243
|
-
z.value ?
|
|
244
|
-
...
|
|
243
|
+
z.value ? s.requestFn({
|
|
244
|
+
...s.params,
|
|
245
245
|
...i.value
|
|
246
246
|
}).then((e) => {
|
|
247
247
|
y.value = q(
|
|
248
|
-
e?.data[
|
|
248
|
+
e?.data[s.tableDataKey],
|
|
249
249
|
i.value[d.value],
|
|
250
250
|
$.value
|
|
251
251
|
) || [], _.value = e?.data?.total;
|
|
252
252
|
}) : (y.value = q(
|
|
253
|
-
|
|
253
|
+
s.tableData,
|
|
254
254
|
i.value[d.value],
|
|
255
255
|
$.value
|
|
256
|
-
), _.value =
|
|
256
|
+
), _.value = s.total);
|
|
257
257
|
};
|
|
258
258
|
function q(e, t, l, a = !1) {
|
|
259
|
-
return e.map((
|
|
260
|
-
const o = l.has(
|
|
261
|
-
...
|
|
259
|
+
return e.map((u) => {
|
|
260
|
+
const o = l.has(u.id) || a, b = {
|
|
261
|
+
...u,
|
|
262
262
|
selected: o
|
|
263
263
|
};
|
|
264
264
|
return b.children && (b.children = q(
|
|
@@ -282,7 +282,7 @@ import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col"
|
|
|
282
282
|
let t = r(f);
|
|
283
283
|
p.value && (t = r(f).slice(1));
|
|
284
284
|
const l = 1 / Ee();
|
|
285
|
-
t = t.map((a,
|
|
285
|
+
t = t.map((a, u) => (s.columnWidthMap ? a.width = e * s.columnWidthMap[u] * l : (a.width = e * (100 / t.length / 100) * l, a.width < 100 && (a.width = 100 * l)), a)), p.value ? f.value = [r(f)[0], ...t] : f.value = [...t];
|
|
286
286
|
};
|
|
287
287
|
ee(
|
|
288
288
|
() => p.value,
|
|
@@ -290,7 +290,7 @@ import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col"
|
|
|
290
290
|
P();
|
|
291
291
|
}
|
|
292
292
|
), ee(
|
|
293
|
-
() =>
|
|
293
|
+
() => s.tableDomWidth,
|
|
294
294
|
(e) => {
|
|
295
295
|
e && (N.value = e, P());
|
|
296
296
|
}
|
|
@@ -307,10 +307,10 @@ import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col"
|
|
|
307
307
|
N.value = document.querySelector(".TABLE-AREA").getBoundingClientRect().width, P();
|
|
308
308
|
}, 200);
|
|
309
309
|
return be(() => {
|
|
310
|
-
T(), f.value =
|
|
310
|
+
T(), f.value = s.columns, N.value = document.querySelector(".TABLE-AREA").getBoundingClientRect().width, Ce(() => {
|
|
311
311
|
P();
|
|
312
312
|
}), window.addEventListener("resize", Z);
|
|
313
|
-
}),
|
|
313
|
+
}), ue({
|
|
314
314
|
getTableList: T,
|
|
315
315
|
search: pe,
|
|
316
316
|
reset: ge,
|
|
@@ -325,13 +325,13 @@ import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col"
|
|
|
325
325
|
m("div", qe, [
|
|
326
326
|
h.hasBatchSelect && c.value.length ? (g(), w(xe, { key: 0 }, [
|
|
327
327
|
p.value ? (g(), w("div", Ke, [
|
|
328
|
-
m("div",
|
|
328
|
+
m("div", Me, "已选" + Te(n.value.length) + "条数据", 1),
|
|
329
329
|
m("div", {
|
|
330
330
|
class: "fz-12 text-3b64ff mg-l-4 pointer",
|
|
331
331
|
onClick: O
|
|
332
332
|
}, "取消选择"),
|
|
333
333
|
A(e.$slots, "btn-group", {}, () => [
|
|
334
|
-
m("div",
|
|
334
|
+
m("div", We, [
|
|
335
335
|
K(r(ae), {
|
|
336
336
|
type: "danger",
|
|
337
337
|
onClick: ve,
|
|
@@ -358,13 +358,13 @@ import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col"
|
|
|
358
358
|
r(I)["filter-right"] ? A(e.$slots, "filter-right", { key: 1 }, void 0, !0) : B("", !0)
|
|
359
359
|
])
|
|
360
360
|
]),
|
|
361
|
-
m("div",
|
|
361
|
+
m("div", Fe, [
|
|
362
362
|
m("div", $e, [
|
|
363
363
|
K(r(ke), null, {
|
|
364
364
|
default: E(({ width: l, height: a }) => [
|
|
365
365
|
K(r(Ne), {
|
|
366
|
-
"expanded-row-keys":
|
|
367
|
-
"onUpdate:expandedRowKeys": t[0] || (t[0] = (
|
|
366
|
+
"expanded-row-keys": F.value,
|
|
367
|
+
"onUpdate:expandedRowKeys": t[0] || (t[0] = (u) => F.value = u),
|
|
368
368
|
"expand-column-key": h.expandColumnKey,
|
|
369
369
|
columns: f.value,
|
|
370
370
|
data: c.value,
|
|
@@ -372,7 +372,7 @@ import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col"
|
|
|
372
372
|
height: a,
|
|
373
373
|
fixed: ""
|
|
374
374
|
}, we({ _: 2 }, [
|
|
375
|
-
Be(r(I), (
|
|
375
|
+
Be(r(I), (u, o) => ({
|
|
376
376
|
name: o,
|
|
377
377
|
fn: E((b) => [
|
|
378
378
|
A(e.$slots, o, Re(ze(b)), void 0, !0)
|
|
@@ -383,7 +383,7 @@ import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col"
|
|
|
383
383
|
_: 3
|
|
384
384
|
})
|
|
385
385
|
]),
|
|
386
|
-
h.isPagination &&
|
|
386
|
+
h.isPagination && W.value > i.value[k.value] ? (g(), w("div", Le, [
|
|
387
387
|
h.isPagination ? (g(), te(Ie, {
|
|
388
388
|
key: 0,
|
|
389
389
|
"current-page": i.value[d.value],
|
|
@@ -392,7 +392,7 @@ import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col"
|
|
|
392
392
|
"onUpdate:pageSize": t[2] || (t[2] = (l) => i.value[k.value] = l),
|
|
393
393
|
"page-sizes": h.pagination.pageSizes,
|
|
394
394
|
layout: h.pagination.layout,
|
|
395
|
-
total:
|
|
395
|
+
total: W.value,
|
|
396
396
|
onSizeChange: t[3] || (t[3] = (l) => Y("size")),
|
|
397
397
|
onCurrentChange: t[4] || (t[4] = (l) => Y("page"))
|
|
398
398
|
}, null, 8, ["current-page", "page-size", "page-sizes", "layout", "total"])) : B("", !0)
|
package/es/SearchBar.mjs
CHANGED
package/es/TreeSelect.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
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
|
|
2
|
+
import { useAttrs as re, ref as x, computed as S, watch as O, nextTick as K, onMounted as de, createBlock as R, openBlock as b, unref as p, withCtx as N, createElementVNode as D, normalizeStyle as ce, createElementBlock as P, createCommentVNode as ue, createVNode as g, normalizeClass as he, mergeProps as fe, toDisplayString as $, withModifiers as pe, Fragment as me, h as H } from "vue";
|
|
3
3
|
import { ElAutoResizer as ye, ElInput as ve, ElIcon as Q, ElTreeV2 as ge } from "element-plus";
|
|
4
|
-
import {
|
|
5
|
-
import { I as Ne } from "./chunks/layout.
|
|
4
|
+
import { IconSearch as ke, IconDelete as Se, IconRighttop as be } from "color-message-lingyun-vue";
|
|
5
|
+
import { I as Ne } from "./chunks/layout.DBgjqaxe.js";
|
|
6
6
|
import { _ as Ce } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
7
7
|
import './assets/TreeSelect.css';function Le(o) {
|
|
8
8
|
return {
|
|
@@ -149,7 +149,7 @@ const xe = {
|
|
|
149
149
|
}, Ve = {
|
|
150
150
|
key: 0,
|
|
151
151
|
class: "list-item flex justify-between pd-l-6 pd-r-6 radius-8 items-center w-full"
|
|
152
|
-
}, Me = ["onClick"],
|
|
152
|
+
}, Me = ["onClick"], De = { key: 1 }, Pe = /* @__PURE__ */ Object.assign({
|
|
153
153
|
name: "TreeSelect"
|
|
154
154
|
}, {
|
|
155
155
|
__name: "layout",
|
|
@@ -216,9 +216,9 @@ const xe = {
|
|
|
216
216
|
setup(o, { expose: r, emit: d }) {
|
|
217
217
|
const s = U(H), t = o, c = d, f = re(), y = () => H(be, {
|
|
218
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),
|
|
220
|
-
let e = m.value?.getCheckedNodes(), l = e.map((i) => i[
|
|
221
|
-
return e.length && !t.includeParentSelected && (e = e.filter((i) => !i[v.value]), l = e.map((i) => i[
|
|
219
|
+
}), u = t.isMultiple ? 20 : 10, V = t.isMultiple ? 15 : 11, n = x([]), m = x(null), C = x(null), w = S(() => t.treeProps.value), I = S(() => t.treeProps.label), v = S(() => t.treeProps.children), T = x(!1), G = S(() => !t.isMultiple && T.value), J = S(() => typeof t.apiConfig == "function"), _ = (e) => String(e).includes("%") ? e : e + "px", W = () => {
|
|
220
|
+
let e = m.value?.getCheckedNodes(), l = e.map((i) => i[w.value]), a = [];
|
|
221
|
+
return e.length && !t.includeParentSelected && (e = e.filter((i) => !i[v.value]), l = e.map((i) => i[w.value])), t.includeParentSelected && (a = X(n.value, l)), {
|
|
222
222
|
selectedNodeValues: l,
|
|
223
223
|
// 选中节点的值的集合
|
|
224
224
|
selectedNodes: e,
|
|
@@ -232,8 +232,8 @@ const xe = {
|
|
|
232
232
|
function i(h, k = []) {
|
|
233
233
|
for (const L of h) {
|
|
234
234
|
const ae = [...k, L];
|
|
235
|
-
L.children && L.children.length > 0 ? i(L.children, ae) : l.includes(L.id) && k.forEach((
|
|
236
|
-
a.has(
|
|
235
|
+
L.children && L.children.length > 0 ? i(L.children, ae) : l.includes(L.id) && k.forEach((B) => {
|
|
236
|
+
a.has(B.id) || a.set(B.id, { ...B });
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
}
|
|
@@ -242,7 +242,7 @@ const xe = {
|
|
|
242
242
|
const Y = (e) => {
|
|
243
243
|
!t.isMultiple || t.isListMode || E();
|
|
244
244
|
}, Z = (e, l) => {
|
|
245
|
-
t.isMultiple || t.isListMode || (
|
|
245
|
+
t.isMultiple || t.isListMode || (T.value = !0, C.value = l.key, c("handleCheck", {
|
|
246
246
|
selectedValue: [C.value],
|
|
247
247
|
// 选中节点的值
|
|
248
248
|
selectedNode: [l.data]
|
|
@@ -250,7 +250,7 @@ const xe = {
|
|
|
250
250
|
}));
|
|
251
251
|
}, z = x(""), ee = (e) => {
|
|
252
252
|
m.value.filter(e);
|
|
253
|
-
}, te = (e, l) => l[
|
|
253
|
+
}, te = (e, l) => l[I.value].includes(e), le = (e) => {
|
|
254
254
|
let l = 0;
|
|
255
255
|
function a(i) {
|
|
256
256
|
for (const h of i) {
|
|
@@ -311,15 +311,15 @@ const xe = {
|
|
|
311
311
|
allNodeNumbers: ne,
|
|
312
312
|
loadData: j,
|
|
313
313
|
setNodeCheckStatus: oe
|
|
314
|
-
}), (e, l) => (b(),
|
|
314
|
+
}), (e, l) => (b(), R(p(ye), null, {
|
|
315
315
|
default: N(({ width: a, height: i }) => [
|
|
316
|
-
|
|
316
|
+
D("div", {
|
|
317
317
|
style: ce({
|
|
318
|
-
width:
|
|
319
|
-
height:
|
|
318
|
+
width: _(a),
|
|
319
|
+
height: _(i)
|
|
320
320
|
})
|
|
321
321
|
}, [
|
|
322
|
-
o.hasFilter ? (b(),
|
|
322
|
+
o.hasFilter ? (b(), P("div", xe, [
|
|
323
323
|
g(p(ve), {
|
|
324
324
|
modelValue: z.value,
|
|
325
325
|
"onUpdate:modelValue": l[0] || (l[0] = (h) => z.value = h),
|
|
@@ -341,7 +341,7 @@ const xe = {
|
|
|
341
341
|
_: 1
|
|
342
342
|
}, 8, ["modelValue"])
|
|
343
343
|
])) : ue("", !0),
|
|
344
|
-
|
|
344
|
+
D("div", {
|
|
345
345
|
class: he(o.hasFilter ? "pd-l-8 pd-r-8" : "")
|
|
346
346
|
}, [
|
|
347
347
|
g(p(ge), fe({
|
|
@@ -350,7 +350,7 @@ const xe = {
|
|
|
350
350
|
height: o.hasFilter ? i - 48 : i,
|
|
351
351
|
data: n.value,
|
|
352
352
|
props: o.treeProps,
|
|
353
|
-
"node-key":
|
|
353
|
+
"node-key": w.value,
|
|
354
354
|
"show-checkbox": o.isMultiple && !o.isListMode,
|
|
355
355
|
"item-size": 34,
|
|
356
356
|
indent: p(u),
|
|
@@ -362,9 +362,9 @@ const xe = {
|
|
|
362
362
|
onCheck: Y
|
|
363
363
|
}), {
|
|
364
364
|
default: N(({ node: h }) => [
|
|
365
|
-
o.isListMode ? (b(),
|
|
366
|
-
|
|
367
|
-
|
|
365
|
+
o.isListMode ? (b(), P("div", Ve, [
|
|
366
|
+
D("span", null, $(h.data[I.value]), 1),
|
|
367
|
+
D("div", {
|
|
368
368
|
class: "flex items-center",
|
|
369
369
|
onClick: pe((k) => se(h.data), ["stop"])
|
|
370
370
|
}, [
|
|
@@ -378,14 +378,14 @@ const xe = {
|
|
|
378
378
|
_: 1
|
|
379
379
|
})
|
|
380
380
|
], 8, Me)
|
|
381
|
-
])) : (b(),
|
|
382
|
-
o.hasTreeLine ? (b(),
|
|
381
|
+
])) : (b(), P(me, { key: 1 }, [
|
|
382
|
+
o.hasTreeLine ? (b(), R(p(s), {
|
|
383
383
|
key: 0,
|
|
384
384
|
node: h,
|
|
385
385
|
treeData: n.value,
|
|
386
386
|
showLabelLine: !1,
|
|
387
387
|
indent: p(V)
|
|
388
|
-
}, null, 8, ["node", "treeData", "indent"])) : (b(),
|
|
388
|
+
}, null, 8, ["node", "treeData", "indent"])) : (b(), P("span", De, $(h.data[I.value]), 1))
|
|
389
389
|
], 64))
|
|
390
390
|
]),
|
|
391
391
|
empty: N(() => [
|
|
@@ -399,7 +399,7 @@ const xe = {
|
|
|
399
399
|
_: 1
|
|
400
400
|
}));
|
|
401
401
|
}
|
|
402
|
-
}),
|
|
402
|
+
}), we = /* @__PURE__ */ Ce(Pe, [["__scopeId", "data-v-2ed402b3"]]), ze = ie(we);
|
|
403
403
|
export {
|
|
404
404
|
ze as TreeSelect,
|
|
405
405
|
ze as default
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { w as h } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
-
import { ref as P, computed as v, createBlock as x, openBlock as
|
|
3
|
-
import { C as
|
|
4
|
-
import { S as
|
|
5
|
-
import {
|
|
6
|
-
import { _ as
|
|
7
|
-
import './assets/UpdatePasswordDialog.css';const
|
|
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
|
+
import { C as E } from "./chunks/layout.Epzao23T.js";
|
|
4
|
+
import { S as k } from "./chunks/layout.Bg387XYI.js";
|
|
5
|
+
import { componentType as w, emitsMap as u, codeMap as y, messageSuccess as A, AESCrypto as M } from "ling-yun-methods";
|
|
6
|
+
import { _ as S } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
7
|
+
import './assets/UpdatePasswordDialog.css';const U = () => {
|
|
8
8
|
const d = P({
|
|
9
9
|
password: "",
|
|
10
10
|
confirmPassword: ""
|
|
@@ -38,7 +38,7 @@ import './assets/UpdatePasswordDialog.css';const B = () => {
|
|
|
38
38
|
formData: d,
|
|
39
39
|
userFromItems: p
|
|
40
40
|
};
|
|
41
|
-
},
|
|
41
|
+
}, B = {
|
|
42
42
|
__name: "layout",
|
|
43
43
|
props: {
|
|
44
44
|
modelValue: {
|
|
@@ -62,13 +62,13 @@ import './assets/UpdatePasswordDialog.css';const B = () => {
|
|
|
62
62
|
const r = d, l = p, n = v({
|
|
63
63
|
get: () => r.modelValue,
|
|
64
64
|
set: (o) => l(u.updateModelValue, o)
|
|
65
|
-
}), t = P(null), { formData: e, userFromItems: g } =
|
|
65
|
+
}), t = P(null), { formData: e, userFromItems: g } = U(), _ = async () => {
|
|
66
66
|
const o = await r.apiConfig.getSecretKeyApi();
|
|
67
67
|
if (o.code !== y.success) return {};
|
|
68
|
-
const { key: s, iv: a, keyId: i } = o.data, { password:
|
|
68
|
+
const { key: s, iv: a, keyId: i } = o.data, { password: m } = t.value.getFormData(), c = M.encrypt(m, s, a);
|
|
69
69
|
return {
|
|
70
70
|
keyId: i,
|
|
71
|
-
encryptedPassword:
|
|
71
|
+
encryptedPassword: c
|
|
72
72
|
};
|
|
73
73
|
}, V = async () => {
|
|
74
74
|
let o = !1;
|
|
@@ -76,15 +76,15 @@ import './assets/UpdatePasswordDialog.css';const B = () => {
|
|
|
76
76
|
if (!s) return;
|
|
77
77
|
const { keyId: a, encryptedPassword: i } = await _();
|
|
78
78
|
if (!a || !i) return;
|
|
79
|
-
const
|
|
79
|
+
const m = {
|
|
80
80
|
userId: r.nowUserData.id,
|
|
81
81
|
newPassword: i,
|
|
82
82
|
aesKeyId: a
|
|
83
83
|
};
|
|
84
|
-
(await r.apiConfig.updatePasswordApi(
|
|
84
|
+
(await r.apiConfig.updatePasswordApi(m)).code === y.success && (A("修改成功"), n.value = !1, o = !0, l(u.change));
|
|
85
85
|
}), o;
|
|
86
86
|
};
|
|
87
|
-
return (o, s) => (
|
|
87
|
+
return (o, s) => (C(), x(E, {
|
|
88
88
|
modelValue: n.value,
|
|
89
89
|
"onUpdate:modelValue": s[1] || (s[1] = (a) => n.value = a),
|
|
90
90
|
title: "修改密码",
|
|
@@ -96,13 +96,13 @@ import './assets/UpdatePasswordDialog.css';const B = () => {
|
|
|
96
96
|
width: "568px",
|
|
97
97
|
"destroy-on-close": ""
|
|
98
98
|
}, {
|
|
99
|
-
default:
|
|
100
|
-
|
|
101
|
-
modelValue:
|
|
102
|
-
"onUpdate:modelValue": s[0] || (s[0] = (a) =>
|
|
99
|
+
default: I(() => [
|
|
100
|
+
D(k, {
|
|
101
|
+
modelValue: f(e),
|
|
102
|
+
"onUpdate:modelValue": s[0] || (s[0] = (a) => b(e) ? e.value = a : null),
|
|
103
103
|
ref_key: "formRef",
|
|
104
104
|
ref: t,
|
|
105
|
-
items:
|
|
105
|
+
items: f(g),
|
|
106
106
|
isExpand: !1,
|
|
107
107
|
operationList: [],
|
|
108
108
|
filterMode: !1,
|
|
@@ -112,8 +112,8 @@ import './assets/UpdatePasswordDialog.css';const B = () => {
|
|
|
112
112
|
_: 1
|
|
113
113
|
}, 8, ["modelValue", "buttons"]));
|
|
114
114
|
}
|
|
115
|
-
},
|
|
115
|
+
}, F = /* @__PURE__ */ S(B, [["__scopeId", "data-v-0088227a"]]), T = h(F);
|
|
116
116
|
export {
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
T as UpdatePasswordDialog,
|
|
118
|
+
T as default
|
|
119
119
|
};
|
package/es/UploadFile.mjs
CHANGED