dld-vue-ui 0.3.8 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/dld-vue-ui.js +374 -368
- package/dist/dld-vue-ui.umd.cjs +1 -1
- package/dist/packages/TableForm/index.vue.d.ts +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 ne, openBlock as r, createElementBlock as g, normalizeStyle as w, renderSlot as S, defineComponent as B, createBlock as h, unref as o, withCtx as m, createElementVNode as _, ref as T, onMounted as A, resolveComponent as v, createVNode as P, createTextVNode as $, withDirectives as ie, vShow as se, toDisplayString as N, Fragment as R, renderList as W, useSlots as j, createCommentVNode as c, reactive as le, watch as I, normalizeClass as b, createSlots as oe, withKeys as O } from "vue";
|
|
2
|
+
const re = {
|
|
3
3
|
name: "splitpanes",
|
|
4
4
|
emits: ["ready", "resize", "resized", "pane-click", "pane-maximize", "pane-add", "pane-remove", "splitter-click"],
|
|
5
5
|
props: {
|
|
@@ -70,17 +70,17 @@ const le = {
|
|
|
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((
|
|
73
|
+
let i = 0;
|
|
74
|
+
this.panes = this.panes.map((s, n) => (s.size = n === a ? s.max : s.min, n !== a && (i += s.min), s)), this.panes[a].size -= i, this.$emit("pane-maximize", this.panes[a]), this.$emit("resized", this.panes.map((s) => ({ min: s.min, max: s.max, size: s.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: s } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
|
|
81
81
|
return {
|
|
82
|
-
x:
|
|
83
|
-
y:
|
|
82
|
+
x: i - a.left,
|
|
83
|
+
y: s - a.top
|
|
84
84
|
};
|
|
85
85
|
},
|
|
86
86
|
getCurrentDragPercentage(e) {
|
|
@@ -90,44 +90,44 @@ const le = {
|
|
|
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
|
|
100
|
-
let d = [a, a + 1], f = this.panes[d[0]] || null,
|
|
101
|
-
const
|
|
102
|
-
if (
|
|
103
|
-
|
|
99
|
+
const s = 0 + (this.pushOtherPanes ? 0 : i.prevPanesSize), n = 100 - (this.pushOtherPanes ? 0 : i.nextPanesSize), l = Math.max(Math.min(this.getCurrentDragPercentage(e), n), s);
|
|
100
|
+
let d = [a, a + 1], f = this.panes[d[0]] || null, z = this.panes[d[1]] || null;
|
|
101
|
+
const C = f.max < 100 && l >= f.max + i.prevPanesSize, V = z.max < 100 && l <= 100 - (z.max + this.sumNextPanesSize(a + 1));
|
|
102
|
+
if (C || V) {
|
|
103
|
+
C ? (f.size = f.max, z.size = Math.max(100 - f.max - i.prevPanesSize - i.nextPanesSize, 0)) : (f.size = Math.max(100 - z.max - i.prevPanesSize - this.sumNextPanesSize(a + 1), 0), z.size = z.max);
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
106
|
if (this.pushOtherPanes) {
|
|
107
|
-
const
|
|
108
|
-
if (!
|
|
107
|
+
const y = this.doPushOtherPanes(i, l);
|
|
108
|
+
if (!y)
|
|
109
109
|
return;
|
|
110
|
-
({ sums:
|
|
110
|
+
({ sums: i, panesToResize: d } = y), f = this.panes[d[0]] || null, z = 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)), z !== null && (z.size = Math.min(Math.max(100 - l - i.nextPanesSize - i.nextReachedMinPanes, z.min), z.max));
|
|
113
113
|
},
|
|
114
114
|
doPushOtherPanes(e, a) {
|
|
115
|
-
const
|
|
116
|
-
return a < e.prevPanesSize + this.panes[
|
|
117
|
-
l >
|
|
118
|
-
}), e.prevPanesSize = this.sumPrevPanesSize(
|
|
119
|
-
l > 0 && l <=
|
|
120
|
-
}), this.panes[
|
|
121
|
-
l >
|
|
122
|
-
}), e.nextPanesSize = this.sumNextPanesSize(
|
|
123
|
-
l < this.panesCount - 1 && l >=
|
|
124
|
-
}), this.panes[
|
|
115
|
+
const i = this.touch.activeSplitter, s = [i, i + 1];
|
|
116
|
+
return a < e.prevPanesSize + this.panes[s[0]].min && (s[0] = this.findPrevExpandedPane(i).index, e.prevReachedMinPanes = 0, s[0] < i && this.panes.forEach((n, l) => {
|
|
117
|
+
l > s[0] && l <= i && (n.size = n.min, e.prevReachedMinPanes += n.min);
|
|
118
|
+
}), e.prevPanesSize = this.sumPrevPanesSize(s[0]), s[0] === void 0) ? (e.prevReachedMinPanes = 0, this.panes[0].size = this.panes[0].min, this.panes.forEach((n, l) => {
|
|
119
|
+
l > 0 && l <= i && (n.size = n.min, e.prevReachedMinPanes += n.min);
|
|
120
|
+
}), this.panes[s[1]].size = 100 - e.prevReachedMinPanes - this.panes[0].min - e.prevPanesSize - e.nextPanesSize, null) : a > 100 - e.nextPanesSize - this.panes[s[1]].min && (s[1] = this.findNextExpandedPane(i).index, e.nextReachedMinPanes = 0, s[1] > i + 1 && this.panes.forEach((n, l) => {
|
|
121
|
+
l > i && l < s[1] && (n.size = n.min, e.nextReachedMinPanes += n.min);
|
|
122
|
+
}), e.nextPanesSize = this.sumNextPanesSize(s[1] - 1), s[1] === void 0) ? (e.nextReachedMinPanes = 0, this.panes[this.panesCount - 1].size = this.panes[this.panesCount - 1].min, this.panes.forEach((n, l) => {
|
|
123
|
+
l < this.panesCount - 1 && l >= i + 1 && (n.size = n.min, e.nextReachedMinPanes += n.min);
|
|
124
|
+
}), this.panes[s[0]].size = 100 - e.prevPanesSize - e.nextReachedMinPanes - this.panes[this.panesCount - 1].min - e.nextPanesSize, null) : { sums: e, panesToResize: s };
|
|
125
125
|
},
|
|
126
126
|
sumPrevPanesSize(e) {
|
|
127
|
-
return this.panes.reduce((a,
|
|
127
|
+
return this.panes.reduce((a, i, s) => a + (s < e ? i.size : 0), 0);
|
|
128
128
|
},
|
|
129
129
|
sumNextPanesSize(e) {
|
|
130
|
-
return this.panes.reduce((a,
|
|
130
|
+
return this.panes.reduce((a, i, s) => a + (s > 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 le = {
|
|
|
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
|
|
146
|
-
|
|
144
|
+
addSplitter(e, a, i = !1) {
|
|
145
|
+
const s = e - 1, n = document.createElement("div");
|
|
146
|
+
n.classList.add("splitpanes__splitter"), i || (n.onmousedown = (l) => this.onMouseDown(l, s), typeof window < "u" && "ontouchstart" in window && (n.ontouchstart = (l) => this.onMouseDown(l, s)), n.onclick = (l) => this.onSplitterClick(l, s + 1)), this.dblClickSplitter && (n.ondblclick = (l) => this.onSplitterDblClick(l, s + 1)), a.parentNode.insertBefore(n, 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(([
|
|
162
|
+
const i = this.indexedPanes[e._.uid];
|
|
163
|
+
Object.entries(a).forEach(([s, n]) => i[s] = n);
|
|
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((n) => (n.className.includes("splitpanes__pane") && a++, n === e.$el));
|
|
168
|
+
const i = parseFloat(e.minSize), s = parseFloat(e.maxSize);
|
|
169
169
|
this.panes.splice(a, 0, {
|
|
170
170
|
id: e._.uid,
|
|
171
171
|
index: a,
|
|
172
|
-
min: isNaN(
|
|
173
|
-
max: isNaN(
|
|
172
|
+
min: isNaN(i) ? 0 : i,
|
|
173
|
+
max: isNaN(s) ? 100 : s,
|
|
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((n, l) => n.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((n) => ({ min: n.min, max: n.max, size: n.size })) });
|
|
179
179
|
});
|
|
180
180
|
},
|
|
181
181
|
onPaneRemove(e) {
|
|
182
|
-
const a = this.panes.findIndex((
|
|
183
|
-
this.panes.forEach((
|
|
184
|
-
this.redoSplitters(), this.resetPaneSizes({ removedPane: { ...
|
|
182
|
+
const a = this.panes.findIndex((s) => s.id === e._.uid), i = this.panes.splice(a, 1)[0];
|
|
183
|
+
this.panes.forEach((s, n) => s.index = n), this.$nextTick(() => {
|
|
184
|
+
this.redoSplitters(), this.resetPaneSizes({ removedPane: { ...i, index: a } }), this.$emit("pane-remove", { removed: i, panes: this.panes.map((s) => ({ min: s.min, max: s.max, size: s.size })) });
|
|
185
185
|
});
|
|
186
186
|
},
|
|
187
187
|
resetPaneSizes(e = {}) {
|
|
@@ -190,44 +190,44 @@ const le = {
|
|
|
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 = [], s = [];
|
|
194
|
+
this.panes.forEach((n) => {
|
|
195
|
+
n.size = Math.max(Math.min(e, n.max), n.min), a -= n.size, n.size >= n.max && i.push(n.id), n.size <= n.min && s.push(n.id);
|
|
196
|
+
}), a > 0.1 && this.readjustSizes(a, i, s);
|
|
197
197
|
},
|
|
198
198
|
initialPanesSizing() {
|
|
199
199
|
let e = 100;
|
|
200
|
-
const a = [],
|
|
201
|
-
let
|
|
200
|
+
const a = [], i = [];
|
|
201
|
+
let s = 0;
|
|
202
202
|
this.panes.forEach((l) => {
|
|
203
|
-
e -= l.size, l.size !== null &&
|
|
203
|
+
e -= l.size, l.size !== null && s++, l.size >= l.max && a.push(l.id), l.size <= l.min && i.push(l.id);
|
|
204
204
|
});
|
|
205
|
-
let
|
|
205
|
+
let n = 100;
|
|
206
206
|
e > 0.1 && (this.panes.forEach((l) => {
|
|
207
|
-
l.size === null && (l.size = Math.max(Math.min(e / (this.panesCount -
|
|
208
|
-
}),
|
|
207
|
+
l.size === null && (l.size = Math.max(Math.min(e / (this.panesCount - s), l.max), l.min)), n -= l.size;
|
|
208
|
+
}), n > 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
|
-
|
|
215
|
-
}), !(Math.abs(
|
|
216
|
-
e && e.givenSize !== null && e.id === d.id || (d.size = Math.max(Math.min(
|
|
217
|
-
}),
|
|
211
|
+
let i = 100 / this.panesCount, s = 0;
|
|
212
|
+
const n = [], l = [];
|
|
213
|
+
e && e.givenSize !== null && (i = (100 - e.givenSize) / (this.panesCount - 1)), this.panes.forEach((d) => {
|
|
214
|
+
s -= d.size, d.size >= d.max && n.push(d.id), d.size <= d.min && l.push(d.id);
|
|
215
|
+
}), !(Math.abs(s) < 0.1) && (this.panes.forEach((d) => {
|
|
216
|
+
e && e.givenSize !== null && e.id === d.id || (d.size = Math.max(Math.min(i, d.max), d.min)), s -= d.size, d.size >= d.max && n.push(d.id), d.size <= d.min && l.push(d.id);
|
|
217
|
+
}), s > 0.1 && this.readjustSizes(s, n, l));
|
|
218
218
|
},
|
|
219
|
-
readjustSizes(e, a,
|
|
220
|
-
let
|
|
221
|
-
e > 0 ?
|
|
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,
|
|
219
|
+
readjustSizes(e, a, i) {
|
|
220
|
+
let s;
|
|
221
|
+
e > 0 ? s = e / (this.panesCount - a.length) : s = e / (this.panesCount - i.length), this.panes.forEach((n, l) => {
|
|
222
|
+
if (e > 0 && !a.includes(n.id)) {
|
|
223
|
+
const d = Math.max(Math.min(n.size + s, n.max), n.min), f = d - n.size;
|
|
224
|
+
e -= f, n.size = d;
|
|
225
|
+
} else if (!i.includes(n.id)) {
|
|
226
|
+
const d = Math.max(Math.min(n.size + s, n.max), n.min), f = d - n.size;
|
|
227
|
+
e -= f, n.size = d;
|
|
228
228
|
}
|
|
229
|
-
|
|
230
|
-
[this.horizontal ? "height" : "width"]: `${this.indexedPanes[
|
|
229
|
+
n.update({
|
|
230
|
+
[this.horizontal ? "height" : "width"]: `${this.indexedPanes[n.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 le = {
|
|
|
249
249
|
this.redoSplitters();
|
|
250
250
|
},
|
|
251
251
|
dblClickSplitter(e) {
|
|
252
|
-
[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((a,
|
|
253
|
-
a.ondblclick = e ? (
|
|
252
|
+
[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((a, i) => {
|
|
253
|
+
a.ondblclick = e ? (s) => this.onSplitterDblClick(s, i) : void 0;
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
256
|
},
|
|
@@ -261,7 +261,7 @@ const le = {
|
|
|
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 ne(
|
|
265
265
|
"div",
|
|
266
266
|
{
|
|
267
267
|
ref: "container",
|
|
@@ -276,12 +276,12 @@ const le = {
|
|
|
276
276
|
this.$slots.default()
|
|
277
277
|
);
|
|
278
278
|
}
|
|
279
|
-
},
|
|
280
|
-
const
|
|
281
|
-
for (const [
|
|
282
|
-
s
|
|
283
|
-
return
|
|
284
|
-
},
|
|
279
|
+
}, de = (e, a) => {
|
|
280
|
+
const i = e.__vccOpts || e;
|
|
281
|
+
for (const [s, n] of a)
|
|
282
|
+
i[s] = n;
|
|
283
|
+
return i;
|
|
284
|
+
}, ue = {
|
|
285
285
|
name: "pane",
|
|
286
286
|
inject: ["requestUpdate", "onPaneAdd", "onPaneRemove", "onPaneClick"],
|
|
287
287
|
props: {
|
|
@@ -326,191 +326,191 @@ const le = {
|
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
};
|
|
329
|
-
function
|
|
330
|
-
return r(),
|
|
329
|
+
function ce(e, a, i, s, n, l) {
|
|
330
|
+
return r(), g("div", {
|
|
331
331
|
class: "splitpanes__pane",
|
|
332
332
|
onClick: a[0] || (a[0] = (d) => l.onPaneClick(d, e._.uid)),
|
|
333
|
-
style:
|
|
333
|
+
style: w(e.style)
|
|
334
334
|
}, [
|
|
335
|
-
|
|
335
|
+
S(e.$slots, "default")
|
|
336
336
|
], 4);
|
|
337
337
|
}
|
|
338
|
-
const
|
|
339
|
-
const
|
|
338
|
+
const pe = /* @__PURE__ */ de(ue, [["render", ce]]);
|
|
339
|
+
const he = /* @__PURE__ */ B({
|
|
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(re), {
|
|
347
347
|
horizontal: e.horizontal,
|
|
348
|
-
style:
|
|
348
|
+
style: w(e.styles),
|
|
349
349
|
class: "splitpanes"
|
|
350
350
|
}, {
|
|
351
351
|
default: m(() => [
|
|
352
|
-
|
|
352
|
+
S(a.$slots, "default", {}, void 0, !0)
|
|
353
353
|
]),
|
|
354
354
|
_: 3
|
|
355
355
|
}, 8, ["horizontal", "style"]));
|
|
356
356
|
}
|
|
357
357
|
});
|
|
358
|
-
const
|
|
359
|
-
const
|
|
360
|
-
for (const [
|
|
361
|
-
s
|
|
362
|
-
return
|
|
363
|
-
},
|
|
358
|
+
const q = (e, a) => {
|
|
359
|
+
const i = e.__vccOpts || e;
|
|
360
|
+
for (const [s, n] of a)
|
|
361
|
+
i[s] = n;
|
|
362
|
+
return i;
|
|
363
|
+
}, me = /* @__PURE__ */ q(he, [["__scopeId", "data-v-4226b5d2"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/SplitPanes/index.vue"]]), fe = /* @__PURE__ */ B({
|
|
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,
|
|
370
|
-
style:
|
|
369
|
+
return (a, i) => (r(), h(o(pe), {
|
|
370
|
+
style: w(e.styles)
|
|
371
371
|
}, {
|
|
372
372
|
default: m(() => [
|
|
373
|
-
|
|
373
|
+
S(a.$slots, "default")
|
|
374
374
|
]),
|
|
375
375
|
_: 3
|
|
376
376
|
}, 8, ["style"]));
|
|
377
377
|
}
|
|
378
|
-
}),
|
|
378
|
+
}), ve = /* @__PURE__ */ q(fe, [["__file", "D:/Code/front/dld-vue-ui/src/packages/SplitPanes/pane.vue"]]);
|
|
379
379
|
/*! Element Plus Icons Vue v2.0.10 */
|
|
380
|
-
var
|
|
381
|
-
let
|
|
382
|
-
for (let [
|
|
383
|
-
s
|
|
384
|
-
return
|
|
385
|
-
},
|
|
380
|
+
var M = (e, a) => {
|
|
381
|
+
let i = e.__vccOpts || e;
|
|
382
|
+
for (let [s, n] of a)
|
|
383
|
+
i[s] = n;
|
|
384
|
+
return i;
|
|
385
|
+
}, _e = {
|
|
386
386
|
name: "CircleClose"
|
|
387
|
-
},
|
|
387
|
+
}, ze = {
|
|
388
388
|
viewBox: "0 0 1024 1024",
|
|
389
389
|
xmlns: "http://www.w3.org/2000/svg"
|
|
390
|
-
},
|
|
390
|
+
}, ge = /* @__PURE__ */ _("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), ye = /* @__PURE__ */ _("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), xe = [
|
|
397
|
+
ge,
|
|
398
|
+
ye
|
|
399
399
|
];
|
|
400
|
-
function
|
|
401
|
-
return r(),
|
|
400
|
+
function we(e, a, i, s, n, l) {
|
|
401
|
+
return r(), g("svg", ze, xe);
|
|
402
402
|
}
|
|
403
|
-
var
|
|
403
|
+
var Se = /* @__PURE__ */ M(_e, [["render", we], ["__file", "circle-close.vue"]]), be = {
|
|
404
404
|
name: "Close"
|
|
405
|
-
},
|
|
405
|
+
}, Pe = {
|
|
406
406
|
viewBox: "0 0 1024 1024",
|
|
407
407
|
xmlns: "http://www.w3.org/2000/svg"
|
|
408
|
-
},
|
|
408
|
+
}, Ce = /* @__PURE__ */ _("path", {
|
|
409
409
|
fill: "currentColor",
|
|
410
410
|
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
411
|
-
}, null, -1),
|
|
412
|
-
|
|
411
|
+
}, null, -1), Fe = [
|
|
412
|
+
Ce
|
|
413
413
|
];
|
|
414
|
-
function
|
|
415
|
-
return r(),
|
|
414
|
+
function ke(e, a, i, s, n, l) {
|
|
415
|
+
return r(), g("svg", Pe, Fe);
|
|
416
416
|
}
|
|
417
|
-
var
|
|
417
|
+
var Ee = /* @__PURE__ */ M(be, [["render", ke], ["__file", "close.vue"]]), $e = {
|
|
418
418
|
name: "DeleteFilled"
|
|
419
|
-
},
|
|
419
|
+
}, Me = {
|
|
420
420
|
viewBox: "0 0 1024 1024",
|
|
421
421
|
xmlns: "http://www.w3.org/2000/svg"
|
|
422
|
-
},
|
|
422
|
+
}, Ve = /* @__PURE__ */ _("path", {
|
|
423
423
|
fill: "currentColor",
|
|
424
424
|
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"
|
|
425
|
-
}, null, -1),
|
|
426
|
-
|
|
425
|
+
}, null, -1), Be = [
|
|
426
|
+
Ve
|
|
427
427
|
];
|
|
428
|
-
function
|
|
429
|
-
return r(),
|
|
428
|
+
function qe(e, a, i, s, n, l) {
|
|
429
|
+
return r(), g("svg", Me, Be);
|
|
430
430
|
}
|
|
431
|
-
var
|
|
431
|
+
var Le = /* @__PURE__ */ M($e, [["render", qe], ["__file", "delete-filled.vue"]]), Ne = {
|
|
432
432
|
name: "Delete"
|
|
433
|
-
},
|
|
433
|
+
}, De = {
|
|
434
434
|
viewBox: "0 0 1024 1024",
|
|
435
435
|
xmlns: "http://www.w3.org/2000/svg"
|
|
436
|
-
},
|
|
436
|
+
}, Ue = /* @__PURE__ */ _("path", {
|
|
437
437
|
fill: "currentColor",
|
|
438
438
|
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"
|
|
439
|
-
}, null, -1),
|
|
440
|
-
|
|
439
|
+
}, null, -1), Re = [
|
|
440
|
+
Ue
|
|
441
441
|
];
|
|
442
|
-
function
|
|
443
|
-
return r(),
|
|
442
|
+
function Te(e, a, i, s, n, l) {
|
|
443
|
+
return r(), g("svg", De, Re);
|
|
444
444
|
}
|
|
445
|
-
var
|
|
445
|
+
var We = /* @__PURE__ */ M(Ne, [["render", Te], ["__file", "delete.vue"]]), He = {
|
|
446
446
|
name: "Edit"
|
|
447
|
-
},
|
|
447
|
+
}, Ie = {
|
|
448
448
|
viewBox: "0 0 1024 1024",
|
|
449
449
|
xmlns: "http://www.w3.org/2000/svg"
|
|
450
|
-
},
|
|
450
|
+
}, Oe = /* @__PURE__ */ _("path", {
|
|
451
451
|
fill: "currentColor",
|
|
452
452
|
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"
|
|
453
|
-
}, null, -1),
|
|
453
|
+
}, null, -1), Ae = /* @__PURE__ */ _("path", {
|
|
454
454
|
fill: "currentColor",
|
|
455
455
|
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"
|
|
456
|
-
}, null, -1),
|
|
457
|
-
|
|
458
|
-
|
|
456
|
+
}, null, -1), je = [
|
|
457
|
+
Oe,
|
|
458
|
+
Ae
|
|
459
459
|
];
|
|
460
|
-
function
|
|
461
|
-
return r(),
|
|
460
|
+
function Ge(e, a, i, s, n, l) {
|
|
461
|
+
return r(), g("svg", Ie, je);
|
|
462
462
|
}
|
|
463
|
-
var
|
|
463
|
+
var Ke = /* @__PURE__ */ M(He, [["render", Ge], ["__file", "edit.vue"]]), Ye = {
|
|
464
464
|
name: "FolderOpened"
|
|
465
|
-
},
|
|
465
|
+
}, Je = {
|
|
466
466
|
viewBox: "0 0 1024 1024",
|
|
467
467
|
xmlns: "http://www.w3.org/2000/svg"
|
|
468
|
-
},
|
|
468
|
+
}, Xe = /* @__PURE__ */ _("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), Qe = [
|
|
472
|
+
Xe
|
|
473
473
|
];
|
|
474
|
-
function
|
|
475
|
-
return r(),
|
|
474
|
+
function Ze(e, a, i, s, n, l) {
|
|
475
|
+
return r(), g("svg", Je, Qe);
|
|
476
476
|
}
|
|
477
|
-
var G = /* @__PURE__ */
|
|
477
|
+
var G = /* @__PURE__ */ M(Ye, [["render", Ze], ["__file", "folder-opened.vue"]]), et = {
|
|
478
478
|
name: "Search"
|
|
479
|
-
},
|
|
479
|
+
}, tt = {
|
|
480
480
|
viewBox: "0 0 1024 1024",
|
|
481
481
|
xmlns: "http://www.w3.org/2000/svg"
|
|
482
|
-
},
|
|
482
|
+
}, at = /* @__PURE__ */ _("path", {
|
|
483
483
|
fill: "currentColor",
|
|
484
484
|
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"
|
|
485
|
-
}, null, -1),
|
|
486
|
-
|
|
485
|
+
}, null, -1), nt = [
|
|
486
|
+
at
|
|
487
487
|
];
|
|
488
|
-
function
|
|
489
|
-
return r(),
|
|
488
|
+
function it(e, a, i, s, n, l) {
|
|
489
|
+
return r(), g("svg", tt, nt);
|
|
490
490
|
}
|
|
491
|
-
var
|
|
491
|
+
var st = /* @__PURE__ */ M(et, [["render", it], ["__file", "search.vue"]]), lt = {
|
|
492
492
|
name: "Upload"
|
|
493
|
-
},
|
|
493
|
+
}, ot = {
|
|
494
494
|
viewBox: "0 0 1024 1024",
|
|
495
495
|
xmlns: "http://www.w3.org/2000/svg"
|
|
496
|
-
},
|
|
496
|
+
}, rt = /* @__PURE__ */ _("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
|
-
}, null, -1),
|
|
500
|
-
|
|
499
|
+
}, null, -1), dt = [
|
|
500
|
+
rt
|
|
501
501
|
];
|
|
502
|
-
function
|
|
503
|
-
return r(),
|
|
502
|
+
function ut(e, a, i, s, n, l) {
|
|
503
|
+
return r(), g("svg", ot, dt);
|
|
504
504
|
}
|
|
505
|
-
var
|
|
505
|
+
var K = /* @__PURE__ */ M(lt, [["render", ut], ["__file", "upload.vue"]]), ct = 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(st, [["render", rt], ["__file", "upload.vue"]]), dt =
|
|
|
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 = "", s = 0; s < a; s++)
|
|
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() {
|
|
@@ -534,39 +534,39 @@ var j = /* @__PURE__ */ E(st, [["render", rt], ["__file", "upload.vue"]]), dt =
|
|
|
534
534
|
value: this.value
|
|
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
|
-
}(),
|
|
538
|
-
const
|
|
537
|
+
}(), pt = ct;
|
|
538
|
+
const ht = { style: {} }, mt = ["id", "accept"], ft = { class: "filename" }, vt = /* @__PURE__ */ B({
|
|
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: K },
|
|
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
|
|
548
|
+
setup(e, { expose: a, emit: i }) {
|
|
549
|
+
let s = pt.create().toString(), n, l = T("");
|
|
550
550
|
function d() {
|
|
551
|
-
|
|
551
|
+
n.click();
|
|
552
552
|
}
|
|
553
553
|
function f() {
|
|
554
|
-
l.value =
|
|
554
|
+
l.value = n.value;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
557
|
-
|
|
556
|
+
function z() {
|
|
557
|
+
n.files !== null && i("upload", n.files[0]);
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
|
|
559
|
+
function C() {
|
|
560
|
+
n.value = "", l.value = "";
|
|
561
561
|
}
|
|
562
|
-
return
|
|
563
|
-
|
|
562
|
+
return A(() => {
|
|
563
|
+
n = document.getElementById(s);
|
|
564
564
|
}), a({
|
|
565
|
-
Clear:
|
|
566
|
-
}), (
|
|
567
|
-
const F =
|
|
568
|
-
return r(),
|
|
569
|
-
|
|
565
|
+
Clear: C
|
|
566
|
+
}), (V, y) => {
|
|
567
|
+
const F = v("el-button");
|
|
568
|
+
return r(), g("div", ht, [
|
|
569
|
+
P(F, {
|
|
570
570
|
type: e.type,
|
|
571
571
|
icon: o(G),
|
|
572
572
|
size: e.size,
|
|
@@ -574,30 +574,30 @@ const ct = { style: {} }, pt = ["id", "accept"], ht = { class: "filename" }, mt
|
|
|
574
574
|
onClick: d
|
|
575
575
|
}, {
|
|
576
576
|
default: m(() => [
|
|
577
|
-
|
|
577
|
+
$("\u9009\u62E9\u6587\u4EF6")
|
|
578
578
|
]),
|
|
579
579
|
_: 1
|
|
580
580
|
}, 8, ["type", "icon", "size"]),
|
|
581
|
-
|
|
581
|
+
ie(_("input", {
|
|
582
582
|
type: "file",
|
|
583
|
-
id: o(
|
|
583
|
+
id: o(s),
|
|
584
584
|
onChange: f,
|
|
585
585
|
accept: e.accept
|
|
586
|
-
}, null, 40,
|
|
587
|
-
[
|
|
586
|
+
}, null, 40, mt), [
|
|
587
|
+
[se, !1]
|
|
588
588
|
]),
|
|
589
|
-
|
|
590
|
-
|
|
589
|
+
_("span", ft, N(o(l)), 1),
|
|
590
|
+
P(F, {
|
|
591
591
|
type: e.type,
|
|
592
592
|
icon: e.icon,
|
|
593
593
|
size: e.size,
|
|
594
594
|
disabled: o(l) == null || o(l) == "",
|
|
595
595
|
class: "btn",
|
|
596
596
|
title: o(l) == null || o(l) == "" ? "\u8BF7\u9009\u62E9\u6587\u4EF6" : "",
|
|
597
|
-
onClick:
|
|
597
|
+
onClick: z
|
|
598
598
|
}, {
|
|
599
599
|
default: m(() => [
|
|
600
|
-
|
|
600
|
+
$(N(e.name), 1)
|
|
601
601
|
]),
|
|
602
602
|
_: 1
|
|
603
603
|
}, 8, ["type", "icon", "size", "disabled", "title"])
|
|
@@ -605,88 +605,88 @@ const ct = { style: {} }, pt = ["id", "accept"], ht = { class: "filename" }, mt
|
|
|
605
605
|
};
|
|
606
606
|
}
|
|
607
607
|
});
|
|
608
|
-
const
|
|
608
|
+
const _t = /* @__PURE__ */ q(vt, [["__scopeId", "data-v-83b9cdd7"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/UpLoadFile/index.vue"]]), zt = ["accept"], gt = { class: "filename" }, yt = { class: "content" }, xt = /* @__PURE__ */ B({
|
|
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
|
|
615
|
+
setup(e, { expose: a, emit: i }) {
|
|
616
|
+
const s = e, n = T(), l = T([]);
|
|
617
617
|
function d() {
|
|
618
|
-
var
|
|
619
|
-
(
|
|
618
|
+
var y;
|
|
619
|
+
(y = n.value) == null || y.click();
|
|
620
620
|
}
|
|
621
621
|
function f() {
|
|
622
|
-
var
|
|
623
|
-
if (l.value = [], (
|
|
624
|
-
for (let
|
|
625
|
-
l.value[
|
|
622
|
+
var y, F, k;
|
|
623
|
+
if (l.value = [], (y = n.value) != null && y.files)
|
|
624
|
+
for (let E = 0; E < ((k = (F = n.value) == null ? void 0 : F.files) == null ? void 0 : k.length); E++)
|
|
625
|
+
l.value[E] = n.value.files[E];
|
|
626
626
|
else
|
|
627
627
|
l.value = [];
|
|
628
628
|
}
|
|
629
|
-
function
|
|
630
|
-
l.value.splice(
|
|
629
|
+
function z(y) {
|
|
630
|
+
l.value.splice(y, 1);
|
|
631
631
|
}
|
|
632
|
-
function
|
|
633
|
-
|
|
632
|
+
function C() {
|
|
633
|
+
i("upload", l.value);
|
|
634
634
|
}
|
|
635
|
-
function
|
|
635
|
+
function V() {
|
|
636
636
|
l.value = [];
|
|
637
637
|
}
|
|
638
638
|
return a({
|
|
639
|
-
Clear:
|
|
640
|
-
}), (
|
|
641
|
-
const
|
|
642
|
-
return r(),
|
|
643
|
-
|
|
639
|
+
Clear: V
|
|
640
|
+
}), (y, F) => {
|
|
641
|
+
const k = v("el-button");
|
|
642
|
+
return r(), g("div", null, [
|
|
643
|
+
_("input", {
|
|
644
644
|
type: "file",
|
|
645
645
|
ref_key: "files",
|
|
646
|
-
ref:
|
|
646
|
+
ref: n,
|
|
647
647
|
multiple: "",
|
|
648
648
|
style: { display: "none" },
|
|
649
649
|
onChange: f,
|
|
650
|
-
accept:
|
|
651
|
-
}, null, 40,
|
|
652
|
-
|
|
650
|
+
accept: s.accept
|
|
651
|
+
}, null, 40, zt),
|
|
652
|
+
P(k, {
|
|
653
653
|
type: "success",
|
|
654
|
-
size:
|
|
654
|
+
size: s.size,
|
|
655
655
|
icon: o(G),
|
|
656
656
|
onClick: d
|
|
657
657
|
}, {
|
|
658
658
|
default: m(() => [
|
|
659
|
-
|
|
659
|
+
$("\u9009\u62E9\u6587\u4EF6")
|
|
660
660
|
]),
|
|
661
661
|
_: 1
|
|
662
662
|
}, 8, ["size", "icon"]),
|
|
663
|
-
|
|
663
|
+
P(k, {
|
|
664
664
|
type: "success",
|
|
665
|
-
size:
|
|
666
|
-
icon: o(
|
|
667
|
-
onClick:
|
|
665
|
+
size: s.size,
|
|
666
|
+
icon: o(K),
|
|
667
|
+
onClick: C,
|
|
668
668
|
disabled: l.value.length == 0
|
|
669
669
|
}, {
|
|
670
670
|
default: m(() => [
|
|
671
|
-
|
|
671
|
+
$("\u4E0A\u4F20\u6587\u4EF6")
|
|
672
672
|
]),
|
|
673
673
|
_: 1
|
|
674
674
|
}, 8, ["size", "icon", "disabled"]),
|
|
675
|
-
(r(!0),
|
|
676
|
-
|
|
677
|
-
|
|
675
|
+
(r(!0), g(R, null, W(l.value, (E, u) => (r(), g("p", gt, [
|
|
676
|
+
_("span", yt, N(E.name), 1),
|
|
677
|
+
P(k, {
|
|
678
678
|
size: "small",
|
|
679
|
-
icon: o(
|
|
679
|
+
icon: o(Ee),
|
|
680
680
|
class: "operation",
|
|
681
681
|
link: "",
|
|
682
|
-
onClick: (
|
|
682
|
+
onClick: (x) => z(u)
|
|
683
683
|
}, null, 8, ["icon", "onClick"])
|
|
684
684
|
]))), 256))
|
|
685
685
|
]);
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
688
|
});
|
|
689
|
-
const
|
|
689
|
+
const wt = /* @__PURE__ */ q(xt, [["__scopeId", "data-v-50d3310f"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/UpLoadFiles/index.vue"]]), St = /* @__PURE__ */ B({
|
|
690
690
|
__name: "index",
|
|
691
691
|
props: {
|
|
692
692
|
asideWidth: { type: Number, required: !1, default: 220 },
|
|
@@ -694,58 +694,58 @@ const yt = /* @__PURE__ */ B(gt, [["__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 = j();
|
|
698
|
+
return (i, s) => {
|
|
699
|
+
const n = v("el-aside"), l = v("el-header"), d = v("el-main"), f = v("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(n, {
|
|
703
703
|
key: 0,
|
|
704
704
|
class: "aside",
|
|
705
|
-
style:
|
|
705
|
+
style: w("width: " + e.asideWidth + "px;")
|
|
706
706
|
}, {
|
|
707
707
|
default: m(() => [
|
|
708
|
-
|
|
708
|
+
S(i.$slots, "aside", {}, void 0, !0)
|
|
709
709
|
]),
|
|
710
710
|
_: 3
|
|
711
711
|
}, 8, ["style"])) : c("v-if", !0),
|
|
712
712
|
o(a).header && e.horizontal ? (r(), h(l, {
|
|
713
713
|
key: 1,
|
|
714
714
|
class: "inside_header",
|
|
715
|
-
style:
|
|
715
|
+
style: w("height: " + e.headerMaxHeight + "px;")
|
|
716
716
|
}, {
|
|
717
717
|
default: m(() => [
|
|
718
|
-
|
|
718
|
+
S(i.$slots, "header", {}, void 0, !0)
|
|
719
719
|
]),
|
|
720
720
|
_: 3
|
|
721
721
|
}, 8, ["style"])) : c("v-if", !0),
|
|
722
|
-
|
|
722
|
+
P(d, { class: "main" }, {
|
|
723
723
|
default: m(() => [
|
|
724
|
-
|
|
724
|
+
P(f, { class: "inside_container" }, {
|
|
725
725
|
default: m(() => [
|
|
726
726
|
o(a).header && !e.horizontal ? (r(), h(l, {
|
|
727
727
|
key: 0,
|
|
728
728
|
class: "inside_header",
|
|
729
|
-
style:
|
|
729
|
+
style: w("height: " + e.headerMaxHeight + "px;")
|
|
730
730
|
}, {
|
|
731
731
|
default: m(() => [
|
|
732
|
-
|
|
732
|
+
S(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(n, {
|
|
737
737
|
key: 1,
|
|
738
738
|
class: "aside",
|
|
739
|
-
style:
|
|
739
|
+
style: w("width: " + e.asideWidth + "px;")
|
|
740
740
|
}, {
|
|
741
741
|
default: m(() => [
|
|
742
|
-
|
|
742
|
+
S(i.$slots, "aside", {}, void 0, !0)
|
|
743
743
|
]),
|
|
744
744
|
_: 3
|
|
745
745
|
}, 8, ["style"])) : c("v-if", !0),
|
|
746
|
-
|
|
746
|
+
P(d, { class: "inside_main" }, {
|
|
747
747
|
default: m(() => [
|
|
748
|
-
|
|
748
|
+
S(i.$slots, "default", {}, void 0, !0)
|
|
749
749
|
]),
|
|
750
750
|
_: 3
|
|
751
751
|
})
|
|
@@ -761,10 +761,10 @@ const yt = /* @__PURE__ */ B(gt, [["__scopeId", "data-v-50d3310f"], ["__file", "
|
|
|
761
761
|
};
|
|
762
762
|
}
|
|
763
763
|
});
|
|
764
|
-
const
|
|
764
|
+
const bt = /* @__PURE__ */ q(St, [["__scopeId", "data-v-5d747d9d"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/Layout/index.vue"]]), Pt = {
|
|
765
765
|
key: 0,
|
|
766
766
|
class: "header"
|
|
767
|
-
},
|
|
767
|
+
}, Ct = { class: "header_title" }, Ft = ["innerHTML"], kt = { class: "header_title" }, Et = { class: "pagination" }, $t = /* @__PURE__ */ B({
|
|
768
768
|
__name: "index",
|
|
769
769
|
props: {
|
|
770
770
|
maxHeight: { type: Number, required: !1, default: 550 },
|
|
@@ -795,58 +795,63 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
795
795
|
hideOnSinglePage: { type: Boolean, required: !1, default: !1 }
|
|
796
796
|
},
|
|
797
797
|
emits: ["row-click", "row-dblclick", "selection-change", "search", "clear", "delete", "edit", "page-index", "page-size", "get-ref"],
|
|
798
|
-
setup(e, {
|
|
798
|
+
setup(e, { expose: a, emit: i }) {
|
|
799
799
|
const s = e;
|
|
800
|
-
let n =
|
|
800
|
+
let n = le({
|
|
801
801
|
pageIndex: 1,
|
|
802
802
|
pageSize: 5
|
|
803
|
-
});
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
}, g = () => {
|
|
803
|
+
}), l = T();
|
|
804
|
+
const d = j(), f = (u) => {
|
|
805
|
+
i("row-click", u);
|
|
806
|
+
}, z = (u) => {
|
|
807
|
+
i("row-click", u);
|
|
808
|
+
}, C = (u) => {
|
|
809
|
+
i("selection-change", u), console.log(u);
|
|
810
|
+
}, V = () => {
|
|
812
811
|
if (s.tableColumn.length > 0)
|
|
813
812
|
for (let u = 0; u < s.tableColumn.length; u++) {
|
|
814
|
-
let
|
|
815
|
-
n[
|
|
813
|
+
let x = s.tableColumn[u];
|
|
814
|
+
n[x.prop] = null;
|
|
816
815
|
}
|
|
817
|
-
|
|
818
|
-
},
|
|
819
|
-
|
|
820
|
-
}, M = (u) => {
|
|
821
|
-
a("edit", u);
|
|
822
|
-
}, S = (u) => {
|
|
823
|
-
a("delete", u);
|
|
816
|
+
i("clear");
|
|
817
|
+
}, y = () => {
|
|
818
|
+
i("search", n);
|
|
824
819
|
}, F = (u) => {
|
|
825
|
-
|
|
820
|
+
i("edit", u);
|
|
821
|
+
}, k = (u) => {
|
|
822
|
+
i("delete", u);
|
|
826
823
|
};
|
|
827
|
-
|
|
824
|
+
I(
|
|
828
825
|
() => n.pageIndex,
|
|
829
|
-
(u,
|
|
830
|
-
|
|
826
|
+
(u, x) => {
|
|
827
|
+
i("page-index", Number(u), Number(x));
|
|
831
828
|
}
|
|
832
|
-
),
|
|
829
|
+
), I(
|
|
833
830
|
() => n.pageSize,
|
|
834
|
-
(u,
|
|
835
|
-
|
|
831
|
+
(u, x) => {
|
|
832
|
+
i("page-size", Number(u), Number(x));
|
|
836
833
|
}
|
|
837
|
-
)
|
|
834
|
+
);
|
|
835
|
+
function E(u) {
|
|
836
|
+
s.tableData.forEach((x) => {
|
|
837
|
+
u(x) && l.value.toggleRowSelection(x, void 0, !1);
|
|
838
|
+
});
|
|
839
|
+
}
|
|
840
|
+
return A(() => {
|
|
838
841
|
if (s.tableColumn.length > 0)
|
|
839
842
|
for (let u = 0; u < s.tableColumn.length; u++) {
|
|
840
|
-
let
|
|
841
|
-
n[
|
|
843
|
+
let x = s.tableColumn[u];
|
|
844
|
+
n[x.prop] = null;
|
|
842
845
|
}
|
|
843
|
-
}), (
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
846
|
+
}), a({
|
|
847
|
+
DefaultSelect: E
|
|
848
|
+
}), (u, x) => {
|
|
849
|
+
const L = v("el-table-column"), Y = v("el-input"), J = v("el-input-number"), X = v("el-option"), Q = v("el-select"), D = v("el-date-picker"), H = v("el-time-picker"), Z = v("el-switch"), U = v("el-button"), ee = v("el-popconfirm"), te = v("el-table"), ae = v("el-pagination");
|
|
850
|
+
return r(), g(R, null, [
|
|
851
|
+
o(d).header ? (r(), g("div", Pt, [
|
|
852
|
+
S(u.$slots, "header", {}, void 0, !0)
|
|
848
853
|
])) : c("v-if", !0),
|
|
849
|
-
|
|
854
|
+
P(te, {
|
|
850
855
|
data: e.tableData,
|
|
851
856
|
class: b([e.size && e.size == "small" ? "mini-table" : "table"]),
|
|
852
857
|
"max-height": e.maxHeight,
|
|
@@ -854,13 +859,14 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
854
859
|
stripe: e.stripe,
|
|
855
860
|
border: e.border,
|
|
856
861
|
"highlight-current-row": e.highLight,
|
|
857
|
-
onRowClick:
|
|
858
|
-
onRowDblclick:
|
|
859
|
-
onSelectionChange:
|
|
860
|
-
|
|
862
|
+
onRowClick: f,
|
|
863
|
+
onRowDblclick: z,
|
|
864
|
+
onSelectionChange: C,
|
|
865
|
+
ref_key: "tableRef",
|
|
866
|
+
ref: l
|
|
861
867
|
}, {
|
|
862
868
|
default: m(() => [
|
|
863
|
-
e.type && e.type == "index" ? (r(), h(
|
|
869
|
+
e.type && e.type == "index" ? (r(), h(L, {
|
|
864
870
|
key: 0,
|
|
865
871
|
align: "center",
|
|
866
872
|
type: "index",
|
|
@@ -868,14 +874,14 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
868
874
|
fixed: e.typeIsFixed ? "left" : !1,
|
|
869
875
|
label: e.typeLabel
|
|
870
876
|
}, null, 8, ["width", "fixed", "label"])) : c("v-if", !0),
|
|
871
|
-
e.type == "selection" ? (r(), h(
|
|
877
|
+
e.type == "selection" ? (r(), h(L, {
|
|
872
878
|
key: 1,
|
|
873
879
|
align: "center",
|
|
874
880
|
type: "selection",
|
|
875
881
|
width: e.typeWidth + "px",
|
|
876
882
|
fixed: e.typeIsFixed ? "left" : !1
|
|
877
883
|
}, null, 8, ["width", "fixed"])) : c("v-if", !0),
|
|
878
|
-
e.type == "expand" ? (r(), h(
|
|
884
|
+
e.type == "expand" ? (r(), h(L, {
|
|
879
885
|
key: 2,
|
|
880
886
|
align: "center",
|
|
881
887
|
type: "expand",
|
|
@@ -884,44 +890,44 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
884
890
|
label: e.typeLabel
|
|
885
891
|
}, {
|
|
886
892
|
default: m((t) => [
|
|
887
|
-
|
|
893
|
+
S(u.$slots, "expand", {
|
|
888
894
|
row: t.row
|
|
889
895
|
}, void 0, !0)
|
|
890
896
|
]),
|
|
891
897
|
_: 3
|
|
892
898
|
}, 8, ["width", "fixed", "label"])) : c("v-if", !0),
|
|
893
|
-
(r(!0),
|
|
899
|
+
(r(!0), g(R, null, W(e.tableColumn, (t) => (r(), h(L, {
|
|
894
900
|
prop: t.costom ? !1 : t.prop,
|
|
895
901
|
width: t.width ? t.width : "",
|
|
896
902
|
fixed: t.fixed ? t.fixed : !1,
|
|
897
903
|
align: t.align ? t.align : "left",
|
|
898
904
|
"show-overflow-tooltip": !!t.overflow
|
|
899
|
-
},
|
|
905
|
+
}, oe({
|
|
900
906
|
header: m(() => [
|
|
901
|
-
|
|
907
|
+
_("div", Ct, N(t.label), 1),
|
|
902
908
|
c(" \u6587\u672C\u641C\u7D22\u6846 "),
|
|
903
|
-
t.search && (!t.type || t.type == "text") ? (r(), h(
|
|
909
|
+
t.search && (!t.type || t.type == "text") ? (r(), h(Y, {
|
|
904
910
|
key: 0,
|
|
905
911
|
modelValue: o(n)[t.prop],
|
|
906
912
|
"onUpdate:modelValue": (p) => o(n)[t.prop] = p,
|
|
907
913
|
size: t.size,
|
|
908
914
|
clearable: "",
|
|
909
|
-
style:
|
|
915
|
+
style: w(
|
|
910
916
|
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
911
917
|
),
|
|
912
918
|
disabled: t.disabled,
|
|
913
919
|
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u8F93\u5165" + t.label,
|
|
914
920
|
class: b([t.align && t.align == "center" ? "center" : ""]),
|
|
915
|
-
onKeyup:
|
|
921
|
+
onKeyup: O(y, ["enter", "native"])
|
|
916
922
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "placeholder", "class", "onKeyup"])) : c("v-if", !0),
|
|
917
923
|
c(" \u6570\u5B57\u6846\u641C\u7D22 "),
|
|
918
|
-
t.search && t.type == "number" ? (r(), h(
|
|
924
|
+
t.search && t.type == "number" ? (r(), h(J, {
|
|
919
925
|
key: 1,
|
|
920
926
|
modelValue: o(n)[t.prop],
|
|
921
927
|
"onUpdate:modelValue": (p) => o(n)[t.prop] = p,
|
|
922
928
|
size: t.size,
|
|
923
929
|
clearable: "",
|
|
924
|
-
style:
|
|
930
|
+
style: w(
|
|
925
931
|
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
926
932
|
),
|
|
927
933
|
disabled: t.disabled,
|
|
@@ -930,17 +936,17 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
930
936
|
max: t.max != null ? t.max : 1 / 0,
|
|
931
937
|
min: t.min != null ? t.min : -1 / 0,
|
|
932
938
|
step: t.step != null ? t.step : 1,
|
|
933
|
-
onKeyup:
|
|
939
|
+
onKeyup: O(y, ["enter", "native"])
|
|
934
940
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "placeholder", "class", "max", "min", "step", "onKeyup"])) : c("v-if", !0),
|
|
935
941
|
c(" \u9009\u62E9\u641C\u7D22 "),
|
|
936
|
-
t.search && t.type == "select" ? (r(), h(
|
|
942
|
+
t.search && t.type == "select" ? (r(), h(Q, {
|
|
937
943
|
key: 2,
|
|
938
944
|
modelValue: o(n)[t.prop],
|
|
939
945
|
"onUpdate:modelValue": (p) => o(n)[t.prop] = p,
|
|
940
946
|
size: t.size,
|
|
941
947
|
clearable: "",
|
|
942
948
|
filterable: "",
|
|
943
|
-
style:
|
|
949
|
+
style: w(
|
|
944
950
|
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
945
951
|
),
|
|
946
952
|
disabled: t.disabled,
|
|
@@ -950,7 +956,7 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
950
956
|
class: b([t.align && t.align == "center" ? "center" : ""])
|
|
951
957
|
}, {
|
|
952
958
|
default: m(() => [
|
|
953
|
-
(r(!0),
|
|
959
|
+
(r(!0), g(R, null, W(t.options, (p) => (r(), h(X, {
|
|
954
960
|
label: p.label ? p.label : p.value,
|
|
955
961
|
value: p.value,
|
|
956
962
|
disabled: p.disabled
|
|
@@ -959,23 +965,23 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
959
965
|
_: 2
|
|
960
966
|
}, 1032, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "multiple", "collapse-tags", "placeholder", "class"])) : c("v-if", !0),
|
|
961
967
|
c(" \u65E5\u671F\u9009\u62E9 "),
|
|
962
|
-
t.search && t.type == "date" ? (r(), h(
|
|
968
|
+
t.search && t.type == "date" ? (r(), h(D, {
|
|
963
969
|
key: 3,
|
|
964
970
|
modelValue: o(n)[t.prop],
|
|
965
971
|
"onUpdate:modelValue": (p) => o(n)[t.prop] = p,
|
|
966
972
|
type: "date",
|
|
967
|
-
style:
|
|
973
|
+
style: w(t.searchWidth ? "width: " + t.searchWidth + "px;" : ""),
|
|
968
974
|
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9\u65E5\u671F",
|
|
969
975
|
size: t.size,
|
|
970
976
|
class: b([t.align && t.align == "center" ? "center" : ""])
|
|
971
977
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : c("v-if", !0),
|
|
972
978
|
c(" \u65F6\u95F4\u9009\u62E9 "),
|
|
973
|
-
t.search && t.type == "time" ? (r(), h(
|
|
979
|
+
t.search && t.type == "time" ? (r(), h(H, {
|
|
974
980
|
key: 4,
|
|
975
981
|
modelValue: o(n)[t.prop],
|
|
976
982
|
"onUpdate:modelValue": (p) => o(n)[t.prop] = p,
|
|
977
983
|
"arrow-control": "",
|
|
978
|
-
style:
|
|
984
|
+
style: w(
|
|
979
985
|
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
980
986
|
),
|
|
981
987
|
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9\u65F6\u95F4",
|
|
@@ -983,12 +989,12 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
983
989
|
class: b([t.align && t.align == "center" ? "center" : ""])
|
|
984
990
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : c("v-if", !0),
|
|
985
991
|
c(" \u65E5\u671F\u65F6\u95F4\u641C\u7D22 "),
|
|
986
|
-
t.search && t.type == "datetime" ? (r(), h(
|
|
992
|
+
t.search && t.type == "datetime" ? (r(), h(D, {
|
|
987
993
|
key: 5,
|
|
988
994
|
modelValue: o(n)[t.prop],
|
|
989
995
|
"onUpdate:modelValue": (p) => o(n)[t.prop] = p,
|
|
990
996
|
type: "datetime",
|
|
991
|
-
style:
|
|
997
|
+
style: w(
|
|
992
998
|
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
993
999
|
),
|
|
994
1000
|
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4",
|
|
@@ -996,7 +1002,7 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
996
1002
|
class: b([t.align && t.align == "center" ? "center" : ""])
|
|
997
1003
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : c("v-if", !0),
|
|
998
1004
|
c(" \u65E5\u671F\u8303\u56F4\u9009\u62E9 "),
|
|
999
|
-
t.search && t.type == "daterange" ? (r(), h(
|
|
1005
|
+
t.search && t.type == "daterange" ? (r(), h(D, {
|
|
1000
1006
|
key: 6,
|
|
1001
1007
|
modelValue: o(n)[t.prop],
|
|
1002
1008
|
"onUpdate:modelValue": (p) => o(n)[t.prop] = p,
|
|
@@ -1004,14 +1010,14 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
1004
1010
|
"range-separator": "-",
|
|
1005
1011
|
"start-placeholder": t.placeholder ? t.placeholder.split("&&")[0] : "\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",
|
|
1006
1012
|
"end-placeholder": t.placeholder ? t.placeholder.split("&&")[1] : "\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",
|
|
1007
|
-
style:
|
|
1013
|
+
style: w(
|
|
1008
1014
|
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
1009
1015
|
),
|
|
1010
1016
|
size: t.size,
|
|
1011
1017
|
class: b([t.align && t.align == "center" ? "center" : ""])
|
|
1012
1018
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : c("v-if", !0),
|
|
1013
1019
|
c(" \u65F6\u95F4\u8303\u56F4\u9009\u62E9 "),
|
|
1014
|
-
t.search && t.type == "timerange" ? (r(), h(
|
|
1020
|
+
t.search && t.type == "timerange" ? (r(), h(H, {
|
|
1015
1021
|
key: 7,
|
|
1016
1022
|
modelValue: o(n)[t.prop],
|
|
1017
1023
|
"onUpdate:modelValue": (p) => o(n)[t.prop] = p,
|
|
@@ -1020,14 +1026,14 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
1020
1026
|
"range-separator": "-",
|
|
1021
1027
|
"start-placeholder": t.placeholder ? t.placeholder.split("&&")[0] : "\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",
|
|
1022
1028
|
"end-placeholder": t.placeholder ? t.placeholder.split("&&")[1] : "\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",
|
|
1023
|
-
style:
|
|
1029
|
+
style: w(
|
|
1024
1030
|
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
1025
1031
|
),
|
|
1026
1032
|
size: t.size,
|
|
1027
1033
|
class: b([t.align && t.align == "center" ? "center" : ""])
|
|
1028
1034
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : c("v-if", !0),
|
|
1029
1035
|
c(" \u65E5\u671F\u65F6\u95F4\u8303\u56F4\u9009\u62E9 "),
|
|
1030
|
-
t.search && t.type == "datetimerange" ? (r(), h(
|
|
1036
|
+
t.search && t.type == "datetimerange" ? (r(), h(D, {
|
|
1031
1037
|
key: 8,
|
|
1032
1038
|
modelValue: o(n)[t.prop],
|
|
1033
1039
|
"onUpdate:modelValue": (p) => o(n)[t.prop] = p,
|
|
@@ -1035,14 +1041,14 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
1035
1041
|
"range-separator": "-",
|
|
1036
1042
|
"start-placeholder": t.placeholder ? t.placeholder.split("&&")[0] : "\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F\u65F6\u95F4",
|
|
1037
1043
|
"end-placeholder": t.placeholder ? t.placeholder.split("&&")[1] : "\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F\u65F6\u95F4",
|
|
1038
|
-
style:
|
|
1044
|
+
style: w(
|
|
1039
1045
|
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
1040
1046
|
),
|
|
1041
1047
|
size: t.size,
|
|
1042
1048
|
class: b([t.align && t.align == "center" ? "center" : ""])
|
|
1043
1049
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : c("v-if", !0),
|
|
1044
1050
|
c(" \u5F00\u5173 "),
|
|
1045
|
-
t.search && t.type == "switch" ? (r(), h(
|
|
1051
|
+
t.search && t.type == "switch" ? (r(), h(Z, {
|
|
1046
1052
|
key: 9,
|
|
1047
1053
|
modelValue: o(n)[t.prop],
|
|
1048
1054
|
"onUpdate:modelValue": (p) => o(n)[t.prop] = p,
|
|
@@ -1057,96 +1063,96 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
1057
1063
|
t.costom ? {
|
|
1058
1064
|
name: "default",
|
|
1059
1065
|
fn: m((p) => [
|
|
1060
|
-
|
|
1066
|
+
_("span", {
|
|
1061
1067
|
innerHTML: t.costom ? t.costom(p.row) : ""
|
|
1062
|
-
}, null, 8,
|
|
1068
|
+
}, null, 8, Ft)
|
|
1063
1069
|
]),
|
|
1064
1070
|
key: "0"
|
|
1065
1071
|
} : void 0
|
|
1066
1072
|
]), 1032, ["prop", "width", "fixed", "align", "show-overflow-tooltip"]))), 256)),
|
|
1067
|
-
e.operate ? (r(), h(
|
|
1073
|
+
e.operate ? (r(), h(L, {
|
|
1068
1074
|
key: 3,
|
|
1069
1075
|
align: "center",
|
|
1070
1076
|
width: e.operateWidth ? e.operateWidth : "",
|
|
1071
1077
|
fixed: e.operateIsFixed ? "right" : !1
|
|
1072
1078
|
}, {
|
|
1073
1079
|
header: m(() => [
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
e.search ? (r(), h(
|
|
1080
|
+
_("div", kt, N(e.operateLabel), 1),
|
|
1081
|
+
S(u.$slots, "operate-front", {}, void 0, !0),
|
|
1082
|
+
e.search ? (r(), h(U, {
|
|
1077
1083
|
key: 0,
|
|
1078
1084
|
type: "primary",
|
|
1079
1085
|
size: e.operateSize,
|
|
1080
|
-
icon: o(
|
|
1081
|
-
onClick:
|
|
1086
|
+
icon: o(st),
|
|
1087
|
+
onClick: y
|
|
1082
1088
|
}, {
|
|
1083
1089
|
default: m(() => [
|
|
1084
|
-
|
|
1090
|
+
$("\u641C\u7D22")
|
|
1085
1091
|
]),
|
|
1086
1092
|
_: 1
|
|
1087
1093
|
}, 8, ["size", "icon"])) : c("v-if", !0),
|
|
1088
|
-
|
|
1089
|
-
e.clear ? (r(), h(
|
|
1094
|
+
S(u.$slots, "operate-middle", {}, void 0, !0),
|
|
1095
|
+
e.clear ? (r(), h(U, {
|
|
1090
1096
|
key: 1,
|
|
1091
1097
|
type: "info",
|
|
1092
1098
|
size: e.operateSize,
|
|
1093
|
-
icon: o(
|
|
1094
|
-
onClick:
|
|
1099
|
+
icon: o(Se),
|
|
1100
|
+
onClick: V
|
|
1095
1101
|
}, {
|
|
1096
1102
|
default: m(() => [
|
|
1097
|
-
|
|
1103
|
+
$("\u6E05\u7A7A")
|
|
1098
1104
|
]),
|
|
1099
1105
|
_: 1
|
|
1100
1106
|
}, 8, ["size", "icon"])) : c("v-if", !0),
|
|
1101
|
-
|
|
1107
|
+
S(u.$slots, "operate", {}, void 0, !0)
|
|
1102
1108
|
]),
|
|
1103
1109
|
default: m((t) => [
|
|
1104
|
-
|
|
1110
|
+
S(u.$slots, "row-operate-front", {
|
|
1105
1111
|
row: t.row
|
|
1106
1112
|
}, void 0, !0),
|
|
1107
|
-
e.edit ? (r(), h(
|
|
1113
|
+
e.edit ? (r(), h(U, {
|
|
1108
1114
|
key: 0,
|
|
1109
1115
|
link: "",
|
|
1110
1116
|
type: "primary",
|
|
1111
1117
|
size: e.rowButtonSize,
|
|
1112
|
-
icon: o(
|
|
1113
|
-
onClick: (p) =>
|
|
1118
|
+
icon: o(Ke),
|
|
1119
|
+
onClick: (p) => F(t.row)
|
|
1114
1120
|
}, {
|
|
1115
1121
|
default: m(() => [
|
|
1116
|
-
|
|
1122
|
+
$("\u4FEE\u6539")
|
|
1117
1123
|
]),
|
|
1118
1124
|
_: 2
|
|
1119
1125
|
}, 1032, ["size", "icon", "onClick"])) : c("v-if", !0),
|
|
1120
|
-
|
|
1126
|
+
S(u.$slots, "row-operate-middle", {
|
|
1121
1127
|
row: t.row
|
|
1122
1128
|
}, void 0, !0),
|
|
1123
|
-
e.delete ? (r(), h(
|
|
1129
|
+
e.delete ? (r(), h(ee, {
|
|
1124
1130
|
key: 1,
|
|
1125
1131
|
"confirm-button-text": "\u5426",
|
|
1126
1132
|
"cancel-button-text": "\u662F",
|
|
1127
1133
|
"confirm-button-type": "text",
|
|
1128
1134
|
"cancel-button-type": "danger",
|
|
1129
|
-
icon: o(
|
|
1135
|
+
icon: o(Le),
|
|
1130
1136
|
width: "auto",
|
|
1131
|
-
onCancel: (p) =>
|
|
1137
|
+
onCancel: (p) => k(t.row),
|
|
1132
1138
|
title: e.deleteTitle ? e.deleteTitle : "\u662F\u5426\u8981\u5220\u9664\u5F53\u524D\u884C\uFF1F"
|
|
1133
1139
|
}, {
|
|
1134
1140
|
reference: m(() => [
|
|
1135
|
-
|
|
1141
|
+
P(U, {
|
|
1136
1142
|
link: "",
|
|
1137
1143
|
type: "danger",
|
|
1138
1144
|
size: e.rowButtonSize,
|
|
1139
|
-
icon: o(
|
|
1145
|
+
icon: o(We)
|
|
1140
1146
|
}, {
|
|
1141
1147
|
default: m(() => [
|
|
1142
|
-
|
|
1148
|
+
$("\u5220\u9664")
|
|
1143
1149
|
]),
|
|
1144
1150
|
_: 1
|
|
1145
1151
|
}, 8, ["size", "icon"])
|
|
1146
1152
|
]),
|
|
1147
1153
|
_: 2
|
|
1148
1154
|
}, 1032, ["icon", "onCancel", "title"])) : c("v-if", !0),
|
|
1149
|
-
|
|
1155
|
+
S(u.$slots, "row-operate", {
|
|
1150
1156
|
row: t.row
|
|
1151
1157
|
}, void 0, !0)
|
|
1152
1158
|
]),
|
|
@@ -1155,13 +1161,13 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
1155
1161
|
]),
|
|
1156
1162
|
_: 3
|
|
1157
1163
|
}, 8, ["data", "class", "max-height", "size", "stripe", "border", "highlight-current-row"]),
|
|
1158
|
-
|
|
1159
|
-
e.pagination ? (r(), h(
|
|
1164
|
+
_("div", Et, [
|
|
1165
|
+
e.pagination ? (r(), h(ae, {
|
|
1160
1166
|
key: 0,
|
|
1161
1167
|
"current-page": o(n).pageIndex,
|
|
1162
|
-
"onUpdate:current-page":
|
|
1168
|
+
"onUpdate:current-page": x[0] || (x[0] = (t) => o(n).pageIndex = t),
|
|
1163
1169
|
"page-size": o(n).pageSize,
|
|
1164
|
-
"onUpdate:page-size":
|
|
1170
|
+
"onUpdate:page-size": x[1] || (x[1] = (t) => o(n).pageSize = t),
|
|
1165
1171
|
small: e.small,
|
|
1166
1172
|
"hide-on-Single-page": e.hideOnSinglePage,
|
|
1167
1173
|
background: "",
|
|
@@ -1175,17 +1181,17 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
1175
1181
|
};
|
|
1176
1182
|
}
|
|
1177
1183
|
});
|
|
1178
|
-
const
|
|
1184
|
+
const Mt = /* @__PURE__ */ q($t, [["__scopeId", "data-v-f4c855de"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/TableForm/index.vue"]]), Bt = {
|
|
1179
1185
|
install: (e) => {
|
|
1180
|
-
e.component("SplitPanes",
|
|
1186
|
+
e.component("SplitPanes", me), e.component("Pane", ve), e.component("UpLoadFile", _t), e.component("Layout", bt), e.component("TableForm", Mt), e.component("UpLoadFiles", wt);
|
|
1181
1187
|
}
|
|
1182
1188
|
};
|
|
1183
1189
|
export {
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1190
|
+
bt as Layout,
|
|
1191
|
+
ve as Pane,
|
|
1192
|
+
me as SplitPanes,
|
|
1193
|
+
Mt as TableForm,
|
|
1194
|
+
_t as UpLoadFile,
|
|
1195
|
+
wt as UpLoadFiles,
|
|
1196
|
+
Bt as default
|
|
1191
1197
|
};
|