dld-vue-ui 1.1.0 → 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.
@@ -1,1308 +1,345 @@
1
- import { h as me, openBlock as o, createElementBlock as g, normalizeStyle as x, renderSlot as w, defineComponent as U, createBlock as f, unref as r, withCtx as m, createElementVNode as y, ref as B, onMounted as Y, resolveComponent as z, createVNode as b, createTextVNode as F, withDirectives as fe, vShow as ve, toDisplayString as T, Fragment as N, renderList as H, useSlots as J, createCommentVNode as p, reactive as _e, watch as G, normalizeClass as C, createSlots as ze, withKeys as j, resolveDynamicComponent as ge } from "vue";
2
- const ye = {
3
- name: "splitpanes",
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 P = v.max < 100 && s >= v.max + l.prevPanesSize, q = _.max < 100 && s <= 100 - (_.max + this.sumNextPanesSize(a + 1));
102
- if (P || q) {
103
- P ? (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
- const Se = /* @__PURE__ */ xe(we, [["render", be]]);
339
- const ke = /* @__PURE__ */ U({
340
- __name: "index",
341
- props: {
342
- styles: { type: Object, required: !1, default: () => ({ width: "100%", height: "100%" }) },
343
- horizontal: { type: Boolean, required: !1, default: !1 }
344
- },
345
- setup(e) {
346
- return (a, l) => (o(), f(r(ye), {
347
- horizontal: e.horizontal,
348
- style: x(e.styles),
349
- class: "splitpanes"
350
- }, {
351
- default: m(() => [
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
- const D = (e, a) => {
359
- const l = e.__vccOpts || e;
360
- for (const [i, n] of a)
361
- l[i] = n;
362
- return l;
363
- }, Ce = /* @__PURE__ */ D(ke, [["__scopeId", "data-v-4226b5d2"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/SplitPanes/index.vue"]]), Pe = /* @__PURE__ */ U({
364
- __name: "pane",
365
- props: {
366
- styles: { type: Object, required: !0, default: () => ({ background: "#ececec" }) }
367
- },
368
- setup(e) {
369
- return (a, l) => (o(), f(r(Se), {
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
- }), Fe = /* @__PURE__ */ D(Pe, [["__file", "D:/Code/front/dld-vue-ui/src/packages/SplitPanes/pane.vue"]]);
379
- /*! Element Plus Icons Vue v2.0.10 */
380
- var E = (e, a) => {
381
- let l = e.__vccOpts || e;
382
- for (let [i, n] of a)
383
- l[i] = n;
384
- return l;
385
- }, Ee = {
386
- name: "CircleClose"
387
- }, $e = {
388
- viewBox: "0 0 1024 1024",
389
- xmlns: "http://www.w3.org/2000/svg"
390
- }, Me = /* @__PURE__ */ y("path", {
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__ */ E(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__ */ E(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__ */ E(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__ */ E(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__ */ E(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 K = /* @__PURE__ */ E(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 X = /* @__PURE__ */ E(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__ */ E(_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 Q = /* @__PURE__ */ E(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
- return e.isGuid = function(a) {
526
- var l = a.toString();
527
- return a && (a instanceof e || e.validator.test(l));
528
- }, e.create = function() {
529
- return new e([e.gen(2), e.gen(1), e.gen(1), e.gen(1), e.gen(3)].join("-"));
530
- }, e.createEmpty = function() {
531
- return new e("emptyguid");
532
- }, e.parse = function(a) {
533
- return new e(a);
534
- }, e.raw = function() {
535
- return [e.gen(2), e.gen(1), e.gen(1), e.gen(1), e.gen(3)].join("-");
536
- }, e.gen = function(a) {
537
- for (var l = "", i = 0; i < a; i++)
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: Q },
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 = B("");
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 P() {
574
- n.value = "", s.value = "";
575
- }
576
- return Y(() => {
577
- n = document.getElementById(i);
578
- }), a({
579
- Clear: P
580
- }), (q, S) => {
581
- const $ = z("el-button");
582
- return o(), g("div", $t, [
583
- b($, {
584
- type: e.type,
585
- icon: r(X),
586
- size: e.size,
587
- class: "btn",
588
- onClick: u
589
- }, {
590
- default: m(() => [
591
- F("\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($, {
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
- F(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 qt = /* @__PURE__ */ D(Bt, [["__scopeId", "data-v-83b9cdd7"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/UpLoadFile/index.vue"]]), Lt = ["accept"], Nt = { class: "filename" }, Ut = { class: "content" }, Dt = /* @__PURE__ */ U({
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
- size: { type: String, required: !0, default: "default" },
626
- accept: { type: String, required: !0, default: "*" }
627
- },
628
- emits: ["upload", "clear"],
629
- setup(e, { expose: a, emit: l }) {
630
- const i = e, n = B(), s = B([]);
631
- function u() {
632
- var S;
633
- (S = n.value) == null || S.click();
634
- }
635
- function v() {
636
- var S, $, M;
637
- if (s.value = [], (S = n.value) != null && S.files)
638
- for (let V = 0; V < ((M = ($ = n.value) == null ? void 0 : $.files) == null ? void 0 : M.length); V++)
639
- s.value[V] = n.value.files[V];
640
- else
641
- s.value = [];
642
- }
643
- function _(S) {
644
- s.value.splice(S, 1);
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"
645
110
  }
646
- function P() {
647
- l("upload", s.value);
648
- }
649
- function q() {
650
- s.value = [];
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
- return a({
653
- Clear: q
654
- }), (S, $) => {
655
- const M = 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(M, {
667
- type: "success",
668
- size: i.size,
669
- icon: r(X),
670
- onClick: u
671
- }, {
672
- default: m(() => [
673
- F("\u9009\u62E9\u6587\u4EF6")
674
- ]),
675
- _: 1
676
- }, 8, ["size", "icon"]),
677
- b(M, {
678
- type: "success",
679
- size: i.size,
680
- icon: r(Q),
681
- onClick: P,
682
- disabled: s.value.length == 0
683
- }, {
684
- default: m(() => [
685
- F("\u4E0A\u4F20\u6587\u4EF6")
686
- ]),
687
- _: 1
688
- }, 8, ["size", "icon", "disabled"]),
689
- (o(!0), g(N, null, H(s.value, (V, R) => (o(), g("p", Nt, [
690
- y("span", Ut, T(V.name), 1),
691
- b(M, {
692
- size: "small",
693
- icon: r(We),
694
- class: "operation",
695
- link: "",
696
- onClick: (I) => _(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 = J();
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
- const Wt = /* @__PURE__ */ D(Tt, [["__scopeId", "data-v-5d747d9d"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/Layout/index.vue"]]), Ht = {
779
- key: 0,
780
- class: "header"
781
- }, At = { class: "header_title" }, It = ["innerHTML"], Ot = { class: "header_title" }, Gt = { class: "pagination" }, jt = /* @__PURE__ */ U({
782
- __name: "index",
783
- props: {
784
- maxHeight: { type: [Number, String], required: !1, default: 550 },
785
- size: { type: String, required: !1, default: "default" },
786
- tableData: { type: Array, required: !1, default: () => [] },
787
- headStyle: { type: null, required: !1, default: {} },
788
- tableColumn: { type: Array, required: !1, default: () => [] },
789
- stripe: { type: Boolean, required: !1, default: !0 },
790
- border: { type: Boolean, required: !1, default: !1 },
791
- highLight: { type: Boolean, required: !1, default: !1 },
792
- type: { type: String, required: !1 },
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 = B(), u = B();
822
- const v = B([]), _ = B([]), P = B(!1), q = J(), S = (d) => {
823
- l("row-click", d);
824
- }, $ = (d) => {
825
- l("row-click", d);
826
- }, M = (d) => {
827
- l("selection-change", d);
828
- }, V = () => {
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
- }, I = (d) => {
838
- l("edit", d);
839
- }, Z = (d) => {
840
- l("delete", d);
841
- }, ee = (d) => {
842
- for (let c = 0; c < d.length; c++)
843
- n[d[c].prop] = d[c].label;
844
- }, te = () => n, ae = () => {
845
- v.value.forEach((d) => {
846
- var c = _.value.find((k) => k.label == d.label);
847
- c && c.filter && (d.hidden = !c.check, d.hidden && (n[d.prop] = null));
848
- }), P.value = !1, u.value.hide(), l("filter", () => _.value);
849
- }, ne = (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
- })), v.value.forEach((c) => {
868
- var k = _.value.find((A) => A.label == c.label);
869
- k && k.filter && (c.hidden = !k.check, c.hidden && (n[c.prop] = null)), k != null && k.filter || (c.hidden = !1);
870
- });
871
- };
872
- return G(
873
- () => n.pageIndex,
874
- (d, c) => {
875
- l("page-index", Number(d), Number(c));
876
- }
877
- ), G(
878
- () => n.pageSize,
879
- (d, c) => {
880
- l("page-size", Number(d), Number(c));
881
- }
882
- ), a({
883
- Assignment: ee,
884
- GetParameters: te,
885
- SetFilter: ne
886
- }), Y(() => {
887
- if (i.tableColumn.length > 0)
888
- for (let d = 0; d < i.tableColumn.length; d++) {
889
- let c = i.tableColumn[d];
890
- n[c.prop] = null;
891
- }
892
- i.tableData.forEach((d) => {
893
- i.defaultSelect && i.type == "selection" && i.defaultSelect(d) && s.value.toggleRowSelection(d, void 0, !1);
894
- }), n.pageSize = i.defaultSize, i.filter || (v.value = i.tableColumn);
895
- }), (d, c) => {
896
- const k = z("el-table-column"), A = z("el-input"), le = z("el-input-number"), ie = z("el-option"), se = z("el-select"), W = z("el-date-picker"), O = 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");
897
- return o(), g(N, null, [
898
- r(q).header ? (o(), g("div", Ht, [
899
- w(d.$slots, "header", {}, void 0, !0)
900
- ])) : p("v-if", !0),
901
- b(pe, {
902
- data: e.tableData,
903
- class: C([e.size && e.size == "small" ? "mini-table" : "table"]),
904
- "max-height": e.maxHeight,
905
- size: e.size,
906
- stripe: e.stripe,
907
- border: e.border,
908
- "highlight-current-row": e.highLight,
909
- onRowClick: S,
910
- onRowDblclick: $,
911
- onSelectionChange: M,
912
- ref_key: "tableRef",
913
- ref: s,
914
- "header-cell-style": e.headStyle
915
- }, {
916
- default: m(() => [
917
- e.type && e.type == "index" ? (o(), f(k, {
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, {
918
143
  key: 0,
919
- align: "center",
920
- type: "index",
921
- width: e.typeWidth + "px",
922
- fixed: e.typeIsFixed ? "left" : !1,
923
- label: e.typeLabel
924
- }, null, 8, ["width", "fixed", "label"])) : p("v-if", !0),
925
- e.type == "selection" ? (o(), f(k, {
926
- key: 1,
927
- align: "center",
928
- type: "selection",
929
- width: e.typeWidth + "px",
930
- fixed: e.typeIsFixed ? "left" : !1
931
- }, null, 8, ["width", "fixed"])) : p("v-if", !0),
932
- e.type == "expand" ? (o(), f(k, {
933
- key: 2,
934
- align: "center",
935
- type: "expand",
936
- width: e.typeWidth + "px",
937
- fixed: e.typeIsFixed ? "left" : !1,
938
- label: e.typeLabel
144
+ class: "fullscreen",
145
+ onClick: f[0] || (f[0] = (e) => p.value = !p.value)
939
146
  }, {
940
- default: m((t) => [
941
- w(d.$slots, "expand", {
942
- row: t.row
943
- }, 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)
944
150
  ]),
945
- _: 3
946
- }, 8, ["width", "fixed", "label"])) : p("v-if", !0),
947
- (o(!0), g(N, null, H(v.value, (t) => (o(), g(N, null, [
948
- t.hidden ? p("v-if", !0) : (o(), f(k, {
949
- key: 0,
950
- prop: t.costom ? !1 : t.prop,
951
- width: t.width ? t.width : "",
952
- "min-width": t.minWidth ? t.minWidth : "",
953
- fixed: t.fixed ? t.fixed : !1,
954
- align: t.align ? t.align : "left",
955
- "show-overflow-tooltip": !!t.overflow
956
- }, ze({
957
- header: m(() => [
958
- y("div", At, T(t.label), 1),
959
- p(" \u6587\u672C\u641C\u7D22\u6846 "),
960
- t.search && (!t.type || t.type == "text") ? (o(), f(A, {
961
- key: 0,
962
- modelValue: r(n)[t.prop],
963
- "onUpdate:modelValue": (h) => r(n)[t.prop] = h,
964
- size: t.size,
965
- clearable: "",
966
- style: x(
967
- t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
968
- ),
969
- disabled: t.disabled,
970
- placeholder: t.placeholder ? t.placeholder : "\u8BF7\u8F93\u5165" + t.label,
971
- class: C([t.align && t.align == "center" ? "center" : ""]),
972
- onKeyup: j(R, ["enter", "native"])
973
- }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "placeholder", "class", "onKeyup"])) : p("v-if", !0),
974
- p(" \u6570\u5B57\u6846\u641C\u7D22 "),
975
- t.search && t.type == "number" ? (o(), f(le, {
976
- key: 1,
977
- modelValue: r(n)[t.prop],
978
- "onUpdate:modelValue": (h) => r(n)[t.prop] = h,
979
- size: t.size,
980
- clearable: "",
981
- style: x(
982
- t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
983
- ),
984
- disabled: t.disabled,
985
- placeholder: t.placeholder ? t.placeholder : "\u8BF7\u8F93\u5165" + t.label,
986
- class: C([t.align && t.align == "center" ? "center" : ""]),
987
- max: t.max != null ? t.max : 1 / 0,
988
- min: t.min != null ? t.min : -1 / 0,
989
- step: t.step != null ? t.step : 1,
990
- onKeyup: j(R, ["enter", "native"])
991
- }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "placeholder", "class", "max", "min", "step", "onKeyup"])) : p("v-if", !0),
992
- p(" \u9009\u62E9\u641C\u7D22 "),
993
- t.search && t.type == "select" ? (o(), f(se, {
994
- key: 2,
995
- modelValue: r(n)[t.prop],
996
- "onUpdate:modelValue": (h) => r(n)[t.prop] = h,
997
- size: t.size,
998
- clearable: "",
999
- filterable: "",
1000
- style: x(
1001
- t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
1002
- ),
1003
- disabled: t.disabled,
1004
- multiple: t.multiple,
1005
- "collapse-tags": t.omit,
1006
- placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9" + t.label,
1007
- class: C([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%"))
1008
172
  }, {
1009
- default: m(() => [
1010
- (o(!0), g(N, null, H(t.options, (h) => (o(), f(ie, {
1011
- label: h.label ? h.label : h.value,
1012
- value: h.value,
1013
- disabled: h.disabled
1014
- }, null, 8, ["label", "value", "disabled"]))), 256))
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)
1015
294
  ]),
1016
295
  _: 2
1017
- }, 1032, ["modelValue", "onUpdate:modelValue", "size", "style", "disabled", "multiple", "collapse-tags", "placeholder", "class"])) : p("v-if", !0),
1018
- p(" \u65E5\u671F\u9009\u62E9 "),
1019
- t.search && t.type == "date" ? (o(), f(W, {
1020
- key: 3,
1021
- modelValue: r(n)[t.prop],
1022
- "onUpdate:modelValue": (h) => r(n)[t.prop] = h,
1023
- type: "date",
1024
- style: x(t.searchWidth ? "width: " + t.searchWidth + "px;" : ""),
1025
- placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9\u65E5\u671F",
1026
- size: t.size,
1027
- class: C([t.align && t.align == "center" ? "center" : ""])
1028
- }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : p("v-if", !0),
1029
- p(" \u65F6\u95F4\u9009\u62E9 "),
1030
- t.search && t.type == "time" ? (o(), f(O, {
1031
- key: 4,
1032
- modelValue: r(n)[t.prop],
1033
- "onUpdate:modelValue": (h) => r(n)[t.prop] = h,
1034
- "arrow-control": "",
1035
- style: x(
1036
- t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
1037
- ),
1038
- placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9\u65F6\u95F4",
1039
- size: t.size,
1040
- class: C([t.align && t.align == "center" ? "center" : ""])
1041
- }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : p("v-if", !0),
1042
- p(" \u65E5\u671F\u65F6\u95F4\u641C\u7D22 "),
1043
- t.search && t.type == "datetime" ? (o(), f(W, {
1044
- key: 5,
1045
- modelValue: r(n)[t.prop],
1046
- "onUpdate:modelValue": (h) => r(n)[t.prop] = h,
1047
- type: "datetime",
1048
- style: x(
1049
- t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
1050
- ),
1051
- placeholder: t.placeholder ? t.placeholder : "\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4",
1052
- size: t.size,
1053
- class: C([t.align && t.align == "center" ? "center" : ""])
1054
- }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder", "size", "class"])) : p("v-if", !0),
1055
- p(" \u65E5\u671F\u8303\u56F4\u9009\u62E9 "),
1056
- t.search && t.type == "daterange" ? (o(), f(W, {
1057
- key: 6,
1058
- modelValue: r(n)[t.prop],
1059
- "onUpdate:modelValue": (h) => r(n)[t.prop] = h,
1060
- type: "daterange",
1061
- "range-separator": "-",
1062
- "start-placeholder": t.placeholder ? t.placeholder.split("&&")[0] : "\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",
1063
- "end-placeholder": t.placeholder ? t.placeholder.split("&&")[1] : "\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",
1064
- style: x(
1065
- t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
1066
- ),
1067
- size: t.size,
1068
- class: C([t.align && t.align == "center" ? "center" : ""])
1069
- }, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : p("v-if", !0),
1070
- p(" \u65F6\u95F4\u8303\u56F4\u9009\u62E9 "),
1071
- t.search && t.type == "timerange" ? (o(), f(O, {
1072
- key: 7,
1073
- modelValue: r(n)[t.prop],
1074
- "onUpdate:modelValue": (h) => r(n)[t.prop] = h,
1075
- "is-range": "",
1076
- "arrow-control": "",
1077
- "range-separator": "-",
1078
- "start-placeholder": t.placeholder ? t.placeholder.split("&&")[0] : "\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",
1079
- "end-placeholder": t.placeholder ? t.placeholder.split("&&")[1] : "\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",
1080
- style: x(
1081
- t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
1082
- ),
1083
- size: t.size,
1084
- class: C([t.align && t.align == "center" ? "center" : ""])
1085
- }, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : p("v-if", !0),
1086
- p(" \u65E5\u671F\u65F6\u95F4\u8303\u56F4\u9009\u62E9 "),
1087
- t.search && t.type == "datetimerange" ? (o(), f(W, {
1088
- key: 8,
1089
- modelValue: r(n)[t.prop],
1090
- "onUpdate:modelValue": (h) => r(n)[t.prop] = h,
1091
- type: "datetimerange",
1092
- "range-separator": "-",
1093
- "start-placeholder": t.placeholder ? t.placeholder.split("&&")[0] : "\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F\u65F6\u95F4",
1094
- "end-placeholder": t.placeholder ? t.placeholder.split("&&")[1] : "\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F\u65F6\u95F4",
1095
- style: x(
1096
- t.searchWidth ? "width: " + t.searchWidth + "px;" : "width: 92%"
1097
- ),
1098
- size: t.size,
1099
- class: C([t.align && t.align == "center" ? "center" : ""])
1100
- }, null, 8, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "style", "size", "class"])) : p("v-if", !0),
1101
- p(" \u5F00\u5173 "),
1102
- t.search && t.type == "switch" ? (o(), f(oe, {
1103
- key: 9,
1104
- modelValue: r(n)[t.prop],
1105
- "onUpdate:modelValue": (h) => r(n)[t.prop] = h,
1106
- size: t.size,
1107
- "active-text": t.openText,
1108
- "inactive-text": t.closeText,
1109
- class: C([t.align && t.align == "center" ? "center" : ""])
1110
- }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "active-text", "inactive-text", "class"])) : p("v-if", !0)
296
+ }, 1032, ["label", "prop", "style"]))), 128))
1111
297
  ]),
1112
- _: 2
1113
- }, [
1114
- t.costom ? {
1115
- name: "default",
1116
- fn: m((h) => [
1117
- y("span", {
1118
- innerHTML: t.costom ? t.costom(h.row) : ""
1119
- }, null, 8, It)
1120
- ]),
1121
- key: "0"
1122
- } : void 0,
1123
- t.component ? {
1124
- name: "default",
1125
- fn: m((h) => [
1126
- (o(), f(ge(t.component), {
1127
- data: h.row
1128
- }, null, 8, ["data"]))
1129
- ]),
1130
- key: "1"
1131
- } : void 0
1132
- ]), 1032, ["prop", "width", "min-width", "fixed", "align", "show-overflow-tooltip"]))
1133
- ], 64))), 256)),
1134
- e.operate ? (o(), f(k, {
1135
- key: 3,
1136
- align: "center",
1137
- width: e.operateWidth ? e.operateWidth : "",
1138
- fixed: e.operateIsFixed ? "right" : !1
1139
- }, {
1140
- header: m(() => [
1141
- y("div", Ot, T(e.operateLabel), 1),
1142
- w(d.$slots, "operate-front", {}, void 0, !0),
1143
- e.search ? (o(), f(L, {
1144
- key: 0,
1145
- type: "primary",
1146
- size: e.operateSize,
1147
- icon: r(wt),
1148
- onClick: R
1149
- }, {
1150
- default: m(() => [
1151
- F("\u641C\u7D22")
1152
- ]),
1153
- _: 1
1154
- }, 8, ["size", "icon"])) : p("v-if", !0),
1155
- w(d.$slots, "operate-middle", {}, void 0, !0),
1156
- e.clear ? (o(), f(L, {
1157
- key: 1,
1158
- type: "info",
1159
- size: e.operateSize,
1160
- icon: r(Le),
1161
- onClick: V
1162
- }, {
1163
- default: m(() => [
1164
- F("\u6E05\u7A7A")
1165
- ]),
1166
- _: 1
1167
- }, 8, ["size", "icon"])) : p("v-if", !0),
1168
- w(d.$slots, "operate", {}, void 0, !0),
1169
- e.filter ? (o(), f(ue, {
1170
- key: 2,
1171
- ref_key: "popover",
1172
- ref: u,
1173
- width: "150",
1174
- trigger: "click",
1175
- placement: "bottom"
1176
- }, {
1177
- reference: m(() => [
1178
- b(L, {
1179
- type: "link",
1180
- size: e.operateSize,
1181
- icon: r(K),
1182
- onClick: c[0] || (c[0] = (t) => P.value = !P.value)
1183
- }, null, 8, ["size", "icon"])
1184
- ]),
1185
- default: m(() => [
1186
- y("h4", null, [
1187
- b(re, null, {
1188
- default: m(() => [
1189
- b(r(K))
1190
- ]),
1191
- _: 1
1192
- }),
1193
- F(" \u663E\u793A\u5B57\u6BB5\u7B5B\u9009 ")
1194
- ]),
1195
- (o(!0), g(N, null, H(_.value, (t) => (o(), g("p", null, [
1196
- b(de, {
1197
- modelValue: t.check,
1198
- "onUpdate:modelValue": (h) => t.check = h,
1199
- label: t.label,
1200
- value: t.label,
1201
- disabled: !t.filter,
1202
- size: "small"
1203
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "value", "disabled"])
1204
- ]))), 256)),
1205
- b(L, {
1206
- type: "primary",
1207
- size: "small",
1208
- style: { "margin-top": "10px", "margin-left": "5px" },
1209
- onClick: ae
1210
- }, {
1211
- default: m(() => [
1212
- F("\u786E\u8BA4")
1213
- ]),
1214
- _: 1
1215
- })
1216
- ]),
1217
- _: 1
1218
- }, 512)) : p("v-if", !0)
1219
- ]),
1220
- default: m((t) => [
1221
- w(d.$slots, "row-operate-front", {
1222
- row: t.row
1223
- }, void 0, !0),
1224
- e.edit ? (o(), f(L, {
1225
- key: 0,
1226
- link: "",
1227
- type: "primary",
1228
- size: e.rowButtonSize,
1229
- icon: r(st),
1230
- onClick: (h) => I(t.row)
1231
- }, {
1232
- default: m(() => [
1233
- F("\u4FEE\u6539")
1234
- ]),
1235
- _: 2
1236
- }, 1032, ["size", "icon", "onClick"])) : p("v-if", !0),
1237
- w(d.$slots, "row-operate-middle", {
1238
- row: t.row
1239
- }, void 0, !0),
1240
- e.delete ? (o(), f(ce, {
1241
- key: 1,
1242
- "confirm-button-text": "\u5426",
1243
- "cancel-button-text": "\u662F",
1244
- "confirm-button-type": "text",
1245
- "cancel-button-type": "danger",
1246
- icon: r(je),
1247
- width: "auto",
1248
- onCancel: (h) => Z(t.row),
1249
- title: e.deleteTitle ? e.deleteTitle : "\u662F\u5426\u8981\u5220\u9664\u5F53\u524D\u884C\uFF1F"
1250
- }, {
1251
- reference: m(() => [
1252
- b(L, {
1253
- link: "",
1254
- type: "danger",
1255
- size: e.rowButtonSize,
1256
- icon: r(Ze)
1257
- }, {
1258
- default: m(() => [
1259
- F("\u5220\u9664")
1260
- ]),
1261
- _: 1
1262
- }, 8, ["size", "icon"])
1263
- ]),
1264
- _: 2
1265
- }, 1032, ["icon", "onCancel", "title"])) : p("v-if", !0),
1266
- w(d.$slots, "row-operate", {
1267
- row: t.row
1268
- }, void 0, !0)
1269
- ]),
1270
- _: 3
1271
- }, 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)
1272
302
  ]),
1273
- _: 3
1274
- }, 8, ["data", "class", "max-height", "size", "stripe", "border", "highlight-current-row", "header-cell-style"]),
1275
- y("div", Gt, [
1276
- e.pagination ? (o(), f(he, {
1277
- key: 0,
1278
- "current-page": r(n).pageIndex,
1279
- "onUpdate:current-page": c[1] || (c[1] = (t) => r(n).pageIndex = t),
1280
- "page-size": r(n).pageSize,
1281
- "onUpdate:page-size": c[2] || (c[2] = (t) => r(n).pageSize = t),
1282
- small: e.small,
1283
- "hide-on-Single-page": e.hideOnSinglePage,
1284
- background: "",
1285
- layout: "prev, pager, next, total, jumper, sizes",
1286
- "page-sizes": [5, 10, 20, 50],
1287
- total: e.total,
1288
- class: "mt-4"
1289
- }, null, 8, ["current-page", "page-size", "small", "hide-on-Single-page", "total"])) : p("v-if", !0)
1290
- ])
1291
- ], 64);
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
+ ]);
1292
339
  };
1293
340
  }
1294
- });
1295
- const Kt = /* @__PURE__ */ D(jt, [["__scopeId", "data-v-f4c855de"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/TableForm/index.vue"]]), Jt = {
1296
- install: (e) => {
1297
- e.component("SplitPanes", Ce), e.component("Pane", Fe), e.component("UpLoadFile", qt), e.component("Layout", Wt), e.component("TableForm", Kt), e.component("UpLoadFiles", Rt);
1298
- }
1299
- };
341
+ }, ie = /* @__PURE__ */ le(oe, [["__scopeId", "data-v-c1bd2f2e"]]);
1300
342
  export {
1301
- Wt as Layout,
1302
- Fe as Pane,
1303
- Ce as SplitPanes,
1304
- Kt as TableForm,
1305
- qt as UpLoadFile,
1306
- Rt as UpLoadFiles,
1307
- Jt as default
343
+ ie as DvDialog,
344
+ re as FormValidate
1308
345
  };