dld-vue-ui 1.0.7 → 1.1.1
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 +72 -0
- package/dist/dld-vue-ui.js +324 -1284
- package/dist/dld-vue-ui.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/vite.svg +1 -0
- package/package.json +12 -16
- package/dist/packages/Layout/index.vue.d.ts +0 -42
- package/dist/packages/SplitPanes/index.d.ts +0 -3
- package/dist/packages/SplitPanes/index.vue.d.ts +0 -36
- package/dist/packages/SplitPanes/pane.vue.d.ts +0 -23
- package/dist/packages/TableForm/index.d.ts +0 -148
- package/dist/packages/TableForm/index.vue.d.ts +0 -511
- package/dist/packages/UpLoadFile/index.vue.d.ts +0 -72
- package/dist/packages/UpLoadFiles/index.vue.d.ts +0 -56
- package/dist/packages/index.d.ts +0 -11
- package/dist/vite-env.d.ts +0 -13
package/dist/dld-vue-ui.js
CHANGED
|
@@ -1,1305 +1,345 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
emits: ["ready", "resize", "resized", "pane-click", "pane-maximize", "pane-add", "pane-remove", "splitter-click"],
|
|
5
|
-
props: {
|
|
6
|
-
horizontal: { type: Boolean },
|
|
7
|
-
pushOtherPanes: { type: Boolean, default: !0 },
|
|
8
|
-
dblClickSplitter: { type: Boolean, default: !0 },
|
|
9
|
-
rtl: { type: Boolean, default: !1 },
|
|
10
|
-
firstSplitter: { type: Boolean }
|
|
11
|
-
},
|
|
12
|
-
provide() {
|
|
13
|
-
return {
|
|
14
|
-
requestUpdate: this.requestUpdate,
|
|
15
|
-
onPaneAdd: this.onPaneAdd,
|
|
16
|
-
onPaneRemove: this.onPaneRemove,
|
|
17
|
-
onPaneClick: this.onPaneClick
|
|
18
|
-
};
|
|
19
|
-
},
|
|
20
|
-
data: () => ({
|
|
21
|
-
container: null,
|
|
22
|
-
ready: !1,
|
|
23
|
-
panes: [],
|
|
24
|
-
touch: {
|
|
25
|
-
mouseDown: !1,
|
|
26
|
-
dragging: !1,
|
|
27
|
-
activeSplitter: null
|
|
28
|
-
},
|
|
29
|
-
splitterTaps: {
|
|
30
|
-
splitter: null,
|
|
31
|
-
timeoutId: null
|
|
32
|
-
}
|
|
33
|
-
}),
|
|
34
|
-
computed: {
|
|
35
|
-
panesCount() {
|
|
36
|
-
return this.panes.length;
|
|
37
|
-
},
|
|
38
|
-
indexedPanes() {
|
|
39
|
-
return this.panes.reduce((e, a) => (e[a.id] = a) && e, {});
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
methods: {
|
|
43
|
-
updatePaneComponents() {
|
|
44
|
-
this.panes.forEach((e) => {
|
|
45
|
-
e.update && e.update({
|
|
46
|
-
[this.horizontal ? "height" : "width"]: `${this.indexedPanes[e.id].size}%`
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
},
|
|
50
|
-
bindEvents() {
|
|
51
|
-
document.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), document.addEventListener("mouseup", this.onMouseUp), "ontouchstart" in window && (document.addEventListener("touchmove", this.onMouseMove, { passive: !1 }), document.addEventListener("touchend", this.onMouseUp));
|
|
52
|
-
},
|
|
53
|
-
unbindEvents() {
|
|
54
|
-
document.removeEventListener("mousemove", this.onMouseMove, { passive: !1 }), document.removeEventListener("mouseup", this.onMouseUp), "ontouchstart" in window && (document.removeEventListener("touchmove", this.onMouseMove, { passive: !1 }), document.removeEventListener("touchend", this.onMouseUp));
|
|
55
|
-
},
|
|
56
|
-
onMouseDown(e, a) {
|
|
57
|
-
this.bindEvents(), this.touch.mouseDown = !0, this.touch.activeSplitter = a;
|
|
58
|
-
},
|
|
59
|
-
onMouseMove(e) {
|
|
60
|
-
this.touch.mouseDown && (e.preventDefault(), this.touch.dragging = !0, this.calculatePanesSize(this.getCurrentMouseDrag(e)), this.$emit("resize", this.panes.map((a) => ({ min: a.min, max: a.max, size: a.size }))));
|
|
61
|
-
},
|
|
62
|
-
onMouseUp() {
|
|
63
|
-
this.touch.dragging && this.$emit("resized", this.panes.map((e) => ({ min: e.min, max: e.max, size: e.size }))), this.touch.mouseDown = !1, setTimeout(() => {
|
|
64
|
-
this.touch.dragging = !1, this.unbindEvents();
|
|
65
|
-
}, 100);
|
|
66
|
-
},
|
|
67
|
-
onSplitterClick(e, a) {
|
|
68
|
-
"ontouchstart" in window && (e.preventDefault(), this.dblClickSplitter && (this.splitterTaps.splitter === a ? (clearTimeout(this.splitterTaps.timeoutId), this.splitterTaps.timeoutId = null, this.onSplitterDblClick(e, a), this.splitterTaps.splitter = null) : (this.splitterTaps.splitter = a, this.splitterTaps.timeoutId = setTimeout(() => {
|
|
69
|
-
this.splitterTaps.splitter = null;
|
|
70
|
-
}, 500)))), this.touch.dragging || this.$emit("splitter-click", this.panes[a]);
|
|
71
|
-
},
|
|
72
|
-
onSplitterDblClick(e, a) {
|
|
73
|
-
let l = 0;
|
|
74
|
-
this.panes = this.panes.map((i, n) => (i.size = n === a ? i.max : i.min, n !== a && (l += i.min), i)), this.panes[a].size -= l, this.$emit("pane-maximize", this.panes[a]), this.$emit("resized", this.panes.map((i) => ({ min: i.min, max: i.max, size: i.size })));
|
|
75
|
-
},
|
|
76
|
-
onPaneClick(e, a) {
|
|
77
|
-
this.$emit("pane-click", this.indexedPanes[a]);
|
|
78
|
-
},
|
|
79
|
-
getCurrentMouseDrag(e) {
|
|
80
|
-
const a = this.container.getBoundingClientRect(), { clientX: l, clientY: i } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
|
|
81
|
-
return {
|
|
82
|
-
x: l - a.left,
|
|
83
|
-
y: i - a.top
|
|
84
|
-
};
|
|
85
|
-
},
|
|
86
|
-
getCurrentDragPercentage(e) {
|
|
87
|
-
e = e[this.horizontal ? "y" : "x"];
|
|
88
|
-
const a = this.container[this.horizontal ? "clientHeight" : "clientWidth"];
|
|
89
|
-
return this.rtl && !this.horizontal && (e = a - e), e * 100 / a;
|
|
90
|
-
},
|
|
91
|
-
calculatePanesSize(e) {
|
|
92
|
-
const a = this.touch.activeSplitter;
|
|
93
|
-
let l = {
|
|
94
|
-
prevPanesSize: this.sumPrevPanesSize(a),
|
|
95
|
-
nextPanesSize: this.sumNextPanesSize(a),
|
|
96
|
-
prevReachedMinPanes: 0,
|
|
97
|
-
nextReachedMinPanes: 0
|
|
98
|
-
};
|
|
99
|
-
const i = 0 + (this.pushOtherPanes ? 0 : l.prevPanesSize), n = 100 - (this.pushOtherPanes ? 0 : l.nextPanesSize), s = Math.max(Math.min(this.getCurrentDragPercentage(e), n), i);
|
|
100
|
-
let u = [a, a + 1], v = this.panes[u[0]] || null, _ = this.panes[u[1]] || null;
|
|
101
|
-
const C = v.max < 100 && s >= v.max + l.prevPanesSize, q = _.max < 100 && s <= 100 - (_.max + this.sumNextPanesSize(a + 1));
|
|
102
|
-
if (C || q) {
|
|
103
|
-
C ? (v.size = v.max, _.size = Math.max(100 - v.max - l.prevPanesSize - l.nextPanesSize, 0)) : (v.size = Math.max(100 - _.max - l.prevPanesSize - this.sumNextPanesSize(a + 1), 0), _.size = _.max);
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
if (this.pushOtherPanes) {
|
|
107
|
-
const S = this.doPushOtherPanes(l, s);
|
|
108
|
-
if (!S)
|
|
109
|
-
return;
|
|
110
|
-
({ sums: l, panesToResize: u } = S), v = this.panes[u[0]] || null, _ = this.panes[u[1]] || null;
|
|
111
|
-
}
|
|
112
|
-
v !== null && (v.size = Math.min(Math.max(s - l.prevPanesSize - l.prevReachedMinPanes, v.min), v.max)), _ !== null && (_.size = Math.min(Math.max(100 - s - l.nextPanesSize - l.nextReachedMinPanes, _.min), _.max));
|
|
113
|
-
},
|
|
114
|
-
doPushOtherPanes(e, a) {
|
|
115
|
-
const l = this.touch.activeSplitter, i = [l, l + 1];
|
|
116
|
-
return a < e.prevPanesSize + this.panes[i[0]].min && (i[0] = this.findPrevExpandedPane(l).index, e.prevReachedMinPanes = 0, i[0] < l && this.panes.forEach((n, s) => {
|
|
117
|
-
s > i[0] && s <= l && (n.size = n.min, e.prevReachedMinPanes += n.min);
|
|
118
|
-
}), e.prevPanesSize = this.sumPrevPanesSize(i[0]), i[0] === void 0) ? (e.prevReachedMinPanes = 0, this.panes[0].size = this.panes[0].min, this.panes.forEach((n, s) => {
|
|
119
|
-
s > 0 && s <= l && (n.size = n.min, e.prevReachedMinPanes += n.min);
|
|
120
|
-
}), this.panes[i[1]].size = 100 - e.prevReachedMinPanes - this.panes[0].min - e.prevPanesSize - e.nextPanesSize, null) : a > 100 - e.nextPanesSize - this.panes[i[1]].min && (i[1] = this.findNextExpandedPane(l).index, e.nextReachedMinPanes = 0, i[1] > l + 1 && this.panes.forEach((n, s) => {
|
|
121
|
-
s > l && s < i[1] && (n.size = n.min, e.nextReachedMinPanes += n.min);
|
|
122
|
-
}), e.nextPanesSize = this.sumNextPanesSize(i[1] - 1), i[1] === void 0) ? (e.nextReachedMinPanes = 0, this.panes[this.panesCount - 1].size = this.panes[this.panesCount - 1].min, this.panes.forEach((n, s) => {
|
|
123
|
-
s < this.panesCount - 1 && s >= l + 1 && (n.size = n.min, e.nextReachedMinPanes += n.min);
|
|
124
|
-
}), this.panes[i[0]].size = 100 - e.prevPanesSize - e.nextReachedMinPanes - this.panes[this.panesCount - 1].min - e.nextPanesSize, null) : { sums: e, panesToResize: i };
|
|
125
|
-
},
|
|
126
|
-
sumPrevPanesSize(e) {
|
|
127
|
-
return this.panes.reduce((a, l, i) => a + (i < e ? l.size : 0), 0);
|
|
128
|
-
},
|
|
129
|
-
sumNextPanesSize(e) {
|
|
130
|
-
return this.panes.reduce((a, l, i) => a + (i > e + 1 ? l.size : 0), 0);
|
|
131
|
-
},
|
|
132
|
-
findPrevExpandedPane(e) {
|
|
133
|
-
return [...this.panes].reverse().find((a) => a.index < e && a.size > a.min) || {};
|
|
134
|
-
},
|
|
135
|
-
findNextExpandedPane(e) {
|
|
136
|
-
return this.panes.find((a) => a.index > e + 1 && a.size > a.min) || {};
|
|
137
|
-
},
|
|
138
|
-
checkSplitpanesNodes() {
|
|
139
|
-
Array.from(this.container.children).forEach((e) => {
|
|
140
|
-
const a = e.classList.contains("splitpanes__pane"), l = e.classList.contains("splitpanes__splitter");
|
|
141
|
-
!a && !l && (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
|
-
});
|
|
143
|
-
},
|
|
144
|
-
addSplitter(e, a, l = !1) {
|
|
145
|
-
const i = e - 1, n = document.createElement("div");
|
|
146
|
-
n.classList.add("splitpanes__splitter"), l || (n.onmousedown = (s) => this.onMouseDown(s, i), typeof window < "u" && "ontouchstart" in window && (n.ontouchstart = (s) => this.onMouseDown(s, i)), n.onclick = (s) => this.onSplitterClick(s, i + 1)), this.dblClickSplitter && (n.ondblclick = (s) => this.onSplitterDblClick(s, i + 1)), a.parentNode.insertBefore(n, a);
|
|
147
|
-
},
|
|
148
|
-
removeSplitter(e) {
|
|
149
|
-
e.onmousedown = void 0, e.onclick = void 0, e.ondblclick = void 0, e.parentNode.removeChild(e);
|
|
150
|
-
},
|
|
151
|
-
redoSplitters() {
|
|
152
|
-
const e = Array.from(this.container.children);
|
|
153
|
-
e.forEach((l) => {
|
|
154
|
-
l.className.includes("splitpanes__splitter") && this.removeSplitter(l);
|
|
155
|
-
});
|
|
156
|
-
let a = 0;
|
|
157
|
-
e.forEach((l) => {
|
|
158
|
-
l.className.includes("splitpanes__pane") && (!a && this.firstSplitter ? this.addSplitter(a, l, !0) : a && this.addSplitter(a, l), a++);
|
|
159
|
-
});
|
|
160
|
-
},
|
|
161
|
-
requestUpdate({ target: e, ...a }) {
|
|
162
|
-
const l = this.indexedPanes[e._.uid];
|
|
163
|
-
Object.entries(a).forEach(([i, n]) => l[i] = n);
|
|
164
|
-
},
|
|
165
|
-
onPaneAdd(e) {
|
|
166
|
-
let a = -1;
|
|
167
|
-
Array.from(e.$el.parentNode.children).some((n) => (n.className.includes("splitpanes__pane") && a++, n === e.$el));
|
|
168
|
-
const l = parseFloat(e.minSize), i = parseFloat(e.maxSize);
|
|
169
|
-
this.panes.splice(a, 0, {
|
|
170
|
-
id: e._.uid,
|
|
171
|
-
index: a,
|
|
172
|
-
min: isNaN(l) ? 0 : l,
|
|
173
|
-
max: isNaN(i) ? 100 : i,
|
|
174
|
-
size: e.size === null ? null : parseFloat(e.size),
|
|
175
|
-
givenSize: e.size,
|
|
176
|
-
update: e.update
|
|
177
|
-
}), this.panes.forEach((n, s) => n.index = s), 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
|
-
});
|
|
180
|
-
},
|
|
181
|
-
onPaneRemove(e) {
|
|
182
|
-
const a = this.panes.findIndex((i) => i.id === e._.uid), l = this.panes.splice(a, 1)[0];
|
|
183
|
-
this.panes.forEach((i, n) => i.index = n), this.$nextTick(() => {
|
|
184
|
-
this.redoSplitters(), this.resetPaneSizes({ removedPane: { ...l, index: a } }), this.$emit("pane-remove", { removed: l, panes: this.panes.map((i) => ({ min: i.min, max: i.max, size: i.size })) });
|
|
185
|
-
});
|
|
186
|
-
},
|
|
187
|
-
resetPaneSizes(e = {}) {
|
|
188
|
-
!e.addedPane && !e.removedPane ? this.initialPanesSizing() : this.panes.some((a) => a.givenSize !== null || a.min || a.max < 100) ? this.equalizeAfterAddOrRemove(e) : this.equalize(), this.ready && this.$emit("resized", this.panes.map((a) => ({ min: a.min, max: a.max, size: a.size })));
|
|
189
|
-
},
|
|
190
|
-
equalize() {
|
|
191
|
-
const e = 100 / this.panesCount;
|
|
192
|
-
let a = 0;
|
|
193
|
-
const l = [], i = [];
|
|
194
|
-
this.panes.forEach((n) => {
|
|
195
|
-
n.size = Math.max(Math.min(e, n.max), n.min), a -= n.size, n.size >= n.max && l.push(n.id), n.size <= n.min && i.push(n.id);
|
|
196
|
-
}), a > 0.1 && this.readjustSizes(a, l, i);
|
|
197
|
-
},
|
|
198
|
-
initialPanesSizing() {
|
|
199
|
-
let e = 100;
|
|
200
|
-
const a = [], l = [];
|
|
201
|
-
let i = 0;
|
|
202
|
-
this.panes.forEach((s) => {
|
|
203
|
-
e -= s.size, s.size !== null && i++, s.size >= s.max && a.push(s.id), s.size <= s.min && l.push(s.id);
|
|
204
|
-
});
|
|
205
|
-
let n = 100;
|
|
206
|
-
e > 0.1 && (this.panes.forEach((s) => {
|
|
207
|
-
s.size === null && (s.size = Math.max(Math.min(e / (this.panesCount - i), s.max), s.min)), n -= s.size;
|
|
208
|
-
}), n > 0.1 && this.readjustSizes(e, a, l));
|
|
209
|
-
},
|
|
210
|
-
equalizeAfterAddOrRemove({ addedPane: e, removedPane: a } = {}) {
|
|
211
|
-
let l = 100 / this.panesCount, i = 0;
|
|
212
|
-
const n = [], s = [];
|
|
213
|
-
e && e.givenSize !== null && (l = (100 - e.givenSize) / (this.panesCount - 1)), this.panes.forEach((u) => {
|
|
214
|
-
i -= u.size, u.size >= u.max && n.push(u.id), u.size <= u.min && s.push(u.id);
|
|
215
|
-
}), !(Math.abs(i) < 0.1) && (this.panes.forEach((u) => {
|
|
216
|
-
e && e.givenSize !== null && e.id === u.id || (u.size = Math.max(Math.min(l, u.max), u.min)), i -= u.size, u.size >= u.max && n.push(u.id), u.size <= u.min && s.push(u.id);
|
|
217
|
-
}), i > 0.1 && this.readjustSizes(i, n, s));
|
|
218
|
-
},
|
|
219
|
-
readjustSizes(e, a, l) {
|
|
220
|
-
let i;
|
|
221
|
-
e > 0 ? i = e / (this.panesCount - a.length) : i = e / (this.panesCount - l.length), this.panes.forEach((n, s) => {
|
|
222
|
-
if (e > 0 && !a.includes(n.id)) {
|
|
223
|
-
const u = Math.max(Math.min(n.size + i, n.max), n.min), v = u - n.size;
|
|
224
|
-
e -= v, n.size = u;
|
|
225
|
-
} else if (!l.includes(n.id)) {
|
|
226
|
-
const u = Math.max(Math.min(n.size + i, n.max), n.min), v = u - n.size;
|
|
227
|
-
e -= v, n.size = u;
|
|
228
|
-
}
|
|
229
|
-
n.update({
|
|
230
|
-
[this.horizontal ? "height" : "width"]: `${this.indexedPanes[n.id].size}%`
|
|
231
|
-
});
|
|
232
|
-
}), Math.abs(e) > 0.1 && this.$nextTick(() => {
|
|
233
|
-
this.ready && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
watch: {
|
|
238
|
-
panes: {
|
|
239
|
-
deep: !0,
|
|
240
|
-
immediate: !1,
|
|
241
|
-
handler() {
|
|
242
|
-
this.updatePaneComponents();
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
horizontal() {
|
|
246
|
-
this.updatePaneComponents();
|
|
247
|
-
},
|
|
248
|
-
firstSplitter() {
|
|
249
|
-
this.redoSplitters();
|
|
250
|
-
},
|
|
251
|
-
dblClickSplitter(e) {
|
|
252
|
-
[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((a, l) => {
|
|
253
|
-
a.ondblclick = e ? (i) => this.onSplitterDblClick(i, l) : void 0;
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
beforeUnmount() {
|
|
258
|
-
this.ready = !1;
|
|
259
|
-
},
|
|
260
|
-
mounted() {
|
|
261
|
-
this.container = this.$refs.container, this.checkSplitpanesNodes(), this.redoSplitters(), this.resetPaneSizes(), this.$emit("ready"), this.ready = !0;
|
|
262
|
-
},
|
|
263
|
-
render() {
|
|
264
|
-
return me(
|
|
265
|
-
"div",
|
|
266
|
-
{
|
|
267
|
-
ref: "container",
|
|
268
|
-
class: [
|
|
269
|
-
"splitpanes",
|
|
270
|
-
`splitpanes--${this.horizontal ? "horizontal" : "vertical"}`,
|
|
271
|
-
{
|
|
272
|
-
"splitpanes--dragging": this.touch.dragging
|
|
273
|
-
}
|
|
274
|
-
]
|
|
275
|
-
},
|
|
276
|
-
this.$slots.default()
|
|
277
|
-
);
|
|
278
|
-
}
|
|
279
|
-
}, xe = (e, a) => {
|
|
280
|
-
const l = e.__vccOpts || e;
|
|
281
|
-
for (const [i, n] of a)
|
|
282
|
-
l[i] = n;
|
|
283
|
-
return l;
|
|
284
|
-
}, we = {
|
|
285
|
-
name: "pane",
|
|
286
|
-
inject: ["requestUpdate", "onPaneAdd", "onPaneRemove", "onPaneClick"],
|
|
287
|
-
props: {
|
|
288
|
-
size: { type: [Number, String], default: null },
|
|
289
|
-
minSize: { type: [Number, String], default: 0 },
|
|
290
|
-
maxSize: { type: [Number, String], default: 100 }
|
|
291
|
-
},
|
|
292
|
-
data: () => ({
|
|
293
|
-
style: {}
|
|
294
|
-
}),
|
|
295
|
-
mounted() {
|
|
296
|
-
this.onPaneAdd(this);
|
|
297
|
-
},
|
|
298
|
-
beforeUnmount() {
|
|
299
|
-
this.onPaneRemove(this);
|
|
300
|
-
},
|
|
301
|
-
methods: {
|
|
302
|
-
update(e) {
|
|
303
|
-
this.style = e;
|
|
304
|
-
}
|
|
305
|
-
},
|
|
306
|
-
computed: {
|
|
307
|
-
sizeNumber() {
|
|
308
|
-
return this.size || this.size === 0 ? parseFloat(this.size) : null;
|
|
309
|
-
},
|
|
310
|
-
minSizeNumber() {
|
|
311
|
-
return parseFloat(this.minSize);
|
|
312
|
-
},
|
|
313
|
-
maxSizeNumber() {
|
|
314
|
-
return parseFloat(this.maxSize);
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
watch: {
|
|
318
|
-
sizeNumber(e) {
|
|
319
|
-
this.requestUpdate({ target: this, size: e });
|
|
320
|
-
},
|
|
321
|
-
minSizeNumber(e) {
|
|
322
|
-
this.requestUpdate({ target: this, min: e });
|
|
323
|
-
},
|
|
324
|
-
maxSizeNumber(e) {
|
|
325
|
-
this.requestUpdate({ target: this, max: e });
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
};
|
|
329
|
-
function be(e, a, l, i, n, s) {
|
|
330
|
-
return o(), g("div", {
|
|
331
|
-
class: "splitpanes__pane",
|
|
332
|
-
onClick: a[0] || (a[0] = (u) => s.onPaneClick(u, e._.uid)),
|
|
333
|
-
style: x(e.style)
|
|
334
|
-
}, [
|
|
335
|
-
w(e.$slots, "default")
|
|
336
|
-
], 4);
|
|
1
|
+
import { defineComponent as V, openBlock as d, createElementBlock as m, createElementVNode as _, mergeModels as S, useModel as q, ref as C, resolveComponent as s, createVNode as y, createSlots as A, withCtx as u, createBlock as n, unref as g, createCommentVNode as r, renderSlot as k, Fragment as B, renderList as M, normalizeStyle as G, createTextVNode as v, toDisplayString as J } from "vue";
|
|
2
|
+
function re(a, c, i) {
|
|
3
|
+
return c.default == null || c.default.toString() == "" ? i(new Error(c.label + "不能为空")) : i();
|
|
337
4
|
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
w(a.$slots, "default", {}, void 0, !0)
|
|
353
|
-
]),
|
|
354
|
-
_: 3
|
|
355
|
-
}, 8, ["horizontal", "style"]));
|
|
5
|
+
/*! Element Plus Icons Vue v2.3.1 */
|
|
6
|
+
var K = /* @__PURE__ */ V({
|
|
7
|
+
name: "Check",
|
|
8
|
+
__name: "check",
|
|
9
|
+
setup(a) {
|
|
10
|
+
return (c, i) => (d(), m("svg", {
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
+
viewBox: "0 0 1024 1024"
|
|
13
|
+
}, [
|
|
14
|
+
_("path", {
|
|
15
|
+
fill: "currentColor",
|
|
16
|
+
d: "M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"
|
|
17
|
+
})
|
|
18
|
+
]));
|
|
356
19
|
}
|
|
357
|
-
})
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
style: x(e.styles)
|
|
371
|
-
}, {
|
|
372
|
-
default: m(() => [
|
|
373
|
-
w(a.$slots, "default")
|
|
374
|
-
]),
|
|
375
|
-
_: 3
|
|
376
|
-
}, 8, ["style"]));
|
|
20
|
+
}), P = K, Q = /* @__PURE__ */ V({
|
|
21
|
+
name: "Close",
|
|
22
|
+
__name: "close",
|
|
23
|
+
setup(a) {
|
|
24
|
+
return (c, i) => (d(), m("svg", {
|
|
25
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
+
viewBox: "0 0 1024 1024"
|
|
27
|
+
}, [
|
|
28
|
+
_("path", {
|
|
29
|
+
fill: "currentColor",
|
|
30
|
+
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"
|
|
31
|
+
})
|
|
32
|
+
]));
|
|
377
33
|
}
|
|
378
|
-
}),
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
},
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
fill: "currentColor",
|
|
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), Ve = /* @__PURE__ */ y("path", {
|
|
394
|
-
fill: "currentColor",
|
|
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), Be = [
|
|
397
|
-
Me,
|
|
398
|
-
Ve
|
|
399
|
-
];
|
|
400
|
-
function qe(e, a, l, i, n, s) {
|
|
401
|
-
return o(), g("svg", $e, Be);
|
|
402
|
-
}
|
|
403
|
-
var Le = /* @__PURE__ */ F(Ee, [["render", qe], ["__file", "circle-close.vue"]]), Ne = {
|
|
404
|
-
name: "Close"
|
|
405
|
-
}, Ue = {
|
|
406
|
-
viewBox: "0 0 1024 1024",
|
|
407
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
408
|
-
}, De = /* @__PURE__ */ y("path", {
|
|
409
|
-
fill: "currentColor",
|
|
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), Re = [
|
|
412
|
-
De
|
|
413
|
-
];
|
|
414
|
-
function Te(e, a, l, i, n, s) {
|
|
415
|
-
return o(), g("svg", Ue, Re);
|
|
416
|
-
}
|
|
417
|
-
var We = /* @__PURE__ */ F(Ne, [["render", Te], ["__file", "close.vue"]]), He = {
|
|
418
|
-
name: "DeleteFilled"
|
|
419
|
-
}, Ae = {
|
|
420
|
-
viewBox: "0 0 1024 1024",
|
|
421
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
422
|
-
}, Ie = /* @__PURE__ */ y("path", {
|
|
423
|
-
fill: "currentColor",
|
|
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), Oe = [
|
|
426
|
-
Ie
|
|
427
|
-
];
|
|
428
|
-
function Ge(e, a, l, i, n, s) {
|
|
429
|
-
return o(), g("svg", Ae, Oe);
|
|
430
|
-
}
|
|
431
|
-
var je = /* @__PURE__ */ F(He, [["render", Ge], ["__file", "delete-filled.vue"]]), Ke = {
|
|
432
|
-
name: "Delete"
|
|
433
|
-
}, Ye = {
|
|
434
|
-
viewBox: "0 0 1024 1024",
|
|
435
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
436
|
-
}, Je = /* @__PURE__ */ y("path", {
|
|
437
|
-
fill: "currentColor",
|
|
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), Xe = [
|
|
440
|
-
Je
|
|
441
|
-
];
|
|
442
|
-
function Qe(e, a, l, i, n, s) {
|
|
443
|
-
return o(), g("svg", Ye, Xe);
|
|
444
|
-
}
|
|
445
|
-
var Ze = /* @__PURE__ */ F(Ke, [["render", Qe], ["__file", "delete.vue"]]), et = {
|
|
446
|
-
name: "Edit"
|
|
447
|
-
}, tt = {
|
|
448
|
-
viewBox: "0 0 1024 1024",
|
|
449
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
450
|
-
}, at = /* @__PURE__ */ y("path", {
|
|
451
|
-
fill: "currentColor",
|
|
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), nt = /* @__PURE__ */ y("path", {
|
|
454
|
-
fill: "currentColor",
|
|
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), lt = [
|
|
457
|
-
at,
|
|
458
|
-
nt
|
|
459
|
-
];
|
|
460
|
-
function it(e, a, l, i, n, s) {
|
|
461
|
-
return o(), g("svg", tt, lt);
|
|
462
|
-
}
|
|
463
|
-
var st = /* @__PURE__ */ F(et, [["render", it], ["__file", "edit.vue"]]), ot = {
|
|
464
|
-
name: "Filter"
|
|
465
|
-
}, rt = {
|
|
466
|
-
viewBox: "0 0 1024 1024",
|
|
467
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
468
|
-
}, dt = /* @__PURE__ */ y("path", {
|
|
469
|
-
fill: "currentColor",
|
|
470
|
-
d: "M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288L384 523.392z"
|
|
471
|
-
}, null, -1), ut = [
|
|
472
|
-
dt
|
|
473
|
-
];
|
|
474
|
-
function ct(e, a, l, i, n, s) {
|
|
475
|
-
return o(), g("svg", rt, ut);
|
|
476
|
-
}
|
|
477
|
-
var j = /* @__PURE__ */ F(ot, [["render", ct], ["__file", "filter.vue"]]), pt = {
|
|
478
|
-
name: "FolderOpened"
|
|
479
|
-
}, ht = {
|
|
480
|
-
viewBox: "0 0 1024 1024",
|
|
481
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
482
|
-
}, mt = /* @__PURE__ */ y("path", {
|
|
483
|
-
fill: "currentColor",
|
|
484
|
-
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"
|
|
485
|
-
}, null, -1), ft = [
|
|
486
|
-
mt
|
|
487
|
-
];
|
|
488
|
-
function vt(e, a, l, i, n, s) {
|
|
489
|
-
return o(), g("svg", ht, ft);
|
|
490
|
-
}
|
|
491
|
-
var J = /* @__PURE__ */ F(pt, [["render", vt], ["__file", "folder-opened.vue"]]), _t = {
|
|
492
|
-
name: "Search"
|
|
493
|
-
}, zt = {
|
|
494
|
-
viewBox: "0 0 1024 1024",
|
|
495
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
496
|
-
}, gt = /* @__PURE__ */ y("path", {
|
|
497
|
-
fill: "currentColor",
|
|
498
|
-
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"
|
|
499
|
-
}, null, -1), yt = [
|
|
500
|
-
gt
|
|
501
|
-
];
|
|
502
|
-
function xt(e, a, l, i, n, s) {
|
|
503
|
-
return o(), g("svg", zt, yt);
|
|
504
|
-
}
|
|
505
|
-
var wt = /* @__PURE__ */ F(_t, [["render", xt], ["__file", "search.vue"]]), bt = {
|
|
506
|
-
name: "Upload"
|
|
507
|
-
}, St = {
|
|
508
|
-
viewBox: "0 0 1024 1024",
|
|
509
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
510
|
-
}, kt = /* @__PURE__ */ y("path", {
|
|
511
|
-
fill: "currentColor",
|
|
512
|
-
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"
|
|
513
|
-
}, null, -1), Ct = [
|
|
514
|
-
kt
|
|
515
|
-
];
|
|
516
|
-
function Pt(e, a, l, i, n, s) {
|
|
517
|
-
return o(), g("svg", St, Ct);
|
|
518
|
-
}
|
|
519
|
-
var X = /* @__PURE__ */ F(bt, [["render", Pt], ["__file", "upload.vue"]]), Ft = function() {
|
|
520
|
-
function e(a) {
|
|
521
|
-
if (!a)
|
|
522
|
-
throw new TypeError("Invalid argument; `value` has no value.");
|
|
523
|
-
this.value = e.EMPTY, a && e.isGuid(a) && (this.value = a);
|
|
34
|
+
}), X = Q, Y = /* @__PURE__ */ V({
|
|
35
|
+
name: "FullScreen",
|
|
36
|
+
__name: "full-screen",
|
|
37
|
+
setup(a) {
|
|
38
|
+
return (c, i) => (d(), m("svg", {
|
|
39
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
40
|
+
viewBox: "0 0 1024 1024"
|
|
41
|
+
}, [
|
|
42
|
+
_("path", {
|
|
43
|
+
fill: "currentColor",
|
|
44
|
+
d: "m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"
|
|
45
|
+
})
|
|
46
|
+
]));
|
|
524
47
|
}
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
return
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
l += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
539
|
-
return l;
|
|
540
|
-
}, e.prototype.equals = function(a) {
|
|
541
|
-
return e.isGuid(a) && this.value === a.toString();
|
|
542
|
-
}, e.prototype.isEmpty = function() {
|
|
543
|
-
return this.value === e.EMPTY;
|
|
544
|
-
}, e.prototype.toString = function() {
|
|
545
|
-
return this.value;
|
|
546
|
-
}, e.prototype.toJSON = function() {
|
|
547
|
-
return {
|
|
548
|
-
value: this.value
|
|
549
|
-
};
|
|
550
|
-
}, 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;
|
|
551
|
-
}(), Et = Ft;
|
|
552
|
-
const $t = { style: {} }, Mt = ["id", "accept"], Vt = { class: "filename" }, Bt = /* @__PURE__ */ U({
|
|
553
|
-
__name: "index",
|
|
554
|
-
props: {
|
|
555
|
-
size: { type: String, required: !1, default: "default" },
|
|
556
|
-
name: { type: String, required: !1, default: "\u4E0A\u4F20\u6587\u4EF6" },
|
|
557
|
-
icon: { type: null, required: !1, default: X },
|
|
558
|
-
type: { type: null, required: !1, default: "success" },
|
|
559
|
-
accept: { type: String, required: !0, default: "*" }
|
|
560
|
-
},
|
|
561
|
-
emits: ["upload"],
|
|
562
|
-
setup(e, { expose: a, emit: l }) {
|
|
563
|
-
let i = Et.create().toString(), n, s = V("");
|
|
564
|
-
function u() {
|
|
565
|
-
n.click();
|
|
566
|
-
}
|
|
567
|
-
function v() {
|
|
568
|
-
s.value = n.value;
|
|
569
|
-
}
|
|
570
|
-
function _() {
|
|
571
|
-
n.files !== null && l("upload", n.files[0]);
|
|
572
|
-
}
|
|
573
|
-
function C() {
|
|
574
|
-
n.value = "", s.value = "";
|
|
575
|
-
}
|
|
576
|
-
return K(() => {
|
|
577
|
-
n = document.getElementById(i);
|
|
578
|
-
}), a({
|
|
579
|
-
Clear: C
|
|
580
|
-
}), (q, S) => {
|
|
581
|
-
const E = z("el-button");
|
|
582
|
-
return o(), g("div", $t, [
|
|
583
|
-
b(E, {
|
|
584
|
-
type: e.type,
|
|
585
|
-
icon: r(J),
|
|
586
|
-
size: e.size,
|
|
587
|
-
class: "btn",
|
|
588
|
-
onClick: u
|
|
589
|
-
}, {
|
|
590
|
-
default: m(() => [
|
|
591
|
-
P("\u9009\u62E9\u6587\u4EF6")
|
|
592
|
-
]),
|
|
593
|
-
_: 1
|
|
594
|
-
}, 8, ["type", "icon", "size"]),
|
|
595
|
-
fe(y("input", {
|
|
596
|
-
type: "file",
|
|
597
|
-
id: r(i),
|
|
598
|
-
onChange: v,
|
|
599
|
-
accept: e.accept
|
|
600
|
-
}, null, 40, Mt), [
|
|
601
|
-
[ve, !1]
|
|
602
|
-
]),
|
|
603
|
-
y("span", Vt, T(r(s)), 1),
|
|
604
|
-
b(E, {
|
|
605
|
-
type: e.type,
|
|
606
|
-
icon: e.icon,
|
|
607
|
-
size: e.size,
|
|
608
|
-
disabled: r(s) == null || r(s) == "",
|
|
609
|
-
class: "btn",
|
|
610
|
-
title: r(s) == null || r(s) == "" ? "\u8BF7\u9009\u62E9\u6587\u4EF6" : "",
|
|
611
|
-
onClick: _
|
|
612
|
-
}, {
|
|
613
|
-
default: m(() => [
|
|
614
|
-
P(T(e.name), 1)
|
|
615
|
-
]),
|
|
616
|
-
_: 1
|
|
617
|
-
}, 8, ["type", "icon", "size", "disabled", "title"])
|
|
618
|
-
]);
|
|
619
|
-
};
|
|
48
|
+
}), Z = Y, j = /* @__PURE__ */ V({
|
|
49
|
+
name: "Minus",
|
|
50
|
+
__name: "minus",
|
|
51
|
+
setup(a) {
|
|
52
|
+
return (c, i) => (d(), m("svg", {
|
|
53
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
54
|
+
viewBox: "0 0 1024 1024"
|
|
55
|
+
}, [
|
|
56
|
+
_("path", {
|
|
57
|
+
fill: "currentColor",
|
|
58
|
+
d: "M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"
|
|
59
|
+
})
|
|
60
|
+
]));
|
|
620
61
|
}
|
|
621
|
-
});
|
|
622
|
-
const
|
|
62
|
+
}), ee = j;
|
|
63
|
+
const le = (a, c) => {
|
|
64
|
+
const i = a.__vccOpts || a;
|
|
65
|
+
for (const [t, p] of c)
|
|
66
|
+
i[t] = p;
|
|
67
|
+
return i;
|
|
68
|
+
}, te = { class: "dialog" }, de = ["innerHTML"], ae = { class: "form" }, L = !0, oe = {
|
|
623
69
|
__name: "index",
|
|
624
|
-
props: {
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
70
|
+
props: /* @__PURE__ */ S({
|
|
71
|
+
title: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: "弹出框"
|
|
74
|
+
},
|
|
75
|
+
width: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: "500px"
|
|
78
|
+
},
|
|
79
|
+
fullscreen: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
default: !1
|
|
82
|
+
},
|
|
83
|
+
draggable: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: !0
|
|
86
|
+
},
|
|
87
|
+
footer: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: !0
|
|
90
|
+
},
|
|
91
|
+
buttonSize: {
|
|
92
|
+
type: String,
|
|
93
|
+
default: "default"
|
|
94
|
+
},
|
|
95
|
+
loading: {
|
|
96
|
+
type: Boolean,
|
|
97
|
+
default: !1
|
|
98
|
+
},
|
|
99
|
+
rules: {
|
|
100
|
+
type: Object,
|
|
101
|
+
default: {}
|
|
102
|
+
},
|
|
103
|
+
formSize: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: "default"
|
|
106
|
+
},
|
|
107
|
+
lableWidth: {
|
|
108
|
+
type: String,
|
|
109
|
+
default: "120px"
|
|
642
110
|
}
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
111
|
+
}, {
|
|
112
|
+
form: { default: {} },
|
|
113
|
+
formModifiers: {}
|
|
114
|
+
}),
|
|
115
|
+
emits: /* @__PURE__ */ S(["close", "submit"], ["update:form"]),
|
|
116
|
+
setup(a, { emit: c }) {
|
|
117
|
+
const i = c, t = q(a, "form"), p = C(!1), w = C();
|
|
118
|
+
function x() {
|
|
119
|
+
i("close");
|
|
651
120
|
}
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
const $ = z("el-button");
|
|
656
|
-
return o(), g("div", null, [
|
|
657
|
-
y("input", {
|
|
658
|
-
type: "file",
|
|
659
|
-
ref_key: "files",
|
|
660
|
-
ref: n,
|
|
661
|
-
multiple: "",
|
|
662
|
-
style: { display: "none" },
|
|
663
|
-
onChange: v,
|
|
664
|
-
accept: i.accept
|
|
665
|
-
}, null, 40, Lt),
|
|
666
|
-
b($, {
|
|
667
|
-
type: "success",
|
|
668
|
-
size: i.size,
|
|
669
|
-
icon: r(J),
|
|
670
|
-
onClick: u
|
|
671
|
-
}, {
|
|
672
|
-
default: m(() => [
|
|
673
|
-
P("\u9009\u62E9\u6587\u4EF6")
|
|
674
|
-
]),
|
|
675
|
-
_: 1
|
|
676
|
-
}, 8, ["size", "icon"]),
|
|
677
|
-
b($, {
|
|
678
|
-
type: "success",
|
|
679
|
-
size: i.size,
|
|
680
|
-
icon: r(X),
|
|
681
|
-
onClick: C,
|
|
682
|
-
disabled: s.value.length == 0
|
|
683
|
-
}, {
|
|
684
|
-
default: m(() => [
|
|
685
|
-
P("\u4E0A\u4F20\u6587\u4EF6")
|
|
686
|
-
]),
|
|
687
|
-
_: 1
|
|
688
|
-
}, 8, ["size", "icon", "disabled"]),
|
|
689
|
-
(o(!0), g(N, null, H(s.value, (M, R) => (o(), g("p", Nt, [
|
|
690
|
-
y("span", Ut, T(M.name), 1),
|
|
691
|
-
b($, {
|
|
692
|
-
size: "small",
|
|
693
|
-
icon: r(We),
|
|
694
|
-
class: "operation",
|
|
695
|
-
link: "",
|
|
696
|
-
onClick: (A) => _(R)
|
|
697
|
-
}, null, 8, ["icon", "onClick"])
|
|
698
|
-
]))), 256))
|
|
699
|
-
]);
|
|
700
|
-
};
|
|
701
|
-
}
|
|
702
|
-
});
|
|
703
|
-
const Rt = /* @__PURE__ */ D(Dt, [["__scopeId", "data-v-50d3310f"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/UpLoadFiles/index.vue"]]), Tt = /* @__PURE__ */ U({
|
|
704
|
-
__name: "index",
|
|
705
|
-
props: {
|
|
706
|
-
asideWidth: { type: Number, required: !1, default: 220 },
|
|
707
|
-
headerMaxHeight: { type: Number, required: !1, default: 60 },
|
|
708
|
-
horizontal: { type: Boolean, required: !1, default: !1 }
|
|
709
|
-
},
|
|
710
|
-
setup(e) {
|
|
711
|
-
const a = Y();
|
|
712
|
-
return (l, i) => {
|
|
713
|
-
const n = z("el-aside"), s = z("el-header"), u = z("el-main"), v = z("el-container");
|
|
714
|
-
return o(), f(v, { class: "container" }, {
|
|
715
|
-
default: m(() => [
|
|
716
|
-
r(a).aside && !e.horizontal ? (o(), f(n, {
|
|
717
|
-
key: 0,
|
|
718
|
-
class: "aside",
|
|
719
|
-
style: x("width: " + e.asideWidth + "px;")
|
|
720
|
-
}, {
|
|
721
|
-
default: m(() => [
|
|
722
|
-
w(l.$slots, "aside", {}, void 0, !0)
|
|
723
|
-
]),
|
|
724
|
-
_: 3
|
|
725
|
-
}, 8, ["style"])) : p("v-if", !0),
|
|
726
|
-
r(a).header && e.horizontal ? (o(), f(s, {
|
|
727
|
-
key: 1,
|
|
728
|
-
class: "inside_header",
|
|
729
|
-
style: x("height: " + e.headerMaxHeight + "px;")
|
|
730
|
-
}, {
|
|
731
|
-
default: m(() => [
|
|
732
|
-
w(l.$slots, "header", {}, void 0, !0)
|
|
733
|
-
]),
|
|
734
|
-
_: 3
|
|
735
|
-
}, 8, ["style"])) : p("v-if", !0),
|
|
736
|
-
b(u, { class: "main" }, {
|
|
737
|
-
default: m(() => [
|
|
738
|
-
b(v, { class: "inside_container" }, {
|
|
739
|
-
default: m(() => [
|
|
740
|
-
r(a).header && !e.horizontal ? (o(), f(s, {
|
|
741
|
-
key: 0,
|
|
742
|
-
class: "inside_header",
|
|
743
|
-
style: x("height: " + e.headerMaxHeight + "px;")
|
|
744
|
-
}, {
|
|
745
|
-
default: m(() => [
|
|
746
|
-
w(l.$slots, "header", {}, void 0, !0)
|
|
747
|
-
]),
|
|
748
|
-
_: 3
|
|
749
|
-
}, 8, ["style"])) : p("v-if", !0),
|
|
750
|
-
r(a).aside && e.horizontal ? (o(), f(n, {
|
|
751
|
-
key: 1,
|
|
752
|
-
class: "aside",
|
|
753
|
-
style: x("width: " + e.asideWidth + "px;")
|
|
754
|
-
}, {
|
|
755
|
-
default: m(() => [
|
|
756
|
-
w(l.$slots, "aside", {}, void 0, !0)
|
|
757
|
-
]),
|
|
758
|
-
_: 3
|
|
759
|
-
}, 8, ["style"])) : p("v-if", !0),
|
|
760
|
-
b(u, { class: "inside_main" }, {
|
|
761
|
-
default: m(() => [
|
|
762
|
-
w(l.$slots, "default", {}, void 0, !0)
|
|
763
|
-
]),
|
|
764
|
-
_: 3
|
|
765
|
-
})
|
|
766
|
-
]),
|
|
767
|
-
_: 3
|
|
768
|
-
})
|
|
769
|
-
]),
|
|
770
|
-
_: 3
|
|
771
|
-
})
|
|
772
|
-
]),
|
|
773
|
-
_: 3
|
|
121
|
+
function T() {
|
|
122
|
+
w.value.validate((h) => {
|
|
123
|
+
h && i("submit");
|
|
774
124
|
});
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
typeLabel: { type: String, required: !1, default: "\u5E8F\u53F7" },
|
|
794
|
-
typeWidth: { type: Number, required: !1, default: 60 },
|
|
795
|
-
typeIsFixed: { type: Boolean, required: !1 },
|
|
796
|
-
operate: { type: Boolean, required: !1 },
|
|
797
|
-
operateSize: { type: String, required: !1, default: "default" },
|
|
798
|
-
rowButtonSize: { type: String, required: !1, default: "default" },
|
|
799
|
-
operateLabel: { type: String, required: !1, default: "" },
|
|
800
|
-
operateWidth: { type: Number, required: !1, default: 220 },
|
|
801
|
-
operateIsFixed: { type: Boolean, required: !1 },
|
|
802
|
-
search: { type: Boolean, required: !1 },
|
|
803
|
-
clear: { type: Boolean, required: !1 },
|
|
804
|
-
edit: { type: Boolean, required: !1 },
|
|
805
|
-
delete: { type: Boolean, required: !1 },
|
|
806
|
-
deleteTitle: { type: String, required: !1 },
|
|
807
|
-
pagination: { type: Boolean, required: !1, default: !1 },
|
|
808
|
-
small: { type: Boolean, required: !1, default: !1 },
|
|
809
|
-
total: { type: Number, required: !1, default: 0 },
|
|
810
|
-
hideOnSinglePage: { type: Boolean, required: !1, default: !1 },
|
|
811
|
-
defaultSelect: { type: Function, required: !1 },
|
|
812
|
-
defaultSize: { type: Number, required: !1, default: 5 },
|
|
813
|
-
filter: { type: Boolean, required: !1 }
|
|
814
|
-
},
|
|
815
|
-
emits: ["row-click", "row-dblclick", "selection-change", "search", "clear", "delete", "edit", "page-index", "page-size", "get-ref", "filter"],
|
|
816
|
-
setup(e, { expose: a, emit: l }) {
|
|
817
|
-
const i = e;
|
|
818
|
-
let n = _e({
|
|
819
|
-
pageIndex: 1,
|
|
820
|
-
pageSize: 5
|
|
821
|
-
}), s = V(), u = V();
|
|
822
|
-
const v = V([]), _ = V([]), C = V(!1), q = Y(), S = (d) => {
|
|
823
|
-
l("row-click", d);
|
|
824
|
-
}, E = (d) => {
|
|
825
|
-
l("row-click", d);
|
|
826
|
-
}, $ = (d) => {
|
|
827
|
-
l("selection-change", d);
|
|
828
|
-
}, M = () => {
|
|
829
|
-
if (i.tableColumn.length > 0)
|
|
830
|
-
for (let d = 0; d < i.tableColumn.length; d++) {
|
|
831
|
-
let c = i.tableColumn[d];
|
|
832
|
-
n[c.prop] = null;
|
|
833
|
-
}
|
|
834
|
-
l("clear");
|
|
835
|
-
}, R = () => {
|
|
836
|
-
l("search", n);
|
|
837
|
-
}, A = (d) => {
|
|
838
|
-
l("edit", d);
|
|
839
|
-
}, Q = (d) => {
|
|
840
|
-
l("delete", d);
|
|
841
|
-
}, Z = (d) => {
|
|
842
|
-
for (let c = 0; c < d.length; c++)
|
|
843
|
-
n[d[c].prop] = d[c].label;
|
|
844
|
-
}, ee = () => n, te = () => {
|
|
845
|
-
v.value.forEach((d) => {
|
|
846
|
-
var c = _.value.find((B) => B.label == d.label);
|
|
847
|
-
c && c.filter && (d.hidden = !c.check, d.hidden && (n[d.prop] = null));
|
|
848
|
-
}), C.value = !1, u.value.hide(), l("filter", () => _.value);
|
|
849
|
-
}, ae = (d) => {
|
|
850
|
-
v.value = d, i.filter && (_.value = [], v.value.forEach((c) => {
|
|
851
|
-
c.filter ? c.check ? _.value.push({
|
|
852
|
-
label: c.label,
|
|
853
|
-
check: !0,
|
|
854
|
-
prop: c.prop,
|
|
855
|
-
filter: c.filter
|
|
856
|
-
}) : (_.value.push({
|
|
857
|
-
label: c.label,
|
|
858
|
-
check: !1,
|
|
859
|
-
prop: c.prop,
|
|
860
|
-
filter: c.filter
|
|
861
|
-
}), c.hidden = !0) : _.value.push({
|
|
862
|
-
label: c.label,
|
|
863
|
-
check: !0,
|
|
864
|
-
prop: c.prop,
|
|
865
|
-
filter: c.filter
|
|
866
|
-
});
|
|
867
|
-
}));
|
|
868
|
-
};
|
|
869
|
-
return O(
|
|
870
|
-
() => n.pageIndex,
|
|
871
|
-
(d, c) => {
|
|
872
|
-
l("page-index", Number(d), Number(c));
|
|
873
|
-
}
|
|
874
|
-
), O(
|
|
875
|
-
() => n.pageSize,
|
|
876
|
-
(d, c) => {
|
|
877
|
-
l("page-size", Number(d), Number(c));
|
|
878
|
-
}
|
|
879
|
-
), a({
|
|
880
|
-
Assignment: Z,
|
|
881
|
-
GetParameters: ee,
|
|
882
|
-
SetFilter: ae
|
|
883
|
-
}), K(() => {
|
|
884
|
-
if (i.tableColumn.length > 0)
|
|
885
|
-
for (let d = 0; d < i.tableColumn.length; d++) {
|
|
886
|
-
let c = i.tableColumn[d];
|
|
887
|
-
n[c.prop] = null;
|
|
888
|
-
}
|
|
889
|
-
i.tableData.forEach((d) => {
|
|
890
|
-
i.defaultSelect && i.type == "selection" && i.defaultSelect(d) && s.value.toggleRowSelection(d, void 0, !1);
|
|
891
|
-
}), n.pageSize = i.defaultSize;
|
|
892
|
-
}), (d, c) => {
|
|
893
|
-
const B = z("el-table-column"), ne = z("el-input"), le = z("el-input-number"), ie = z("el-option"), se = z("el-select"), W = z("el-date-picker"), I = z("el-time-picker"), oe = z("el-switch"), L = z("el-button"), re = z("el-icon"), de = z("el-checkbox"), ue = z("el-popover"), ce = z("el-popconfirm"), pe = z("el-table"), he = z("el-pagination");
|
|
894
|
-
return o(), g(N, null, [
|
|
895
|
-
r(q).header ? (o(), g("div", Ht, [
|
|
896
|
-
w(d.$slots, "header", {}, void 0, !0)
|
|
897
|
-
])) : p("v-if", !0),
|
|
898
|
-
b(pe, {
|
|
899
|
-
data: e.tableData,
|
|
900
|
-
class: k([e.size && e.size == "small" ? "mini-table" : "table"]),
|
|
901
|
-
"max-height": e.maxHeight,
|
|
902
|
-
size: e.size,
|
|
903
|
-
stripe: e.stripe,
|
|
904
|
-
border: e.border,
|
|
905
|
-
"highlight-current-row": e.highLight,
|
|
906
|
-
onRowClick: S,
|
|
907
|
-
onRowDblclick: E,
|
|
908
|
-
onSelectionChange: $,
|
|
909
|
-
ref_key: "tableRef",
|
|
910
|
-
ref: s,
|
|
911
|
-
"header-cell-style": e.headStyle
|
|
912
|
-
}, {
|
|
913
|
-
default: m(() => [
|
|
914
|
-
e.type && e.type == "index" ? (o(), f(B, {
|
|
125
|
+
}
|
|
126
|
+
return (h, f) => {
|
|
127
|
+
const D = s("el-icon"), H = s("el-input"), N = s("el-input-number"), E = s("el-option"), F = s("el-select"), b = s("el-date-picker"), U = s("el-time-picker"), I = s("el-switch"), $ = s("el-form-item"), O = s("el-form"), z = s("el-button"), R = s("el-dialog");
|
|
128
|
+
return d(), m("div", te, [
|
|
129
|
+
y(R, {
|
|
130
|
+
modelValue: L,
|
|
131
|
+
"onUpdate:modelValue": f[1] || (f[1] = (e) => L = e),
|
|
132
|
+
width: a.width,
|
|
133
|
+
fullscreen: p.value,
|
|
134
|
+
"close-on-click-modal": !1,
|
|
135
|
+
"close-on-press-escape": !1,
|
|
136
|
+
draggable: a.draggable,
|
|
137
|
+
onClose: x,
|
|
138
|
+
overflow: ""
|
|
139
|
+
}, A({
|
|
140
|
+
header: u(() => [
|
|
141
|
+
_("span", { innerHTML: a.title }, null, 8, de),
|
|
142
|
+
a.fullscreen ? (d(), n(D, {
|
|
915
143
|
key: 0,
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
width: e.typeWidth + "px",
|
|
919
|
-
fixed: e.typeIsFixed ? "left" : !1,
|
|
920
|
-
label: e.typeLabel
|
|
921
|
-
}, null, 8, ["width", "fixed", "label"])) : p("v-if", !0),
|
|
922
|
-
e.type == "selection" ? (o(), f(B, {
|
|
923
|
-
key: 1,
|
|
924
|
-
align: "center",
|
|
925
|
-
type: "selection",
|
|
926
|
-
width: e.typeWidth + "px",
|
|
927
|
-
fixed: e.typeIsFixed ? "left" : !1
|
|
928
|
-
}, null, 8, ["width", "fixed"])) : p("v-if", !0),
|
|
929
|
-
e.type == "expand" ? (o(), f(B, {
|
|
930
|
-
key: 2,
|
|
931
|
-
align: "center",
|
|
932
|
-
type: "expand",
|
|
933
|
-
width: e.typeWidth + "px",
|
|
934
|
-
fixed: e.typeIsFixed ? "left" : !1,
|
|
935
|
-
label: e.typeLabel
|
|
144
|
+
class: "fullscreen",
|
|
145
|
+
onClick: f[0] || (f[0] = (e) => p.value = !p.value)
|
|
936
146
|
}, {
|
|
937
|
-
default:
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
}, void 0, !0)
|
|
147
|
+
default: u(() => [
|
|
148
|
+
p.value ? r("", !0) : (d(), n(g(Z), { key: 0 })),
|
|
149
|
+
p.value ? (d(), n(g(ee), { key: 1 })) : r("", !0)
|
|
941
150
|
]),
|
|
942
|
-
_:
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
style: x(
|
|
964
|
-
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
965
|
-
),
|
|
966
|
-
disabled: t.disabled,
|
|
967
|
-
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u8F93\u5165" + t.label,
|
|
968
|
-
class: k([t.align && t.align == "center" ? "center" : ""]),
|
|
969
|
-
onKeyup: G(R, ["enter", "native"])
|
|
970
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "placeholder", "class", "onKeyup"])) : p("v-if", !0),
|
|
971
|
-
p(" \u6570\u5B57\u6846\u641C\u7D22 "),
|
|
972
|
-
t.search && t.type == "number" ? (o(), f(le, {
|
|
973
|
-
key: 1,
|
|
974
|
-
modelValue: r(n)[t.prop],
|
|
975
|
-
"onUpdate:modelValue": (h) => r(n)[t.prop] = h,
|
|
976
|
-
size: t.size,
|
|
977
|
-
clearable: "",
|
|
978
|
-
style: x(
|
|
979
|
-
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
980
|
-
),
|
|
981
|
-
disabled: t.disabled,
|
|
982
|
-
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u8F93\u5165" + t.label,
|
|
983
|
-
class: k([t.align && t.align == "center" ? "center" : ""]),
|
|
984
|
-
max: t.max != null ? t.max : 1 / 0,
|
|
985
|
-
min: t.min != null ? t.min : -1 / 0,
|
|
986
|
-
step: t.step != null ? t.step : 1,
|
|
987
|
-
onKeyup: G(R, ["enter", "native"])
|
|
988
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "placeholder", "class", "max", "min", "step", "onKeyup"])) : p("v-if", !0),
|
|
989
|
-
p(" \u9009\u62E9\u641C\u7D22 "),
|
|
990
|
-
t.search && t.type == "select" ? (o(), f(se, {
|
|
991
|
-
key: 2,
|
|
992
|
-
modelValue: r(n)[t.prop],
|
|
993
|
-
"onUpdate:modelValue": (h) => r(n)[t.prop] = h,
|
|
994
|
-
size: t.size,
|
|
995
|
-
clearable: "",
|
|
996
|
-
filterable: "",
|
|
997
|
-
style: x(
|
|
998
|
-
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
999
|
-
),
|
|
1000
|
-
disabled: t.disabled,
|
|
1001
|
-
multiple: t.multiple,
|
|
1002
|
-
"collapse-tags": t.omit,
|
|
1003
|
-
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9" + t.label,
|
|
1004
|
-
class: k([t.align && t.align == "center" ? "center" : ""])
|
|
151
|
+
_: 1
|
|
152
|
+
})) : r("", !0)
|
|
153
|
+
]),
|
|
154
|
+
default: u(() => [
|
|
155
|
+
k(h.$slots, "header", {}, void 0, !0),
|
|
156
|
+
_("div", ae, [
|
|
157
|
+
y(O, {
|
|
158
|
+
model: t.value,
|
|
159
|
+
rules: a.rules,
|
|
160
|
+
ref_key: "formRef",
|
|
161
|
+
ref: w,
|
|
162
|
+
inline: !0,
|
|
163
|
+
"label-width": a.lableWidth,
|
|
164
|
+
size: a.formSize
|
|
165
|
+
}, {
|
|
166
|
+
default: u(() => [
|
|
167
|
+
(d(!0), m(B, null, M(t.value, (e, o, W) => (d(), n($, {
|
|
168
|
+
key: W,
|
|
169
|
+
label: e.label,
|
|
170
|
+
prop: o,
|
|
171
|
+
style: G("width:" + (e.width ? e.width : "90%"))
|
|
1005
172
|
}, {
|
|
1006
|
-
default:
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
173
|
+
default: u(() => [
|
|
174
|
+
!e.type || e.type == "text" ? (d(), n(H, {
|
|
175
|
+
key: 0,
|
|
176
|
+
modelValue: t.value[o].default,
|
|
177
|
+
"onUpdate:modelValue": (l) => t.value[o].default = l,
|
|
178
|
+
clearable: "",
|
|
179
|
+
disabled: e.disabled,
|
|
180
|
+
readonly: e.readonly,
|
|
181
|
+
placeholder: e.placeholder ? e.placeholder : "请输入" + e.label,
|
|
182
|
+
style: { width: "100%" }
|
|
183
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "readonly", "placeholder"])) : r("", !0),
|
|
184
|
+
e.type == "number" ? (d(), n(N, {
|
|
185
|
+
key: 1,
|
|
186
|
+
modelValue: t.value[o].default,
|
|
187
|
+
"onUpdate:modelValue": (l) => t.value[o].default = l,
|
|
188
|
+
clearable: "",
|
|
189
|
+
disabled: e.disabled,
|
|
190
|
+
readonly: e.readonly,
|
|
191
|
+
style: { width: "100%" },
|
|
192
|
+
placeholder: e.placeholder ? e.placeholder : "请输入" + e.label,
|
|
193
|
+
max: e.max != null ? e.max : 1 / 0,
|
|
194
|
+
min: e.min != null ? e.min : -1 / 0,
|
|
195
|
+
step: e.step != null ? e.step : 1
|
|
196
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "readonly", "placeholder", "max", "min", "step"])) : r("", !0),
|
|
197
|
+
e.type == "select" ? (d(), n(F, {
|
|
198
|
+
key: 2,
|
|
199
|
+
modelValue: t.value[o].default,
|
|
200
|
+
"onUpdate:modelValue": (l) => t.value[o].default = l,
|
|
201
|
+
clearable: "",
|
|
202
|
+
filterable: "",
|
|
203
|
+
disabled: e.disabled,
|
|
204
|
+
multiple: e.multiple,
|
|
205
|
+
"collapse-tags": e.omit,
|
|
206
|
+
placeholder: e.placeholder ? e.placeholder : "请选择" + e.label,
|
|
207
|
+
style: { width: "100%" }
|
|
208
|
+
}, {
|
|
209
|
+
default: u(() => [
|
|
210
|
+
(d(!0), m(B, null, M(e.options, (l) => (d(), n(E, {
|
|
211
|
+
label: l.label ? l.label : l.value,
|
|
212
|
+
value: l.value,
|
|
213
|
+
disabled: l.disabled
|
|
214
|
+
}, null, 8, ["label", "value", "disabled"]))), 256))
|
|
215
|
+
]),
|
|
216
|
+
_: 2
|
|
217
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled", "multiple", "collapse-tags", "placeholder"])) : r("", !0),
|
|
218
|
+
e.type == "date" ? (d(), n(b, {
|
|
219
|
+
key: 3,
|
|
220
|
+
modelValue: t.value[o].default,
|
|
221
|
+
"onUpdate:modelValue": (l) => t.value[o].default = l,
|
|
222
|
+
type: "date",
|
|
223
|
+
placeholder: e.placeholder ? e.placeholder : "请选择日期",
|
|
224
|
+
disabled: e.disabled,
|
|
225
|
+
readonly: e.readonly,
|
|
226
|
+
style: { width: "100%" }
|
|
227
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "readonly"])) : r("", !0),
|
|
228
|
+
e.type == "time" ? (d(), n(U, {
|
|
229
|
+
key: 4,
|
|
230
|
+
modelValue: t.value[o].default,
|
|
231
|
+
"onUpdate:modelValue": (l) => t.value[o].default = l,
|
|
232
|
+
"arrow-control": "",
|
|
233
|
+
placeholder: e.placeholder ? e.placeholder : "请选择时间",
|
|
234
|
+
disabled: e.disabled,
|
|
235
|
+
readonly: e.readonly,
|
|
236
|
+
style: { width: "100%" }
|
|
237
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "readonly"])) : r("", !0),
|
|
238
|
+
e.type == "datetime" ? (d(), n(b, {
|
|
239
|
+
key: 5,
|
|
240
|
+
modelValue: t.value[o].default,
|
|
241
|
+
"onUpdate:modelValue": (l) => t.value[o].default = l,
|
|
242
|
+
type: "datetime",
|
|
243
|
+
placeholder: e.placeholder ? e.placeholder : "请选择日期时间",
|
|
244
|
+
disabled: e.disabled,
|
|
245
|
+
readonly: e.readonly,
|
|
246
|
+
style: { width: "100%" }
|
|
247
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "readonly"])) : r("", !0),
|
|
248
|
+
e.type == "daterange" ? (d(), n(b, {
|
|
249
|
+
key: 6,
|
|
250
|
+
modelValue: t.value[o].default,
|
|
251
|
+
"onUpdate:modelValue": (l) => t.value[o].default = l,
|
|
252
|
+
type: "daterange",
|
|
253
|
+
"range-separator": "-",
|
|
254
|
+
"start-placeholder": e.placeholder ? e.placeholder.split("&&")[0] : "请选择开始日期",
|
|
255
|
+
"end-placeholder": e.placeholder ? e.placeholder.split("&&")[1] : "请选择结束日期",
|
|
256
|
+
disabled: e.disabled,
|
|
257
|
+
readonly: e.readonly,
|
|
258
|
+
style: { width: "100%" }
|
|
259
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled", "readonly"])) : r("", !0),
|
|
260
|
+
e.type == "timerange" ? (d(), n(U, {
|
|
261
|
+
key: 7,
|
|
262
|
+
modelValue: t.value[o].default,
|
|
263
|
+
"onUpdate:modelValue": (l) => t.value[o].default = l,
|
|
264
|
+
"is-range": "",
|
|
265
|
+
"arrow-control": "",
|
|
266
|
+
"range-separator": "-",
|
|
267
|
+
"start-placeholder": e.placeholder ? e.placeholder.split("&&")[0] : "请选择开始时间",
|
|
268
|
+
"end-placeholder": e.placeholder ? e.placeholder.split("&&")[1] : "请选择结束时间",
|
|
269
|
+
disabled: e.disabled,
|
|
270
|
+
readonly: e.readonly,
|
|
271
|
+
style: { width: "100%" }
|
|
272
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled", "readonly"])) : r("", !0),
|
|
273
|
+
e.type == "datetimerange" ? (d(), n(b, {
|
|
274
|
+
key: 8,
|
|
275
|
+
modelValue: t.value[o].default,
|
|
276
|
+
"onUpdate:modelValue": (l) => t.value[o].default = l,
|
|
277
|
+
type: "datetimerange",
|
|
278
|
+
"range-separator": "-",
|
|
279
|
+
"start-placeholder": e.placeholder ? e.placeholder.split("&&")[0] : "请选择开始日期时间",
|
|
280
|
+
"end-placeholder": e.placeholder ? e.placeholder.split("&&")[1] : "请选择结束日期时间",
|
|
281
|
+
disabled: e.disabled,
|
|
282
|
+
readonly: e.readonly,
|
|
283
|
+
style: { width: "100%" }
|
|
284
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled", "readonly"])) : r("", !0),
|
|
285
|
+
e.type == "switch" ? (d(), n(I, {
|
|
286
|
+
key: 9,
|
|
287
|
+
modelValue: t.value[o].default,
|
|
288
|
+
"onUpdate:modelValue": (l) => t.value[o].default = l,
|
|
289
|
+
"active-text": e.openText,
|
|
290
|
+
"inactive-text": e.closeText,
|
|
291
|
+
disabled: e.disabled,
|
|
292
|
+
style: { width: "100%" }
|
|
293
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-text", "inactive-text", "disabled"])) : r("", !0)
|
|
1012
294
|
]),
|
|
1013
295
|
_: 2
|
|
1014
|
-
}, 1032, ["
|
|
1015
|
-
p(" \u65E5\u671F\u9009\u62E9 "),
|
|
1016
|
-
t.search && t.type == "date" ? (o(), f(W, {
|
|
1017
|
-
key: 3,
|
|
1018
|
-
modelValue: r(n)[t.prop],
|
|
1019
|
-
"onUpdate:modelValue": (h) => r(n)[t.prop] = h,
|
|
1020
|
-
type: "date",
|
|
1021
|
-
style: x(t.searchWidth ? "width: " + t.searchWidth + "px;" : ""),
|
|
1022
|
-
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9\u65E5\u671F",
|
|
1023
|
-
size: t.size,
|
|
1024
|
-
class: k([t.align && t.align == "center" ? "center" : ""])
|
|
1025
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : p("v-if", !0),
|
|
1026
|
-
p(" \u65F6\u95F4\u9009\u62E9 "),
|
|
1027
|
-
t.search && t.type == "time" ? (o(), f(I, {
|
|
1028
|
-
key: 4,
|
|
1029
|
-
modelValue: r(n)[t.prop],
|
|
1030
|
-
"onUpdate:modelValue": (h) => r(n)[t.prop] = h,
|
|
1031
|
-
"arrow-control": "",
|
|
1032
|
-
style: x(
|
|
1033
|
-
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
1034
|
-
),
|
|
1035
|
-
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9\u65F6\u95F4",
|
|
1036
|
-
size: t.size,
|
|
1037
|
-
class: k([t.align && t.align == "center" ? "center" : ""])
|
|
1038
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : p("v-if", !0),
|
|
1039
|
-
p(" \u65E5\u671F\u65F6\u95F4\u641C\u7D22 "),
|
|
1040
|
-
t.search && t.type == "datetime" ? (o(), f(W, {
|
|
1041
|
-
key: 5,
|
|
1042
|
-
modelValue: r(n)[t.prop],
|
|
1043
|
-
"onUpdate:modelValue": (h) => r(n)[t.prop] = h,
|
|
1044
|
-
type: "datetime",
|
|
1045
|
-
style: x(
|
|
1046
|
-
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
1047
|
-
),
|
|
1048
|
-
placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4",
|
|
1049
|
-
size: t.size,
|
|
1050
|
-
class: k([t.align && t.align == "center" ? "center" : ""])
|
|
1051
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : p("v-if", !0),
|
|
1052
|
-
p(" \u65E5\u671F\u8303\u56F4\u9009\u62E9 "),
|
|
1053
|
-
t.search && t.type == "daterange" ? (o(), f(W, {
|
|
1054
|
-
key: 6,
|
|
1055
|
-
modelValue: r(n)[t.prop],
|
|
1056
|
-
"onUpdate:modelValue": (h) => r(n)[t.prop] = h,
|
|
1057
|
-
type: "daterange",
|
|
1058
|
-
"range-separator": "-",
|
|
1059
|
-
"start-placeholder": t.placeholder ? t.placeholder.split("&&")[0] : "\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",
|
|
1060
|
-
"end-placeholder": t.placeholder ? t.placeholder.split("&&")[1] : "\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",
|
|
1061
|
-
style: x(
|
|
1062
|
-
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
1063
|
-
),
|
|
1064
|
-
size: t.size,
|
|
1065
|
-
class: k([t.align && t.align == "center" ? "center" : ""])
|
|
1066
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : p("v-if", !0),
|
|
1067
|
-
p(" \u65F6\u95F4\u8303\u56F4\u9009\u62E9 "),
|
|
1068
|
-
t.search && t.type == "timerange" ? (o(), f(I, {
|
|
1069
|
-
key: 7,
|
|
1070
|
-
modelValue: r(n)[t.prop],
|
|
1071
|
-
"onUpdate:modelValue": (h) => r(n)[t.prop] = h,
|
|
1072
|
-
"is-range": "",
|
|
1073
|
-
"arrow-control": "",
|
|
1074
|
-
"range-separator": "-",
|
|
1075
|
-
"start-placeholder": t.placeholder ? t.placeholder.split("&&")[0] : "\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",
|
|
1076
|
-
"end-placeholder": t.placeholder ? t.placeholder.split("&&")[1] : "\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",
|
|
1077
|
-
style: x(
|
|
1078
|
-
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
1079
|
-
),
|
|
1080
|
-
size: t.size,
|
|
1081
|
-
class: k([t.align && t.align == "center" ? "center" : ""])
|
|
1082
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : p("v-if", !0),
|
|
1083
|
-
p(" \u65E5\u671F\u65F6\u95F4\u8303\u56F4\u9009\u62E9 "),
|
|
1084
|
-
t.search && t.type == "datetimerange" ? (o(), f(W, {
|
|
1085
|
-
key: 8,
|
|
1086
|
-
modelValue: r(n)[t.prop],
|
|
1087
|
-
"onUpdate:modelValue": (h) => r(n)[t.prop] = h,
|
|
1088
|
-
type: "datetimerange",
|
|
1089
|
-
"range-separator": "-",
|
|
1090
|
-
"start-placeholder": t.placeholder ? t.placeholder.split("&&")[0] : "\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F\u65F6\u95F4",
|
|
1091
|
-
"end-placeholder": t.placeholder ? t.placeholder.split("&&")[1] : "\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F\u65F6\u95F4",
|
|
1092
|
-
style: x(
|
|
1093
|
-
t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
|
|
1094
|
-
),
|
|
1095
|
-
size: t.size,
|
|
1096
|
-
class: k([t.align && t.align == "center" ? "center" : ""])
|
|
1097
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : p("v-if", !0),
|
|
1098
|
-
p(" \u5F00\u5173 "),
|
|
1099
|
-
t.search && t.type == "switch" ? (o(), f(oe, {
|
|
1100
|
-
key: 9,
|
|
1101
|
-
modelValue: r(n)[t.prop],
|
|
1102
|
-
"onUpdate:modelValue": (h) => r(n)[t.prop] = h,
|
|
1103
|
-
size: t.size,
|
|
1104
|
-
"active-text": t.openText,
|
|
1105
|
-
"inactive-text": t.closeText,
|
|
1106
|
-
class: k([t.align && t.align == "center" ? "center" : ""])
|
|
1107
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "active-text", "inactive-text", "class"])) : p("v-if", !0)
|
|
296
|
+
}, 1032, ["label", "prop", "style"]))), 128))
|
|
1108
297
|
]),
|
|
1109
|
-
_:
|
|
1110
|
-
}, [
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
fn: m((h) => [
|
|
1114
|
-
y("span", {
|
|
1115
|
-
innerHTML: t.costom ? t.costom(h.row) : ""
|
|
1116
|
-
}, null, 8, It)
|
|
1117
|
-
]),
|
|
1118
|
-
key: "0"
|
|
1119
|
-
} : void 0,
|
|
1120
|
-
t.component ? {
|
|
1121
|
-
name: "default",
|
|
1122
|
-
fn: m((h) => [
|
|
1123
|
-
(o(), f(ge(t.component), {
|
|
1124
|
-
data: h.row
|
|
1125
|
-
}, null, 8, ["data"]))
|
|
1126
|
-
]),
|
|
1127
|
-
key: "1"
|
|
1128
|
-
} : void 0
|
|
1129
|
-
]), 1032, ["prop", "width", "min-width", "fixed", "align", "show-overflow-tooltip"]))
|
|
1130
|
-
], 64))), 256)),
|
|
1131
|
-
e.operate ? (o(), f(B, {
|
|
1132
|
-
key: 3,
|
|
1133
|
-
align: "center",
|
|
1134
|
-
width: e.operateWidth ? e.operateWidth : "",
|
|
1135
|
-
fixed: e.operateIsFixed ? "right" : !1
|
|
1136
|
-
}, {
|
|
1137
|
-
header: m(() => [
|
|
1138
|
-
y("div", Ot, T(e.operateLabel), 1),
|
|
1139
|
-
w(d.$slots, "operate-front", {}, void 0, !0),
|
|
1140
|
-
e.search ? (o(), f(L, {
|
|
1141
|
-
key: 0,
|
|
1142
|
-
type: "primary",
|
|
1143
|
-
size: e.operateSize,
|
|
1144
|
-
icon: r(wt),
|
|
1145
|
-
onClick: R
|
|
1146
|
-
}, {
|
|
1147
|
-
default: m(() => [
|
|
1148
|
-
P("\u641C\u7D22")
|
|
1149
|
-
]),
|
|
1150
|
-
_: 1
|
|
1151
|
-
}, 8, ["size", "icon"])) : p("v-if", !0),
|
|
1152
|
-
w(d.$slots, "operate-middle", {}, void 0, !0),
|
|
1153
|
-
e.clear ? (o(), f(L, {
|
|
1154
|
-
key: 1,
|
|
1155
|
-
type: "info",
|
|
1156
|
-
size: e.operateSize,
|
|
1157
|
-
icon: r(Le),
|
|
1158
|
-
onClick: M
|
|
1159
|
-
}, {
|
|
1160
|
-
default: m(() => [
|
|
1161
|
-
P("\u6E05\u7A7A")
|
|
1162
|
-
]),
|
|
1163
|
-
_: 1
|
|
1164
|
-
}, 8, ["size", "icon"])) : p("v-if", !0),
|
|
1165
|
-
w(d.$slots, "operate", {}, void 0, !0),
|
|
1166
|
-
e.filter ? (o(), f(ue, {
|
|
1167
|
-
key: 2,
|
|
1168
|
-
ref_key: "popover",
|
|
1169
|
-
ref: u,
|
|
1170
|
-
width: "150",
|
|
1171
|
-
trigger: "click",
|
|
1172
|
-
placement: "bottom"
|
|
1173
|
-
}, {
|
|
1174
|
-
reference: m(() => [
|
|
1175
|
-
b(L, {
|
|
1176
|
-
type: "link",
|
|
1177
|
-
size: e.operateSize,
|
|
1178
|
-
icon: r(j),
|
|
1179
|
-
onClick: c[0] || (c[0] = (t) => C.value = !C.value)
|
|
1180
|
-
}, null, 8, ["size", "icon"])
|
|
1181
|
-
]),
|
|
1182
|
-
default: m(() => [
|
|
1183
|
-
y("h4", null, [
|
|
1184
|
-
b(re, null, {
|
|
1185
|
-
default: m(() => [
|
|
1186
|
-
b(r(j))
|
|
1187
|
-
]),
|
|
1188
|
-
_: 1
|
|
1189
|
-
}),
|
|
1190
|
-
P(" \u663E\u793A\u5B57\u6BB5\u7B5B\u9009 ")
|
|
1191
|
-
]),
|
|
1192
|
-
(o(!0), g(N, null, H(_.value, (t) => (o(), g("p", null, [
|
|
1193
|
-
b(de, {
|
|
1194
|
-
modelValue: t.check,
|
|
1195
|
-
"onUpdate:modelValue": (h) => t.check = h,
|
|
1196
|
-
label: t.label,
|
|
1197
|
-
value: t.label,
|
|
1198
|
-
disabled: !t.filter,
|
|
1199
|
-
size: "small"
|
|
1200
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "value", "disabled"])
|
|
1201
|
-
]))), 256)),
|
|
1202
|
-
b(L, {
|
|
1203
|
-
type: "primary",
|
|
1204
|
-
size: "small",
|
|
1205
|
-
style: { "margin-top": "10px", "margin-left": "5px" },
|
|
1206
|
-
onClick: te
|
|
1207
|
-
}, {
|
|
1208
|
-
default: m(() => [
|
|
1209
|
-
P("\u786E\u8BA4")
|
|
1210
|
-
]),
|
|
1211
|
-
_: 1
|
|
1212
|
-
})
|
|
1213
|
-
]),
|
|
1214
|
-
_: 1
|
|
1215
|
-
}, 512)) : p("v-if", !0)
|
|
1216
|
-
]),
|
|
1217
|
-
default: m((t) => [
|
|
1218
|
-
w(d.$slots, "row-operate-front", {
|
|
1219
|
-
row: t.row
|
|
1220
|
-
}, void 0, !0),
|
|
1221
|
-
e.edit ? (o(), f(L, {
|
|
1222
|
-
key: 0,
|
|
1223
|
-
link: "",
|
|
1224
|
-
type: "primary",
|
|
1225
|
-
size: e.rowButtonSize,
|
|
1226
|
-
icon: r(st),
|
|
1227
|
-
onClick: (h) => A(t.row)
|
|
1228
|
-
}, {
|
|
1229
|
-
default: m(() => [
|
|
1230
|
-
P("\u4FEE\u6539")
|
|
1231
|
-
]),
|
|
1232
|
-
_: 2
|
|
1233
|
-
}, 1032, ["size", "icon", "onClick"])) : p("v-if", !0),
|
|
1234
|
-
w(d.$slots, "row-operate-middle", {
|
|
1235
|
-
row: t.row
|
|
1236
|
-
}, void 0, !0),
|
|
1237
|
-
e.delete ? (o(), f(ce, {
|
|
1238
|
-
key: 1,
|
|
1239
|
-
"confirm-button-text": "\u5426",
|
|
1240
|
-
"cancel-button-text": "\u662F",
|
|
1241
|
-
"confirm-button-type": "text",
|
|
1242
|
-
"cancel-button-type": "danger",
|
|
1243
|
-
icon: r(je),
|
|
1244
|
-
width: "auto",
|
|
1245
|
-
onCancel: (h) => Q(t.row),
|
|
1246
|
-
title: e.deleteTitle ? e.deleteTitle : "\u662F\u5426\u8981\u5220\u9664\u5F53\u524D\u884C\uFF1F"
|
|
1247
|
-
}, {
|
|
1248
|
-
reference: m(() => [
|
|
1249
|
-
b(L, {
|
|
1250
|
-
link: "",
|
|
1251
|
-
type: "danger",
|
|
1252
|
-
size: e.rowButtonSize,
|
|
1253
|
-
icon: r(Ze)
|
|
1254
|
-
}, {
|
|
1255
|
-
default: m(() => [
|
|
1256
|
-
P("\u5220\u9664")
|
|
1257
|
-
]),
|
|
1258
|
-
_: 1
|
|
1259
|
-
}, 8, ["size", "icon"])
|
|
1260
|
-
]),
|
|
1261
|
-
_: 2
|
|
1262
|
-
}, 1032, ["icon", "onCancel", "title"])) : p("v-if", !0),
|
|
1263
|
-
w(d.$slots, "row-operate", {
|
|
1264
|
-
row: t.row
|
|
1265
|
-
}, void 0, !0)
|
|
1266
|
-
]),
|
|
1267
|
-
_: 3
|
|
1268
|
-
}, 8, ["width", "fixed"])) : p("v-if", !0)
|
|
298
|
+
_: 1
|
|
299
|
+
}, 8, ["model", "rules", "label-width", "size"])
|
|
300
|
+
]),
|
|
301
|
+
k(h.$slots, "footer", {}, void 0, !0)
|
|
1269
302
|
]),
|
|
1270
|
-
_:
|
|
1271
|
-
},
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
303
|
+
_: 2
|
|
304
|
+
}, [
|
|
305
|
+
a.footer ? {
|
|
306
|
+
name: "footer",
|
|
307
|
+
fn: u(() => [
|
|
308
|
+
y(z, {
|
|
309
|
+
type: "primary",
|
|
310
|
+
size: a.buttonSize,
|
|
311
|
+
icon: g(P),
|
|
312
|
+
class: "btn",
|
|
313
|
+
loading: a.loading,
|
|
314
|
+
onClick: T
|
|
315
|
+
}, {
|
|
316
|
+
default: u(() => [
|
|
317
|
+
v(J(a.loading ? "提交中" : "提交"), 1)
|
|
318
|
+
]),
|
|
319
|
+
_: 1
|
|
320
|
+
}, 8, ["size", "icon", "loading"]),
|
|
321
|
+
y(z, {
|
|
322
|
+
type: "info",
|
|
323
|
+
size: a.buttonSize,
|
|
324
|
+
icon: g(X),
|
|
325
|
+
class: "btn",
|
|
326
|
+
onClick: x
|
|
327
|
+
}, {
|
|
328
|
+
default: u(() => f[2] || (f[2] = [
|
|
329
|
+
v("取消")
|
|
330
|
+
])),
|
|
331
|
+
_: 1,
|
|
332
|
+
__: [2]
|
|
333
|
+
}, 8, ["size", "icon"])
|
|
334
|
+
]),
|
|
335
|
+
key: "0"
|
|
336
|
+
} : void 0
|
|
337
|
+
]), 1032, ["width", "fullscreen", "draggable"])
|
|
338
|
+
]);
|
|
1289
339
|
};
|
|
1290
340
|
}
|
|
1291
|
-
});
|
|
1292
|
-
const Kt = /* @__PURE__ */ D(jt, [["__scopeId", "data-v-f4c855de"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/TableForm/index.vue"]]), Jt = {
|
|
1293
|
-
install: (e) => {
|
|
1294
|
-
e.component("SplitPanes", Ce), e.component("Pane", Fe), e.component("UpLoadFile", qt), e.component("Layout", Wt), e.component("TableForm", Kt), e.component("UpLoadFiles", Rt);
|
|
1295
|
-
}
|
|
1296
|
-
};
|
|
341
|
+
}, ie = /* @__PURE__ */ le(oe, [["__scopeId", "data-v-c1bd2f2e"]]);
|
|
1297
342
|
export {
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
Ce as SplitPanes,
|
|
1301
|
-
Kt as TableForm,
|
|
1302
|
-
qt as UpLoadFile,
|
|
1303
|
-
Rt as UpLoadFiles,
|
|
1304
|
-
Jt as default
|
|
343
|
+
ie as DvDialog,
|
|
344
|
+
re as FormValidate
|
|
1305
345
|
};
|