ling-yun-custom-components 0.0.29 → 0.0.32
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/CustomDialog.mjs +1 -1
- package/es/PaginationTable.mjs +167 -151
- package/es/SearchBar.mjs +1 -1
- package/es/UpdatePasswordDialog.mjs +2 -2
- package/es/assets/PaginationTable.css +1 -1
- package/es/assets/layout2.css +1 -1
- package/es/assets/layout3.css +1 -1
- package/es/chunks/{layout.Bg387XYI.js → layout.Cops0Vah.js} +17 -15
- package/es/chunks/{layout.BSdpu71J.js → layout.DXw3haOP.js} +48 -51
- package/lib/CustomDialog.js +1 -1
- package/lib/PaginationTable.js +1 -1
- package/lib/SearchBar.js +1 -1
- package/lib/UpdatePasswordDialog.js +1 -1
- package/lib/assets/PaginationTable.css +1 -1
- package/lib/assets/layout2.css +1 -1
- package/lib/assets/layout3.css +1 -1
- package/lib/chunks/layout.B9EVVV-O.js +1 -0
- package/lib/chunks/layout.OHsMvEtb.js +1 -0
- package/package.json +2 -2
- package/es/chunks/index.CRROL-C7.js +0 -8991
- package/es/chunks/index.DfOANPhX.js +0 -1729
- package/es/chunks/index._uj6b1Kd.js +0 -8946
- package/es/chunks/layout.3r4JjCjq.js +0 -98
- package/es/chunks/layout.B8mwOOqx.js +0 -149
- package/es/chunks/layout.BZ373u9D.js +0 -584
- package/es/chunks/layout.BsiNPYtX.js +0 -149
- package/es/chunks/layout.CSYJ22Ac.js +0 -234
- package/es/chunks/layout.CUOtHOHG.js +0 -66
- package/es/chunks/layout.CmH2-6H-.js +0 -121
- package/es/chunks/layout.D7cg-xRZ.js +0 -230
- package/es/chunks/layout.DLUJzpco.js +0 -121
- package/es/chunks/layout.Epzao23T.js +0 -234
- package/es/chunks/layout.dhOtQkoC.js +0 -98
- package/es/chunks/layout.iUFnoCjZ.js +0 -230
- package/es/chunks/layout.o_B8gly4.js +0 -584
- package/lib/chunks/index.BKVX0AJJ.js +0 -23
- package/lib/chunks/index.Cm0zRaZN.js +0 -23
- package/lib/chunks/index.DJKAT9lI.js +0 -1
- package/lib/chunks/layout.-2KgXQBu.js +0 -1
- package/lib/chunks/layout.7-8MCU-f.js +0 -1
- package/lib/chunks/layout.9Q_gwznp.js +0 -1
- package/lib/chunks/layout.B8EsRYB6.js +0 -1
- package/lib/chunks/layout.BeQpU6RU.js +0 -1
- package/lib/chunks/layout.BqWe_qix.js +0 -1
- package/lib/chunks/layout.C2BGVUSH.js +0 -1
- package/lib/chunks/layout.D3OyheOl.js +0 -1
- package/lib/chunks/layout.DYKJPi9L.js +0 -1
- package/lib/chunks/layout.DYnlhiPO.js +0 -1
- package/lib/chunks/layout.Dt0IRZ49.js +0 -1
- package/lib/chunks/layout.XtG7xOYE.js +0 -1
- package/lib/chunks/layout.gqpUcAHO.js +0 -1
- package/lib/chunks/layout.s-xNK0r5.js +0 -1
- package/lib/chunks/layout.vff7gZ3-.js +0 -1
package/es/CustomDialog.mjs
CHANGED
package/es/PaginationTable.mjs
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { w as
|
|
2
|
-
import { useSlots as
|
|
3
|
-
import { ElButton as
|
|
4
|
-
import { emitsMap as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import './assets/PaginationTable.css';const
|
|
1
|
+
import { w as be } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { useSlots as Ce, computed as g, ref as v, watch as te, onMounted as xe, nextTick as Te, createElementBlock as B, openBlock as m, createElementVNode as y, createCommentVNode as R, unref as c, renderSlot as A, Fragment as we, createBlock as le, withCtx as E, createTextVNode as ae, toDisplayString as Be, createVNode as M, createSlots as Re, renderList as ke, normalizeProps as ze, guardReactiveProps as Ne, h as W } from "vue";
|
|
3
|
+
import { ElButton as ne, ElAutoResizer as Pe, ElTableV2 as Ae, ElCheckbox as Ee } from "element-plus";
|
|
4
|
+
import { emitsMap as ue, paginationConfig as Ie, calculateScale as _e } from "ling-yun-methods";
|
|
5
|
+
import { _ as je } from "./chunks/layout.BzQrppiO.js";
|
|
6
|
+
import { _ as De } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
7
|
+
import './assets/PaginationTable.css';const Oe = { class: "flex h-full flex-col" }, qe = {
|
|
8
8
|
class: "w-full flex justify-between overflow-hidden",
|
|
9
9
|
style: { height: "auto" }
|
|
10
|
-
},
|
|
10
|
+
}, Ke = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "flex-1 overflow-hidden"
|
|
13
|
-
},
|
|
13
|
+
}, Me = {
|
|
14
14
|
class: "flex",
|
|
15
15
|
style: { width: "auto", gap: "10px" }
|
|
16
|
-
},
|
|
16
|
+
}, We = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "flex items-center mg-b-18"
|
|
19
|
-
},
|
|
19
|
+
}, Fe = { class: "fz-12 text-74798c" }, Ve = { class: "btn-group mg-l-12" }, $e = { class: "w-full flex-1 overflow-hidden flex flex-col" }, Le = { class: "flex-1 overflow-hidden TABLE-AREA" }, Ue = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "flex justify-end mg-t-20",
|
|
22
22
|
style: { height: "auto" }
|
|
23
|
-
},
|
|
23
|
+
}, He = /* @__PURE__ */ Object.assign({
|
|
24
24
|
name: "PaginationTable"
|
|
25
25
|
}, {
|
|
26
26
|
__name: "layout",
|
|
@@ -43,7 +43,7 @@ import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col"
|
|
|
43
43
|
// 分页配置
|
|
44
44
|
pagination: {
|
|
45
45
|
type: Object,
|
|
46
|
-
default: () =>
|
|
46
|
+
default: () => Ie
|
|
47
47
|
},
|
|
48
48
|
// 查询参数
|
|
49
49
|
params: {
|
|
@@ -97,27 +97,41 @@ import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col"
|
|
|
97
97
|
pageSize: "pageSize",
|
|
98
98
|
pageNum: "pageNum"
|
|
99
99
|
})
|
|
100
|
+
},
|
|
101
|
+
// 排序对象
|
|
102
|
+
sortState: {
|
|
103
|
+
type: Object,
|
|
104
|
+
default: () => {
|
|
105
|
+
}
|
|
100
106
|
}
|
|
101
107
|
},
|
|
102
108
|
emits: [
|
|
103
|
-
|
|
109
|
+
ue.paginationChange,
|
|
104
110
|
"updateTableData",
|
|
105
111
|
"handleTableSelect",
|
|
106
|
-
"handleBatchDelete"
|
|
112
|
+
"handleBatchDelete",
|
|
113
|
+
"updateSortState"
|
|
107
114
|
],
|
|
108
|
-
setup(h, { expose:
|
|
109
|
-
const
|
|
110
|
-
get: () =>
|
|
115
|
+
setup(h, { expose: se, emit: ie }) {
|
|
116
|
+
const x = ie, s = h, I = Ce(), k = g(() => typeof s.requestFn == "function"), o = g({
|
|
117
|
+
get: () => k.value ? S.value : s.tableData,
|
|
118
|
+
set: (e) => {
|
|
119
|
+
k.value ? S.value = e : x("updateTableData", e);
|
|
120
|
+
}
|
|
121
|
+
}), _ = v(0), F = g(() => k.value ? _.value : s.total), j = g({
|
|
122
|
+
get: () => s.sortState,
|
|
111
123
|
set: (e) => {
|
|
112
|
-
|
|
124
|
+
x("updateSortState", e);
|
|
113
125
|
}
|
|
114
|
-
}),
|
|
126
|
+
}), oe = ({ key: e, order: t }) => {
|
|
127
|
+
j.value[e] = t, o.value = o.value.reverse();
|
|
128
|
+
}, S = v([]), d = g(() => s.pageMapping.pageNum), z = g(() => s.pageMapping.pageSize), D = {
|
|
115
129
|
[d.value]: 1,
|
|
116
|
-
[
|
|
130
|
+
[z.value]: 20
|
|
117
131
|
}, i = v({
|
|
118
132
|
...D
|
|
119
|
-
}), f = v([]), n = v([]),
|
|
120
|
-
function
|
|
133
|
+
}), f = v([]), n = v([]), V = v([]), b = v({}), $ = g(() => re(b.value));
|
|
134
|
+
function re(e) {
|
|
121
135
|
const t = /* @__PURE__ */ new Set();
|
|
122
136
|
for (const l in e)
|
|
123
137
|
e.hasOwnProperty(l) && e[l].forEach((a) => {
|
|
@@ -125,113 +139,113 @@ import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col"
|
|
|
125
139
|
});
|
|
126
140
|
return t;
|
|
127
141
|
}
|
|
128
|
-
const L = ({ value: e, intermediate: t = !1, onChange: l }) =>
|
|
142
|
+
const L = ({ value: e, intermediate: t = !1, onChange: l }) => W(Ee, {
|
|
129
143
|
onChange: l,
|
|
130
144
|
modelValue: e,
|
|
131
145
|
indeterminate: t
|
|
132
|
-
}),
|
|
146
|
+
}), ce = (e, t) => {
|
|
133
147
|
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
148
|
const l = (a) => {
|
|
135
149
|
a.forEach((u) => {
|
|
136
|
-
u.selected = t, t ? n.value.some((
|
|
150
|
+
u.selected = t, t ? n.value.some((r) => r.id === u.id) || n.value.push(u) : n.value = n.value.filter(({ id: r }) => r !== u.id), u.children && u.children.length > 0 && l(u.children);
|
|
137
151
|
});
|
|
138
152
|
};
|
|
139
153
|
l(e.children);
|
|
140
154
|
}
|
|
141
|
-
e.parentId &&
|
|
142
|
-
},
|
|
143
|
-
const t =
|
|
155
|
+
e.parentId && U(e.parentId), G(), T();
|
|
156
|
+
}, U = (e) => {
|
|
157
|
+
const t = H(o.value, e);
|
|
144
158
|
if (!t) return;
|
|
145
159
|
const l = t.children.every((a) => a.selected);
|
|
146
|
-
l && !t.selected ? (t.selected = !0, n.value.some((a) => a.id === t.id) || n.value.push(t)) : !l && t.selected && (t.selected = !1, n.value = n.value.filter(({ id: a }) => a !== t.id)), t.parentId &&
|
|
147
|
-
},
|
|
160
|
+
l && !t.selected ? (t.selected = !0, n.value.some((a) => a.id === t.id) || n.value.push(t)) : !l && t.selected && (t.selected = !1, n.value = n.value.filter(({ id: a }) => a !== t.id)), t.parentId && U(t.parentId);
|
|
161
|
+
}, H = (e, t) => {
|
|
148
162
|
for (const l of e) {
|
|
149
163
|
if (l.id === t) return l;
|
|
150
164
|
if (l.children) {
|
|
151
|
-
const a =
|
|
165
|
+
const a = H(l.children, t);
|
|
152
166
|
if (a) return a;
|
|
153
167
|
}
|
|
154
168
|
}
|
|
155
169
|
return null;
|
|
156
170
|
};
|
|
157
|
-
function
|
|
158
|
-
|
|
159
|
-
|
|
171
|
+
function G() {
|
|
172
|
+
b.value[i.value[d.value]] = J(
|
|
173
|
+
o.value
|
|
160
174
|
);
|
|
161
175
|
}
|
|
162
|
-
function
|
|
176
|
+
function J(e) {
|
|
163
177
|
let t = [];
|
|
164
178
|
return e.forEach((l) => {
|
|
165
|
-
l.selected && t.push(l), l.children && l.children.length > 0 && (t = t.concat(
|
|
179
|
+
l.selected && t.push(l), l.children && l.children.length > 0 && (t = t.concat(J(l.children)));
|
|
166
180
|
}), t;
|
|
167
181
|
}
|
|
168
|
-
function
|
|
169
|
-
e.selected = t, e.children && e.children.length > 0 && e.children.forEach((l) =>
|
|
182
|
+
function O(e, t) {
|
|
183
|
+
e.selected = t, e.children && e.children.length > 0 && e.children.forEach((l) => O(l, t));
|
|
170
184
|
}
|
|
171
|
-
const
|
|
172
|
-
const t =
|
|
173
|
-
return
|
|
174
|
-
},
|
|
185
|
+
const de = (e) => {
|
|
186
|
+
const t = o.value.map((l) => (O(l, e), l));
|
|
187
|
+
return o.value = [...t], G(), n.value = e ? [...Object.values(b.value).flat()] : [], T(), [...n.value];
|
|
188
|
+
}, fe = () => {
|
|
175
189
|
f.value.unshift({
|
|
176
190
|
key: "selection",
|
|
177
191
|
width: 50,
|
|
178
192
|
cellRenderer: (e) => {
|
|
179
|
-
const { rowData: t } = e, a = t.children && t.children.length > 0 ?
|
|
180
|
-
return
|
|
193
|
+
const { rowData: t } = e, a = t.children && t.children.length > 0 ? ve(t) : !1;
|
|
194
|
+
return W(L, {
|
|
181
195
|
value: t.selected,
|
|
182
196
|
intermediate: a,
|
|
183
|
-
onChange: (u) =>
|
|
197
|
+
onChange: (u) => ce(t, u)
|
|
184
198
|
});
|
|
185
199
|
},
|
|
186
200
|
headerCellRenderer: () => {
|
|
187
|
-
const e =
|
|
188
|
-
const u = a.selected,
|
|
189
|
-
return u &&
|
|
190
|
-
}), l = e.some((a) => a.selected ||
|
|
191
|
-
return
|
|
201
|
+
const e = c(o), t = e.every((a) => {
|
|
202
|
+
const u = a.selected, r = Q(a);
|
|
203
|
+
return u && r;
|
|
204
|
+
}), l = e.some((a) => a.selected || X(a));
|
|
205
|
+
return W(L, {
|
|
192
206
|
value: t,
|
|
193
207
|
intermediate: l && !t,
|
|
194
208
|
// 目前是当前页全选就是全选状态,也就是每页的全选状态单独的
|
|
195
|
-
onChange:
|
|
209
|
+
onChange: de
|
|
196
210
|
});
|
|
197
211
|
}
|
|
198
212
|
});
|
|
199
|
-
},
|
|
213
|
+
}, ve = (e) => {
|
|
200
214
|
if (!e.children || e.children.length === 0)
|
|
201
215
|
return !1;
|
|
202
216
|
const t = e.children.filter((l) => l.selected).length;
|
|
203
217
|
return t > 0 && t < e.children.length;
|
|
204
218
|
};
|
|
205
|
-
function J(e) {
|
|
206
|
-
return e.children?.length ? !!e.selected && e.children.every(J) : !!e.selected;
|
|
207
|
-
}
|
|
208
219
|
function Q(e) {
|
|
209
|
-
return e.
|
|
220
|
+
return e.children?.length ? !!e.selected && e.children.every(Q) : !!e.selected;
|
|
210
221
|
}
|
|
211
222
|
function X(e) {
|
|
223
|
+
return e.selected ? !0 : e.children?.some(X) || !1;
|
|
224
|
+
}
|
|
225
|
+
function Y(e) {
|
|
212
226
|
return e.map((t) => {
|
|
213
227
|
const l = { ...t, selected: !1 };
|
|
214
|
-
return l.children && (l.children =
|
|
228
|
+
return l.children && (l.children = Y(l.children)), l;
|
|
215
229
|
});
|
|
216
230
|
}
|
|
217
|
-
const p = v(!1),
|
|
218
|
-
p.value = !0,
|
|
219
|
-
},
|
|
220
|
-
p.value = !1, n.value = [],
|
|
221
|
-
},
|
|
222
|
-
|
|
223
|
-
selectedRows: Object.values(
|
|
231
|
+
const p = v(!1), he = () => {
|
|
232
|
+
p.value = !0, fe();
|
|
233
|
+
}, q = () => {
|
|
234
|
+
p.value = !1, n.value = [], o.value = o.value.map((e) => (O(e, !1), e)), b.value = {}, S.value = Y(S.value), f.value.shift(), T();
|
|
235
|
+
}, pe = () => {
|
|
236
|
+
x("handleBatchDelete", {
|
|
237
|
+
selectedRows: Object.values(b.value).flat(),
|
|
224
238
|
// getAllSelectedNodes(finalTableData.value)
|
|
225
239
|
cb: () => {
|
|
226
|
-
|
|
240
|
+
q(), T();
|
|
227
241
|
}
|
|
228
242
|
});
|
|
229
|
-
},
|
|
230
|
-
n.value = [],
|
|
243
|
+
}, ge = () => {
|
|
244
|
+
n.value = [], T();
|
|
231
245
|
};
|
|
232
|
-
function
|
|
233
|
-
const e = Object.values(
|
|
234
|
-
|
|
246
|
+
function T() {
|
|
247
|
+
const e = Object.values(b.value).flat();
|
|
248
|
+
x("handleTableSelect", {
|
|
235
249
|
originNodeData: n.value,
|
|
236
250
|
allSelectedNodes: e,
|
|
237
251
|
// 所有选中的节点包含父节点
|
|
@@ -239,63 +253,63 @@ import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col"
|
|
|
239
253
|
// 所有选中的子节点
|
|
240
254
|
});
|
|
241
255
|
}
|
|
242
|
-
const
|
|
243
|
-
|
|
256
|
+
const w = () => {
|
|
257
|
+
k.value ? s.requestFn({
|
|
244
258
|
...s.params,
|
|
245
259
|
...i.value
|
|
246
260
|
}).then((e) => {
|
|
247
|
-
|
|
261
|
+
S.value = K(
|
|
248
262
|
e?.data[s.tableDataKey],
|
|
249
263
|
i.value[d.value],
|
|
250
264
|
$.value
|
|
251
265
|
) || [], _.value = e?.data?.total;
|
|
252
|
-
}) : (
|
|
266
|
+
}) : (S.value = K(
|
|
253
267
|
s.tableData,
|
|
254
268
|
i.value[d.value],
|
|
255
269
|
$.value
|
|
256
270
|
), _.value = s.total);
|
|
257
271
|
};
|
|
258
|
-
function
|
|
272
|
+
function K(e, t, l, a = !1) {
|
|
259
273
|
return e.map((u) => {
|
|
260
|
-
const
|
|
274
|
+
const r = l.has(u.id) || a, C = {
|
|
261
275
|
...u,
|
|
262
|
-
selected:
|
|
276
|
+
selected: r
|
|
263
277
|
};
|
|
264
|
-
return
|
|
265
|
-
|
|
278
|
+
return C.children && (C.children = K(
|
|
279
|
+
C.children,
|
|
266
280
|
t,
|
|
267
281
|
l,
|
|
268
|
-
|
|
282
|
+
r
|
|
269
283
|
// 将当前选中状态传递给子节点
|
|
270
|
-
)),
|
|
284
|
+
)), C;
|
|
271
285
|
});
|
|
272
286
|
}
|
|
273
|
-
const
|
|
274
|
-
i.value[d.value] = D[d.value],
|
|
275
|
-
},
|
|
276
|
-
i.value = { ...D },
|
|
277
|
-
},
|
|
278
|
-
e === "size" && (i.value[d.value] = 1),
|
|
287
|
+
const me = () => {
|
|
288
|
+
i.value[d.value] = D[d.value], w();
|
|
289
|
+
}, ye = () => {
|
|
290
|
+
i.value = { ...D }, w();
|
|
291
|
+
}, Z = (e) => {
|
|
292
|
+
e === "size" && (i.value[d.value] = 1), w(), x(ue.paginationChange, i.value);
|
|
279
293
|
}, N = v(0), P = () => {
|
|
280
294
|
let e = N.value;
|
|
281
295
|
e = p.value ? e - 50 : e;
|
|
282
|
-
let t =
|
|
283
|
-
p.value && (t =
|
|
284
|
-
const l = 1 /
|
|
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 = [
|
|
296
|
+
let t = c(f);
|
|
297
|
+
p.value && (t = c(f).slice(1));
|
|
298
|
+
const l = 1 / _e();
|
|
299
|
+
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)), j.value[a.key] && (a.sortable = !0), a)), p.value ? f.value = [c(f)[0], ...t] : f.value = [...t];
|
|
286
300
|
};
|
|
287
|
-
|
|
301
|
+
te(
|
|
288
302
|
() => p.value,
|
|
289
303
|
() => {
|
|
290
304
|
P();
|
|
291
305
|
}
|
|
292
|
-
),
|
|
306
|
+
), te(
|
|
293
307
|
() => s.tableDomWidth,
|
|
294
308
|
(e) => {
|
|
295
309
|
e && (N.value = e, P());
|
|
296
310
|
}
|
|
297
311
|
);
|
|
298
|
-
function
|
|
312
|
+
function Se(e, t = 200) {
|
|
299
313
|
let l;
|
|
300
314
|
return function() {
|
|
301
315
|
clearTimeout(l), l = setTimeout(() => {
|
|
@@ -303,105 +317,107 @@ import './assets/PaginationTable.css';const De = { class: "flex h-full flex-col"
|
|
|
303
317
|
}, t);
|
|
304
318
|
};
|
|
305
319
|
}
|
|
306
|
-
const
|
|
320
|
+
const ee = Se(() => {
|
|
307
321
|
N.value = document.querySelector(".TABLE-AREA").getBoundingClientRect().width, P();
|
|
308
322
|
}, 200);
|
|
309
|
-
return
|
|
310
|
-
|
|
323
|
+
return xe(() => {
|
|
324
|
+
w(), f.value = s.columns, N.value = document.querySelector(".TABLE-AREA").getBoundingClientRect().width, Te(() => {
|
|
311
325
|
P();
|
|
312
|
-
}), window.addEventListener("resize",
|
|
313
|
-
}),
|
|
314
|
-
getTableList:
|
|
315
|
-
search:
|
|
316
|
-
reset:
|
|
317
|
-
initBatchSelect:
|
|
318
|
-
handleCancelSelect:
|
|
319
|
-
handleResize:
|
|
320
|
-
}), (e, t) => (
|
|
321
|
-
|
|
322
|
-
|
|
326
|
+
}), window.addEventListener("resize", ee);
|
|
327
|
+
}), se({
|
|
328
|
+
getTableList: w,
|
|
329
|
+
search: me,
|
|
330
|
+
reset: ye,
|
|
331
|
+
initBatchSelect: ge,
|
|
332
|
+
handleCancelSelect: q,
|
|
333
|
+
handleResize: ee
|
|
334
|
+
}), (e, t) => (m(), B("div", Oe, [
|
|
335
|
+
y("div", qe, [
|
|
336
|
+
c(I)["filter-left"] ? (m(), B("div", Ke, [
|
|
323
337
|
A(e.$slots, "filter-left", {}, void 0, !0)
|
|
324
|
-
])) :
|
|
325
|
-
|
|
326
|
-
h.hasBatchSelect &&
|
|
327
|
-
p.value ? (
|
|
328
|
-
|
|
329
|
-
|
|
338
|
+
])) : R("", !0),
|
|
339
|
+
y("div", Me, [
|
|
340
|
+
h.hasBatchSelect && o.value.length ? (m(), B(we, { key: 0 }, [
|
|
341
|
+
p.value ? (m(), B("div", We, [
|
|
342
|
+
y("div", Fe, "已选" + Be(n.value.length) + "条数据", 1),
|
|
343
|
+
y("div", {
|
|
330
344
|
class: "fz-12 text-3b64ff mg-l-4 pointer",
|
|
331
|
-
onClick:
|
|
345
|
+
onClick: q
|
|
332
346
|
}, "取消选择"),
|
|
333
347
|
A(e.$slots, "btn-group", {}, () => [
|
|
334
|
-
|
|
335
|
-
|
|
348
|
+
y("div", Ve, [
|
|
349
|
+
M(c(ne), {
|
|
336
350
|
type: "danger",
|
|
337
|
-
onClick:
|
|
351
|
+
onClick: pe,
|
|
338
352
|
disabled: !n.value.length
|
|
339
353
|
}, {
|
|
340
354
|
default: E(() => [...t[6] || (t[6] = [
|
|
341
|
-
|
|
355
|
+
ae("删除", -1)
|
|
342
356
|
])]),
|
|
343
357
|
_: 1
|
|
344
358
|
}, 8, ["disabled"])
|
|
345
359
|
])
|
|
346
360
|
], !0)
|
|
347
|
-
])) : (
|
|
361
|
+
])) : (m(), le(c(ne), {
|
|
348
362
|
key: 0,
|
|
349
363
|
type: "default",
|
|
350
|
-
onClick:
|
|
364
|
+
onClick: he
|
|
351
365
|
}, {
|
|
352
366
|
default: E(() => [...t[5] || (t[5] = [
|
|
353
|
-
|
|
367
|
+
ae(" 批量选择 ", -1)
|
|
354
368
|
])]),
|
|
355
369
|
_: 1
|
|
356
370
|
}))
|
|
357
|
-
], 64)) :
|
|
358
|
-
|
|
371
|
+
], 64)) : R("", !0),
|
|
372
|
+
c(I)["filter-right"] ? A(e.$slots, "filter-right", { key: 1 }, void 0, !0) : R("", !0)
|
|
359
373
|
])
|
|
360
374
|
]),
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
375
|
+
y("div", $e, [
|
|
376
|
+
y("div", Le, [
|
|
377
|
+
M(c(Pe), null, {
|
|
364
378
|
default: E(({ width: l, height: a }) => [
|
|
365
|
-
|
|
366
|
-
"expanded-row-keys":
|
|
367
|
-
"onUpdate:expandedRowKeys": t[0] || (t[0] = (u) =>
|
|
379
|
+
M(c(Ae), {
|
|
380
|
+
"expanded-row-keys": V.value,
|
|
381
|
+
"onUpdate:expandedRowKeys": t[0] || (t[0] = (u) => V.value = u),
|
|
368
382
|
"expand-column-key": h.expandColumnKey,
|
|
369
383
|
columns: f.value,
|
|
370
|
-
data:
|
|
384
|
+
data: o.value,
|
|
371
385
|
width: l,
|
|
372
386
|
height: a,
|
|
373
|
-
fixed: ""
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
387
|
+
fixed: "",
|
|
388
|
+
"sort-state": j.value,
|
|
389
|
+
onColumnSort: oe
|
|
390
|
+
}, Re({ _: 2 }, [
|
|
391
|
+
ke(c(I), (u, r) => ({
|
|
392
|
+
name: r,
|
|
393
|
+
fn: E((C) => [
|
|
394
|
+
A(e.$slots, r, ze(Ne(C)), void 0, !0)
|
|
379
395
|
])
|
|
380
396
|
}))
|
|
381
|
-
]), 1032, ["expanded-row-keys", "expand-column-key", "columns", "data", "width", "height"])
|
|
397
|
+
]), 1032, ["expanded-row-keys", "expand-column-key", "columns", "data", "width", "height", "sort-state"])
|
|
382
398
|
]),
|
|
383
399
|
_: 3
|
|
384
400
|
})
|
|
385
401
|
]),
|
|
386
|
-
h.isPagination &&
|
|
387
|
-
h.isPagination ? (
|
|
402
|
+
h.isPagination && F.value > i.value[z.value] ? (m(), B("div", Ue, [
|
|
403
|
+
h.isPagination ? (m(), le(je, {
|
|
388
404
|
key: 0,
|
|
389
405
|
"current-page": i.value[d.value],
|
|
390
406
|
"onUpdate:currentPage": t[1] || (t[1] = (l) => i.value[d.value] = l),
|
|
391
|
-
"page-size": i.value[
|
|
392
|
-
"onUpdate:pageSize": t[2] || (t[2] = (l) => i.value[
|
|
407
|
+
"page-size": i.value[z.value],
|
|
408
|
+
"onUpdate:pageSize": t[2] || (t[2] = (l) => i.value[z.value] = l),
|
|
393
409
|
"page-sizes": h.pagination.pageSizes,
|
|
394
410
|
layout: h.pagination.layout,
|
|
395
|
-
total:
|
|
396
|
-
onSizeChange: t[3] || (t[3] = (l) =>
|
|
397
|
-
onCurrentChange: t[4] || (t[4] = (l) =>
|
|
398
|
-
}, null, 8, ["current-page", "page-size", "page-sizes", "layout", "total"])) :
|
|
399
|
-
])) :
|
|
411
|
+
total: F.value,
|
|
412
|
+
onSizeChange: t[3] || (t[3] = (l) => Z("size")),
|
|
413
|
+
onCurrentChange: t[4] || (t[4] = (l) => Z("page"))
|
|
414
|
+
}, null, 8, ["current-page", "page-size", "page-sizes", "layout", "total"])) : R("", !0)
|
|
415
|
+
])) : R("", !0)
|
|
400
416
|
])
|
|
401
417
|
]));
|
|
402
418
|
}
|
|
403
|
-
}),
|
|
419
|
+
}), Ge = /* @__PURE__ */ De(He, [["__scopeId", "data-v-e2f0d190"]]), tt = be(Ge);
|
|
404
420
|
export {
|
|
405
|
-
|
|
406
|
-
|
|
421
|
+
tt as PaginationTable,
|
|
422
|
+
tt as default
|
|
407
423
|
};
|
package/es/SearchBar.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { w as h } from "./chunks/index.bCzIhWFw.js";
|
|
2
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.
|
|
4
|
-
import { S as k } from "./chunks/layout.
|
|
3
|
+
import { C as E } from "./chunks/layout.DXw3haOP.js";
|
|
4
|
+
import { S as k } from "./chunks/layout.Cops0Vah.js";
|
|
5
5
|
import { componentType as w, emitsMap as u, codeMap as y, messageSuccess as A, AESCrypto as M } from "ling-yun-methods";
|
|
6
6
|
import { _ as S } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
7
7
|
import './assets/UpdatePasswordDialog.css';const U = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-e2f0d190] .el-table-v2__header-cell-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
package/es/assets/layout2.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.dialog-content[data-v-
|
|
1
|
+
.dialog-content[data-v-9fa594c0]{height:calc(100% - 230px);overflow:auto}.title-name[data-v-9fa594c0]{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}
|
package/es/assets/layout3.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.filter-form[data-v-
|
|
1
|
+
.filter-form[data-v-bdd1bd85]{grid-template-columns:repeat(2,1fr);gap:10px}.filter-preview-form[data-v-bdd1bd85]{display:flex}.filter-preview-form .el-form-item[data-v-bdd1bd85]{width:var(--v6636f7d5);margin-right:10px}.search-bar-form[data-v-bdd1bd85]{grid-template-columns:repeat(auto-fit,minmax(var(--v6636f7d5),1fr));gap:10px}.search-bar-form.el-form--inline .el-form-item[data-v-bdd1bd85]{margin-right:0;margin-bottom:10px}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-bdd1bd85]{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-bdd1bd85] .el-form-item__content{justify-content:end}.search-bar-form.el-form--inline.el-form--label-top[data-v-bdd1bd85]{display:grid}.search-bar-item--wide[data-v-bdd1bd85]{grid-column:span 2}.is-collapsed[data-v-fd5ceec9]{max-height:var(--v2e56a75a)}.operation-buttons[data-v-fd5ceec9]{width:var(--v63e17c4e);z-index:1}.h-32[data-v-fd5ceec9]{height:32px}.drawer-header[data-v-fd5ceec9]{display:flex;justify-content:space-between;align-items:center;width:100%}.drawer-header .shrink-button[data-v-fd5ceec9]{margin-left:auto}.border-top[data-v-fd5ceec9]{border-top:1px solid var(--parting-line)}[data-v-fd5ceec9] .el-drawer__body{padding:16px 0;display:flex;flex-direction:column;overflow:hidden}.filter-form-popover[data-v-fd5ceec9]{max-height:400px}[data-v-fd5ceec9] .el-drawer__header{margin-bottom:0;padding:16px 16px 0}
|