dld-vue-ui 0.3.4 → 0.3.6
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 +2 -1
- package/dist/dld-vue-ui.js +225 -226
- package/dist/dld-vue-ui.umd.cjs +1 -1
- package/dist/packages/TableForm/index.vue.d.ts +1 -2
- package/package.json +1 -1
package/dist/dld-vue-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as ee, openBlock as r, createElementBlock as y, normalizeStyle as x, renderSlot as w, defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { h as ee, openBlock as r, createElementBlock as y, normalizeStyle as x, renderSlot as w, defineComponent as M, createBlock as h, unref as o, withCtx as m, createElementVNode as z, ref as D, onMounted as O, resolveComponent as _, createVNode as F, createTextVNode as k, withDirectives as te, vShow as ae, toDisplayString as B, Fragment as N, renderList as R, useSlots as A, createCommentVNode as c, reactive as ne, watch as H, normalizeClass as P, createSlots as ie, withKeys as I } from "vue";
|
|
2
|
+
const se = {
|
|
3
3
|
name: "splitpanes",
|
|
4
4
|
emits: ["ready", "resize", "resized", "pane-click", "pane-maximize", "pane-add", "pane-remove", "splitter-click"],
|
|
5
5
|
props: {
|
|
@@ -70,16 +70,16 @@ const ie = {
|
|
|
70
70
|
}, 500)))), this.touch.dragging || this.$emit("splitter-click", this.panes[a]);
|
|
71
71
|
},
|
|
72
72
|
onSplitterDblClick(e, a) {
|
|
73
|
-
let
|
|
74
|
-
this.panes = this.panes.map((n,
|
|
73
|
+
let i = 0;
|
|
74
|
+
this.panes = this.panes.map((n, s) => (n.size = s === a ? n.max : n.min, s !== a && (i += n.min), n)), this.panes[a].size -= i, this.$emit("pane-maximize", this.panes[a]), this.$emit("resized", this.panes.map((n) => ({ min: n.min, max: n.max, size: n.size })));
|
|
75
75
|
},
|
|
76
76
|
onPaneClick(e, a) {
|
|
77
77
|
this.$emit("pane-click", this.indexedPanes[a]);
|
|
78
78
|
},
|
|
79
79
|
getCurrentMouseDrag(e) {
|
|
80
|
-
const a = this.container.getBoundingClientRect(), { clientX:
|
|
80
|
+
const a = this.container.getBoundingClientRect(), { clientX: i, clientY: n } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
|
|
81
81
|
return {
|
|
82
|
-
x:
|
|
82
|
+
x: i - a.left,
|
|
83
83
|
y: n - a.top
|
|
84
84
|
};
|
|
85
85
|
},
|
|
@@ -90,44 +90,44 @@ const ie = {
|
|
|
90
90
|
},
|
|
91
91
|
calculatePanesSize(e) {
|
|
92
92
|
const a = this.touch.activeSplitter;
|
|
93
|
-
let
|
|
93
|
+
let i = {
|
|
94
94
|
prevPanesSize: this.sumPrevPanesSize(a),
|
|
95
95
|
nextPanesSize: this.sumNextPanesSize(a),
|
|
96
96
|
prevReachedMinPanes: 0,
|
|
97
97
|
nextReachedMinPanes: 0
|
|
98
98
|
};
|
|
99
|
-
const n = 0 + (this.pushOtherPanes ? 0 :
|
|
99
|
+
const n = 0 + (this.pushOtherPanes ? 0 : i.prevPanesSize), s = 100 - (this.pushOtherPanes ? 0 : i.nextPanesSize), l = Math.max(Math.min(this.getCurrentDragPercentage(e), s), n);
|
|
100
100
|
let d = [a, a + 1], f = this.panes[d[0]] || null, g = this.panes[d[1]] || null;
|
|
101
|
-
const C = f.max < 100 && l >= f.max +
|
|
102
|
-
if (C ||
|
|
103
|
-
C ? (f.size = f.max, g.size = Math.max(100 - f.max -
|
|
101
|
+
const C = f.max < 100 && l >= f.max + i.prevPanesSize, $ = g.max < 100 && l <= 100 - (g.max + this.sumNextPanesSize(a + 1));
|
|
102
|
+
if (C || $) {
|
|
103
|
+
C ? (f.size = f.max, g.size = Math.max(100 - f.max - i.prevPanesSize - i.nextPanesSize, 0)) : (f.size = Math.max(100 - g.max - i.prevPanesSize - this.sumNextPanesSize(a + 1), 0), g.size = g.max);
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
106
|
if (this.pushOtherPanes) {
|
|
107
|
-
const S = this.doPushOtherPanes(
|
|
107
|
+
const S = this.doPushOtherPanes(i, l);
|
|
108
108
|
if (!S)
|
|
109
109
|
return;
|
|
110
|
-
({ sums:
|
|
110
|
+
({ sums: i, panesToResize: d } = S), f = this.panes[d[0]] || null, g = this.panes[d[1]] || null;
|
|
111
111
|
}
|
|
112
|
-
f !== null && (f.size = Math.min(Math.max(l -
|
|
112
|
+
f !== null && (f.size = Math.min(Math.max(l - i.prevPanesSize - i.prevReachedMinPanes, f.min), f.max)), g !== null && (g.size = Math.min(Math.max(100 - l - i.nextPanesSize - i.nextReachedMinPanes, g.min), g.max));
|
|
113
113
|
},
|
|
114
114
|
doPushOtherPanes(e, a) {
|
|
115
|
-
const
|
|
116
|
-
return a < e.prevPanesSize + this.panes[n[0]].min && (n[0] = this.findPrevExpandedPane(
|
|
117
|
-
l > n[0] && l <=
|
|
118
|
-
}), e.prevPanesSize = this.sumPrevPanesSize(n[0]), n[0] === void 0) ? (e.prevReachedMinPanes = 0, this.panes[0].size = this.panes[0].min, this.panes.forEach((
|
|
119
|
-
l > 0 && l <=
|
|
120
|
-
}), this.panes[n[1]].size = 100 - e.prevReachedMinPanes - this.panes[0].min - e.prevPanesSize - e.nextPanesSize, null) : a > 100 - e.nextPanesSize - this.panes[n[1]].min && (n[1] = this.findNextExpandedPane(
|
|
121
|
-
l >
|
|
122
|
-
}), e.nextPanesSize = this.sumNextPanesSize(n[1] - 1), n[1] === void 0) ? (e.nextReachedMinPanes = 0, this.panes[this.panesCount - 1].size = this.panes[this.panesCount - 1].min, this.panes.forEach((
|
|
123
|
-
l < this.panesCount - 1 && l >=
|
|
115
|
+
const i = this.touch.activeSplitter, n = [i, i + 1];
|
|
116
|
+
return a < e.prevPanesSize + this.panes[n[0]].min && (n[0] = this.findPrevExpandedPane(i).index, e.prevReachedMinPanes = 0, n[0] < i && this.panes.forEach((s, l) => {
|
|
117
|
+
l > n[0] && l <= i && (s.size = s.min, e.prevReachedMinPanes += s.min);
|
|
118
|
+
}), e.prevPanesSize = this.sumPrevPanesSize(n[0]), n[0] === void 0) ? (e.prevReachedMinPanes = 0, this.panes[0].size = this.panes[0].min, this.panes.forEach((s, l) => {
|
|
119
|
+
l > 0 && l <= i && (s.size = s.min, e.prevReachedMinPanes += s.min);
|
|
120
|
+
}), this.panes[n[1]].size = 100 - e.prevReachedMinPanes - this.panes[0].min - e.prevPanesSize - e.nextPanesSize, null) : a > 100 - e.nextPanesSize - this.panes[n[1]].min && (n[1] = this.findNextExpandedPane(i).index, e.nextReachedMinPanes = 0, n[1] > i + 1 && this.panes.forEach((s, l) => {
|
|
121
|
+
l > i && l < n[1] && (s.size = s.min, e.nextReachedMinPanes += s.min);
|
|
122
|
+
}), e.nextPanesSize = this.sumNextPanesSize(n[1] - 1), n[1] === void 0) ? (e.nextReachedMinPanes = 0, this.panes[this.panesCount - 1].size = this.panes[this.panesCount - 1].min, this.panes.forEach((s, l) => {
|
|
123
|
+
l < this.panesCount - 1 && l >= i + 1 && (s.size = s.min, e.nextReachedMinPanes += s.min);
|
|
124
124
|
}), this.panes[n[0]].size = 100 - e.prevPanesSize - e.nextReachedMinPanes - this.panes[this.panesCount - 1].min - e.nextPanesSize, null) : { sums: e, panesToResize: n };
|
|
125
125
|
},
|
|
126
126
|
sumPrevPanesSize(e) {
|
|
127
|
-
return this.panes.reduce((a,
|
|
127
|
+
return this.panes.reduce((a, i, n) => a + (n < e ? i.size : 0), 0);
|
|
128
128
|
},
|
|
129
129
|
sumNextPanesSize(e) {
|
|
130
|
-
return this.panes.reduce((a,
|
|
130
|
+
return this.panes.reduce((a, i, n) => a + (n > e + 1 ? i.size : 0), 0);
|
|
131
131
|
},
|
|
132
132
|
findPrevExpandedPane(e) {
|
|
133
133
|
return [...this.panes].reverse().find((a) => a.index < e && a.size > a.min) || {};
|
|
@@ -137,51 +137,51 @@ const ie = {
|
|
|
137
137
|
},
|
|
138
138
|
checkSplitpanesNodes() {
|
|
139
139
|
Array.from(this.container.children).forEach((e) => {
|
|
140
|
-
const a = e.classList.contains("splitpanes__pane"),
|
|
141
|
-
!a && !
|
|
140
|
+
const a = e.classList.contains("splitpanes__pane"), i = e.classList.contains("splitpanes__splitter");
|
|
141
|
+
!a && !i && (e.parentNode.removeChild(e), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
|
-
addSplitter(e, a,
|
|
145
|
-
const n = e - 1,
|
|
146
|
-
|
|
144
|
+
addSplitter(e, a, i = !1) {
|
|
145
|
+
const n = e - 1, s = document.createElement("div");
|
|
146
|
+
s.classList.add("splitpanes__splitter"), i || (s.onmousedown = (l) => this.onMouseDown(l, n), typeof window < "u" && "ontouchstart" in window && (s.ontouchstart = (l) => this.onMouseDown(l, n)), s.onclick = (l) => this.onSplitterClick(l, n + 1)), this.dblClickSplitter && (s.ondblclick = (l) => this.onSplitterDblClick(l, n + 1)), a.parentNode.insertBefore(s, a);
|
|
147
147
|
},
|
|
148
148
|
removeSplitter(e) {
|
|
149
149
|
e.onmousedown = void 0, e.onclick = void 0, e.ondblclick = void 0, e.parentNode.removeChild(e);
|
|
150
150
|
},
|
|
151
151
|
redoSplitters() {
|
|
152
152
|
const e = Array.from(this.container.children);
|
|
153
|
-
e.forEach((
|
|
154
|
-
|
|
153
|
+
e.forEach((i) => {
|
|
154
|
+
i.className.includes("splitpanes__splitter") && this.removeSplitter(i);
|
|
155
155
|
});
|
|
156
156
|
let a = 0;
|
|
157
|
-
e.forEach((
|
|
158
|
-
|
|
157
|
+
e.forEach((i) => {
|
|
158
|
+
i.className.includes("splitpanes__pane") && (!a && this.firstSplitter ? this.addSplitter(a, i, !0) : a && this.addSplitter(a, i), a++);
|
|
159
159
|
});
|
|
160
160
|
},
|
|
161
161
|
requestUpdate({ target: e, ...a }) {
|
|
162
|
-
const
|
|
163
|
-
Object.entries(a).forEach(([n,
|
|
162
|
+
const i = this.indexedPanes[e._.uid];
|
|
163
|
+
Object.entries(a).forEach(([n, s]) => i[n] = s);
|
|
164
164
|
},
|
|
165
165
|
onPaneAdd(e) {
|
|
166
166
|
let a = -1;
|
|
167
|
-
Array.from(e.$el.parentNode.children).some((
|
|
168
|
-
const
|
|
167
|
+
Array.from(e.$el.parentNode.children).some((s) => (s.className.includes("splitpanes__pane") && a++, s === e.$el));
|
|
168
|
+
const i = parseFloat(e.minSize), n = parseFloat(e.maxSize);
|
|
169
169
|
this.panes.splice(a, 0, {
|
|
170
170
|
id: e._.uid,
|
|
171
171
|
index: a,
|
|
172
|
-
min: isNaN(
|
|
172
|
+
min: isNaN(i) ? 0 : i,
|
|
173
173
|
max: isNaN(n) ? 100 : n,
|
|
174
174
|
size: e.size === null ? null : parseFloat(e.size),
|
|
175
175
|
givenSize: e.size,
|
|
176
176
|
update: e.update
|
|
177
|
-
}), this.panes.forEach((
|
|
178
|
-
this.redoSplitters(), this.resetPaneSizes({ addedPane: this.panes[a] }), this.$emit("pane-add", { index: a, panes: this.panes.map((
|
|
177
|
+
}), this.panes.forEach((s, l) => s.index = l), this.ready && this.$nextTick(() => {
|
|
178
|
+
this.redoSplitters(), this.resetPaneSizes({ addedPane: this.panes[a] }), this.$emit("pane-add", { index: a, panes: this.panes.map((s) => ({ min: s.min, max: s.max, size: s.size })) });
|
|
179
179
|
});
|
|
180
180
|
},
|
|
181
181
|
onPaneRemove(e) {
|
|
182
|
-
const a = this.panes.findIndex((n) => n.id === e._.uid),
|
|
183
|
-
this.panes.forEach((n,
|
|
184
|
-
this.redoSplitters(), this.resetPaneSizes({ removedPane: { ...
|
|
182
|
+
const a = this.panes.findIndex((n) => n.id === e._.uid), i = this.panes.splice(a, 1)[0];
|
|
183
|
+
this.panes.forEach((n, s) => n.index = s), this.$nextTick(() => {
|
|
184
|
+
this.redoSplitters(), this.resetPaneSizes({ removedPane: { ...i, index: a } }), this.$emit("pane-remove", { removed: i, panes: this.panes.map((n) => ({ min: n.min, max: n.max, size: n.size })) });
|
|
185
185
|
});
|
|
186
186
|
},
|
|
187
187
|
resetPaneSizes(e = {}) {
|
|
@@ -190,44 +190,44 @@ const ie = {
|
|
|
190
190
|
equalize() {
|
|
191
191
|
const e = 100 / this.panesCount;
|
|
192
192
|
let a = 0;
|
|
193
|
-
const
|
|
194
|
-
this.panes.forEach((
|
|
195
|
-
|
|
196
|
-
}), a > 0.1 && this.readjustSizes(a,
|
|
193
|
+
const i = [], n = [];
|
|
194
|
+
this.panes.forEach((s) => {
|
|
195
|
+
s.size = Math.max(Math.min(e, s.max), s.min), a -= s.size, s.size >= s.max && i.push(s.id), s.size <= s.min && n.push(s.id);
|
|
196
|
+
}), a > 0.1 && this.readjustSizes(a, i, n);
|
|
197
197
|
},
|
|
198
198
|
initialPanesSizing() {
|
|
199
199
|
let e = 100;
|
|
200
|
-
const a = [],
|
|
200
|
+
const a = [], i = [];
|
|
201
201
|
let n = 0;
|
|
202
202
|
this.panes.forEach((l) => {
|
|
203
|
-
e -= l.size, l.size !== null && n++, l.size >= l.max && a.push(l.id), l.size <= l.min &&
|
|
203
|
+
e -= l.size, l.size !== null && n++, l.size >= l.max && a.push(l.id), l.size <= l.min && i.push(l.id);
|
|
204
204
|
});
|
|
205
|
-
let
|
|
205
|
+
let s = 100;
|
|
206
206
|
e > 0.1 && (this.panes.forEach((l) => {
|
|
207
|
-
l.size === null && (l.size = Math.max(Math.min(e / (this.panesCount - n), l.max), l.min)),
|
|
208
|
-
}),
|
|
207
|
+
l.size === null && (l.size = Math.max(Math.min(e / (this.panesCount - n), l.max), l.min)), s -= l.size;
|
|
208
|
+
}), s > 0.1 && this.readjustSizes(e, a, i));
|
|
209
209
|
},
|
|
210
210
|
equalizeAfterAddOrRemove({ addedPane: e, removedPane: a } = {}) {
|
|
211
|
-
let
|
|
212
|
-
const
|
|
213
|
-
e && e.givenSize !== null && (
|
|
214
|
-
n -= d.size, d.size >= d.max &&
|
|
211
|
+
let i = 100 / this.panesCount, n = 0;
|
|
212
|
+
const s = [], l = [];
|
|
213
|
+
e && e.givenSize !== null && (i = (100 - e.givenSize) / (this.panesCount - 1)), this.panes.forEach((d) => {
|
|
214
|
+
n -= d.size, d.size >= d.max && s.push(d.id), d.size <= d.min && l.push(d.id);
|
|
215
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(
|
|
217
|
-
}), n > 0.1 && this.readjustSizes(n,
|
|
216
|
+
e && e.givenSize !== null && e.id === d.id || (d.size = Math.max(Math.min(i, d.max), d.min)), n -= d.size, d.size >= d.max && s.push(d.id), d.size <= d.min && l.push(d.id);
|
|
217
|
+
}), n > 0.1 && this.readjustSizes(n, s, l));
|
|
218
218
|
},
|
|
219
|
-
readjustSizes(e, a,
|
|
219
|
+
readjustSizes(e, a, i) {
|
|
220
220
|
let n;
|
|
221
|
-
e > 0 ? n = e / (this.panesCount - a.length) : n = e / (this.panesCount -
|
|
222
|
-
if (e > 0 && !a.includes(
|
|
223
|
-
const d = Math.max(Math.min(
|
|
224
|
-
e -= f,
|
|
225
|
-
} else if (!
|
|
226
|
-
const d = Math.max(Math.min(
|
|
227
|
-
e -= f,
|
|
221
|
+
e > 0 ? n = e / (this.panesCount - a.length) : n = e / (this.panesCount - i.length), this.panes.forEach((s, l) => {
|
|
222
|
+
if (e > 0 && !a.includes(s.id)) {
|
|
223
|
+
const d = Math.max(Math.min(s.size + n, s.max), s.min), f = d - s.size;
|
|
224
|
+
e -= f, s.size = d;
|
|
225
|
+
} else if (!i.includes(s.id)) {
|
|
226
|
+
const d = Math.max(Math.min(s.size + n, s.max), s.min), f = d - s.size;
|
|
227
|
+
e -= f, s.size = d;
|
|
228
228
|
}
|
|
229
|
-
|
|
230
|
-
[this.horizontal ? "height" : "width"]: `${this.indexedPanes[
|
|
229
|
+
s.update({
|
|
230
|
+
[this.horizontal ? "height" : "width"]: `${this.indexedPanes[s.id].size}%`
|
|
231
231
|
});
|
|
232
232
|
}), Math.abs(e) > 0.1 && this.$nextTick(() => {
|
|
233
233
|
this.ready && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
|
|
@@ -249,8 +249,8 @@ const ie = {
|
|
|
249
249
|
this.redoSplitters();
|
|
250
250
|
},
|
|
251
251
|
dblClickSplitter(e) {
|
|
252
|
-
[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((a,
|
|
253
|
-
a.ondblclick = e ? (n) => this.onSplitterDblClick(n,
|
|
252
|
+
[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((a, i) => {
|
|
253
|
+
a.ondblclick = e ? (n) => this.onSplitterDblClick(n, i) : void 0;
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
256
|
},
|
|
@@ -277,10 +277,10 @@ const ie = {
|
|
|
277
277
|
);
|
|
278
278
|
}
|
|
279
279
|
}, le = (e, a) => {
|
|
280
|
-
const
|
|
281
|
-
for (const [n,
|
|
282
|
-
|
|
283
|
-
return
|
|
280
|
+
const i = e.__vccOpts || e;
|
|
281
|
+
for (const [n, s] of a)
|
|
282
|
+
i[n] = s;
|
|
283
|
+
return i;
|
|
284
284
|
}, oe = {
|
|
285
285
|
name: "pane",
|
|
286
286
|
inject: ["requestUpdate", "onPaneAdd", "onPaneRemove", "onPaneClick"],
|
|
@@ -326,7 +326,7 @@ const ie = {
|
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
};
|
|
329
|
-
function re(e, a,
|
|
329
|
+
function re(e, a, i, n, s, l) {
|
|
330
330
|
return r(), y("div", {
|
|
331
331
|
class: "splitpanes__pane",
|
|
332
332
|
onClick: a[0] || (a[0] = (d) => l.onPaneClick(d, e._.uid)),
|
|
@@ -336,14 +336,14 @@ function re(e, a, s, n, i, l) {
|
|
|
336
336
|
], 4);
|
|
337
337
|
}
|
|
338
338
|
const de = /* @__PURE__ */ le(oe, [["render", re]]);
|
|
339
|
-
const ue = /* @__PURE__ */
|
|
339
|
+
const ue = /* @__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,
|
|
346
|
+
return (a, i) => (r(), h(o(se), {
|
|
347
347
|
horizontal: e.horizontal,
|
|
348
348
|
style: x(e.styles),
|
|
349
349
|
class: "splitpanes"
|
|
@@ -355,18 +355,18 @@ const ue = /* @__PURE__ */ V({
|
|
|
355
355
|
}, 8, ["horizontal", "style"]));
|
|
356
356
|
}
|
|
357
357
|
});
|
|
358
|
-
const
|
|
359
|
-
const
|
|
360
|
-
for (const [n,
|
|
361
|
-
|
|
362
|
-
return
|
|
363
|
-
}, ce = /* @__PURE__ */
|
|
358
|
+
const V = (e, a) => {
|
|
359
|
+
const i = e.__vccOpts || e;
|
|
360
|
+
for (const [n, s] of a)
|
|
361
|
+
i[n] = s;
|
|
362
|
+
return i;
|
|
363
|
+
}, ce = /* @__PURE__ */ V(ue, [["__scopeId", "data-v-4226b5d2"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/SplitPanes/index.vue"]]), pe = /* @__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,
|
|
369
|
+
return (a, i) => (r(), h(o(de), {
|
|
370
370
|
style: x(e.styles)
|
|
371
371
|
}, {
|
|
372
372
|
default: m(() => [
|
|
@@ -375,13 +375,13 @@ const B = (e, a) => {
|
|
|
375
375
|
_: 3
|
|
376
376
|
}, 8, ["style"]));
|
|
377
377
|
}
|
|
378
|
-
}), he = /* @__PURE__ */
|
|
378
|
+
}), he = /* @__PURE__ */ V(pe, [["__file", "D:/Code/front/dld-vue-ui/src/packages/SplitPanes/pane.vue"]]);
|
|
379
379
|
/*! Element Plus Icons Vue v2.0.10 */
|
|
380
380
|
var E = (e, a) => {
|
|
381
|
-
let
|
|
382
|
-
for (let [n,
|
|
383
|
-
|
|
384
|
-
return
|
|
381
|
+
let i = e.__vccOpts || e;
|
|
382
|
+
for (let [n, s] of a)
|
|
383
|
+
i[n] = s;
|
|
384
|
+
return i;
|
|
385
385
|
}, me = {
|
|
386
386
|
name: "CircleClose"
|
|
387
387
|
}, fe = {
|
|
@@ -397,7 +397,7 @@ var E = (e, a) => {
|
|
|
397
397
|
ve,
|
|
398
398
|
_e
|
|
399
399
|
];
|
|
400
|
-
function ge(e, a,
|
|
400
|
+
function ge(e, a, i, n, s, l) {
|
|
401
401
|
return r(), y("svg", fe, ze);
|
|
402
402
|
}
|
|
403
403
|
var ye = /* @__PURE__ */ E(me, [["render", ge], ["__file", "circle-close.vue"]]), xe = {
|
|
@@ -411,7 +411,7 @@ var ye = /* @__PURE__ */ E(me, [["render", ge], ["__file", "circle-close.vue"]])
|
|
|
411
411
|
}, null, -1), be = [
|
|
412
412
|
Se
|
|
413
413
|
];
|
|
414
|
-
function Pe(e, a,
|
|
414
|
+
function Pe(e, a, i, n, s, l) {
|
|
415
415
|
return r(), y("svg", we, be);
|
|
416
416
|
}
|
|
417
417
|
var Ce = /* @__PURE__ */ E(xe, [["render", Pe], ["__file", "close.vue"]]), Fe = {
|
|
@@ -425,7 +425,7 @@ var Ce = /* @__PURE__ */ E(xe, [["render", Pe], ["__file", "close.vue"]]), Fe =
|
|
|
425
425
|
}, null, -1), $e = [
|
|
426
426
|
Ee
|
|
427
427
|
];
|
|
428
|
-
function Me(e, a,
|
|
428
|
+
function Me(e, a, i, n, s, l) {
|
|
429
429
|
return r(), y("svg", ke, $e);
|
|
430
430
|
}
|
|
431
431
|
var Ve = /* @__PURE__ */ E(Fe, [["render", Me], ["__file", "delete-filled.vue"]]), Be = {
|
|
@@ -439,7 +439,7 @@ var Ve = /* @__PURE__ */ E(Fe, [["render", Me], ["__file", "delete-filled.vue"]]
|
|
|
439
439
|
}, null, -1), Ne = [
|
|
440
440
|
Le
|
|
441
441
|
];
|
|
442
|
-
function Ue(e, a,
|
|
442
|
+
function Ue(e, a, i, n, s, l) {
|
|
443
443
|
return r(), y("svg", qe, Ne);
|
|
444
444
|
}
|
|
445
445
|
var De = /* @__PURE__ */ E(Be, [["render", Ue], ["__file", "delete.vue"]]), Re = {
|
|
@@ -457,7 +457,7 @@ var De = /* @__PURE__ */ E(Be, [["render", Ue], ["__file", "delete.vue"]]), Re =
|
|
|
457
457
|
We,
|
|
458
458
|
He
|
|
459
459
|
];
|
|
460
|
-
function Oe(e, a,
|
|
460
|
+
function Oe(e, a, i, n, s, l) {
|
|
461
461
|
return r(), y("svg", Te, Ie);
|
|
462
462
|
}
|
|
463
463
|
var Ae = /* @__PURE__ */ E(Re, [["render", Oe], ["__file", "edit.vue"]]), je = {
|
|
@@ -465,16 +465,16 @@ var Ae = /* @__PURE__ */ E(Re, [["render", Oe], ["__file", "edit.vue"]]), je = {
|
|
|
465
465
|
}, Ge = {
|
|
466
466
|
viewBox: "0 0 1024 1024",
|
|
467
467
|
xmlns: "http://www.w3.org/2000/svg"
|
|
468
|
-
},
|
|
468
|
+
}, Ke = /* @__PURE__ */ z("path", {
|
|
469
469
|
fill: "currentColor",
|
|
470
470
|
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"
|
|
471
|
-
}, null, -1),
|
|
472
|
-
|
|
471
|
+
}, null, -1), Ye = [
|
|
472
|
+
Ke
|
|
473
473
|
];
|
|
474
|
-
function
|
|
475
|
-
return r(), y("svg", Ge,
|
|
474
|
+
function Je(e, a, i, n, s, l) {
|
|
475
|
+
return r(), y("svg", Ge, Ye);
|
|
476
476
|
}
|
|
477
|
-
var
|
|
477
|
+
var j = /* @__PURE__ */ E(je, [["render", Je], ["__file", "folder-opened.vue"]]), Xe = {
|
|
478
478
|
name: "Search"
|
|
479
479
|
}, Qe = {
|
|
480
480
|
viewBox: "0 0 1024 1024",
|
|
@@ -485,32 +485,32 @@ var A = /* @__PURE__ */ E(je, [["render", Xe], ["__file", "folder-opened.vue"]])
|
|
|
485
485
|
}, null, -1), et = [
|
|
486
486
|
Ze
|
|
487
487
|
];
|
|
488
|
-
function tt(e, a,
|
|
488
|
+
function tt(e, a, i, n, s, l) {
|
|
489
489
|
return r(), y("svg", Qe, et);
|
|
490
490
|
}
|
|
491
|
-
var at = /* @__PURE__ */ E(
|
|
491
|
+
var at = /* @__PURE__ */ E(Xe, [["render", tt], ["__file", "search.vue"]]), nt = {
|
|
492
492
|
name: "Upload"
|
|
493
|
-
},
|
|
493
|
+
}, it = {
|
|
494
494
|
viewBox: "0 0 1024 1024",
|
|
495
495
|
xmlns: "http://www.w3.org/2000/svg"
|
|
496
|
-
},
|
|
496
|
+
}, st = /* @__PURE__ */ z("path", {
|
|
497
497
|
fill: "currentColor",
|
|
498
498
|
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"
|
|
499
499
|
}, null, -1), lt = [
|
|
500
|
-
|
|
500
|
+
st
|
|
501
501
|
];
|
|
502
|
-
function ot(e, a,
|
|
503
|
-
return r(), y("svg",
|
|
502
|
+
function ot(e, a, i, n, s, l) {
|
|
503
|
+
return r(), y("svg", it, lt);
|
|
504
504
|
}
|
|
505
|
-
var
|
|
505
|
+
var G = /* @__PURE__ */ E(nt, [["render", ot], ["__file", "upload.vue"]]), rt = function() {
|
|
506
506
|
function e(a) {
|
|
507
507
|
if (!a)
|
|
508
508
|
throw new TypeError("Invalid argument; `value` has no value.");
|
|
509
509
|
this.value = e.EMPTY, a && e.isGuid(a) && (this.value = a);
|
|
510
510
|
}
|
|
511
511
|
return e.isGuid = function(a) {
|
|
512
|
-
var
|
|
513
|
-
return a && (a instanceof e || e.validator.test(
|
|
512
|
+
var i = a.toString();
|
|
513
|
+
return a && (a instanceof e || e.validator.test(i));
|
|
514
514
|
}, e.create = function() {
|
|
515
515
|
return new e([e.gen(2), e.gen(1), e.gen(1), e.gen(1), e.gen(3)].join("-"));
|
|
516
516
|
}, e.createEmpty = function() {
|
|
@@ -520,9 +520,9 @@ var j = /* @__PURE__ */ E(nt, [["render", ot], ["__file", "upload.vue"]]), rt =
|
|
|
520
520
|
}, e.raw = function() {
|
|
521
521
|
return [e.gen(2), e.gen(1), e.gen(1), e.gen(1), e.gen(3)].join("-");
|
|
522
522
|
}, e.gen = function(a) {
|
|
523
|
-
for (var
|
|
524
|
-
|
|
525
|
-
return
|
|
523
|
+
for (var i = "", n = 0; n < a; n++)
|
|
524
|
+
i += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
525
|
+
return i;
|
|
526
526
|
}, e.prototype.equals = function(a) {
|
|
527
527
|
return e.isGuid(a) && this.value === a.toString();
|
|
528
528
|
}, e.prototype.isEmpty = function() {
|
|
@@ -535,40 +535,40 @@ var j = /* @__PURE__ */ E(nt, [["render", ot], ["__file", "upload.vue"]]), rt =
|
|
|
535
535
|
};
|
|
536
536
|
}, 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;
|
|
537
537
|
}(), dt = rt;
|
|
538
|
-
const ut = { style: {} }, ct = ["id", "accept"], pt = { class: "filename" }, ht = /* @__PURE__ */
|
|
538
|
+
const ut = { style: {} }, ct = ["id", "accept"], pt = { class: "filename" }, ht = /* @__PURE__ */ M({
|
|
539
539
|
__name: "index",
|
|
540
540
|
props: {
|
|
541
541
|
size: { type: String, required: !1, default: "default" },
|
|
542
542
|
name: { type: String, required: !1, default: "\u4E0A\u4F20\u6587\u4EF6" },
|
|
543
|
-
icon: { type: null, required: !1, default:
|
|
543
|
+
icon: { type: null, required: !1, default: G },
|
|
544
544
|
type: { type: null, required: !1, default: "success" },
|
|
545
545
|
accept: { type: String, required: !0, default: "*" }
|
|
546
546
|
},
|
|
547
547
|
emits: ["upload"],
|
|
548
|
-
setup(e, { expose: a, emit:
|
|
549
|
-
let n = dt.create().toString(),
|
|
548
|
+
setup(e, { expose: a, emit: i }) {
|
|
549
|
+
let n = dt.create().toString(), s, l = D("");
|
|
550
550
|
function d() {
|
|
551
|
-
|
|
551
|
+
s.click();
|
|
552
552
|
}
|
|
553
553
|
function f() {
|
|
554
|
-
l.value =
|
|
554
|
+
l.value = s.value;
|
|
555
555
|
}
|
|
556
556
|
function g() {
|
|
557
|
-
|
|
557
|
+
s.files !== null && i("upload", s.files[0]);
|
|
558
558
|
}
|
|
559
559
|
function C() {
|
|
560
|
-
|
|
560
|
+
s.value = "", l.value = "";
|
|
561
561
|
}
|
|
562
|
-
return
|
|
563
|
-
|
|
562
|
+
return O(() => {
|
|
563
|
+
s = document.getElementById(n);
|
|
564
564
|
}), a({
|
|
565
565
|
Clear: C
|
|
566
|
-
}), (
|
|
567
|
-
const
|
|
566
|
+
}), ($, S) => {
|
|
567
|
+
const u = _("el-button");
|
|
568
568
|
return r(), y("div", ut, [
|
|
569
|
-
|
|
569
|
+
F(u, {
|
|
570
570
|
type: e.type,
|
|
571
|
-
icon: o(
|
|
571
|
+
icon: o(j),
|
|
572
572
|
size: e.size,
|
|
573
573
|
class: "btn",
|
|
574
574
|
onClick: d
|
|
@@ -586,8 +586,8 @@ const ut = { style: {} }, ct = ["id", "accept"], pt = { class: "filename" }, ht
|
|
|
586
586
|
}, null, 40, ct), [
|
|
587
587
|
[ae, !1]
|
|
588
588
|
]),
|
|
589
|
-
z("span", pt,
|
|
590
|
-
|
|
589
|
+
z("span", pt, B(o(l)), 1),
|
|
590
|
+
F(u, {
|
|
591
591
|
type: e.type,
|
|
592
592
|
icon: e.icon,
|
|
593
593
|
size: e.size,
|
|
@@ -597,7 +597,7 @@ const ut = { style: {} }, ct = ["id", "accept"], pt = { class: "filename" }, ht
|
|
|
597
597
|
onClick: g
|
|
598
598
|
}, {
|
|
599
599
|
default: m(() => [
|
|
600
|
-
k(
|
|
600
|
+
k(B(e.name), 1)
|
|
601
601
|
]),
|
|
602
602
|
_: 1
|
|
603
603
|
}, 8, ["type", "icon", "size", "disabled", "title"])
|
|
@@ -605,24 +605,24 @@ const ut = { style: {} }, ct = ["id", "accept"], pt = { class: "filename" }, ht
|
|
|
605
605
|
};
|
|
606
606
|
}
|
|
607
607
|
});
|
|
608
|
-
const mt = /* @__PURE__ */
|
|
608
|
+
const mt = /* @__PURE__ */ V(ht, [["__scopeId", "data-v-83b9cdd7"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/UpLoadFile/index.vue"]]), ft = ["accept"], vt = { class: "filename" }, _t = { class: "content" }, zt = /* @__PURE__ */ M({
|
|
609
609
|
__name: "index",
|
|
610
610
|
props: {
|
|
611
611
|
size: { type: String, required: !0, default: "default" },
|
|
612
612
|
accept: { type: String, required: !0, default: "*" }
|
|
613
613
|
},
|
|
614
614
|
emits: ["upload", "clear"],
|
|
615
|
-
setup(e, { expose: a, emit:
|
|
616
|
-
const n = e,
|
|
615
|
+
setup(e, { expose: a, emit: i }) {
|
|
616
|
+
const n = e, s = D(), l = D([]);
|
|
617
617
|
function d() {
|
|
618
618
|
var S;
|
|
619
|
-
(S =
|
|
619
|
+
(S = s.value) == null || S.click();
|
|
620
620
|
}
|
|
621
621
|
function f() {
|
|
622
|
-
var S,
|
|
623
|
-
if (l.value = [], (S =
|
|
624
|
-
for (let
|
|
625
|
-
l.value[
|
|
622
|
+
var S, u, v;
|
|
623
|
+
if (l.value = [], (S = s.value) != null && S.files)
|
|
624
|
+
for (let b = 0; b < ((v = (u = s.value) == null ? void 0 : u.files) == null ? void 0 : v.length); b++)
|
|
625
|
+
l.value[b] = s.value.files[b];
|
|
626
626
|
else
|
|
627
627
|
l.value = [];
|
|
628
628
|
}
|
|
@@ -630,29 +630,29 @@ const mt = /* @__PURE__ */ B(ht, [["__scopeId", "data-v-83b9cdd7"], ["__file", "
|
|
|
630
630
|
l.value.splice(S, 1);
|
|
631
631
|
}
|
|
632
632
|
function C() {
|
|
633
|
-
|
|
633
|
+
i("upload", l.value);
|
|
634
634
|
}
|
|
635
|
-
function
|
|
635
|
+
function $() {
|
|
636
636
|
l.value = [];
|
|
637
637
|
}
|
|
638
638
|
return a({
|
|
639
|
-
Clear:
|
|
640
|
-
}), (S,
|
|
641
|
-
const
|
|
639
|
+
Clear: $
|
|
640
|
+
}), (S, u) => {
|
|
641
|
+
const v = _("el-button");
|
|
642
642
|
return r(), y("div", null, [
|
|
643
643
|
z("input", {
|
|
644
644
|
type: "file",
|
|
645
645
|
ref_key: "files",
|
|
646
|
-
ref:
|
|
646
|
+
ref: s,
|
|
647
647
|
multiple: "",
|
|
648
648
|
style: { display: "none" },
|
|
649
649
|
onChange: f,
|
|
650
650
|
accept: n.accept
|
|
651
651
|
}, null, 40, ft),
|
|
652
|
-
|
|
652
|
+
F(v, {
|
|
653
653
|
type: "success",
|
|
654
654
|
size: n.size,
|
|
655
|
-
icon: o(
|
|
655
|
+
icon: o(j),
|
|
656
656
|
onClick: d
|
|
657
657
|
}, {
|
|
658
658
|
default: m(() => [
|
|
@@ -660,10 +660,10 @@ const mt = /* @__PURE__ */ B(ht, [["__scopeId", "data-v-83b9cdd7"], ["__file", "
|
|
|
660
660
|
]),
|
|
661
661
|
_: 1
|
|
662
662
|
}, 8, ["size", "icon"]),
|
|
663
|
-
|
|
663
|
+
F(v, {
|
|
664
664
|
type: "success",
|
|
665
665
|
size: n.size,
|
|
666
|
-
icon: o(
|
|
666
|
+
icon: o(G),
|
|
667
667
|
onClick: C,
|
|
668
668
|
disabled: l.value.length == 0
|
|
669
669
|
}, {
|
|
@@ -672,21 +672,21 @@ const mt = /* @__PURE__ */ B(ht, [["__scopeId", "data-v-83b9cdd7"], ["__file", "
|
|
|
672
672
|
]),
|
|
673
673
|
_: 1
|
|
674
674
|
}, 8, ["size", "icon", "disabled"]),
|
|
675
|
-
(r(!0), y(
|
|
676
|
-
z("span", _t,
|
|
677
|
-
|
|
675
|
+
(r(!0), y(N, null, R(l.value, (b, U) => (r(), y("p", vt, [
|
|
676
|
+
z("span", _t, B(b.name), 1),
|
|
677
|
+
F(v, {
|
|
678
678
|
size: "small",
|
|
679
679
|
icon: o(Ce),
|
|
680
680
|
class: "operation",
|
|
681
681
|
link: "",
|
|
682
|
-
onClick: (T) => g(
|
|
682
|
+
onClick: (T) => g(U)
|
|
683
683
|
}, null, 8, ["icon", "onClick"])
|
|
684
684
|
]))), 256))
|
|
685
685
|
]);
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
688
|
});
|
|
689
|
-
const gt = /* @__PURE__ */
|
|
689
|
+
const gt = /* @__PURE__ */ V(zt, [["__scopeId", "data-v-50d3310f"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/UpLoadFiles/index.vue"]]), yt = /* @__PURE__ */ M({
|
|
690
690
|
__name: "index",
|
|
691
691
|
props: {
|
|
692
692
|
asideWidth: { type: Number, required: !1, default: 220 },
|
|
@@ -694,18 +694,18 @@ const gt = /* @__PURE__ */ B(zt, [["__scopeId", "data-v-50d3310f"], ["__file", "
|
|
|
694
694
|
horizontal: { type: Boolean, required: !1, default: !1 }
|
|
695
695
|
},
|
|
696
696
|
setup(e) {
|
|
697
|
-
const a =
|
|
698
|
-
return (
|
|
699
|
-
const
|
|
697
|
+
const a = A();
|
|
698
|
+
return (i, n) => {
|
|
699
|
+
const s = _("el-aside"), l = _("el-header"), d = _("el-main"), f = _("el-container");
|
|
700
700
|
return r(), h(f, { class: "container" }, {
|
|
701
701
|
default: m(() => [
|
|
702
|
-
o(a).aside && !e.horizontal ? (r(), h(
|
|
702
|
+
o(a).aside && !e.horizontal ? (r(), h(s, {
|
|
703
703
|
key: 0,
|
|
704
704
|
class: "aside",
|
|
705
705
|
style: x("width: " + e.asideWidth + "px;")
|
|
706
706
|
}, {
|
|
707
707
|
default: m(() => [
|
|
708
|
-
w(
|
|
708
|
+
w(i.$slots, "aside", {}, void 0, !0)
|
|
709
709
|
]),
|
|
710
710
|
_: 3
|
|
711
711
|
}, 8, ["style"])) : c("v-if", !0),
|
|
@@ -715,13 +715,13 @@ const gt = /* @__PURE__ */ B(zt, [["__scopeId", "data-v-50d3310f"], ["__file", "
|
|
|
715
715
|
style: x("height: " + e.headerMaxHeight + "px;")
|
|
716
716
|
}, {
|
|
717
717
|
default: m(() => [
|
|
718
|
-
w(
|
|
718
|
+
w(i.$slots, "header", {}, void 0, !0)
|
|
719
719
|
]),
|
|
720
720
|
_: 3
|
|
721
721
|
}, 8, ["style"])) : c("v-if", !0),
|
|
722
|
-
|
|
722
|
+
F(d, { class: "main" }, {
|
|
723
723
|
default: m(() => [
|
|
724
|
-
|
|
724
|
+
F(f, { class: "inside_container" }, {
|
|
725
725
|
default: m(() => [
|
|
726
726
|
o(a).header && !e.horizontal ? (r(), h(l, {
|
|
727
727
|
key: 0,
|
|
@@ -729,23 +729,23 @@ const gt = /* @__PURE__ */ B(zt, [["__scopeId", "data-v-50d3310f"], ["__file", "
|
|
|
729
729
|
style: x("height: " + e.headerMaxHeight + "px;")
|
|
730
730
|
}, {
|
|
731
731
|
default: m(() => [
|
|
732
|
-
w(
|
|
732
|
+
w(i.$slots, "header", {}, void 0, !0)
|
|
733
733
|
]),
|
|
734
734
|
_: 3
|
|
735
735
|
}, 8, ["style"])) : c("v-if", !0),
|
|
736
|
-
o(a).aside && e.horizontal ? (r(), h(
|
|
736
|
+
o(a).aside && e.horizontal ? (r(), h(s, {
|
|
737
737
|
key: 1,
|
|
738
738
|
class: "aside",
|
|
739
739
|
style: x("width: " + e.asideWidth + "px;")
|
|
740
740
|
}, {
|
|
741
741
|
default: m(() => [
|
|
742
|
-
w(
|
|
742
|
+
w(i.$slots, "aside", {}, void 0, !0)
|
|
743
743
|
]),
|
|
744
744
|
_: 3
|
|
745
745
|
}, 8, ["style"])) : c("v-if", !0),
|
|
746
|
-
|
|
746
|
+
F(d, { class: "inside_main" }, {
|
|
747
747
|
default: m(() => [
|
|
748
|
-
w(
|
|
748
|
+
w(i.$slots, "default", {}, void 0, !0)
|
|
749
749
|
]),
|
|
750
750
|
_: 3
|
|
751
751
|
})
|
|
@@ -761,10 +761,10 @@ const gt = /* @__PURE__ */ B(zt, [["__scopeId", "data-v-50d3310f"], ["__file", "
|
|
|
761
761
|
};
|
|
762
762
|
}
|
|
763
763
|
});
|
|
764
|
-
const xt = /* @__PURE__ */
|
|
764
|
+
const xt = /* @__PURE__ */ V(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/Layout/index.vue"]]), wt = {
|
|
765
765
|
key: 0,
|
|
766
766
|
class: "header"
|
|
767
|
-
}, St = { class: "header_title" }, bt = ["innerHTML"], Pt = { class: "header_title" }, Ct = { class: "pagination" }, Ft = /* @__PURE__ */
|
|
767
|
+
}, St = { class: "header_title" }, bt = ["innerHTML"], Pt = { class: "header_title" }, Ct = { class: "pagination" }, Ft = /* @__PURE__ */ M({
|
|
768
768
|
__name: "index",
|
|
769
769
|
props: {
|
|
770
770
|
maxHeight: { type: Number, required: !1, default: 550 },
|
|
@@ -796,32 +796,30 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
796
796
|
},
|
|
797
797
|
emits: ["row-click", "row-dblclick", "selection-change", "search", "clear", "delete", "edit", "page-index", "page-size", "enter"],
|
|
798
798
|
setup(e, { emit: a }) {
|
|
799
|
-
const
|
|
799
|
+
const i = e;
|
|
800
800
|
let n = ne({
|
|
801
801
|
pageIndex: 1,
|
|
802
802
|
pageSize: 5
|
|
803
803
|
});
|
|
804
|
-
const
|
|
804
|
+
const s = A(), l = (u) => {
|
|
805
805
|
a("row-click", u);
|
|
806
806
|
}, d = (u) => {
|
|
807
807
|
a("row-click", u);
|
|
808
808
|
}, f = (u) => {
|
|
809
809
|
a("selection-change", u);
|
|
810
810
|
}, g = () => {
|
|
811
|
-
if (
|
|
812
|
-
for (let u = 0; u <
|
|
813
|
-
let v =
|
|
814
|
-
n[v.prop] =
|
|
811
|
+
if (i.tableColumn.length > 0)
|
|
812
|
+
for (let u = 0; u < i.tableColumn.length; u++) {
|
|
813
|
+
let v = i.tableColumn[u];
|
|
814
|
+
n[v.prop] = null;
|
|
815
815
|
}
|
|
816
816
|
a("clear");
|
|
817
817
|
}, C = () => {
|
|
818
818
|
a("search", n);
|
|
819
|
-
},
|
|
819
|
+
}, $ = (u) => {
|
|
820
820
|
a("edit", u);
|
|
821
821
|
}, S = (u) => {
|
|
822
822
|
a("delete", u);
|
|
823
|
-
}, F = () => {
|
|
824
|
-
a("enter");
|
|
825
823
|
};
|
|
826
824
|
return H(
|
|
827
825
|
() => n.pageIndex,
|
|
@@ -833,21 +831,21 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
833
831
|
(u, v) => {
|
|
834
832
|
a("page-size", Number(u), Number(v));
|
|
835
833
|
}
|
|
836
|
-
),
|
|
837
|
-
if (
|
|
838
|
-
for (let u = 0; u <
|
|
839
|
-
let v =
|
|
840
|
-
n[v.prop] =
|
|
834
|
+
), O(() => {
|
|
835
|
+
if (i.tableColumn.length > 0)
|
|
836
|
+
for (let u = 0; u < i.tableColumn.length; u++) {
|
|
837
|
+
let v = i.tableColumn[u];
|
|
838
|
+
n[v.prop] = null;
|
|
841
839
|
}
|
|
842
840
|
}), (u, v) => {
|
|
843
|
-
const
|
|
844
|
-
return r(), y(
|
|
845
|
-
o(
|
|
841
|
+
const b = _("el-table-column"), U = _("el-input"), T = _("el-input-number"), K = _("el-option"), Y = _("el-select"), q = _("el-date-picker"), W = _("el-time-picker"), J = _("el-switch"), L = _("el-button"), X = _("el-popconfirm"), Q = _("el-table"), Z = _("el-pagination");
|
|
842
|
+
return r(), y(N, null, [
|
|
843
|
+
o(s).header ? (r(), y("div", wt, [
|
|
846
844
|
w(u.$slots, "header", {}, void 0, !0)
|
|
847
845
|
])) : c("v-if", !0),
|
|
848
|
-
|
|
846
|
+
F(Q, {
|
|
849
847
|
data: e.tableData,
|
|
850
|
-
class:
|
|
848
|
+
class: P([e.size && e.size == "small" ? "mini-table" : "table"]),
|
|
851
849
|
"max-height": e.maxHeight,
|
|
852
850
|
size: e.size,
|
|
853
851
|
stripe: e.stripe,
|
|
@@ -858,7 +856,7 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
858
856
|
onSelectionChange: f
|
|
859
857
|
}, {
|
|
860
858
|
default: m(() => [
|
|
861
|
-
e.type && e.type == "index" ? (r(), h(
|
|
859
|
+
e.type && e.type == "index" ? (r(), h(b, {
|
|
862
860
|
key: 0,
|
|
863
861
|
align: "center",
|
|
864
862
|
type: "index",
|
|
@@ -866,14 +864,14 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
866
864
|
fixed: e.typeIsFixed ? "left" : !1,
|
|
867
865
|
label: e.typeLabel
|
|
868
866
|
}, null, 8, ["width", "fixed", "label"])) : c("v-if", !0),
|
|
869
|
-
e.type == "selection" ? (r(), h(
|
|
867
|
+
e.type == "selection" ? (r(), h(b, {
|
|
870
868
|
key: 1,
|
|
871
869
|
align: "center",
|
|
872
870
|
type: "selection",
|
|
873
871
|
width: e.typeWidth + "px",
|
|
874
872
|
fixed: e.typeIsFixed ? "left" : !1
|
|
875
873
|
}, null, 8, ["width", "fixed"])) : c("v-if", !0),
|
|
876
|
-
e.type == "expand" ? (r(), h(
|
|
874
|
+
e.type == "expand" ? (r(), h(b, {
|
|
877
875
|
key: 2,
|
|
878
876
|
align: "center",
|
|
879
877
|
type: "expand",
|
|
@@ -888,16 +886,16 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
888
886
|
]),
|
|
889
887
|
_: 3
|
|
890
888
|
}, 8, ["width", "fixed", "label"])) : c("v-if", !0),
|
|
891
|
-
(r(!0), y(
|
|
889
|
+
(r(!0), y(N, null, R(e.tableColumn, (t) => (r(), h(b, {
|
|
892
890
|
prop: t.costom ? !1 : t.prop,
|
|
893
891
|
width: t.width ? t.width : "",
|
|
894
892
|
fixed: t.fixed ? t.fixed : !1,
|
|
895
893
|
align: t.align ? t.align : "left"
|
|
896
|
-
},
|
|
894
|
+
}, ie({
|
|
897
895
|
header: m(() => [
|
|
898
|
-
z("div", St,
|
|
896
|
+
z("div", St, B(t.label), 1),
|
|
899
897
|
c(" \u6587\u672C\u641C\u7D22\u6846 "),
|
|
900
|
-
t.search && (!t.type || t.type == "text") ? (r(), h(
|
|
898
|
+
t.search && (!t.type || t.type == "text") ? (r(), h(U, {
|
|
901
899
|
key: 0,
|
|
902
900
|
modelValue: o(n)[t.prop],
|
|
903
901
|
"onUpdate:modelValue": (p) => o(n)[t.prop] = p,
|
|
@@ -908,11 +906,11 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
908
906
|
),
|
|
909
907
|
disabled: t.disabled,
|
|
910
908
|
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u8F93\u5165" + t.label,
|
|
911
|
-
class:
|
|
912
|
-
|
|
913
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "placeholder", "class"])) : c("v-if", !0),
|
|
909
|
+
class: P([t.align && t.align == "center" ? "center" : ""]),
|
|
910
|
+
onKeyup: I(C, ["enter", "native"])
|
|
911
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "placeholder", "class", "onKeyup"])) : c("v-if", !0),
|
|
914
912
|
c(" \u6570\u5B57\u6846\u641C\u7D22 "),
|
|
915
|
-
t.search && t.type == "number" ? (r(), h(
|
|
913
|
+
t.search && t.type == "number" ? (r(), h(T, {
|
|
916
914
|
key: 1,
|
|
917
915
|
modelValue: o(n)[t.prop],
|
|
918
916
|
"onUpdate:modelValue": (p) => o(n)[t.prop] = p,
|
|
@@ -923,13 +921,14 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
923
921
|
),
|
|
924
922
|
disabled: t.disabled,
|
|
925
923
|
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u8F93\u5165" + t.label,
|
|
926
|
-
class:
|
|
924
|
+
class: P([t.align && t.align == "center" ? "center" : ""]),
|
|
927
925
|
max: t.max != null ? t.max : 1 / 0,
|
|
928
926
|
min: t.min != null ? t.min : -1 / 0,
|
|
929
|
-
step: t.step != null ? t.step : 1
|
|
930
|
-
|
|
927
|
+
step: t.step != null ? t.step : 1,
|
|
928
|
+
onKeyup: I(C, ["enter", "native"])
|
|
929
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "placeholder", "class", "max", "min", "step", "onKeyup"])) : c("v-if", !0),
|
|
931
930
|
c(" \u9009\u62E9\u641C\u7D22 "),
|
|
932
|
-
t.search && t.type == "select" ? (r(), h(
|
|
931
|
+
t.search && t.type == "select" ? (r(), h(Y, {
|
|
933
932
|
key: 2,
|
|
934
933
|
modelValue: o(n)[t.prop],
|
|
935
934
|
"onUpdate:modelValue": (p) => o(n)[t.prop] = p,
|
|
@@ -943,10 +942,10 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
943
942
|
multiple: t.multiple,
|
|
944
943
|
"collapse-tags": t.omit,
|
|
945
944
|
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9" + t.label,
|
|
946
|
-
class:
|
|
945
|
+
class: P([t.align && t.align == "center" ? "center" : ""])
|
|
947
946
|
}, {
|
|
948
947
|
default: m(() => [
|
|
949
|
-
(r(!0), y(
|
|
948
|
+
(r(!0), y(N, null, R(t.options, (p) => (r(), h(K, {
|
|
950
949
|
label: p.label ? p.label : p.value,
|
|
951
950
|
value: p.value,
|
|
952
951
|
disabled: p.disabled
|
|
@@ -955,7 +954,7 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
955
954
|
_: 2
|
|
956
955
|
}, 1032, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "multiple", "collapse-tags", "placeholder", "class"])) : c("v-if", !0),
|
|
957
956
|
c(" \u65E5\u671F\u9009\u62E9 "),
|
|
958
|
-
t.search && t.type == "date" ? (r(), h(
|
|
957
|
+
t.search && t.type == "date" ? (r(), h(q, {
|
|
959
958
|
key: 3,
|
|
960
959
|
modelValue: o(n)[t.prop],
|
|
961
960
|
"onUpdate:modelValue": (p) => o(n)[t.prop] = p,
|
|
@@ -963,7 +962,7 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
963
962
|
style: x(t.searchWidth ? "width: " + t.searchWidth + "px;" : ""),
|
|
964
963
|
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9\u65E5\u671F",
|
|
965
964
|
size: t.size,
|
|
966
|
-
class:
|
|
965
|
+
class: P([t.align && t.align == "center" ? "center" : ""])
|
|
967
966
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : c("v-if", !0),
|
|
968
967
|
c(" \u65F6\u95F4\u9009\u62E9 "),
|
|
969
968
|
t.search && t.type == "time" ? (r(), h(W, {
|
|
@@ -976,10 +975,10 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
976
975
|
),
|
|
977
976
|
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9\u65F6\u95F4",
|
|
978
977
|
size: t.size,
|
|
979
|
-
class:
|
|
978
|
+
class: P([t.align && t.align == "center" ? "center" : ""])
|
|
980
979
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : c("v-if", !0),
|
|
981
980
|
c(" \u65E5\u671F\u65F6\u95F4\u641C\u7D22 "),
|
|
982
|
-
t.search && t.type == "datetime" ? (r(), h(
|
|
981
|
+
t.search && t.type == "datetime" ? (r(), h(q, {
|
|
983
982
|
key: 5,
|
|
984
983
|
modelValue: o(n)[t.prop],
|
|
985
984
|
"onUpdate:modelValue": (p) => o(n)[t.prop] = p,
|
|
@@ -989,10 +988,10 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
989
988
|
),
|
|
990
989
|
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4",
|
|
991
990
|
size: t.size,
|
|
992
|
-
class:
|
|
991
|
+
class: P([t.align && t.align == "center" ? "center" : ""])
|
|
993
992
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : c("v-if", !0),
|
|
994
993
|
c(" \u65E5\u671F\u8303\u56F4\u9009\u62E9 "),
|
|
995
|
-
t.search && t.type == "daterange" ? (r(), h(
|
|
994
|
+
t.search && t.type == "daterange" ? (r(), h(q, {
|
|
996
995
|
key: 6,
|
|
997
996
|
modelValue: o(n)[t.prop],
|
|
998
997
|
"onUpdate:modelValue": (p) => o(n)[t.prop] = p,
|
|
@@ -1004,7 +1003,7 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
1004
1003
|
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
1005
1004
|
),
|
|
1006
1005
|
size: t.size,
|
|
1007
|
-
class:
|
|
1006
|
+
class: P([t.align && t.align == "center" ? "center" : ""])
|
|
1008
1007
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : c("v-if", !0),
|
|
1009
1008
|
c(" \u65F6\u95F4\u8303\u56F4\u9009\u62E9 "),
|
|
1010
1009
|
t.search && t.type == "timerange" ? (r(), h(W, {
|
|
@@ -1020,10 +1019,10 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
1020
1019
|
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
1021
1020
|
),
|
|
1022
1021
|
size: t.size,
|
|
1023
|
-
class:
|
|
1022
|
+
class: P([t.align && t.align == "center" ? "center" : ""])
|
|
1024
1023
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : c("v-if", !0),
|
|
1025
1024
|
c(" \u65E5\u671F\u65F6\u95F4\u8303\u56F4\u9009\u62E9 "),
|
|
1026
|
-
t.search && t.type == "datetimerange" ? (r(), h(
|
|
1025
|
+
t.search && t.type == "datetimerange" ? (r(), h(q, {
|
|
1027
1026
|
key: 8,
|
|
1028
1027
|
modelValue: o(n)[t.prop],
|
|
1029
1028
|
"onUpdate:modelValue": (p) => o(n)[t.prop] = p,
|
|
@@ -1035,17 +1034,17 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
1035
1034
|
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
1036
1035
|
),
|
|
1037
1036
|
size: t.size,
|
|
1038
|
-
class:
|
|
1037
|
+
class: P([t.align && t.align == "center" ? "center" : ""])
|
|
1039
1038
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : c("v-if", !0),
|
|
1040
1039
|
c(" \u5F00\u5173 "),
|
|
1041
|
-
t.search && t.type == "switch" ? (r(), h(
|
|
1040
|
+
t.search && t.type == "switch" ? (r(), h(J, {
|
|
1042
1041
|
key: 9,
|
|
1043
1042
|
modelValue: o(n)[t.prop],
|
|
1044
1043
|
"onUpdate:modelValue": (p) => o(n)[t.prop] = p,
|
|
1045
1044
|
size: t.size,
|
|
1046
1045
|
"active-text": t.openText,
|
|
1047
1046
|
"inactive-text": t.closeText,
|
|
1048
|
-
class:
|
|
1047
|
+
class: P([t.align && t.align == "center" ? "center" : ""])
|
|
1049
1048
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "active-text", "inactive-text", "class"])) : c("v-if", !0)
|
|
1050
1049
|
]),
|
|
1051
1050
|
_: 2
|
|
@@ -1060,16 +1059,16 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
1060
1059
|
key: "0"
|
|
1061
1060
|
} : void 0
|
|
1062
1061
|
]), 1032, ["prop", "width", "fixed", "align"]))), 256)),
|
|
1063
|
-
e.operate ? (r(), h(
|
|
1062
|
+
e.operate ? (r(), h(b, {
|
|
1064
1063
|
key: 3,
|
|
1065
1064
|
align: "center",
|
|
1066
1065
|
width: e.operateWidth ? e.operateWidth : "",
|
|
1067
1066
|
fixed: e.operateIsFixed ? "right" : !1
|
|
1068
1067
|
}, {
|
|
1069
1068
|
header: m(() => [
|
|
1070
|
-
z("div", Pt,
|
|
1069
|
+
z("div", Pt, B(e.operateLabel), 1),
|
|
1071
1070
|
w(u.$slots, "operate-front", {}, void 0, !0),
|
|
1072
|
-
e.search ? (r(), h(
|
|
1071
|
+
e.search ? (r(), h(L, {
|
|
1073
1072
|
key: 0,
|
|
1074
1073
|
type: "primary",
|
|
1075
1074
|
size: e.operateSize,
|
|
@@ -1082,7 +1081,7 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
1082
1081
|
_: 1
|
|
1083
1082
|
}, 8, ["size", "icon"])) : c("v-if", !0),
|
|
1084
1083
|
w(u.$slots, "operate-middle", {}, void 0, !0),
|
|
1085
|
-
e.clear ? (r(), h(
|
|
1084
|
+
e.clear ? (r(), h(L, {
|
|
1086
1085
|
key: 1,
|
|
1087
1086
|
type: "info",
|
|
1088
1087
|
size: e.operateSize,
|
|
@@ -1100,13 +1099,13 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
1100
1099
|
w(u.$slots, "row-operate-front", {
|
|
1101
1100
|
row: t.row
|
|
1102
1101
|
}, void 0, !0),
|
|
1103
|
-
e.edit ? (r(), h(
|
|
1102
|
+
e.edit ? (r(), h(L, {
|
|
1104
1103
|
key: 0,
|
|
1105
1104
|
link: "",
|
|
1106
1105
|
type: "primary",
|
|
1107
1106
|
size: e.rowButtonSize,
|
|
1108
1107
|
icon: o(Ae),
|
|
1109
|
-
onClick: (p) =>
|
|
1108
|
+
onClick: (p) => $(t.row)
|
|
1110
1109
|
}, {
|
|
1111
1110
|
default: m(() => [
|
|
1112
1111
|
k("\u4FEE\u6539")
|
|
@@ -1116,7 +1115,7 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
1116
1115
|
w(u.$slots, "row-operate-middle", {
|
|
1117
1116
|
row: t.row
|
|
1118
1117
|
}, void 0, !0),
|
|
1119
|
-
e.delete ? (r(), h(
|
|
1118
|
+
e.delete ? (r(), h(X, {
|
|
1120
1119
|
key: 1,
|
|
1121
1120
|
"confirm-button-text": "\u5426",
|
|
1122
1121
|
"cancel-button-text": "\u662F",
|
|
@@ -1128,7 +1127,7 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
1128
1127
|
title: e.deleteTitle ? e.deleteTitle : "\u662F\u5426\u8981\u5220\u9664\u5F53\u524D\u884C\uFF1F"
|
|
1129
1128
|
}, {
|
|
1130
1129
|
reference: m(() => [
|
|
1131
|
-
|
|
1130
|
+
F(L, {
|
|
1132
1131
|
link: "",
|
|
1133
1132
|
type: "danger",
|
|
1134
1133
|
size: e.rowButtonSize,
|
|
@@ -1171,7 +1170,7 @@ const xt = /* @__PURE__ */ B(yt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
1171
1170
|
};
|
|
1172
1171
|
}
|
|
1173
1172
|
});
|
|
1174
|
-
const kt = /* @__PURE__ */
|
|
1173
|
+
const kt = /* @__PURE__ */ V(Ft, [["__scopeId", "data-v-f4c855de"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/TableForm/index.vue"]]), $t = {
|
|
1175
1174
|
install: (e) => {
|
|
1176
1175
|
e.component("SplitPanes", ce), e.component("Pane", he), e.component("UpLoadFile", mt), e.component("Layout", xt), e.component("TableForm", kt), e.component("UpLoadFiles", gt);
|
|
1177
1176
|
}
|