dld-vue-ui 0.1.0 → 0.1.2
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/README.md +21 -15
- package/dist/dld-vue-ui.js +285 -258
- package/dist/dld-vue-ui.umd.cjs +1 -1
- package/dist/packages/TableForm/index.vue.d.ts +49 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dld-vue-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as
|
|
2
|
-
const
|
|
1
|
+
import { h as X, openBlock as r, createElementBlock as y, normalizeStyle as z, renderSlot as w, defineComponent as M, createBlock as p, unref as o, withCtx as m, createElementVNode as g, ref as K, onMounted as T, resolveComponent as v, createVNode as b, createTextVNode as C, withDirectives as Q, vShow as Z, toDisplayString as N, useSlots as W, createCommentVNode as u, reactive as ee, watch as L, Fragment as D, normalizeClass as S, renderList as R } from "vue";
|
|
2
|
+
const te = {
|
|
3
3
|
name: "splitpanes",
|
|
4
4
|
emits: ["ready", "resize", "resized", "pane-click", "pane-maximize", "pane-add", "pane-remove", "splitter-click"],
|
|
5
5
|
props: {
|
|
@@ -97,19 +97,19 @@ const Z = {
|
|
|
97
97
|
nextReachedMinPanes: 0
|
|
98
98
|
};
|
|
99
99
|
const n = 0 + (this.pushOtherPanes ? 0 : s.prevPanesSize), i = 100 - (this.pushOtherPanes ? 0 : s.nextPanesSize), l = Math.max(Math.min(this.getCurrentDragPercentage(e), i), n);
|
|
100
|
-
let
|
|
101
|
-
const
|
|
102
|
-
if (
|
|
103
|
-
|
|
100
|
+
let d = [a, a + 1], f = this.panes[d[0]] || null, _ = this.panes[d[1]] || null;
|
|
101
|
+
const F = f.max < 100 && l >= f.max + s.prevPanesSize, V = _.max < 100 && l <= 100 - (_.max + this.sumNextPanesSize(a + 1));
|
|
102
|
+
if (F || V) {
|
|
103
|
+
F ? (f.size = f.max, _.size = Math.max(100 - f.max - s.prevPanesSize - s.nextPanesSize, 0)) : (f.size = Math.max(100 - _.max - s.prevPanesSize - this.sumNextPanesSize(a + 1), 0), _.size = _.max);
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
106
|
if (this.pushOtherPanes) {
|
|
107
|
-
const
|
|
108
|
-
if (!
|
|
107
|
+
const k = this.doPushOtherPanes(s, l);
|
|
108
|
+
if (!k)
|
|
109
109
|
return;
|
|
110
|
-
({ sums: s, panesToResize:
|
|
110
|
+
({ sums: s, panesToResize: d } = k), f = this.panes[d[0]] || null, _ = this.panes[d[1]] || null;
|
|
111
111
|
}
|
|
112
|
-
f !== null && (f.size = Math.min(Math.max(l - s.prevPanesSize - s.prevReachedMinPanes, f.min), f.max)),
|
|
112
|
+
f !== null && (f.size = Math.min(Math.max(l - s.prevPanesSize - s.prevReachedMinPanes, f.min), f.max)), _ !== null && (_.size = Math.min(Math.max(100 - l - s.nextPanesSize - s.nextReachedMinPanes, _.min), _.max));
|
|
113
113
|
},
|
|
114
114
|
doPushOtherPanes(e, a) {
|
|
115
115
|
const s = this.touch.activeSplitter, n = [s, s + 1];
|
|
@@ -210,21 +210,21 @@ const Z = {
|
|
|
210
210
|
equalizeAfterAddOrRemove({ addedPane: e, removedPane: a } = {}) {
|
|
211
211
|
let s = 100 / this.panesCount, n = 0;
|
|
212
212
|
const i = [], l = [];
|
|
213
|
-
e && e.givenSize !== null && (s = (100 - e.givenSize) / (this.panesCount - 1)), this.panes.forEach((
|
|
214
|
-
n -=
|
|
215
|
-
}), !(Math.abs(n) < 0.1) && (this.panes.forEach((
|
|
216
|
-
e && e.givenSize !== null && e.id ===
|
|
213
|
+
e && e.givenSize !== null && (s = (100 - e.givenSize) / (this.panesCount - 1)), this.panes.forEach((d) => {
|
|
214
|
+
n -= d.size, d.size >= d.max && i.push(d.id), d.size <= d.min && l.push(d.id);
|
|
215
|
+
}), !(Math.abs(n) < 0.1) && (this.panes.forEach((d) => {
|
|
216
|
+
e && e.givenSize !== null && e.id === d.id || (d.size = Math.max(Math.min(s, d.max), d.min)), n -= d.size, d.size >= d.max && i.push(d.id), d.size <= d.min && l.push(d.id);
|
|
217
217
|
}), n > 0.1 && this.readjustSizes(n, i, l));
|
|
218
218
|
},
|
|
219
219
|
readjustSizes(e, a, s) {
|
|
220
220
|
let n;
|
|
221
221
|
e > 0 ? n = e / (this.panesCount - a.length) : n = e / (this.panesCount - s.length), this.panes.forEach((i, l) => {
|
|
222
222
|
if (e > 0 && !a.includes(i.id)) {
|
|
223
|
-
const
|
|
224
|
-
e -= f, i.size =
|
|
223
|
+
const d = Math.max(Math.min(i.size + n, i.max), i.min), f = d - i.size;
|
|
224
|
+
e -= f, i.size = d;
|
|
225
225
|
} else if (!s.includes(i.id)) {
|
|
226
|
-
const
|
|
227
|
-
e -= f, i.size =
|
|
226
|
+
const d = Math.max(Math.min(i.size + n, i.max), i.min), f = d - i.size;
|
|
227
|
+
e -= f, i.size = d;
|
|
228
228
|
}
|
|
229
229
|
i.update({
|
|
230
230
|
[this.horizontal ? "height" : "width"]: `${this.indexedPanes[i.id].size}%`
|
|
@@ -261,7 +261,7 @@ const Z = {
|
|
|
261
261
|
this.container = this.$refs.container, this.checkSplitpanesNodes(), this.redoSplitters(), this.resetPaneSizes(), this.$emit("ready"), this.ready = !0;
|
|
262
262
|
},
|
|
263
263
|
render() {
|
|
264
|
-
return
|
|
264
|
+
return X(
|
|
265
265
|
"div",
|
|
266
266
|
{
|
|
267
267
|
ref: "container",
|
|
@@ -276,12 +276,12 @@ const Z = {
|
|
|
276
276
|
this.$slots.default()
|
|
277
277
|
);
|
|
278
278
|
}
|
|
279
|
-
},
|
|
279
|
+
}, ae = (e, a) => {
|
|
280
280
|
const s = e.__vccOpts || e;
|
|
281
281
|
for (const [n, i] of a)
|
|
282
282
|
s[n] = i;
|
|
283
283
|
return s;
|
|
284
|
-
},
|
|
284
|
+
}, ne = {
|
|
285
285
|
name: "pane",
|
|
286
286
|
inject: ["requestUpdate", "onPaneAdd", "onPaneRemove", "onPaneClick"],
|
|
287
287
|
props: {
|
|
@@ -326,169 +326,169 @@ const Z = {
|
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
};
|
|
329
|
-
function
|
|
329
|
+
function se(e, a, s, n, i, l) {
|
|
330
330
|
return r(), y("div", {
|
|
331
331
|
class: "splitpanes__pane",
|
|
332
|
-
onClick: a[0] || (a[0] = (
|
|
333
|
-
style:
|
|
332
|
+
onClick: a[0] || (a[0] = (d) => l.onPaneClick(d, e._.uid)),
|
|
333
|
+
style: z(e.style)
|
|
334
334
|
}, [
|
|
335
|
-
|
|
335
|
+
w(e.$slots, "default")
|
|
336
336
|
], 4);
|
|
337
337
|
}
|
|
338
|
-
const
|
|
339
|
-
const
|
|
338
|
+
const ie = /* @__PURE__ */ ae(ne, [["render", se]]);
|
|
339
|
+
const le = /* @__PURE__ */ M({
|
|
340
340
|
__name: "index",
|
|
341
341
|
props: {
|
|
342
342
|
styles: { type: Object, required: !1, default: () => ({ width: "100%", height: "100%" }) },
|
|
343
343
|
horizontal: { type: Boolean, required: !1, default: !1 }
|
|
344
344
|
},
|
|
345
345
|
setup(e) {
|
|
346
|
-
return (a, s) => (r(),
|
|
346
|
+
return (a, s) => (r(), p(o(te), {
|
|
347
347
|
horizontal: e.horizontal,
|
|
348
|
-
style:
|
|
348
|
+
style: z(e.styles),
|
|
349
349
|
class: "splitpanes"
|
|
350
350
|
}, {
|
|
351
351
|
default: m(() => [
|
|
352
|
-
|
|
352
|
+
w(a.$slots, "default", {}, void 0, !0)
|
|
353
353
|
]),
|
|
354
354
|
_: 3
|
|
355
355
|
}, 8, ["horizontal", "style"]));
|
|
356
356
|
}
|
|
357
357
|
});
|
|
358
|
-
const
|
|
358
|
+
const $ = (e, a) => {
|
|
359
359
|
const s = e.__vccOpts || e;
|
|
360
360
|
for (const [n, i] of a)
|
|
361
361
|
s[n] = i;
|
|
362
362
|
return s;
|
|
363
|
-
},
|
|
363
|
+
}, oe = /* @__PURE__ */ $(le, [["__scopeId", "data-v-4226b5d2"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/SplitPanes/index.vue"]]), re = /* @__PURE__ */ M({
|
|
364
364
|
__name: "pane",
|
|
365
365
|
props: {
|
|
366
366
|
styles: { type: Object, required: !0, default: () => ({ background: "#ececec" }) }
|
|
367
367
|
},
|
|
368
368
|
setup(e) {
|
|
369
|
-
return (a, s) => (r(),
|
|
370
|
-
style:
|
|
369
|
+
return (a, s) => (r(), p(o(ie), {
|
|
370
|
+
style: z(e.styles)
|
|
371
371
|
}, {
|
|
372
372
|
default: m(() => [
|
|
373
|
-
|
|
373
|
+
w(a.$slots, "default")
|
|
374
374
|
]),
|
|
375
375
|
_: 3
|
|
376
376
|
}, 8, ["style"]));
|
|
377
377
|
}
|
|
378
|
-
}),
|
|
378
|
+
}), de = /* @__PURE__ */ $(re, [["__file", "D:/Code/front/dld-vue-ui/src/packages/SplitPanes/pane.vue"]]);
|
|
379
379
|
/*! Element Plus Icons Vue v2.0.10 */
|
|
380
|
-
var
|
|
380
|
+
var P = (e, a) => {
|
|
381
381
|
let s = e.__vccOpts || e;
|
|
382
382
|
for (let [n, i] of a)
|
|
383
383
|
s[n] = i;
|
|
384
384
|
return s;
|
|
385
|
-
},
|
|
385
|
+
}, ue = {
|
|
386
386
|
name: "CircleClose"
|
|
387
|
-
},
|
|
387
|
+
}, ce = {
|
|
388
388
|
viewBox: "0 0 1024 1024",
|
|
389
389
|
xmlns: "http://www.w3.org/2000/svg"
|
|
390
|
-
},
|
|
390
|
+
}, pe = /* @__PURE__ */ g("path", {
|
|
391
391
|
fill: "currentColor",
|
|
392
392
|
d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"
|
|
393
|
-
}, null, -1),
|
|
393
|
+
}, null, -1), he = /* @__PURE__ */ g("path", {
|
|
394
394
|
fill: "currentColor",
|
|
395
395
|
d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"
|
|
396
|
-
}, null, -1),
|
|
397
|
-
|
|
398
|
-
|
|
396
|
+
}, null, -1), me = [
|
|
397
|
+
pe,
|
|
398
|
+
he
|
|
399
399
|
];
|
|
400
|
-
function
|
|
401
|
-
return r(), y("svg",
|
|
400
|
+
function fe(e, a, s, n, i, l) {
|
|
401
|
+
return r(), y("svg", ce, me);
|
|
402
402
|
}
|
|
403
|
-
var
|
|
403
|
+
var ve = /* @__PURE__ */ P(ue, [["render", fe], ["__file", "circle-close.vue"]]), ze = {
|
|
404
404
|
name: "DeleteFilled"
|
|
405
|
-
},
|
|
405
|
+
}, _e = {
|
|
406
406
|
viewBox: "0 0 1024 1024",
|
|
407
407
|
xmlns: "http://www.w3.org/2000/svg"
|
|
408
|
-
},
|
|
408
|
+
}, ge = /* @__PURE__ */ g("path", {
|
|
409
409
|
fill: "currentColor",
|
|
410
410
|
d: "M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64h256zm64 0h192v-64H416v64zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32H192zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32zm192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32z"
|
|
411
|
-
}, null, -1),
|
|
412
|
-
|
|
411
|
+
}, null, -1), ye = [
|
|
412
|
+
ge
|
|
413
413
|
];
|
|
414
|
-
function
|
|
415
|
-
return r(), y("svg",
|
|
414
|
+
function xe(e, a, s, n, i, l) {
|
|
415
|
+
return r(), y("svg", _e, ye);
|
|
416
416
|
}
|
|
417
|
-
var
|
|
417
|
+
var we = /* @__PURE__ */ P(ze, [["render", xe], ["__file", "delete-filled.vue"]]), Se = {
|
|
418
418
|
name: "Delete"
|
|
419
|
-
},
|
|
419
|
+
}, be = {
|
|
420
420
|
viewBox: "0 0 1024 1024",
|
|
421
421
|
xmlns: "http://www.w3.org/2000/svg"
|
|
422
|
-
},
|
|
422
|
+
}, Pe = /* @__PURE__ */ g("path", {
|
|
423
423
|
fill: "currentColor",
|
|
424
424
|
d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"
|
|
425
|
-
}, null, -1),
|
|
426
|
-
|
|
425
|
+
}, null, -1), Fe = [
|
|
426
|
+
Pe
|
|
427
427
|
];
|
|
428
|
-
function
|
|
429
|
-
return r(), y("svg",
|
|
428
|
+
function Ce(e, a, s, n, i, l) {
|
|
429
|
+
return r(), y("svg", be, Fe);
|
|
430
430
|
}
|
|
431
|
-
var
|
|
431
|
+
var ke = /* @__PURE__ */ P(Se, [["render", Ce], ["__file", "delete.vue"]]), Ee = {
|
|
432
432
|
name: "Edit"
|
|
433
|
-
},
|
|
433
|
+
}, Me = {
|
|
434
434
|
viewBox: "0 0 1024 1024",
|
|
435
435
|
xmlns: "http://www.w3.org/2000/svg"
|
|
436
|
-
},
|
|
436
|
+
}, $e = /* @__PURE__ */ g("path", {
|
|
437
437
|
fill: "currentColor",
|
|
438
438
|
d: "M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"
|
|
439
|
-
}, null, -1),
|
|
439
|
+
}, null, -1), Ve = /* @__PURE__ */ g("path", {
|
|
440
440
|
fill: "currentColor",
|
|
441
441
|
d: "m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"
|
|
442
|
-
}, null, -1),
|
|
443
|
-
|
|
444
|
-
|
|
442
|
+
}, null, -1), Be = [
|
|
443
|
+
$e,
|
|
444
|
+
Ve
|
|
445
445
|
];
|
|
446
|
-
function
|
|
447
|
-
return r(), y("svg",
|
|
446
|
+
function qe(e, a, s, n, i, l) {
|
|
447
|
+
return r(), y("svg", Me, Be);
|
|
448
448
|
}
|
|
449
|
-
var
|
|
449
|
+
var Ne = /* @__PURE__ */ P(Ee, [["render", qe], ["__file", "edit.vue"]]), De = {
|
|
450
450
|
name: "FolderOpened"
|
|
451
|
-
},
|
|
451
|
+
}, Ue = {
|
|
452
452
|
viewBox: "0 0 1024 1024",
|
|
453
453
|
xmlns: "http://www.w3.org/2000/svg"
|
|
454
|
-
},
|
|
454
|
+
}, Le = /* @__PURE__ */ g("path", {
|
|
455
455
|
fill: "currentColor",
|
|
456
456
|
d: "M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"
|
|
457
|
-
}, null, -1),
|
|
458
|
-
|
|
457
|
+
}, null, -1), Re = [
|
|
458
|
+
Le
|
|
459
459
|
];
|
|
460
|
-
function
|
|
461
|
-
return r(), y("svg",
|
|
460
|
+
function Te(e, a, s, n, i, l) {
|
|
461
|
+
return r(), y("svg", Ue, Re);
|
|
462
462
|
}
|
|
463
|
-
var
|
|
463
|
+
var We = /* @__PURE__ */ P(De, [["render", Te], ["__file", "folder-opened.vue"]]), Ie = {
|
|
464
464
|
name: "Search"
|
|
465
|
-
},
|
|
465
|
+
}, He = {
|
|
466
466
|
viewBox: "0 0 1024 1024",
|
|
467
467
|
xmlns: "http://www.w3.org/2000/svg"
|
|
468
|
-
},
|
|
468
|
+
}, Oe = /* @__PURE__ */ g("path", {
|
|
469
469
|
fill: "currentColor",
|
|
470
470
|
d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"
|
|
471
471
|
}, null, -1), Ae = [
|
|
472
|
-
|
|
472
|
+
Oe
|
|
473
473
|
];
|
|
474
|
-
function
|
|
475
|
-
return r(), y("svg",
|
|
474
|
+
function je(e, a, s, n, i, l) {
|
|
475
|
+
return r(), y("svg", He, Ae);
|
|
476
476
|
}
|
|
477
|
-
var
|
|
477
|
+
var Ge = /* @__PURE__ */ P(Ie, [["render", je], ["__file", "search.vue"]]), Ye = {
|
|
478
478
|
name: "Upload"
|
|
479
|
-
},
|
|
479
|
+
}, Je = {
|
|
480
480
|
viewBox: "0 0 1024 1024",
|
|
481
481
|
xmlns: "http://www.w3.org/2000/svg"
|
|
482
|
-
},
|
|
482
|
+
}, Xe = /* @__PURE__ */ g("path", {
|
|
483
483
|
fill: "currentColor",
|
|
484
484
|
d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"
|
|
485
|
-
}, null, -1),
|
|
486
|
-
|
|
485
|
+
}, null, -1), Ke = [
|
|
486
|
+
Xe
|
|
487
487
|
];
|
|
488
|
-
function
|
|
489
|
-
return r(), y("svg",
|
|
488
|
+
function Qe(e, a, s, n, i, l) {
|
|
489
|
+
return r(), y("svg", Je, Ke);
|
|
490
490
|
}
|
|
491
|
-
var
|
|
491
|
+
var Ze = /* @__PURE__ */ P(Ye, [["render", Qe], ["__file", "upload.vue"]]), et = function() {
|
|
492
492
|
function e(a) {
|
|
493
493
|
if (!a)
|
|
494
494
|
throw new TypeError("Invalid argument; `value` has no value.");
|
|
@@ -520,68 +520,68 @@ var Ke = /* @__PURE__ */ S(Ge, [["render", Xe], ["__file", "upload.vue"]]), Qe =
|
|
|
520
520
|
value: this.value
|
|
521
521
|
};
|
|
522
522
|
}, e.validator = new RegExp("^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$", "i"), e.EMPTY = "00000000-0000-0000-0000-000000000000", e;
|
|
523
|
-
}(),
|
|
524
|
-
const
|
|
523
|
+
}(), tt = et;
|
|
524
|
+
const at = { style: {} }, nt = ["id"], st = { class: "filename" }, it = /* @__PURE__ */ M({
|
|
525
525
|
__name: "index",
|
|
526
526
|
props: {
|
|
527
527
|
size: { type: String, required: !1, default: "default" },
|
|
528
528
|
name: { type: String, required: !1, default: "\u4E0A\u4F20\u6587\u4EF6" },
|
|
529
|
-
icon: { type: null, required: !1, default:
|
|
529
|
+
icon: { type: null, required: !1, default: Ze },
|
|
530
530
|
type: { type: null, required: !1, default: "success" }
|
|
531
531
|
},
|
|
532
532
|
emits: ["upload"],
|
|
533
533
|
setup(e, { expose: a, emit: s }) {
|
|
534
|
-
let n =
|
|
535
|
-
function
|
|
534
|
+
let n = tt.create().toString(), i, l = K("");
|
|
535
|
+
function d() {
|
|
536
536
|
i.click();
|
|
537
537
|
}
|
|
538
538
|
function f() {
|
|
539
539
|
l.value = i.value;
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function _() {
|
|
542
542
|
i.files !== null && s("upload", i.files[0]);
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function F() {
|
|
545
545
|
i.value = "", l.value = "";
|
|
546
546
|
}
|
|
547
|
-
return
|
|
547
|
+
return T(() => {
|
|
548
548
|
i = document.getElementById(n);
|
|
549
549
|
}), a({
|
|
550
|
-
Clear:
|
|
551
|
-
}), (
|
|
552
|
-
const
|
|
553
|
-
return r(), y("div",
|
|
554
|
-
b(
|
|
550
|
+
Clear: F
|
|
551
|
+
}), (V, k) => {
|
|
552
|
+
const c = v("el-button");
|
|
553
|
+
return r(), y("div", at, [
|
|
554
|
+
b(c, {
|
|
555
555
|
type: e.type,
|
|
556
|
-
icon:
|
|
556
|
+
icon: o(We),
|
|
557
557
|
size: e.size,
|
|
558
558
|
class: "btn",
|
|
559
|
-
onClick:
|
|
559
|
+
onClick: d
|
|
560
560
|
}, {
|
|
561
561
|
default: m(() => [
|
|
562
|
-
|
|
562
|
+
C("\u9009\u62E9\u6587\u4EF6")
|
|
563
563
|
]),
|
|
564
564
|
_: 1
|
|
565
565
|
}, 8, ["type", "icon", "size"]),
|
|
566
|
-
|
|
566
|
+
Q(g("input", {
|
|
567
567
|
type: "file",
|
|
568
|
-
id:
|
|
568
|
+
id: o(n),
|
|
569
569
|
onChange: f
|
|
570
|
-
}, null, 40,
|
|
571
|
-
[
|
|
570
|
+
}, null, 40, nt), [
|
|
571
|
+
[Z, !1]
|
|
572
572
|
]),
|
|
573
|
-
|
|
574
|
-
b(
|
|
573
|
+
g("span", st, N(o(l)), 1),
|
|
574
|
+
b(c, {
|
|
575
575
|
type: e.type,
|
|
576
576
|
icon: e.icon,
|
|
577
577
|
size: e.size,
|
|
578
|
-
disabled:
|
|
578
|
+
disabled: o(l) == null || o(l) == "",
|
|
579
579
|
class: "btn",
|
|
580
|
-
title:
|
|
581
|
-
onClick:
|
|
580
|
+
title: o(l) == null || o(l) == "" ? "\u8BF7\u9009\u62E9\u6587\u4EF6" : "",
|
|
581
|
+
onClick: _
|
|
582
582
|
}, {
|
|
583
583
|
default: m(() => [
|
|
584
|
-
|
|
584
|
+
C(N(e.name), 1)
|
|
585
585
|
]),
|
|
586
586
|
_: 1
|
|
587
587
|
}, 8, ["type", "icon", "size", "disabled", "title"])
|
|
@@ -589,7 +589,7 @@ const et = { style: {} }, tt = ["id"], at = { class: "filename" }, nt = /* @__PU
|
|
|
589
589
|
};
|
|
590
590
|
}
|
|
591
591
|
});
|
|
592
|
-
const
|
|
592
|
+
const lt = /* @__PURE__ */ $(it, [["__scopeId", "data-v-83b9cdd7"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/UpLoadFile/index.vue"]]), ot = /* @__PURE__ */ M({
|
|
593
593
|
__name: "index",
|
|
594
594
|
props: {
|
|
595
595
|
asideWidth: { type: Number, required: !1, default: 220 },
|
|
@@ -597,58 +597,58 @@ const st = /* @__PURE__ */ M(nt, [["__scopeId", "data-v-83b9cdd7"], ["__file", "
|
|
|
597
597
|
horizontal: { type: Boolean, required: !1, default: !1 }
|
|
598
598
|
},
|
|
599
599
|
setup(e) {
|
|
600
|
-
const a =
|
|
600
|
+
const a = W();
|
|
601
601
|
return (s, n) => {
|
|
602
|
-
const i = v("el-aside"), l = v("el-header"),
|
|
603
|
-
return r(),
|
|
602
|
+
const i = v("el-aside"), l = v("el-header"), d = v("el-main"), f = v("el-container");
|
|
603
|
+
return r(), p(f, { class: "container" }, {
|
|
604
604
|
default: m(() => [
|
|
605
|
-
|
|
605
|
+
o(a).aside && !e.horizontal ? (r(), p(i, {
|
|
606
606
|
key: 0,
|
|
607
607
|
class: "aside",
|
|
608
|
-
style:
|
|
608
|
+
style: z("width: " + e.asideWidth + "px;")
|
|
609
609
|
}, {
|
|
610
610
|
default: m(() => [
|
|
611
|
-
|
|
611
|
+
w(s.$slots, "aside", {}, void 0, !0)
|
|
612
612
|
]),
|
|
613
613
|
_: 3
|
|
614
614
|
}, 8, ["style"])) : u("v-if", !0),
|
|
615
|
-
|
|
615
|
+
o(a).header && e.horizontal ? (r(), p(l, {
|
|
616
616
|
key: 1,
|
|
617
617
|
class: "inside_header",
|
|
618
|
-
style:
|
|
618
|
+
style: z("height: " + e.headerMaxHeight + "px;")
|
|
619
619
|
}, {
|
|
620
620
|
default: m(() => [
|
|
621
|
-
|
|
621
|
+
w(s.$slots, "header", {}, void 0, !0)
|
|
622
622
|
]),
|
|
623
623
|
_: 3
|
|
624
624
|
}, 8, ["style"])) : u("v-if", !0),
|
|
625
|
-
b(
|
|
625
|
+
b(d, { class: "main" }, {
|
|
626
626
|
default: m(() => [
|
|
627
627
|
b(f, { class: "inside_container" }, {
|
|
628
628
|
default: m(() => [
|
|
629
|
-
|
|
629
|
+
o(a).header && !e.horizontal ? (r(), p(l, {
|
|
630
630
|
key: 0,
|
|
631
631
|
class: "inside_header",
|
|
632
|
-
style:
|
|
632
|
+
style: z("height: " + e.headerMaxHeight + "px;")
|
|
633
633
|
}, {
|
|
634
634
|
default: m(() => [
|
|
635
|
-
|
|
635
|
+
w(s.$slots, "header", {}, void 0, !0)
|
|
636
636
|
]),
|
|
637
637
|
_: 3
|
|
638
638
|
}, 8, ["style"])) : u("v-if", !0),
|
|
639
|
-
|
|
639
|
+
o(a).aside && e.horizontal ? (r(), p(i, {
|
|
640
640
|
key: 1,
|
|
641
641
|
class: "aside",
|
|
642
|
-
style:
|
|
642
|
+
style: z("width: " + e.asideWidth + "px;")
|
|
643
643
|
}, {
|
|
644
644
|
default: m(() => [
|
|
645
|
-
|
|
645
|
+
w(s.$slots, "aside", {}, void 0, !0)
|
|
646
646
|
]),
|
|
647
647
|
_: 3
|
|
648
648
|
}, 8, ["style"])) : u("v-if", !0),
|
|
649
|
-
b(
|
|
649
|
+
b(d, { class: "inside_main" }, {
|
|
650
650
|
default: m(() => [
|
|
651
|
-
|
|
651
|
+
w(s.$slots, "default", {}, void 0, !0)
|
|
652
652
|
]),
|
|
653
653
|
_: 3
|
|
654
654
|
})
|
|
@@ -664,10 +664,10 @@ const st = /* @__PURE__ */ M(nt, [["__scopeId", "data-v-83b9cdd7"], ["__file", "
|
|
|
664
664
|
};
|
|
665
665
|
}
|
|
666
666
|
});
|
|
667
|
-
const
|
|
667
|
+
const rt = /* @__PURE__ */ $(ot, [["__scopeId", "data-v-5d747d9d"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/Layout/index.vue"]]), dt = {
|
|
668
668
|
key: 0,
|
|
669
669
|
class: "header"
|
|
670
|
-
},
|
|
670
|
+
}, ut = { class: "header_title" }, ct = { class: "header_title" }, pt = { class: "pagination" }, ht = /* @__PURE__ */ M({
|
|
671
671
|
__name: "index",
|
|
672
672
|
props: {
|
|
673
673
|
maxHeight: { type: Number, required: !1, default: 550 },
|
|
@@ -689,58 +689,69 @@ const lt = /* @__PURE__ */ M(it, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
689
689
|
clear: { type: Boolean, required: !1 },
|
|
690
690
|
edit: { type: Boolean, required: !1 },
|
|
691
691
|
delete: { type: Boolean, required: !1 },
|
|
692
|
-
deleteTitle: { type: String, required: !1 }
|
|
692
|
+
deleteTitle: { type: String, required: !1 },
|
|
693
|
+
pagination: { type: Boolean, required: !1, default: !1 },
|
|
694
|
+
small: { type: Boolean, required: !1, default: !1 },
|
|
695
|
+
total: { type: Number, required: !1, default: 0 },
|
|
696
|
+
hideOnSinglePage: { type: Boolean, required: !1, default: !1 }
|
|
693
697
|
},
|
|
694
|
-
emits: ["row-click", "row-dblclick", "selection-change", "search", "clear", "delete", "edit"],
|
|
698
|
+
emits: ["row-click", "row-dblclick", "selection-change", "search", "clear", "delete", "edit", "page-index", "page-size"],
|
|
695
699
|
setup(e, { emit: a }) {
|
|
696
700
|
const s = e;
|
|
697
|
-
let n =
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
701
|
+
let n = ee({
|
|
702
|
+
pageIndex: 1,
|
|
703
|
+
pageSize: 5
|
|
704
|
+
});
|
|
705
|
+
const i = W(), l = (c) => {
|
|
706
|
+
a("row-click", c);
|
|
707
|
+
}, d = (c) => {
|
|
708
|
+
a("row-click", c);
|
|
709
|
+
}, f = (c) => {
|
|
710
|
+
a("selection-change", c);
|
|
711
|
+
}, _ = () => {
|
|
705
712
|
if (s.tableColumn.length > 0)
|
|
706
|
-
for (let
|
|
707
|
-
let
|
|
708
|
-
n[
|
|
713
|
+
for (let c = 0; c < s.tableColumn.length; c++) {
|
|
714
|
+
let x = s.tableColumn[c];
|
|
715
|
+
n[x.prop] = null;
|
|
709
716
|
}
|
|
710
717
|
a("clear");
|
|
711
|
-
},
|
|
718
|
+
}, F = () => {
|
|
712
719
|
a("search", n);
|
|
713
|
-
},
|
|
714
|
-
a("edit",
|
|
715
|
-
},
|
|
716
|
-
a("delete",
|
|
720
|
+
}, V = (c) => {
|
|
721
|
+
a("edit", c);
|
|
722
|
+
}, k = (c) => {
|
|
723
|
+
a("delete", c);
|
|
717
724
|
};
|
|
718
|
-
return
|
|
725
|
+
return L(() => n.pageIndex, (c, x) => {
|
|
726
|
+
a("page-index", Number(c), Number(x));
|
|
727
|
+
}), L(() => n.pageSize, (c, x) => {
|
|
728
|
+
a("page-size", Number(c), Number(x));
|
|
729
|
+
}), T(() => {
|
|
719
730
|
if (s.tableColumn.length > 0)
|
|
720
|
-
for (let
|
|
721
|
-
let
|
|
722
|
-
n[
|
|
731
|
+
for (let c = 0; c < s.tableColumn.length; c++) {
|
|
732
|
+
let x = s.tableColumn[c];
|
|
733
|
+
n[x.prop] = null;
|
|
723
734
|
}
|
|
724
|
-
}), (
|
|
725
|
-
const E = v("el-table-column"),
|
|
726
|
-
return r(), y(
|
|
727
|
-
|
|
728
|
-
|
|
735
|
+
}), (c, x) => {
|
|
736
|
+
const E = v("el-table-column"), I = v("el-input"), H = v("el-input-number"), O = v("el-option"), A = v("el-select"), B = v("el-date-picker"), U = v("el-time-picker"), j = v("el-switch"), q = v("el-button"), G = v("el-popconfirm"), Y = v("el-table"), J = v("el-pagination");
|
|
737
|
+
return r(), y(D, null, [
|
|
738
|
+
o(i).header ? (r(), y("div", dt, [
|
|
739
|
+
w(c.$slots, "header", {}, void 0, !0)
|
|
729
740
|
])) : u("v-if", !0),
|
|
730
|
-
b(
|
|
741
|
+
b(Y, {
|
|
731
742
|
data: e.tableData,
|
|
732
|
-
class:
|
|
743
|
+
class: S([e.size && e.size == "small" ? "mini-table" : "table"]),
|
|
733
744
|
"max-height": e.maxHeight,
|
|
734
745
|
size: e.size,
|
|
735
746
|
stripe: e.stripe,
|
|
736
747
|
border: e.border,
|
|
737
748
|
"highlight-current-row": e.highLight,
|
|
738
749
|
onRowClick: l,
|
|
739
|
-
onRowDblclick:
|
|
750
|
+
onRowDblclick: d,
|
|
740
751
|
onSelectionChange: f
|
|
741
752
|
}, {
|
|
742
753
|
default: m(() => [
|
|
743
|
-
e.type && e.type == "index" ? (r(),
|
|
754
|
+
e.type && e.type == "index" ? (r(), p(E, {
|
|
744
755
|
key: 0,
|
|
745
756
|
align: "center",
|
|
746
757
|
type: "index",
|
|
@@ -748,14 +759,14 @@ const lt = /* @__PURE__ */ M(it, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
748
759
|
fixed: e.typeIsFixed ? "left" : !1,
|
|
749
760
|
label: e.typeLabel
|
|
750
761
|
}, null, 8, ["width", "fixed", "label"])) : u("v-if", !0),
|
|
751
|
-
e.type == "selection" ? (r(),
|
|
762
|
+
e.type == "selection" ? (r(), p(E, {
|
|
752
763
|
key: 1,
|
|
753
764
|
align: "center",
|
|
754
765
|
type: "selection",
|
|
755
766
|
width: e.typeWidth + "px",
|
|
756
767
|
fixed: e.typeIsFixed ? "left" : !1
|
|
757
768
|
}, null, 8, ["width", "fixed"])) : u("v-if", !0),
|
|
758
|
-
e.type == "expand" ? (r(),
|
|
769
|
+
e.type == "expand" ? (r(), p(E, {
|
|
759
770
|
key: 2,
|
|
760
771
|
align: "center",
|
|
761
772
|
type: "expand",
|
|
@@ -764,213 +775,213 @@ const lt = /* @__PURE__ */ M(it, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
764
775
|
label: e.typeLabel
|
|
765
776
|
}, {
|
|
766
777
|
default: m((t) => [
|
|
767
|
-
|
|
778
|
+
w(c.$slots, "expand", {
|
|
768
779
|
row: t.row
|
|
769
780
|
}, void 0, !0)
|
|
770
781
|
]),
|
|
771
782
|
_: 3
|
|
772
783
|
}, 8, ["width", "fixed", "label"])) : u("v-if", !0),
|
|
773
|
-
(r(!0), y(
|
|
784
|
+
(r(!0), y(D, null, R(e.tableColumn, (t) => (r(), p(E, {
|
|
774
785
|
prop: t.prop,
|
|
775
|
-
width:
|
|
786
|
+
width: t.width ? t.width : "",
|
|
776
787
|
fixed: t.fixed ? t.fixed : !1,
|
|
777
788
|
align: t.align ? t.align : "left"
|
|
778
789
|
}, {
|
|
779
790
|
header: m(() => [
|
|
780
|
-
|
|
791
|
+
g("div", ut, N(t.label), 1),
|
|
781
792
|
u(" \u6587\u672C\u641C\u7D22\u6846 "),
|
|
782
|
-
t.search && (!t.type || t.type == "text") ? (r(),
|
|
793
|
+
t.search && (!t.type || t.type == "text") ? (r(), p(I, {
|
|
783
794
|
key: 0,
|
|
784
|
-
modelValue:
|
|
785
|
-
"onUpdate:modelValue": (
|
|
795
|
+
modelValue: o(n)[t.prop],
|
|
796
|
+
"onUpdate:modelValue": (h) => o(n)[t.prop] = h,
|
|
786
797
|
size: t.size,
|
|
787
798
|
clearable: "",
|
|
788
|
-
style:
|
|
799
|
+
style: z(t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"),
|
|
789
800
|
disabled: t.disabled,
|
|
790
801
|
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u8F93\u5165" + t.label,
|
|
791
|
-
class:
|
|
802
|
+
class: S([t.align && t.align == "center" ? "center" : ""])
|
|
792
803
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "placeholder", "class"])) : u("v-if", !0),
|
|
793
804
|
u(" \u6570\u5B57\u6846\u641C\u7D22 "),
|
|
794
|
-
t.search && t.type == "number" ? (r(),
|
|
805
|
+
t.search && t.type == "number" ? (r(), p(H, {
|
|
795
806
|
key: 1,
|
|
796
|
-
modelValue:
|
|
797
|
-
"onUpdate:modelValue": (
|
|
807
|
+
modelValue: o(n)[t.prop],
|
|
808
|
+
"onUpdate:modelValue": (h) => o(n)[t.prop] = h,
|
|
798
809
|
size: t.size,
|
|
799
810
|
clearable: "",
|
|
800
|
-
style:
|
|
811
|
+
style: z(t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"),
|
|
801
812
|
disabled: t.disabled,
|
|
802
813
|
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u8F93\u5165" + t.label,
|
|
803
|
-
class:
|
|
814
|
+
class: S([t.align && t.align == "center" ? "center" : ""]),
|
|
804
815
|
max: t.max != null ? t.max : 1 / 0,
|
|
805
816
|
min: t.min != null ? t.min : -1 / 0,
|
|
806
817
|
step: t.step != null ? t.step : 1
|
|
807
818
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "placeholder", "class", "max", "min", "step"])) : u("v-if", !0),
|
|
808
819
|
u(" \u9009\u62E9\u641C\u7D22 "),
|
|
809
|
-
t.search && t.type == "select" ? (r(),
|
|
820
|
+
t.search && t.type == "select" ? (r(), p(A, {
|
|
810
821
|
key: 2,
|
|
811
|
-
modelValue:
|
|
812
|
-
"onUpdate:modelValue": (
|
|
822
|
+
modelValue: o(n)[t.prop],
|
|
823
|
+
"onUpdate:modelValue": (h) => o(n)[t.prop] = h,
|
|
813
824
|
size: t.size,
|
|
814
825
|
clearable: "",
|
|
815
|
-
style:
|
|
826
|
+
style: z(t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"),
|
|
816
827
|
disabled: t.disabled,
|
|
817
828
|
multiple: t.multiple,
|
|
818
829
|
"collapse-tags": t.omit,
|
|
819
830
|
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9" + t.label,
|
|
820
|
-
class:
|
|
831
|
+
class: S([t.align && t.align == "center" ? "center" : ""])
|
|
821
832
|
}, {
|
|
822
833
|
default: m(() => [
|
|
823
|
-
(r(!0), y(
|
|
824
|
-
label:
|
|
825
|
-
value:
|
|
826
|
-
disabled:
|
|
834
|
+
(r(!0), y(D, null, R(t.options, (h) => (r(), p(O, {
|
|
835
|
+
label: h.label ? h.label : h.value,
|
|
836
|
+
value: h.value,
|
|
837
|
+
disabled: h.disabled
|
|
827
838
|
}, null, 8, ["label", "value", "disabled"]))), 256))
|
|
828
839
|
]),
|
|
829
840
|
_: 2
|
|
830
841
|
}, 1032, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "multiple", "collapse-tags", "placeholder", "class"])) : u("v-if", !0),
|
|
831
842
|
u(" \u65E5\u671F\u9009\u62E9 "),
|
|
832
|
-
t.search && t.type == "date" ? (r(),
|
|
843
|
+
t.search && t.type == "date" ? (r(), p(B, {
|
|
833
844
|
key: 3,
|
|
834
|
-
modelValue:
|
|
835
|
-
"onUpdate:modelValue": (
|
|
845
|
+
modelValue: o(n)[t.prop],
|
|
846
|
+
"onUpdate:modelValue": (h) => o(n)[t.prop] = h,
|
|
836
847
|
type: "date",
|
|
837
|
-
style:
|
|
848
|
+
style: z(t.searchWidth ? "width: " + t.searchWidth + "px;" : ""),
|
|
838
849
|
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9\u65E5\u671F",
|
|
839
850
|
size: t.size,
|
|
840
|
-
class:
|
|
851
|
+
class: S([t.align && t.align == "center" ? "center" : ""])
|
|
841
852
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : u("v-if", !0),
|
|
842
853
|
u(" \u65F6\u95F4\u9009\u62E9 "),
|
|
843
|
-
t.search && t.type == "time" ? (r(),
|
|
854
|
+
t.search && t.type == "time" ? (r(), p(U, {
|
|
844
855
|
key: 4,
|
|
845
|
-
modelValue:
|
|
846
|
-
"onUpdate:modelValue": (
|
|
856
|
+
modelValue: o(n)[t.prop],
|
|
857
|
+
"onUpdate:modelValue": (h) => o(n)[t.prop] = h,
|
|
847
858
|
"arrow-control": "",
|
|
848
|
-
style:
|
|
859
|
+
style: z(t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"),
|
|
849
860
|
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9\u65F6\u95F4",
|
|
850
861
|
size: t.size,
|
|
851
|
-
class:
|
|
862
|
+
class: S([t.align && t.align == "center" ? "center" : ""])
|
|
852
863
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : u("v-if", !0),
|
|
853
864
|
u(" \u65E5\u671F\u65F6\u95F4\u641C\u7D22 "),
|
|
854
|
-
t.search && t.type == "datetime" ? (r(),
|
|
865
|
+
t.search && t.type == "datetime" ? (r(), p(B, {
|
|
855
866
|
key: 5,
|
|
856
|
-
modelValue:
|
|
857
|
-
"onUpdate:modelValue": (
|
|
867
|
+
modelValue: o(n)[t.prop],
|
|
868
|
+
"onUpdate:modelValue": (h) => o(n)[t.prop] = h,
|
|
858
869
|
type: "datetime",
|
|
859
|
-
style:
|
|
870
|
+
style: z(t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"),
|
|
860
871
|
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4",
|
|
861
872
|
size: t.size,
|
|
862
|
-
class:
|
|
873
|
+
class: S([t.align && t.align == "center" ? "center" : ""])
|
|
863
874
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : u("v-if", !0),
|
|
864
875
|
u(" \u65E5\u671F\u8303\u56F4\u9009\u62E9 "),
|
|
865
|
-
t.search && t.type == "daterange" ? (r(),
|
|
876
|
+
t.search && t.type == "daterange" ? (r(), p(B, {
|
|
866
877
|
key: 6,
|
|
867
|
-
modelValue:
|
|
868
|
-
"onUpdate:modelValue": (
|
|
878
|
+
modelValue: o(n)[t.prop],
|
|
879
|
+
"onUpdate:modelValue": (h) => o(n)[t.prop] = h,
|
|
869
880
|
type: "daterange",
|
|
870
881
|
"range-separator": "-",
|
|
871
882
|
"start-placeholder": t.placeholder ? t.placeholder.split("&&")[0] : "\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",
|
|
872
883
|
"end-placeholder": t.placeholder ? t.placeholder.split("&&")[1] : "\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",
|
|
873
|
-
style:
|
|
884
|
+
style: z(t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"),
|
|
874
885
|
size: t.size,
|
|
875
|
-
class:
|
|
886
|
+
class: S([t.align && t.align == "center" ? "center" : ""])
|
|
876
887
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : u("v-if", !0),
|
|
877
888
|
u(" \u65F6\u95F4\u8303\u56F4\u9009\u62E9 "),
|
|
878
|
-
t.search && t.type == "timerange" ? (r(),
|
|
889
|
+
t.search && t.type == "timerange" ? (r(), p(U, {
|
|
879
890
|
key: 7,
|
|
880
|
-
modelValue:
|
|
881
|
-
"onUpdate:modelValue": (
|
|
891
|
+
modelValue: o(n)[t.prop],
|
|
892
|
+
"onUpdate:modelValue": (h) => o(n)[t.prop] = h,
|
|
882
893
|
"is-range": "",
|
|
883
894
|
"arrow-control": "",
|
|
884
895
|
"range-separator": "-",
|
|
885
896
|
"start-placeholder": t.placeholder ? t.placeholder.split("&&")[0] : "\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",
|
|
886
897
|
"end-placeholder": t.placeholder ? t.placeholder.split("&&")[1] : "\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",
|
|
887
|
-
style:
|
|
898
|
+
style: z(t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"),
|
|
888
899
|
size: t.size,
|
|
889
|
-
class:
|
|
900
|
+
class: S([t.align && t.align == "center" ? "center" : ""])
|
|
890
901
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : u("v-if", !0),
|
|
891
902
|
u(" \u65E5\u671F\u65F6\u95F4\u8303\u56F4\u9009\u62E9 "),
|
|
892
|
-
t.search && t.type == "datetimerange" ? (r(),
|
|
903
|
+
t.search && t.type == "datetimerange" ? (r(), p(B, {
|
|
893
904
|
key: 8,
|
|
894
|
-
modelValue:
|
|
895
|
-
"onUpdate:modelValue": (
|
|
905
|
+
modelValue: o(n)[t.prop],
|
|
906
|
+
"onUpdate:modelValue": (h) => o(n)[t.prop] = h,
|
|
896
907
|
type: "datetimerange",
|
|
897
908
|
"range-separator": "-",
|
|
898
909
|
"start-placeholder": t.placeholder ? t.placeholder.split("&&")[0] : "\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F\u65F6\u95F4",
|
|
899
910
|
"end-placeholder": t.placeholder ? t.placeholder.split("&&")[1] : "\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F\u65F6\u95F4",
|
|
900
|
-
style:
|
|
911
|
+
style: z(t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"),
|
|
901
912
|
size: t.size,
|
|
902
|
-
class:
|
|
913
|
+
class: S([t.align && t.align == "center" ? "center" : ""])
|
|
903
914
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : u("v-if", !0),
|
|
904
915
|
u(" \u5F00\u5173 "),
|
|
905
|
-
t.search && t.type == "switch" ? (r(),
|
|
916
|
+
t.search && t.type == "switch" ? (r(), p(j, {
|
|
906
917
|
key: 9,
|
|
907
|
-
modelValue:
|
|
908
|
-
"onUpdate:modelValue": (
|
|
918
|
+
modelValue: o(n)[t.prop],
|
|
919
|
+
"onUpdate:modelValue": (h) => o(n)[t.prop] = h,
|
|
909
920
|
size: t.size,
|
|
910
921
|
"active-text": t.openText,
|
|
911
922
|
"inactive-text": t.closeText,
|
|
912
|
-
class:
|
|
923
|
+
class: S([t.align && t.align == "center" ? "center" : ""])
|
|
913
924
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "active-text", "inactive-text", "class"])) : u("v-if", !0)
|
|
914
925
|
]),
|
|
915
926
|
_: 2
|
|
916
927
|
}, 1032, ["prop", "width", "fixed", "align"]))), 256)),
|
|
917
|
-
e.operate ? (r(),
|
|
928
|
+
e.operate ? (r(), p(E, {
|
|
918
929
|
key: 3,
|
|
919
930
|
align: "center",
|
|
920
|
-
width: e.operateWidth,
|
|
931
|
+
width: e.operateWidth ? e.operateWidth : "",
|
|
921
932
|
fixed: e.operateIsFixed ? "left" : !1
|
|
922
933
|
}, {
|
|
923
934
|
header: m(() => [
|
|
924
|
-
|
|
925
|
-
e.search ? (r(),
|
|
935
|
+
g("div", ct, N(e.operateLabel), 1),
|
|
936
|
+
e.search ? (r(), p(q, {
|
|
926
937
|
key: 0,
|
|
927
938
|
type: "primary",
|
|
928
939
|
size: "small",
|
|
929
|
-
icon:
|
|
930
|
-
onClick:
|
|
940
|
+
icon: o(Ge),
|
|
941
|
+
onClick: F
|
|
931
942
|
}, {
|
|
932
943
|
default: m(() => [
|
|
933
|
-
|
|
944
|
+
C("\u641C\u7D22")
|
|
934
945
|
]),
|
|
935
946
|
_: 1
|
|
936
947
|
}, 8, ["icon"])) : u("v-if", !0),
|
|
937
|
-
e.clear ? (r(),
|
|
948
|
+
e.clear ? (r(), p(q, {
|
|
938
949
|
key: 1,
|
|
939
950
|
type: "info",
|
|
940
951
|
size: "small",
|
|
941
|
-
icon:
|
|
942
|
-
onClick:
|
|
952
|
+
icon: o(ve),
|
|
953
|
+
onClick: _
|
|
943
954
|
}, {
|
|
944
955
|
default: m(() => [
|
|
945
|
-
|
|
956
|
+
C("\u6E05\u7A7A")
|
|
946
957
|
]),
|
|
947
958
|
_: 1
|
|
948
959
|
}, 8, ["icon"])) : u("v-if", !0),
|
|
949
|
-
|
|
960
|
+
w(c.$slots, "operate", {}, void 0, !0)
|
|
950
961
|
]),
|
|
951
962
|
default: m((t) => [
|
|
952
|
-
e.edit ? (r(),
|
|
963
|
+
e.edit ? (r(), p(q, {
|
|
953
964
|
key: 0,
|
|
954
965
|
link: "",
|
|
955
966
|
type: "primary",
|
|
956
967
|
size: "small",
|
|
957
|
-
icon:
|
|
958
|
-
onClick: (
|
|
968
|
+
icon: o(Ne),
|
|
969
|
+
onClick: (h) => V(t.row)
|
|
959
970
|
}, {
|
|
960
971
|
default: m(() => [
|
|
961
|
-
|
|
972
|
+
C("\u4FEE\u6539")
|
|
962
973
|
]),
|
|
963
974
|
_: 2
|
|
964
975
|
}, 1032, ["icon", "onClick"])) : u("v-if", !0),
|
|
965
|
-
e.delete ? (r(),
|
|
976
|
+
e.delete ? (r(), p(G, {
|
|
966
977
|
key: 1,
|
|
967
978
|
"confirm-button-text": "\u5426",
|
|
968
979
|
"cancel-button-text": "\u662F",
|
|
969
980
|
"confirm-button-type": "text",
|
|
970
981
|
"cancel-button-type": "danger",
|
|
971
|
-
icon:
|
|
982
|
+
icon: o(we),
|
|
972
983
|
width: "auto",
|
|
973
|
-
onCancel: (
|
|
984
|
+
onCancel: (h) => k(t.row),
|
|
974
985
|
title: e.deleteTitle ? e.deleteTitle : "\u662F\u5426\u8981\u5220\u9664\u5F53\u524D\u884C\uFF1F"
|
|
975
986
|
}, {
|
|
976
987
|
reference: m(() => [
|
|
@@ -978,17 +989,17 @@ const lt = /* @__PURE__ */ M(it, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
978
989
|
link: "",
|
|
979
990
|
type: "danger",
|
|
980
991
|
size: "small",
|
|
981
|
-
icon:
|
|
992
|
+
icon: o(ke)
|
|
982
993
|
}, {
|
|
983
994
|
default: m(() => [
|
|
984
|
-
|
|
995
|
+
C("\u5220\u9664")
|
|
985
996
|
]),
|
|
986
997
|
_: 1
|
|
987
998
|
}, 8, ["icon"])
|
|
988
999
|
]),
|
|
989
1000
|
_: 2
|
|
990
1001
|
}, 1032, ["icon", "onCancel", "title"])) : u("v-if", !0),
|
|
991
|
-
|
|
1002
|
+
w(c.$slots, "row-operate", {
|
|
992
1003
|
row: t.row
|
|
993
1004
|
}, void 0, !0)
|
|
994
1005
|
]),
|
|
@@ -996,21 +1007,37 @@ const lt = /* @__PURE__ */ M(it, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
996
1007
|
}, 8, ["width", "fixed"])) : u("v-if", !0)
|
|
997
1008
|
]),
|
|
998
1009
|
_: 3
|
|
999
|
-
}, 8, ["data", "class", "max-height", "size", "stripe", "border", "highlight-current-row"])
|
|
1010
|
+
}, 8, ["data", "class", "max-height", "size", "stripe", "border", "highlight-current-row"]),
|
|
1011
|
+
g("div", pt, [
|
|
1012
|
+
e.pagination ? (r(), p(J, {
|
|
1013
|
+
key: 0,
|
|
1014
|
+
"current-page": o(n).pageIndex,
|
|
1015
|
+
"onUpdate:current-page": x[0] || (x[0] = (t) => o(n).pageIndex = t),
|
|
1016
|
+
"page-size": o(n).pageSize,
|
|
1017
|
+
"onUpdate:page-size": x[1] || (x[1] = (t) => o(n).pageSize = t),
|
|
1018
|
+
small: e.small,
|
|
1019
|
+
"hide-on-Single-page": e.hideOnSinglePage,
|
|
1020
|
+
background: "",
|
|
1021
|
+
layout: "prev, pager, next, total, jumper, sizes",
|
|
1022
|
+
"page-sizes": [5, 10, 20, 50],
|
|
1023
|
+
total: e.total,
|
|
1024
|
+
class: "mt-4"
|
|
1025
|
+
}, null, 8, ["current-page", "page-size", "small", "hide-on-Single-page", "total"])) : u("v-if", !0)
|
|
1026
|
+
])
|
|
1000
1027
|
], 64);
|
|
1001
1028
|
};
|
|
1002
1029
|
}
|
|
1003
1030
|
});
|
|
1004
|
-
const
|
|
1031
|
+
const mt = /* @__PURE__ */ $(ht, [["__scopeId", "data-v-f4c855de"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/TableForm/index.vue"]]), vt = {
|
|
1005
1032
|
install: (e) => {
|
|
1006
|
-
e.component("SplitPanes",
|
|
1033
|
+
e.component("SplitPanes", oe), e.component("Pane", de), e.component("UpLoadFile", lt), e.component("Layout", rt), e.component("TableForm", mt);
|
|
1007
1034
|
}
|
|
1008
1035
|
};
|
|
1009
1036
|
export {
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1037
|
+
rt as Layout,
|
|
1038
|
+
de as Pane,
|
|
1039
|
+
oe as SplitPanes,
|
|
1040
|
+
mt as TableForm,
|
|
1041
|
+
lt as UpLoadFile,
|
|
1042
|
+
vt as default
|
|
1016
1043
|
};
|