dld-vue-ui 0.3.15 → 0.4.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 +2 -1
- package/dist/dld-vue-ui.js +175 -172
- package/dist/dld-vue-ui.umd.cjs +1 -1
- package/dist/packages/TableForm/index.vue.d.ts +22 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -104,6 +104,7 @@ interface IPaneStyle {
|
|
|
104
104
|
|`stripe`|是否为斑马纹|`boolean`|`true`|
|
|
105
105
|
|`border`|是否带有纵向边框|`boolean`|`false`|
|
|
106
106
|
|`highLight`|是否高亮当前行|`boolean`|`false`|
|
|
107
|
+
|`headStyle`|表头样式|`object`|`{}`|
|
|
107
108
|
|`type`|是否有索引、展开、多选框|`'selection' \| 'index' \| 'expand'`|`-`|
|
|
108
109
|
|`typeLabel`|索引、展开时的列名,`type == 'index'`和`type == 'expand'`时有效|`string`|`序号`|
|
|
109
110
|
|`typeWidth`|索引、展开、多选框的宽度|`number`|`60`|
|
|
@@ -124,6 +125,7 @@ interface IPaneStyle {
|
|
|
124
125
|
|`total`|数据数量|`number`|`0`|
|
|
125
126
|
|`hideOnSinglePage`|只有一页时是否隐藏|`boolean`|`false`|
|
|
126
127
|
|`defaultSelect`|默认选中|`(val: ITableData) => boolean`|`-`|
|
|
128
|
+
|`defaultSize`|分页默认数量|`number`|`5`|
|
|
127
129
|
|
|
128
130
|
### 表格的列配置属性(ITableColumn)
|
|
129
131
|
|
|
@@ -165,7 +167,6 @@ interface IPaneStyle {
|
|
|
165
167
|
|`edit`|修改按钮点击事件|`(e: 'edit', item: ITableData): void;`|
|
|
166
168
|
|`page-index`|页码变化事件|`(e: 'page-index', newValue: number, oldValue: number): void;`|
|
|
167
169
|
|`page-size`|每页数量变化事件|`(e: 'page-size', newValue: number, oldValue: number): void;`|
|
|
168
|
-
|`get-ref`|获取ref|`(e: 'get-ref', item: ): void;`|
|
|
169
170
|
|
|
170
171
|
### 插槽
|
|
171
172
|
|
package/dist/dld-vue-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as te, openBlock as r, createElementBlock as z, normalizeStyle as x, renderSlot as w, defineComponent as V, createBlock as h, unref as o, withCtx as m, createElementVNode as g, ref as D, onMounted as O, resolveComponent as _, createVNode as P, createTextVNode as E, withDirectives as ae, vShow as ne, toDisplayString as L, Fragment as
|
|
2
|
-
const
|
|
1
|
+
import { h as te, openBlock as r, createElementBlock as z, normalizeStyle as x, renderSlot as w, defineComponent as V, createBlock as h, unref as o, withCtx as m, createElementVNode as g, ref as D, onMounted as O, resolveComponent as _, createVNode as P, createTextVNode as E, withDirectives as ae, vShow as ne, toDisplayString as L, Fragment as B, renderList as R, useSlots as A, createCommentVNode as c, reactive as le, watch as H, normalizeClass as b, createSlots as ie, withKeys as I } from "vue";
|
|
2
|
+
const se = {
|
|
3
3
|
name: "splitpanes",
|
|
4
4
|
emits: ["ready", "resize", "resized", "pane-click", "pane-maximize", "pane-add", "pane-remove", "splitter-click"],
|
|
5
5
|
props: {
|
|
@@ -70,16 +70,16 @@ const le = {
|
|
|
70
70
|
}, 500)))), this.touch.dragging || this.$emit("splitter-click", this.panes[a]);
|
|
71
71
|
},
|
|
72
72
|
onSplitterDblClick(e, a) {
|
|
73
|
-
let
|
|
74
|
-
this.panes = this.panes.map((n,
|
|
73
|
+
let l = 0;
|
|
74
|
+
this.panes = this.panes.map((n, i) => (n.size = i === a ? n.max : n.min, i !== a && (l += n.min), n)), this.panes[a].size -= l, this.$emit("pane-maximize", this.panes[a]), this.$emit("resized", this.panes.map((n) => ({ min: n.min, max: n.max, size: n.size })));
|
|
75
75
|
},
|
|
76
76
|
onPaneClick(e, a) {
|
|
77
77
|
this.$emit("pane-click", this.indexedPanes[a]);
|
|
78
78
|
},
|
|
79
79
|
getCurrentMouseDrag(e) {
|
|
80
|
-
const a = this.container.getBoundingClientRect(), { clientX:
|
|
80
|
+
const a = this.container.getBoundingClientRect(), { clientX: l, clientY: n } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
|
|
81
81
|
return {
|
|
82
|
-
x:
|
|
82
|
+
x: l - a.left,
|
|
83
83
|
y: n - a.top
|
|
84
84
|
};
|
|
85
85
|
},
|
|
@@ -90,44 +90,44 @@ const le = {
|
|
|
90
90
|
},
|
|
91
91
|
calculatePanesSize(e) {
|
|
92
92
|
const a = this.touch.activeSplitter;
|
|
93
|
-
let
|
|
93
|
+
let l = {
|
|
94
94
|
prevPanesSize: this.sumPrevPanesSize(a),
|
|
95
95
|
nextPanesSize: this.sumNextPanesSize(a),
|
|
96
96
|
prevReachedMinPanes: 0,
|
|
97
97
|
nextReachedMinPanes: 0
|
|
98
98
|
};
|
|
99
|
-
const n = 0 + (this.pushOtherPanes ? 0 :
|
|
99
|
+
const n = 0 + (this.pushOtherPanes ? 0 : l.prevPanesSize), i = 100 - (this.pushOtherPanes ? 0 : l.nextPanesSize), s = Math.max(Math.min(this.getCurrentDragPercentage(e), i), n);
|
|
100
100
|
let d = [a, a + 1], f = this.panes[d[0]] || null, y = this.panes[d[1]] || null;
|
|
101
|
-
const C = f.max < 100 &&
|
|
101
|
+
const C = f.max < 100 && s >= f.max + l.prevPanesSize, F = y.max < 100 && s <= 100 - (y.max + this.sumNextPanesSize(a + 1));
|
|
102
102
|
if (C || F) {
|
|
103
|
-
C ? (f.size = f.max, y.size = Math.max(100 - f.max -
|
|
103
|
+
C ? (f.size = f.max, y.size = Math.max(100 - f.max - l.prevPanesSize - l.nextPanesSize, 0)) : (f.size = Math.max(100 - y.max - l.prevPanesSize - this.sumNextPanesSize(a + 1), 0), y.size = y.max);
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
106
|
if (this.pushOtherPanes) {
|
|
107
|
-
const S = this.doPushOtherPanes(
|
|
107
|
+
const S = this.doPushOtherPanes(l, s);
|
|
108
108
|
if (!S)
|
|
109
109
|
return;
|
|
110
|
-
({ sums:
|
|
110
|
+
({ sums: l, panesToResize: d } = S), f = this.panes[d[0]] || null, y = this.panes[d[1]] || null;
|
|
111
111
|
}
|
|
112
|
-
f !== null && (f.size = Math.min(Math.max(
|
|
112
|
+
f !== null && (f.size = Math.min(Math.max(s - l.prevPanesSize - l.prevReachedMinPanes, f.min), f.max)), y !== null && (y.size = Math.min(Math.max(100 - s - l.nextPanesSize - l.nextReachedMinPanes, y.min), y.max));
|
|
113
113
|
},
|
|
114
114
|
doPushOtherPanes(e, a) {
|
|
115
|
-
const
|
|
116
|
-
return a < e.prevPanesSize + this.panes[n[0]].min && (n[0] = this.findPrevExpandedPane(
|
|
117
|
-
|
|
118
|
-
}), e.prevPanesSize = this.sumPrevPanesSize(n[0]), n[0] === void 0) ? (e.prevReachedMinPanes = 0, this.panes[0].size = this.panes[0].min, this.panes.forEach((
|
|
119
|
-
|
|
120
|
-
}), this.panes[n[1]].size = 100 - e.prevReachedMinPanes - this.panes[0].min - e.prevPanesSize - e.nextPanesSize, null) : a > 100 - e.nextPanesSize - this.panes[n[1]].min && (n[1] = this.findNextExpandedPane(
|
|
121
|
-
|
|
122
|
-
}), e.nextPanesSize = this.sumNextPanesSize(n[1] - 1), n[1] === void 0) ? (e.nextReachedMinPanes = 0, this.panes[this.panesCount - 1].size = this.panes[this.panesCount - 1].min, this.panes.forEach((
|
|
123
|
-
|
|
115
|
+
const l = this.touch.activeSplitter, n = [l, l + 1];
|
|
116
|
+
return a < e.prevPanesSize + this.panes[n[0]].min && (n[0] = this.findPrevExpandedPane(l).index, e.prevReachedMinPanes = 0, n[0] < l && this.panes.forEach((i, s) => {
|
|
117
|
+
s > n[0] && s <= l && (i.size = i.min, e.prevReachedMinPanes += i.min);
|
|
118
|
+
}), e.prevPanesSize = this.sumPrevPanesSize(n[0]), n[0] === void 0) ? (e.prevReachedMinPanes = 0, this.panes[0].size = this.panes[0].min, this.panes.forEach((i, s) => {
|
|
119
|
+
s > 0 && s <= l && (i.size = i.min, e.prevReachedMinPanes += i.min);
|
|
120
|
+
}), this.panes[n[1]].size = 100 - e.prevReachedMinPanes - this.panes[0].min - e.prevPanesSize - e.nextPanesSize, null) : a > 100 - e.nextPanesSize - this.panes[n[1]].min && (n[1] = this.findNextExpandedPane(l).index, e.nextReachedMinPanes = 0, n[1] > l + 1 && this.panes.forEach((i, s) => {
|
|
121
|
+
s > l && s < n[1] && (i.size = i.min, e.nextReachedMinPanes += i.min);
|
|
122
|
+
}), e.nextPanesSize = this.sumNextPanesSize(n[1] - 1), n[1] === void 0) ? (e.nextReachedMinPanes = 0, this.panes[this.panesCount - 1].size = this.panes[this.panesCount - 1].min, this.panes.forEach((i, s) => {
|
|
123
|
+
s < this.panesCount - 1 && s >= l + 1 && (i.size = i.min, e.nextReachedMinPanes += i.min);
|
|
124
124
|
}), this.panes[n[0]].size = 100 - e.prevPanesSize - e.nextReachedMinPanes - this.panes[this.panesCount - 1].min - e.nextPanesSize, null) : { sums: e, panesToResize: n };
|
|
125
125
|
},
|
|
126
126
|
sumPrevPanesSize(e) {
|
|
127
|
-
return this.panes.reduce((a,
|
|
127
|
+
return this.panes.reduce((a, l, n) => a + (n < e ? l.size : 0), 0);
|
|
128
128
|
},
|
|
129
129
|
sumNextPanesSize(e) {
|
|
130
|
-
return this.panes.reduce((a,
|
|
130
|
+
return this.panes.reduce((a, l, n) => a + (n > e + 1 ? l.size : 0), 0);
|
|
131
131
|
},
|
|
132
132
|
findPrevExpandedPane(e) {
|
|
133
133
|
return [...this.panes].reverse().find((a) => a.index < e && a.size > a.min) || {};
|
|
@@ -137,51 +137,51 @@ const le = {
|
|
|
137
137
|
},
|
|
138
138
|
checkSplitpanesNodes() {
|
|
139
139
|
Array.from(this.container.children).forEach((e) => {
|
|
140
|
-
const a = e.classList.contains("splitpanes__pane"),
|
|
141
|
-
!a && !
|
|
140
|
+
const a = e.classList.contains("splitpanes__pane"), 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
142
|
});
|
|
143
143
|
},
|
|
144
|
-
addSplitter(e, a,
|
|
145
|
-
const n = e - 1,
|
|
146
|
-
|
|
144
|
+
addSplitter(e, a, l = !1) {
|
|
145
|
+
const n = e - 1, i = document.createElement("div");
|
|
146
|
+
i.classList.add("splitpanes__splitter"), l || (i.onmousedown = (s) => this.onMouseDown(s, n), typeof window < "u" && "ontouchstart" in window && (i.ontouchstart = (s) => this.onMouseDown(s, n)), i.onclick = (s) => this.onSplitterClick(s, n + 1)), this.dblClickSplitter && (i.ondblclick = (s) => this.onSplitterDblClick(s, n + 1)), a.parentNode.insertBefore(i, a);
|
|
147
147
|
},
|
|
148
148
|
removeSplitter(e) {
|
|
149
149
|
e.onmousedown = void 0, e.onclick = void 0, e.ondblclick = void 0, e.parentNode.removeChild(e);
|
|
150
150
|
},
|
|
151
151
|
redoSplitters() {
|
|
152
152
|
const e = Array.from(this.container.children);
|
|
153
|
-
e.forEach((
|
|
154
|
-
|
|
153
|
+
e.forEach((l) => {
|
|
154
|
+
l.className.includes("splitpanes__splitter") && this.removeSplitter(l);
|
|
155
155
|
});
|
|
156
156
|
let a = 0;
|
|
157
|
-
e.forEach((
|
|
158
|
-
|
|
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
159
|
});
|
|
160
160
|
},
|
|
161
161
|
requestUpdate({ target: e, ...a }) {
|
|
162
|
-
const
|
|
163
|
-
Object.entries(a).forEach(([n,
|
|
162
|
+
const l = this.indexedPanes[e._.uid];
|
|
163
|
+
Object.entries(a).forEach(([n, i]) => l[n] = i);
|
|
164
164
|
},
|
|
165
165
|
onPaneAdd(e) {
|
|
166
166
|
let a = -1;
|
|
167
|
-
Array.from(e.$el.parentNode.children).some((
|
|
168
|
-
const
|
|
167
|
+
Array.from(e.$el.parentNode.children).some((i) => (i.className.includes("splitpanes__pane") && a++, i === e.$el));
|
|
168
|
+
const l = parseFloat(e.minSize), n = parseFloat(e.maxSize);
|
|
169
169
|
this.panes.splice(a, 0, {
|
|
170
170
|
id: e._.uid,
|
|
171
171
|
index: a,
|
|
172
|
-
min: isNaN(
|
|
172
|
+
min: isNaN(l) ? 0 : l,
|
|
173
173
|
max: isNaN(n) ? 100 : n,
|
|
174
174
|
size: e.size === null ? null : parseFloat(e.size),
|
|
175
175
|
givenSize: e.size,
|
|
176
176
|
update: e.update
|
|
177
|
-
}), this.panes.forEach((
|
|
178
|
-
this.redoSplitters(), this.resetPaneSizes({ addedPane: this.panes[a] }), this.$emit("pane-add", { index: a, panes: this.panes.map((
|
|
177
|
+
}), this.panes.forEach((i, s) => i.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((i) => ({ min: i.min, max: i.max, size: i.size })) });
|
|
179
179
|
});
|
|
180
180
|
},
|
|
181
181
|
onPaneRemove(e) {
|
|
182
|
-
const a = this.panes.findIndex((n) => n.id === e._.uid),
|
|
183
|
-
this.panes.forEach((n,
|
|
184
|
-
this.redoSplitters(), this.resetPaneSizes({ removedPane: { ...
|
|
182
|
+
const a = this.panes.findIndex((n) => n.id === e._.uid), l = this.panes.splice(a, 1)[0];
|
|
183
|
+
this.panes.forEach((n, i) => n.index = i), this.$nextTick(() => {
|
|
184
|
+
this.redoSplitters(), this.resetPaneSizes({ removedPane: { ...l, index: a } }), this.$emit("pane-remove", { removed: l, panes: this.panes.map((n) => ({ min: n.min, max: n.max, size: n.size })) });
|
|
185
185
|
});
|
|
186
186
|
},
|
|
187
187
|
resetPaneSizes(e = {}) {
|
|
@@ -190,44 +190,44 @@ const le = {
|
|
|
190
190
|
equalize() {
|
|
191
191
|
const e = 100 / this.panesCount;
|
|
192
192
|
let a = 0;
|
|
193
|
-
const
|
|
194
|
-
this.panes.forEach((
|
|
195
|
-
|
|
196
|
-
}), a > 0.1 && this.readjustSizes(a,
|
|
193
|
+
const l = [], n = [];
|
|
194
|
+
this.panes.forEach((i) => {
|
|
195
|
+
i.size = Math.max(Math.min(e, i.max), i.min), a -= i.size, i.size >= i.max && l.push(i.id), i.size <= i.min && n.push(i.id);
|
|
196
|
+
}), a > 0.1 && this.readjustSizes(a, l, n);
|
|
197
197
|
},
|
|
198
198
|
initialPanesSizing() {
|
|
199
199
|
let e = 100;
|
|
200
|
-
const a = [],
|
|
200
|
+
const a = [], l = [];
|
|
201
201
|
let n = 0;
|
|
202
|
-
this.panes.forEach((
|
|
203
|
-
e -=
|
|
202
|
+
this.panes.forEach((s) => {
|
|
203
|
+
e -= s.size, s.size !== null && n++, s.size >= s.max && a.push(s.id), s.size <= s.min && l.push(s.id);
|
|
204
204
|
});
|
|
205
|
-
let
|
|
206
|
-
e > 0.1 && (this.panes.forEach((
|
|
207
|
-
|
|
208
|
-
}),
|
|
205
|
+
let i = 100;
|
|
206
|
+
e > 0.1 && (this.panes.forEach((s) => {
|
|
207
|
+
s.size === null && (s.size = Math.max(Math.min(e / (this.panesCount - n), s.max), s.min)), i -= s.size;
|
|
208
|
+
}), i > 0.1 && this.readjustSizes(e, a, l));
|
|
209
209
|
},
|
|
210
210
|
equalizeAfterAddOrRemove({ addedPane: e, removedPane: a } = {}) {
|
|
211
|
-
let
|
|
212
|
-
const
|
|
213
|
-
e && e.givenSize !== null && (
|
|
214
|
-
n -= d.size, d.size >= d.max &&
|
|
211
|
+
let l = 100 / this.panesCount, n = 0;
|
|
212
|
+
const i = [], s = [];
|
|
213
|
+
e && e.givenSize !== null && (l = (100 - e.givenSize) / (this.panesCount - 1)), this.panes.forEach((d) => {
|
|
214
|
+
n -= d.size, d.size >= d.max && i.push(d.id), d.size <= d.min && s.push(d.id);
|
|
215
215
|
}), !(Math.abs(n) < 0.1) && (this.panes.forEach((d) => {
|
|
216
|
-
e && e.givenSize !== null && e.id === d.id || (d.size = Math.max(Math.min(
|
|
217
|
-
}), n > 0.1 && this.readjustSizes(n,
|
|
216
|
+
e && e.givenSize !== null && e.id === d.id || (d.size = Math.max(Math.min(l, d.max), d.min)), n -= d.size, d.size >= d.max && i.push(d.id), d.size <= d.min && s.push(d.id);
|
|
217
|
+
}), n > 0.1 && this.readjustSizes(n, i, s));
|
|
218
218
|
},
|
|
219
|
-
readjustSizes(e, a,
|
|
219
|
+
readjustSizes(e, a, l) {
|
|
220
220
|
let n;
|
|
221
|
-
e > 0 ? n = e / (this.panesCount - a.length) : n = e / (this.panesCount -
|
|
222
|
-
if (e > 0 && !a.includes(
|
|
223
|
-
const d = Math.max(Math.min(
|
|
224
|
-
e -= f,
|
|
225
|
-
} else if (!
|
|
226
|
-
const d = Math.max(Math.min(
|
|
227
|
-
e -= f,
|
|
221
|
+
e > 0 ? n = e / (this.panesCount - a.length) : n = e / (this.panesCount - l.length), this.panes.forEach((i, s) => {
|
|
222
|
+
if (e > 0 && !a.includes(i.id)) {
|
|
223
|
+
const d = Math.max(Math.min(i.size + n, i.max), i.min), f = d - i.size;
|
|
224
|
+
e -= f, i.size = d;
|
|
225
|
+
} else if (!l.includes(i.id)) {
|
|
226
|
+
const d = Math.max(Math.min(i.size + n, i.max), i.min), f = d - i.size;
|
|
227
|
+
e -= f, i.size = d;
|
|
228
228
|
}
|
|
229
|
-
|
|
230
|
-
[this.horizontal ? "height" : "width"]: `${this.indexedPanes[
|
|
229
|
+
i.update({
|
|
230
|
+
[this.horizontal ? "height" : "width"]: `${this.indexedPanes[i.id].size}%`
|
|
231
231
|
});
|
|
232
232
|
}), Math.abs(e) > 0.1 && this.$nextTick(() => {
|
|
233
233
|
this.ready && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
|
|
@@ -249,8 +249,8 @@ const le = {
|
|
|
249
249
|
this.redoSplitters();
|
|
250
250
|
},
|
|
251
251
|
dblClickSplitter(e) {
|
|
252
|
-
[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((a,
|
|
253
|
-
a.ondblclick = e ? (n) => this.onSplitterDblClick(n,
|
|
252
|
+
[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((a, l) => {
|
|
253
|
+
a.ondblclick = e ? (n) => this.onSplitterDblClick(n, l) : void 0;
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
256
|
},
|
|
@@ -277,10 +277,10 @@ const le = {
|
|
|
277
277
|
);
|
|
278
278
|
}
|
|
279
279
|
}, oe = (e, a) => {
|
|
280
|
-
const
|
|
281
|
-
for (const [n,
|
|
282
|
-
|
|
283
|
-
return
|
|
280
|
+
const l = e.__vccOpts || e;
|
|
281
|
+
for (const [n, i] of a)
|
|
282
|
+
l[n] = i;
|
|
283
|
+
return l;
|
|
284
284
|
}, re = {
|
|
285
285
|
name: "pane",
|
|
286
286
|
inject: ["requestUpdate", "onPaneAdd", "onPaneRemove", "onPaneClick"],
|
|
@@ -326,10 +326,10 @@ const le = {
|
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
};
|
|
329
|
-
function de(e, a,
|
|
329
|
+
function de(e, a, l, n, i, s) {
|
|
330
330
|
return r(), z("div", {
|
|
331
331
|
class: "splitpanes__pane",
|
|
332
|
-
onClick: a[0] || (a[0] = (d) =>
|
|
332
|
+
onClick: a[0] || (a[0] = (d) => s.onPaneClick(d, e._.uid)),
|
|
333
333
|
style: x(e.style)
|
|
334
334
|
}, [
|
|
335
335
|
w(e.$slots, "default")
|
|
@@ -343,7 +343,7 @@ const ce = /* @__PURE__ */ V({
|
|
|
343
343
|
horizontal: { type: Boolean, required: !1, default: !1 }
|
|
344
344
|
},
|
|
345
345
|
setup(e) {
|
|
346
|
-
return (a,
|
|
346
|
+
return (a, l) => (r(), h(o(se), {
|
|
347
347
|
horizontal: e.horizontal,
|
|
348
348
|
style: x(e.styles),
|
|
349
349
|
class: "splitpanes"
|
|
@@ -355,18 +355,18 @@ const ce = /* @__PURE__ */ V({
|
|
|
355
355
|
}, 8, ["horizontal", "style"]));
|
|
356
356
|
}
|
|
357
357
|
});
|
|
358
|
-
const
|
|
359
|
-
const
|
|
360
|
-
for (const [n,
|
|
361
|
-
|
|
362
|
-
return
|
|
363
|
-
}, pe = /* @__PURE__ */
|
|
358
|
+
const q = (e, a) => {
|
|
359
|
+
const l = e.__vccOpts || e;
|
|
360
|
+
for (const [n, i] of a)
|
|
361
|
+
l[n] = i;
|
|
362
|
+
return l;
|
|
363
|
+
}, pe = /* @__PURE__ */ q(ce, [["__scopeId", "data-v-4226b5d2"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/SplitPanes/index.vue"]]), he = /* @__PURE__ */ V({
|
|
364
364
|
__name: "pane",
|
|
365
365
|
props: {
|
|
366
366
|
styles: { type: Object, required: !0, default: () => ({ background: "#ececec" }) }
|
|
367
367
|
},
|
|
368
368
|
setup(e) {
|
|
369
|
-
return (a,
|
|
369
|
+
return (a, l) => (r(), h(o(ue), {
|
|
370
370
|
style: x(e.styles)
|
|
371
371
|
}, {
|
|
372
372
|
default: m(() => [
|
|
@@ -375,13 +375,13 @@ const B = (e, a) => {
|
|
|
375
375
|
_: 3
|
|
376
376
|
}, 8, ["style"]));
|
|
377
377
|
}
|
|
378
|
-
}), me = /* @__PURE__ */
|
|
378
|
+
}), me = /* @__PURE__ */ q(he, [["__file", "D:/Code/front/dld-vue-ui/src/packages/SplitPanes/pane.vue"]]);
|
|
379
379
|
/*! Element Plus Icons Vue v2.0.10 */
|
|
380
380
|
var $ = (e, a) => {
|
|
381
|
-
let
|
|
382
|
-
for (let [n,
|
|
383
|
-
|
|
384
|
-
return
|
|
381
|
+
let l = e.__vccOpts || e;
|
|
382
|
+
for (let [n, i] of a)
|
|
383
|
+
l[n] = i;
|
|
384
|
+
return l;
|
|
385
385
|
}, fe = {
|
|
386
386
|
name: "CircleClose"
|
|
387
387
|
}, ve = {
|
|
@@ -397,7 +397,7 @@ var $ = (e, a) => {
|
|
|
397
397
|
_e,
|
|
398
398
|
ze
|
|
399
399
|
];
|
|
400
|
-
function ye(e, a,
|
|
400
|
+
function ye(e, a, l, n, i, s) {
|
|
401
401
|
return r(), z("svg", ve, ge);
|
|
402
402
|
}
|
|
403
403
|
var xe = /* @__PURE__ */ $(fe, [["render", ye], ["__file", "circle-close.vue"]]), we = {
|
|
@@ -411,7 +411,7 @@ var xe = /* @__PURE__ */ $(fe, [["render", ye], ["__file", "circle-close.vue"]])
|
|
|
411
411
|
}, null, -1), Pe = [
|
|
412
412
|
be
|
|
413
413
|
];
|
|
414
|
-
function Ce(e, a,
|
|
414
|
+
function Ce(e, a, l, n, i, s) {
|
|
415
415
|
return r(), z("svg", Se, Pe);
|
|
416
416
|
}
|
|
417
417
|
var Fe = /* @__PURE__ */ $(we, [["render", Ce], ["__file", "close.vue"]]), ke = {
|
|
@@ -425,10 +425,10 @@ var Fe = /* @__PURE__ */ $(we, [["render", Ce], ["__file", "close.vue"]]), ke =
|
|
|
425
425
|
}, null, -1), Me = [
|
|
426
426
|
$e
|
|
427
427
|
];
|
|
428
|
-
function Ve(e, a,
|
|
428
|
+
function Ve(e, a, l, n, i, s) {
|
|
429
429
|
return r(), z("svg", Ee, Me);
|
|
430
430
|
}
|
|
431
|
-
var
|
|
431
|
+
var qe = /* @__PURE__ */ $(ke, [["render", Ve], ["__file", "delete-filled.vue"]]), Be = {
|
|
432
432
|
name: "Delete"
|
|
433
433
|
}, Le = {
|
|
434
434
|
viewBox: "0 0 1024 1024",
|
|
@@ -439,10 +439,10 @@ var Be = /* @__PURE__ */ $(ke, [["render", Ve], ["__file", "delete-filled.vue"]]
|
|
|
439
439
|
}, null, -1), Ue = [
|
|
440
440
|
Ne
|
|
441
441
|
];
|
|
442
|
-
function De(e, a,
|
|
442
|
+
function De(e, a, l, n, i, s) {
|
|
443
443
|
return r(), z("svg", Le, Ue);
|
|
444
444
|
}
|
|
445
|
-
var Re = /* @__PURE__ */ $(
|
|
445
|
+
var Re = /* @__PURE__ */ $(Be, [["render", De], ["__file", "delete.vue"]]), Te = {
|
|
446
446
|
name: "Edit"
|
|
447
447
|
}, We = {
|
|
448
448
|
viewBox: "0 0 1024 1024",
|
|
@@ -457,7 +457,7 @@ var Re = /* @__PURE__ */ $(qe, [["render", De], ["__file", "delete.vue"]]), Te =
|
|
|
457
457
|
He,
|
|
458
458
|
Ie
|
|
459
459
|
];
|
|
460
|
-
function Ae(e, a,
|
|
460
|
+
function Ae(e, a, l, n, i, s) {
|
|
461
461
|
return r(), z("svg", We, Oe);
|
|
462
462
|
}
|
|
463
463
|
var je = /* @__PURE__ */ $(Te, [["render", Ae], ["__file", "edit.vue"]]), Ge = {
|
|
@@ -471,7 +471,7 @@ var je = /* @__PURE__ */ $(Te, [["render", Ae], ["__file", "edit.vue"]]), Ge = {
|
|
|
471
471
|
}, null, -1), Je = [
|
|
472
472
|
Ye
|
|
473
473
|
];
|
|
474
|
-
function Xe(e, a,
|
|
474
|
+
function Xe(e, a, l, n, i, s) {
|
|
475
475
|
return r(), z("svg", Ke, Je);
|
|
476
476
|
}
|
|
477
477
|
var j = /* @__PURE__ */ $(Ge, [["render", Xe], ["__file", "folder-opened.vue"]]), Qe = {
|
|
@@ -485,32 +485,32 @@ var j = /* @__PURE__ */ $(Ge, [["render", Xe], ["__file", "folder-opened.vue"]])
|
|
|
485
485
|
}, null, -1), tt = [
|
|
486
486
|
et
|
|
487
487
|
];
|
|
488
|
-
function at(e, a,
|
|
488
|
+
function at(e, a, l, n, i, s) {
|
|
489
489
|
return r(), z("svg", Ze, tt);
|
|
490
490
|
}
|
|
491
|
-
var nt = /* @__PURE__ */ $(Qe, [["render", at], ["__file", "search.vue"]]),
|
|
491
|
+
var nt = /* @__PURE__ */ $(Qe, [["render", at], ["__file", "search.vue"]]), lt = {
|
|
492
492
|
name: "Upload"
|
|
493
|
-
},
|
|
493
|
+
}, it = {
|
|
494
494
|
viewBox: "0 0 1024 1024",
|
|
495
495
|
xmlns: "http://www.w3.org/2000/svg"
|
|
496
|
-
},
|
|
496
|
+
}, st = /* @__PURE__ */ g("path", {
|
|
497
497
|
fill: "currentColor",
|
|
498
498
|
d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"
|
|
499
499
|
}, null, -1), ot = [
|
|
500
|
-
|
|
500
|
+
st
|
|
501
501
|
];
|
|
502
|
-
function rt(e, a,
|
|
503
|
-
return r(), z("svg",
|
|
502
|
+
function rt(e, a, l, n, i, s) {
|
|
503
|
+
return r(), z("svg", it, ot);
|
|
504
504
|
}
|
|
505
|
-
var G = /* @__PURE__ */ $(
|
|
505
|
+
var G = /* @__PURE__ */ $(lt, [["render", rt], ["__file", "upload.vue"]]), dt = function() {
|
|
506
506
|
function e(a) {
|
|
507
507
|
if (!a)
|
|
508
508
|
throw new TypeError("Invalid argument; `value` has no value.");
|
|
509
509
|
this.value = e.EMPTY, a && e.isGuid(a) && (this.value = a);
|
|
510
510
|
}
|
|
511
511
|
return e.isGuid = function(a) {
|
|
512
|
-
var
|
|
513
|
-
return a && (a instanceof e || e.validator.test(
|
|
512
|
+
var l = a.toString();
|
|
513
|
+
return a && (a instanceof e || e.validator.test(l));
|
|
514
514
|
}, e.create = function() {
|
|
515
515
|
return new e([e.gen(2), e.gen(1), e.gen(1), e.gen(1), e.gen(3)].join("-"));
|
|
516
516
|
}, e.createEmpty = function() {
|
|
@@ -520,9 +520,9 @@ var G = /* @__PURE__ */ $(it, [["render", rt], ["__file", "upload.vue"]]), dt =
|
|
|
520
520
|
}, e.raw = function() {
|
|
521
521
|
return [e.gen(2), e.gen(1), e.gen(1), e.gen(1), e.gen(3)].join("-");
|
|
522
522
|
}, e.gen = function(a) {
|
|
523
|
-
for (var
|
|
524
|
-
|
|
525
|
-
return
|
|
523
|
+
for (var l = "", n = 0; n < a; n++)
|
|
524
|
+
l += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
525
|
+
return l;
|
|
526
526
|
}, e.prototype.equals = function(a) {
|
|
527
527
|
return e.isGuid(a) && this.value === a.toString();
|
|
528
528
|
}, e.prototype.isEmpty = function() {
|
|
@@ -545,22 +545,22 @@ const ct = { style: {} }, pt = ["id", "accept"], ht = { class: "filename" }, mt
|
|
|
545
545
|
accept: { type: String, required: !0, default: "*" }
|
|
546
546
|
},
|
|
547
547
|
emits: ["upload"],
|
|
548
|
-
setup(e, { expose: a, emit:
|
|
549
|
-
let n = ut.create().toString(),
|
|
548
|
+
setup(e, { expose: a, emit: l }) {
|
|
549
|
+
let n = ut.create().toString(), i, s = D("");
|
|
550
550
|
function d() {
|
|
551
|
-
|
|
551
|
+
i.click();
|
|
552
552
|
}
|
|
553
553
|
function f() {
|
|
554
|
-
|
|
554
|
+
s.value = i.value;
|
|
555
555
|
}
|
|
556
556
|
function y() {
|
|
557
|
-
|
|
557
|
+
i.files !== null && l("upload", i.files[0]);
|
|
558
558
|
}
|
|
559
559
|
function C() {
|
|
560
|
-
|
|
560
|
+
i.value = "", s.value = "";
|
|
561
561
|
}
|
|
562
562
|
return O(() => {
|
|
563
|
-
|
|
563
|
+
i = document.getElementById(n);
|
|
564
564
|
}), a({
|
|
565
565
|
Clear: C
|
|
566
566
|
}), (F, S) => {
|
|
@@ -586,14 +586,14 @@ const ct = { style: {} }, pt = ["id", "accept"], ht = { class: "filename" }, mt
|
|
|
586
586
|
}, null, 40, pt), [
|
|
587
587
|
[ne, !1]
|
|
588
588
|
]),
|
|
589
|
-
g("span", ht, L(o(
|
|
589
|
+
g("span", ht, L(o(s)), 1),
|
|
590
590
|
P(k, {
|
|
591
591
|
type: e.type,
|
|
592
592
|
icon: e.icon,
|
|
593
593
|
size: e.size,
|
|
594
|
-
disabled: o(
|
|
594
|
+
disabled: o(s) == null || o(s) == "",
|
|
595
595
|
class: "btn",
|
|
596
|
-
title: o(
|
|
596
|
+
title: o(s) == null || o(s) == "" ? "\u8BF7\u9009\u62E9\u6587\u4EF6" : "",
|
|
597
597
|
onClick: y
|
|
598
598
|
}, {
|
|
599
599
|
default: m(() => [
|
|
@@ -605,35 +605,35 @@ const ct = { style: {} }, pt = ["id", "accept"], ht = { class: "filename" }, mt
|
|
|
605
605
|
};
|
|
606
606
|
}
|
|
607
607
|
});
|
|
608
|
-
const ft = /* @__PURE__ */
|
|
608
|
+
const ft = /* @__PURE__ */ q(mt, [["__scopeId", "data-v-83b9cdd7"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/UpLoadFile/index.vue"]]), vt = ["accept"], _t = { class: "filename" }, zt = { class: "content" }, gt = /* @__PURE__ */ V({
|
|
609
609
|
__name: "index",
|
|
610
610
|
props: {
|
|
611
611
|
size: { type: String, required: !0, default: "default" },
|
|
612
612
|
accept: { type: String, required: !0, default: "*" }
|
|
613
613
|
},
|
|
614
614
|
emits: ["upload", "clear"],
|
|
615
|
-
setup(e, { expose: a, emit:
|
|
616
|
-
const n = e,
|
|
615
|
+
setup(e, { expose: a, emit: l }) {
|
|
616
|
+
const n = e, i = D(), s = D([]);
|
|
617
617
|
function d() {
|
|
618
618
|
var S;
|
|
619
|
-
(S =
|
|
619
|
+
(S = i.value) == null || S.click();
|
|
620
620
|
}
|
|
621
621
|
function f() {
|
|
622
622
|
var S, k, u;
|
|
623
|
-
if (
|
|
624
|
-
for (let v = 0; v < ((u = (k =
|
|
625
|
-
|
|
623
|
+
if (s.value = [], (S = i.value) != null && S.files)
|
|
624
|
+
for (let v = 0; v < ((u = (k = i.value) == null ? void 0 : k.files) == null ? void 0 : u.length); v++)
|
|
625
|
+
s.value[v] = i.value.files[v];
|
|
626
626
|
else
|
|
627
|
-
|
|
627
|
+
s.value = [];
|
|
628
628
|
}
|
|
629
629
|
function y(S) {
|
|
630
|
-
|
|
630
|
+
s.value.splice(S, 1);
|
|
631
631
|
}
|
|
632
632
|
function C() {
|
|
633
|
-
|
|
633
|
+
l("upload", s.value);
|
|
634
634
|
}
|
|
635
635
|
function F() {
|
|
636
|
-
|
|
636
|
+
s.value = [];
|
|
637
637
|
}
|
|
638
638
|
return a({
|
|
639
639
|
Clear: F
|
|
@@ -643,7 +643,7 @@ const ft = /* @__PURE__ */ B(mt, [["__scopeId", "data-v-83b9cdd7"], ["__file", "
|
|
|
643
643
|
g("input", {
|
|
644
644
|
type: "file",
|
|
645
645
|
ref_key: "files",
|
|
646
|
-
ref:
|
|
646
|
+
ref: i,
|
|
647
647
|
multiple: "",
|
|
648
648
|
style: { display: "none" },
|
|
649
649
|
onChange: f,
|
|
@@ -665,14 +665,14 @@ const ft = /* @__PURE__ */ B(mt, [["__scopeId", "data-v-83b9cdd7"], ["__file", "
|
|
|
665
665
|
size: n.size,
|
|
666
666
|
icon: o(G),
|
|
667
667
|
onClick: C,
|
|
668
|
-
disabled:
|
|
668
|
+
disabled: s.value.length == 0
|
|
669
669
|
}, {
|
|
670
670
|
default: m(() => [
|
|
671
671
|
E("\u4E0A\u4F20\u6587\u4EF6")
|
|
672
672
|
]),
|
|
673
673
|
_: 1
|
|
674
674
|
}, 8, ["size", "icon", "disabled"]),
|
|
675
|
-
(r(!0), z(
|
|
675
|
+
(r(!0), z(B, null, R(s.value, (v, M) => (r(), z("p", _t, [
|
|
676
676
|
g("span", zt, L(v.name), 1),
|
|
677
677
|
P(u, {
|
|
678
678
|
size: "small",
|
|
@@ -686,7 +686,7 @@ const ft = /* @__PURE__ */ B(mt, [["__scopeId", "data-v-83b9cdd7"], ["__file", "
|
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
688
|
});
|
|
689
|
-
const yt = /* @__PURE__ */
|
|
689
|
+
const yt = /* @__PURE__ */ q(gt, [["__scopeId", "data-v-50d3310f"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/UpLoadFiles/index.vue"]]), xt = /* @__PURE__ */ V({
|
|
690
690
|
__name: "index",
|
|
691
691
|
props: {
|
|
692
692
|
asideWidth: { type: Number, required: !1, default: 220 },
|
|
@@ -695,27 +695,27 @@ const yt = /* @__PURE__ */ B(gt, [["__scopeId", "data-v-50d3310f"], ["__file", "
|
|
|
695
695
|
},
|
|
696
696
|
setup(e) {
|
|
697
697
|
const a = A();
|
|
698
|
-
return (
|
|
699
|
-
const
|
|
698
|
+
return (l, n) => {
|
|
699
|
+
const i = _("el-aside"), s = _("el-header"), d = _("el-main"), f = _("el-container");
|
|
700
700
|
return r(), h(f, { class: "container" }, {
|
|
701
701
|
default: m(() => [
|
|
702
|
-
o(a).aside && !e.horizontal ? (r(), h(
|
|
702
|
+
o(a).aside && !e.horizontal ? (r(), h(i, {
|
|
703
703
|
key: 0,
|
|
704
704
|
class: "aside",
|
|
705
705
|
style: x("width: " + e.asideWidth + "px;")
|
|
706
706
|
}, {
|
|
707
707
|
default: m(() => [
|
|
708
|
-
w(
|
|
708
|
+
w(l.$slots, "aside", {}, void 0, !0)
|
|
709
709
|
]),
|
|
710
710
|
_: 3
|
|
711
711
|
}, 8, ["style"])) : c("v-if", !0),
|
|
712
|
-
o(a).header && e.horizontal ? (r(), h(
|
|
712
|
+
o(a).header && e.horizontal ? (r(), h(s, {
|
|
713
713
|
key: 1,
|
|
714
714
|
class: "inside_header",
|
|
715
715
|
style: x("height: " + e.headerMaxHeight + "px;")
|
|
716
716
|
}, {
|
|
717
717
|
default: m(() => [
|
|
718
|
-
w(
|
|
718
|
+
w(l.$slots, "header", {}, void 0, !0)
|
|
719
719
|
]),
|
|
720
720
|
_: 3
|
|
721
721
|
}, 8, ["style"])) : c("v-if", !0),
|
|
@@ -723,29 +723,29 @@ const yt = /* @__PURE__ */ B(gt, [["__scopeId", "data-v-50d3310f"], ["__file", "
|
|
|
723
723
|
default: m(() => [
|
|
724
724
|
P(f, { class: "inside_container" }, {
|
|
725
725
|
default: m(() => [
|
|
726
|
-
o(a).header && !e.horizontal ? (r(), h(
|
|
726
|
+
o(a).header && !e.horizontal ? (r(), h(s, {
|
|
727
727
|
key: 0,
|
|
728
728
|
class: "inside_header",
|
|
729
729
|
style: x("height: " + e.headerMaxHeight + "px;")
|
|
730
730
|
}, {
|
|
731
731
|
default: m(() => [
|
|
732
|
-
w(
|
|
732
|
+
w(l.$slots, "header", {}, void 0, !0)
|
|
733
733
|
]),
|
|
734
734
|
_: 3
|
|
735
735
|
}, 8, ["style"])) : c("v-if", !0),
|
|
736
|
-
o(a).aside && e.horizontal ? (r(), h(
|
|
736
|
+
o(a).aside && e.horizontal ? (r(), h(i, {
|
|
737
737
|
key: 1,
|
|
738
738
|
class: "aside",
|
|
739
739
|
style: x("width: " + e.asideWidth + "px;")
|
|
740
740
|
}, {
|
|
741
741
|
default: m(() => [
|
|
742
|
-
w(
|
|
742
|
+
w(l.$slots, "aside", {}, void 0, !0)
|
|
743
743
|
]),
|
|
744
744
|
_: 3
|
|
745
745
|
}, 8, ["style"])) : c("v-if", !0),
|
|
746
746
|
P(d, { class: "inside_main" }, {
|
|
747
747
|
default: m(() => [
|
|
748
|
-
w(
|
|
748
|
+
w(l.$slots, "default", {}, void 0, !0)
|
|
749
749
|
]),
|
|
750
750
|
_: 3
|
|
751
751
|
})
|
|
@@ -761,7 +761,7 @@ const yt = /* @__PURE__ */ B(gt, [["__scopeId", "data-v-50d3310f"], ["__file", "
|
|
|
761
761
|
};
|
|
762
762
|
}
|
|
763
763
|
});
|
|
764
|
-
const wt = /* @__PURE__ */
|
|
764
|
+
const wt = /* @__PURE__ */ q(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/Layout/index.vue"]]), St = {
|
|
765
765
|
key: 0,
|
|
766
766
|
class: "header"
|
|
767
767
|
}, bt = { class: "header_title" }, Pt = ["innerHTML"], Ct = { class: "header_title" }, Ft = { class: "pagination" }, kt = /* @__PURE__ */ V({
|
|
@@ -770,6 +770,7 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
770
770
|
maxHeight: { type: Number, required: !1, default: 550 },
|
|
771
771
|
size: { type: String, required: !1, default: "default" },
|
|
772
772
|
tableData: { type: Array, required: !1, default: () => [] },
|
|
773
|
+
headStyle: { type: null, required: !1, default: {} },
|
|
773
774
|
tableColumn: { type: Array, required: !1, default: () => [] },
|
|
774
775
|
stripe: { type: Boolean, required: !1, default: !0 },
|
|
775
776
|
border: { type: Boolean, required: !1, default: !1 },
|
|
@@ -793,25 +794,26 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
793
794
|
small: { type: Boolean, required: !1, default: !1 },
|
|
794
795
|
total: { type: Number, required: !1, default: 0 },
|
|
795
796
|
hideOnSinglePage: { type: Boolean, required: !1, default: !1 },
|
|
796
|
-
defaultSelect: { type: Function, required: !1 }
|
|
797
|
+
defaultSelect: { type: Function, required: !1 },
|
|
798
|
+
defaultSize: { type: Number, required: !1, default: 5 }
|
|
797
799
|
},
|
|
798
800
|
emits: ["row-click", "row-dblclick", "selection-change", "search", "clear", "delete", "edit", "page-index", "page-size", "get-ref"],
|
|
799
801
|
setup(e, { emit: a }) {
|
|
800
|
-
const
|
|
801
|
-
let n =
|
|
802
|
+
const l = e;
|
|
803
|
+
let n = le({
|
|
802
804
|
pageIndex: 1,
|
|
803
805
|
pageSize: 5
|
|
804
|
-
}),
|
|
805
|
-
const
|
|
806
|
+
}), i = D();
|
|
807
|
+
const s = A(), d = (u) => {
|
|
806
808
|
a("row-click", u);
|
|
807
809
|
}, f = (u) => {
|
|
808
810
|
a("row-click", u);
|
|
809
811
|
}, y = (u) => {
|
|
810
812
|
a("selection-change", u);
|
|
811
813
|
}, C = () => {
|
|
812
|
-
if (
|
|
813
|
-
for (let u = 0; u <
|
|
814
|
-
let v =
|
|
814
|
+
if (l.tableColumn.length > 0)
|
|
815
|
+
for (let u = 0; u < l.tableColumn.length; u++) {
|
|
816
|
+
let v = l.tableColumn[u];
|
|
815
817
|
n[v.prop] = null;
|
|
816
818
|
}
|
|
817
819
|
a("clear");
|
|
@@ -833,18 +835,18 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
833
835
|
a("page-size", Number(u), Number(v));
|
|
834
836
|
}
|
|
835
837
|
), O(() => {
|
|
836
|
-
if (
|
|
837
|
-
for (let u = 0; u <
|
|
838
|
-
let v =
|
|
838
|
+
if (l.tableColumn.length > 0)
|
|
839
|
+
for (let u = 0; u < l.tableColumn.length; u++) {
|
|
840
|
+
let v = l.tableColumn[u];
|
|
839
841
|
n[v.prop] = null;
|
|
840
842
|
}
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
});
|
|
843
|
+
l.tableData.forEach((u) => {
|
|
844
|
+
l.defaultSelect && l.type == "selection" && l.defaultSelect(u) && i.value.toggleRowSelection(u, void 0, !1);
|
|
845
|
+
}), n.pageSize = l.defaultSize;
|
|
844
846
|
}), (u, v) => {
|
|
845
847
|
const M = _("el-table-column"), T = _("el-input"), K = _("el-input-number"), Y = _("el-option"), J = _("el-select"), N = _("el-date-picker"), W = _("el-time-picker"), X = _("el-switch"), U = _("el-button"), Q = _("el-popconfirm"), Z = _("el-table"), ee = _("el-pagination");
|
|
846
|
-
return r(), z(
|
|
847
|
-
o(
|
|
848
|
+
return r(), z(B, null, [
|
|
849
|
+
o(s).header ? (r(), z("div", St, [
|
|
848
850
|
w(u.$slots, "header", {}, void 0, !0)
|
|
849
851
|
])) : c("v-if", !0),
|
|
850
852
|
P(Z, {
|
|
@@ -859,7 +861,8 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
859
861
|
onRowDblclick: f,
|
|
860
862
|
onSelectionChange: y,
|
|
861
863
|
ref_key: "tableRef",
|
|
862
|
-
ref:
|
|
864
|
+
ref: i,
|
|
865
|
+
"header-cell-style": e.headStyle
|
|
863
866
|
}, {
|
|
864
867
|
default: m(() => [
|
|
865
868
|
e.type && e.type == "index" ? (r(), h(M, {
|
|
@@ -892,7 +895,7 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
892
895
|
]),
|
|
893
896
|
_: 3
|
|
894
897
|
}, 8, ["width", "fixed", "label"])) : c("v-if", !0),
|
|
895
|
-
(r(!0), z(
|
|
898
|
+
(r(!0), z(B, null, R(e.tableColumn, (t) => (r(), z(B, null, [
|
|
896
899
|
t.hidden ? c("v-if", !0) : (r(), h(M, {
|
|
897
900
|
key: 0,
|
|
898
901
|
prop: t.costom ? !1 : t.prop,
|
|
@@ -900,7 +903,7 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
900
903
|
fixed: t.fixed ? t.fixed : !1,
|
|
901
904
|
align: t.align ? t.align : "left",
|
|
902
905
|
"show-overflow-tooltip": !!t.overflow
|
|
903
|
-
},
|
|
906
|
+
}, ie({
|
|
904
907
|
header: m(() => [
|
|
905
908
|
g("div", bt, L(t.label), 1),
|
|
906
909
|
c(" \u6587\u672C\u641C\u7D22\u6846 "),
|
|
@@ -954,7 +957,7 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
954
957
|
class: b([t.align && t.align == "center" ? "center" : ""])
|
|
955
958
|
}, {
|
|
956
959
|
default: m(() => [
|
|
957
|
-
(r(!0), z(
|
|
960
|
+
(r(!0), z(B, null, R(t.options, (p) => (r(), h(Y, {
|
|
958
961
|
label: p.label ? p.label : p.value,
|
|
959
962
|
value: p.value,
|
|
960
963
|
disabled: p.disabled
|
|
@@ -1131,7 +1134,7 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
1131
1134
|
"cancel-button-text": "\u662F",
|
|
1132
1135
|
"confirm-button-type": "text",
|
|
1133
1136
|
"cancel-button-type": "danger",
|
|
1134
|
-
icon: o(
|
|
1137
|
+
icon: o(qe),
|
|
1135
1138
|
width: "auto",
|
|
1136
1139
|
onCancel: (p) => k(t.row),
|
|
1137
1140
|
title: e.deleteTitle ? e.deleteTitle : "\u662F\u5426\u8981\u5220\u9664\u5F53\u524D\u884C\uFF1F"
|
|
@@ -1159,7 +1162,7 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
1159
1162
|
}, 8, ["width", "fixed"])) : c("v-if", !0)
|
|
1160
1163
|
]),
|
|
1161
1164
|
_: 3
|
|
1162
|
-
}, 8, ["data", "class", "max-height", "size", "stripe", "border", "highlight-current-row"]),
|
|
1165
|
+
}, 8, ["data", "class", "max-height", "size", "stripe", "border", "highlight-current-row", "header-cell-style"]),
|
|
1163
1166
|
g("div", Ft, [
|
|
1164
1167
|
e.pagination ? (r(), h(ee, {
|
|
1165
1168
|
key: 0,
|
|
@@ -1180,7 +1183,7 @@ const wt = /* @__PURE__ */ B(xt, [["__scopeId", "data-v-5d747d9d"], ["__file", "
|
|
|
1180
1183
|
};
|
|
1181
1184
|
}
|
|
1182
1185
|
});
|
|
1183
|
-
const Et = /* @__PURE__ */
|
|
1186
|
+
const Et = /* @__PURE__ */ q(kt, [["__scopeId", "data-v-f4c855de"], ["__file", "D:/Code/front/dld-vue-ui/src/packages/TableForm/index.vue"]]), Mt = {
|
|
1184
1187
|
install: (e) => {
|
|
1185
1188
|
e.component("SplitPanes", pe), e.component("Pane", me), e.component("UpLoadFile", ft), e.component("Layout", wt), e.component("TableForm", Et), e.component("UpLoadFiles", yt);
|
|
1186
1189
|
}
|
package/dist/dld-vue-ui.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(f,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(f=typeof globalThis<"u"?globalThis:f||self,e(f["dld-vue-ui"]={},f.Vue))})(this,function(f,e){"use strict";const q={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,a)=>(t[a.id]=a)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){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))},unbindEvents(){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))},onMouseDown(t,a){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=a},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,a){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===a?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,a),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=a,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[a])},onSplitterDblClick(t,a){let o=0;this.panes=this.panes.map((l,i)=>(l.size=i===a?l.max:l.min,i!==a&&(o+=l.min),l)),this.panes[a].size-=o,this.$emit("pane-maximize",this.panes[a]),this.$emit("resized",this.panes.map(l=>({min:l.min,max:l.max,size:l.size})))},onPaneClick(t,a){this.$emit("pane-click",this.indexedPanes[a])},getCurrentMouseDrag(t){const a=this.container.getBoundingClientRect(),{clientX:o,clientY:l}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:o-a.left,y:l-a.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const a=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=a-t),t*100/a},calculatePanesSize(t){const a=this.touch.activeSplitter;let o={prevPanesSize:this.sumPrevPanesSize(a),nextPanesSize:this.sumNextPanesSize(a),prevReachedMinPanes:0,nextReachedMinPanes:0};const l=0+(this.pushOtherPanes?0:o.prevPanesSize),i=100-(this.pushOtherPanes?0:o.nextPanesSize),s=Math.max(Math.min(this.getCurrentDragPercentage(t),i),l);let r=[a,a+1],p=this.panes[r[0]]||null,u=this.panes[r[1]]||null;const _=p.max<100&&s>=p.max+o.prevPanesSize,y=u.max<100&&s<=100-(u.max+this.sumNextPanesSize(a+1));if(_||y){_?(p.size=p.max,u.size=Math.max(100-p.max-o.prevPanesSize-o.nextPanesSize,0)):(p.size=Math.max(100-u.max-o.prevPanesSize-this.sumNextPanesSize(a+1),0),u.size=u.max);return}if(this.pushOtherPanes){const m=this.doPushOtherPanes(o,s);if(!m)return;({sums:o,panesToResize:r}=m),p=this.panes[r[0]]||null,u=this.panes[r[1]]||null}p!==null&&(p.size=Math.min(Math.max(s-o.prevPanesSize-o.prevReachedMinPanes,p.min),p.max)),u!==null&&(u.size=Math.min(Math.max(100-s-o.nextPanesSize-o.nextReachedMinPanes,u.min),u.max))},doPushOtherPanes(t,a){const o=this.touch.activeSplitter,l=[o,o+1];return a<t.prevPanesSize+this.panes[l[0]].min&&(l[0]=this.findPrevExpandedPane(o).index,t.prevReachedMinPanes=0,l[0]<o&&this.panes.forEach((i,s)=>{s>l[0]&&s<=o&&(i.size=i.min,t.prevReachedMinPanes+=i.min)}),t.prevPanesSize=this.sumPrevPanesSize(l[0]),l[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((i,s)=>{s>0&&s<=o&&(i.size=i.min,t.prevReachedMinPanes+=i.min)}),this.panes[l[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):a>100-t.nextPanesSize-this.panes[l[1]].min&&(l[1]=this.findNextExpandedPane(o).index,t.nextReachedMinPanes=0,l[1]>o+1&&this.panes.forEach((i,s)=>{s>o&&s<l[1]&&(i.size=i.min,t.nextReachedMinPanes+=i.min)}),t.nextPanesSize=this.sumNextPanesSize(l[1]-1),l[1]===void 0)?(t.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((i,s)=>{s<this.panesCount-1&&s>=o+1&&(i.size=i.min,t.nextReachedMinPanes+=i.min)}),this.panes[l[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:l}},sumPrevPanesSize(t){return this.panes.reduce((a,o,l)=>a+(l<t?o.size:0),0)},sumNextPanesSize(t){return this.panes.reduce((a,o,l)=>a+(l>t+1?o.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(a=>a.index<t&&a.size>a.min)||{}},findNextExpandedPane(t){return this.panes.find(a=>a.index>t+1&&a.size>a.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const a=t.classList.contains("splitpanes__pane"),o=t.classList.contains("splitpanes__splitter");!a&&!o&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(t,a,o=!1){const l=t-1,i=document.createElement("div");i.classList.add("splitpanes__splitter"),o||(i.onmousedown=s=>this.onMouseDown(s,l),typeof window<"u"&&"ontouchstart"in window&&(i.ontouchstart=s=>this.onMouseDown(s,l)),i.onclick=s=>this.onSplitterClick(s,l+1)),this.dblClickSplitter&&(i.ondblclick=s=>this.onSplitterDblClick(s,l+1)),a.parentNode.insertBefore(i,a)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(o=>{o.className.includes("splitpanes__splitter")&&this.removeSplitter(o)});let a=0;t.forEach(o=>{o.className.includes("splitpanes__pane")&&(!a&&this.firstSplitter?this.addSplitter(a,o,!0):a&&this.addSplitter(a,o),a++)})},requestUpdate({target:t,...a}){const o=this.indexedPanes[t._.uid];Object.entries(a).forEach(([l,i])=>o[l]=i)},onPaneAdd(t){let a=-1;Array.from(t.$el.parentNode.children).some(i=>(i.className.includes("splitpanes__pane")&&a++,i===t.$el));const o=parseFloat(t.minSize),l=parseFloat(t.maxSize);this.panes.splice(a,0,{id:t._.uid,index:a,min:isNaN(o)?0:o,max:isNaN(l)?100:l,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((i,s)=>i.index=s),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[a]}),this.$emit("pane-add",{index:a,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},onPaneRemove(t){const a=this.panes.findIndex(l=>l.id===t._.uid),o=this.panes.splice(a,1)[0];this.panes.forEach((l,i)=>l.index=i),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...o,index:a}}),this.$emit("pane-remove",{removed:o,panes:this.panes.map(l=>({min:l.min,max:l.max,size:l.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(a=>a.givenSize!==null||a.min||a.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(a=>({min:a.min,max:a.max,size:a.size})))},equalize(){const t=100/this.panesCount;let a=0;const o=[],l=[];this.panes.forEach(i=>{i.size=Math.max(Math.min(t,i.max),i.min),a-=i.size,i.size>=i.max&&o.push(i.id),i.size<=i.min&&l.push(i.id)}),a>.1&&this.readjustSizes(a,o,l)},initialPanesSizing(){let t=100;const a=[],o=[];let l=0;this.panes.forEach(s=>{t-=s.size,s.size!==null&&l++,s.size>=s.max&&a.push(s.id),s.size<=s.min&&o.push(s.id)});let i=100;t>.1&&(this.panes.forEach(s=>{s.size===null&&(s.size=Math.max(Math.min(t/(this.panesCount-l),s.max),s.min)),i-=s.size}),i>.1&&this.readjustSizes(t,a,o))},equalizeAfterAddOrRemove({addedPane:t,removedPane:a}={}){let o=100/this.panesCount,l=0;const i=[],s=[];t&&t.givenSize!==null&&(o=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(r=>{l-=r.size,r.size>=r.max&&i.push(r.id),r.size<=r.min&&s.push(r.id)}),!(Math.abs(l)<.1)&&(this.panes.forEach(r=>{t&&t.givenSize!==null&&t.id===r.id||(r.size=Math.max(Math.min(o,r.max),r.min)),l-=r.size,r.size>=r.max&&i.push(r.id),r.size<=r.min&&s.push(r.id)}),l>.1&&this.readjustSizes(l,i,s))},readjustSizes(t,a,o){let l;t>0?l=t/(this.panesCount-a.length):l=t/(this.panesCount-o.length),this.panes.forEach((i,s)=>{if(t>0&&!a.includes(i.id)){const r=Math.max(Math.min(i.size+l,i.max),i.min),p=r-i.size;t-=p,i.size=r}else if(!o.includes(i.id)){const r=Math.max(Math.min(i.size+l,i.max),i.min),p=r-i.size;t-=p,i.size=r}i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((a,o)=>{a.ondblclick=t?l=>this.onSplitterDblClick(l,o):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return e.h("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},L=(t,a)=>{const o=t.__vccOpts||t;for(const[l,i]of a)o[l]=i;return o},D={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function U(t,a,o,l,i,s){return e.openBlock(),e.createElementBlock("div",{class:"splitpanes__pane",onClick:a[0]||(a[0]=r=>s.onPaneClick(r,t._.uid)),style:e.normalizeStyle(t.style)},[e.renderSlot(t.$slots,"default")],4)}const T=L(D,[["render",U]]),ot="",R=e.defineComponent({__name:"index",props:{styles:{type:Object,required:!1,default:()=>({width:"100%",height:"100%"})},horizontal:{type:Boolean,required:!1,default:!1}},setup(t){return(a,o)=>(e.openBlock(),e.createBlock(e.unref(q),{horizontal:t.horizontal,style:e.normalizeStyle(t.styles),class:"splitpanes"},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3},8,["horizontal","style"]))}}),it="",C=(t,a)=>{const o=t.__vccOpts||t;for(const[l,i]of a)o[l]=i;return o},S=C(R,[["__scopeId","data-v-4226b5d2"],["__file","D:/Code/front/dld-vue-ui/src/packages/SplitPanes/index.vue"]]),B=C(e.defineComponent({__name:"pane",props:{styles:{type:Object,required:!0,default:()=>({background:"#ececec"})}},setup(t){return(a,o)=>(e.openBlock(),e.createBlock(e.unref(T),{style:e.normalizeStyle(t.styles)},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},8,["style"]))}}),[["__file","D:/Code/front/dld-vue-ui/src/packages/SplitPanes/pane.vue"]]);/*! Element Plus Icons Vue v2.0.10 */var z=(t,a)=>{let o=t.__vccOpts||t;for(let[l,i]of a)o[l]=i;return o},W={name:"CircleClose"},H={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},I=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),O=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),A=[I,O];function j(t,a,o,l,i,s){return e.openBlock(),e.createElementBlock("svg",H,A)}var v=z(W,[["render",j],["__file","circle-close.vue"]]),G={name:"Close"},K={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Y=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),J=[Y];function X(t,a,o,l,i,s){return e.openBlock(),e.createElementBlock("svg",K,J)}var Q=z(G,[["render",X],["__file","close.vue"]]),Z={name:"DeleteFilled"},ee={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},te=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),ne=[te];function ae(t,a,o,l,i,s){return e.openBlock(),e.createElementBlock("svg",ee,ne)}var le=z(Z,[["render",ae],["__file","delete-filled.vue"]]),oe={name:"Delete"},ie={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},se=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),re=[se];function de(t,a,o,l,i,s){return e.openBlock(),e.createElementBlock("svg",ie,re)}var ce=z(oe,[["render",de],["__file","delete.vue"]]),pe={name:"Edit"},he={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ue=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),me=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),fe=[ue,me];function ze(t,a,o,l,i,s){return e.openBlock(),e.createElementBlock("svg",he,fe)}var _e=z(pe,[["render",ze],["__file","edit.vue"]]),ye={name:"FolderOpened"},ge={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},xe=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),Ce=[xe];function ke(t,a,o,l,i,s){return e.openBlock(),e.createElementBlock("svg",ge,Ce)}var b=z(ye,[["render",ke],["__file","folder-opened.vue"]]),we={name:"Search"},Se={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Be=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),be=[Be];function Ve(t,a,o,l,i,s){return e.openBlock(),e.createElementBlock("svg",Se,be)}var Ee=z(we,[["render",Ve],["__file","search.vue"]]),Ne={name:"Upload"},Fe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Pe=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),$e=[Pe];function Me(t,a,o,l,i,s){return e.openBlock(),e.createElementBlock("svg",Fe,$e)}var V=z(Ne,[["render",Me],["__file","upload.vue"]]),qe=function(){function t(a){if(!a)throw new TypeError("Invalid argument; `value` has no value.");this.value=t.EMPTY,a&&t.isGuid(a)&&(this.value=a)}return t.isGuid=function(a){var o=a.toString();return a&&(a instanceof t||t.validator.test(o))},t.create=function(){return new t([t.gen(2),t.gen(1),t.gen(1),t.gen(1),t.gen(3)].join("-"))},t.createEmpty=function(){return new t("emptyguid")},t.parse=function(a){return new t(a)},t.raw=function(){return[t.gen(2),t.gen(1),t.gen(1),t.gen(1),t.gen(3)].join("-")},t.gen=function(a){for(var o="",l=0;l<a;l++)o+=((1+Math.random())*65536|0).toString(16).substring(1);return o},t.prototype.equals=function(a){return t.isGuid(a)&&this.value===a.toString()},t.prototype.isEmpty=function(){return this.value===t.EMPTY},t.prototype.toString=function(){return this.value},t.prototype.toJSON=function(){return{value:this.value}},t.validator=new RegExp("^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$","i"),t.EMPTY="00000000-0000-0000-0000-000000000000",t}(),Le=qe;const De={style:{}},Ue=["id","accept"],Te={class:"filename"},Re=e.defineComponent({__name:"index",props:{size:{type:String,required:!1,default:"default"},name:{type:String,required:!1,default:"\u4E0A\u4F20\u6587\u4EF6"},icon:{type:null,required:!1,default:V},type:{type:null,required:!1,default:"success"},accept:{type:String,required:!0,default:"*"}},emits:["upload"],setup(t,{expose:a,emit:o}){let l=Le.create().toString(),i,s=e.ref("");function r(){i.click()}function p(){s.value=i.value}function u(){i.files!==null&&o("upload",i.files[0])}function _(){i.value="",s.value=""}return e.onMounted(()=>{i=document.getElementById(l)}),a({Clear:_}),(y,m)=>{const g=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",De,[e.createVNode(g,{type:t.type,icon:e.unref(b),size:t.size,class:"btn",onClick:r},{default:e.withCtx(()=>[e.createTextVNode("\u9009\u62E9\u6587\u4EF6")]),_:1},8,["type","icon","size"]),e.withDirectives(e.createElementVNode("input",{type:"file",id:e.unref(l),onChange:p,accept:t.accept},null,40,Ue),[[e.vShow,!1]]),e.createElementVNode("span",Te,e.toDisplayString(e.unref(s)),1),e.createVNode(g,{type:t.type,icon:t.icon,size:t.size,disabled:e.unref(s)==null||e.unref(s)=="",class:"btn",title:e.unref(s)==null||e.unref(s)==""?"\u8BF7\u9009\u62E9\u6587\u4EF6":"",onClick:u},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.name),1)]),_:1},8,["type","icon","size","disabled","title"])])}}}),rt="",E=C(Re,[["__scopeId","data-v-83b9cdd7"],["__file","D:/Code/front/dld-vue-ui/src/packages/UpLoadFile/index.vue"]]),We=["accept"],He={class:"filename"},Ie={class:"content"},Oe=e.defineComponent({__name:"index",props:{size:{type:String,required:!0,default:"default"},accept:{type:String,required:!0,default:"*"}},emits:["upload","clear"],setup(t,{expose:a,emit:o}){const l=t,i=e.ref(),s=e.ref([]);function r(){var m;(m=i.value)==null||m.click()}function p(){var m,g,d;if(s.value=[],(m=i.value)!=null&&m.files)for(let h=0;h<((d=(g=i.value)==null?void 0:g.files)==null?void 0:d.length);h++)s.value[h]=i.value.files[h];else s.value=[]}function u(m){s.value.splice(m,1)}function _(){o("upload",s.value)}function y(){s.value=[]}return a({Clear:y}),(m,g)=>{const d=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("input",{type:"file",ref_key:"files",ref:i,multiple:"",style:{display:"none"},onChange:p,accept:l.accept},null,40,We),e.createVNode(d,{type:"success",size:l.size,icon:e.unref(b),onClick:r},{default:e.withCtx(()=>[e.createTextVNode("\u9009\u62E9\u6587\u4EF6")]),_:1},8,["size","icon"]),e.createVNode(d,{type:"success",size:l.size,icon:e.unref(V),onClick:_,disabled:s.value.length==0},{default:e.withCtx(()=>[e.createTextVNode("\u4E0A\u4F20\u6587\u4EF6")]),_:1},8,["size","icon","disabled"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(h,x)=>(e.openBlock(),e.createElementBlock("p",He,[e.createElementVNode("span",Ie,e.toDisplayString(h.name),1),e.createVNode(d,{size:"small",icon:e.unref(Q),class:"operation",link:"",onClick:$=>u(x)},null,8,["icon","onClick"])]))),256))])}}}),dt="",N=C(Oe,[["__scopeId","data-v-50d3310f"],["__file","D:/Code/front/dld-vue-ui/src/packages/UpLoadFiles/index.vue"]]),Ae=e.defineComponent({__name:"index",props:{asideWidth:{type:Number,required:!1,default:220},headerMaxHeight:{type:Number,required:!1,default:60},horizontal:{type:Boolean,required:!1,default:!1}},setup(t){const a=e.useSlots();return(o,l)=>{const i=e.resolveComponent("el-aside"),s=e.resolveComponent("el-header"),r=e.resolveComponent("el-main"),p=e.resolveComponent("el-container");return e.openBlock(),e.createBlock(p,{class:"container"},{default:e.withCtx(()=>[e.unref(a).aside&&!t.horizontal?(e.openBlock(),e.createBlock(i,{key:0,class:"aside",style:e.normalizeStyle("width: "+t.asideWidth+"px;")},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"aside",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("v-if",!0),e.unref(a).header&&t.horizontal?(e.openBlock(),e.createBlock(s,{key:1,class:"inside_header",style:e.normalizeStyle("height: "+t.headerMaxHeight+"px;")},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"header",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("v-if",!0),e.createVNode(r,{class:"main"},{default:e.withCtx(()=>[e.createVNode(p,{class:"inside_container"},{default:e.withCtx(()=>[e.unref(a).header&&!t.horizontal?(e.openBlock(),e.createBlock(s,{key:0,class:"inside_header",style:e.normalizeStyle("height: "+t.headerMaxHeight+"px;")},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"header",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("v-if",!0),e.unref(a).aside&&t.horizontal?(e.openBlock(),e.createBlock(i,{key:1,class:"aside",style:e.normalizeStyle("width: "+t.asideWidth+"px;")},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"aside",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("v-if",!0),e.createVNode(r,{class:"inside_main"},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]),_:3})]),_:3})}}}),ct="",F=C(Ae,[["__scopeId","data-v-5d747d9d"],["__file","D:/Code/front/dld-vue-ui/src/packages/Layout/index.vue"]]),je={key:0,class:"header"},ve={class:"header_title"},Ge=["innerHTML"],Ke={class:"header_title"},Ye={class:"pagination"},Je=e.defineComponent({__name:"index",props:{maxHeight:{type:Number,required:!1,default:550},size:{type:String,required:!1,default:"default"},tableData:{type:Array,required:!1,default:()=>[]},tableColumn:{type:Array,required:!1,default:()=>[]},stripe:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},highLight:{type:Boolean,required:!1,default:!1},type:{type:String,required:!1},typeLabel:{type:String,required:!1,default:"\u5E8F\u53F7"},typeWidth:{type:Number,required:!1,default:60},typeIsFixed:{type:Boolean,required:!1},operate:{type:Boolean,required:!1},operateSize:{type:String,required:!1,default:"default"},rowButtonSize:{type:String,required:!1,default:"default"},operateLabel:{type:String,required:!1,default:""},operateWidth:{type:Number,required:!1,default:220},operateIsFixed:{type:Boolean,required:!1},search:{type:Boolean,required:!1},clear:{type:Boolean,required:!1},edit:{type:Boolean,required:!1},delete:{type:Boolean,required:!1},deleteTitle:{type:String,required:!1},pagination:{type:Boolean,required:!1,default:!1},small:{type:Boolean,required:!1,default:!1},total:{type:Number,required:!1,default:0},hideOnSinglePage:{type:Boolean,required:!1,default:!1},defaultSelect:{type:Function,required:!1}},emits:["row-click","row-dblclick","selection-change","search","clear","delete","edit","page-index","page-size","get-ref"],setup(t,{emit:a}){const o=t;let l=e.reactive({pageIndex:1,pageSize:5}),i=e.ref();const s=e.useSlots(),r=d=>{a("row-click",d)},p=d=>{a("row-click",d)},u=d=>{a("selection-change",d)},_=()=>{if(o.tableColumn.length>0)for(let d=0;d<o.tableColumn.length;d++){let h=o.tableColumn[d];l[h.prop]=null}a("clear")},y=()=>{a("search",l)},m=d=>{a("edit",d)},g=d=>{a("delete",d)};return e.watch(()=>l.pageIndex,(d,h)=>{a("page-index",Number(d),Number(h))}),e.watch(()=>l.pageSize,(d,h)=>{a("page-size",Number(d),Number(h))}),e.onMounted(()=>{if(o.tableColumn.length>0)for(let d=0;d<o.tableColumn.length;d++){let h=o.tableColumn[d];l[h.prop]=null}o.tableData.forEach(d=>{o.defaultSelect&&o.type=="selection"&&o.defaultSelect(d)&&i.value.toggleRowSelection(d,void 0,!1)})}),(d,h)=>{const x=e.resolveComponent("el-table-column"),$=e.resolveComponent("el-input"),Qe=e.resolveComponent("el-input-number"),Ze=e.resolveComponent("el-option"),et=e.resolveComponent("el-select"),k=e.resolveComponent("el-date-picker"),M=e.resolveComponent("el-time-picker"),tt=e.resolveComponent("el-switch"),w=e.resolveComponent("el-button"),nt=e.resolveComponent("el-popconfirm"),at=e.resolveComponent("el-table"),lt=e.resolveComponent("el-pagination");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(s).header?(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(d.$slots,"header",{},void 0,!0)])):e.createCommentVNode("v-if",!0),e.createVNode(at,{data:t.tableData,class:e.normalizeClass([t.size&&t.size=="small"?"mini-table":"table"]),"max-height":t.maxHeight,size:t.size,stripe:t.stripe,border:t.border,"highlight-current-row":t.highLight,onRowClick:r,onRowDblclick:p,onSelectionChange:u,ref_key:"tableRef",ref:i},{default:e.withCtx(()=>[t.type&&t.type=="index"?(e.openBlock(),e.createBlock(x,{key:0,align:"center",type:"index",width:t.typeWidth+"px",fixed:t.typeIsFixed?"left":!1,label:t.typeLabel},null,8,["width","fixed","label"])):e.createCommentVNode("v-if",!0),t.type=="selection"?(e.openBlock(),e.createBlock(x,{key:1,align:"center",type:"selection",width:t.typeWidth+"px",fixed:t.typeIsFixed?"left":!1},null,8,["width","fixed"])):e.createCommentVNode("v-if",!0),t.type=="expand"?(e.openBlock(),e.createBlock(x,{key:2,align:"center",type:"expand",width:t.typeWidth+"px",fixed:t.typeIsFixed?"left":!1,label:t.typeLabel},{default:e.withCtx(n=>[e.renderSlot(d.$slots,"expand",{row:n.row},void 0,!0)]),_:3},8,["width","fixed","label"])):e.createCommentVNode("v-if",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tableColumn,n=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[n.hidden?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(x,{key:0,prop:n.costom?!1:n.prop,width:n.width?n.width:"",fixed:n.fixed?n.fixed:!1,align:n.align?n.align:"left","show-overflow-tooltip":!!n.overflow},e.createSlots({header:e.withCtx(()=>[e.createElementVNode("div",ve,e.toDisplayString(n.label),1),e.createCommentVNode(" \u6587\u672C\u641C\u7D22\u6846 "),n.search&&(!n.type||n.type=="text")?(e.openBlock(),e.createBlock($,{key:0,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,size:n.size,clearable:"",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),disabled:n.disabled,placeholder:n.placeholder?n.placeholder:"\u8BF7\u8F93\u5165"+n.label,class:e.normalizeClass([n.align&&n.align=="center"?"center":""]),onKeyup:e.withKeys(y,["enter","native"])},null,8,["modelValue","onUpdate:modelValue","size","style","disabled","placeholder","class","onKeyup"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u6570\u5B57\u6846\u641C\u7D22 "),n.search&&n.type=="number"?(e.openBlock(),e.createBlock(Qe,{key:1,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,size:n.size,clearable:"",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),disabled:n.disabled,placeholder:n.placeholder?n.placeholder:"\u8BF7\u8F93\u5165"+n.label,class:e.normalizeClass([n.align&&n.align=="center"?"center":""]),max:n.max!=null?n.max:1/0,min:n.min!=null?n.min:-1/0,step:n.step!=null?n.step:1,onKeyup:e.withKeys(y,["enter","native"])},null,8,["modelValue","onUpdate:modelValue","size","style","disabled","placeholder","class","max","min","step","onKeyup"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u9009\u62E9\u641C\u7D22 "),n.search&&n.type=="select"?(e.openBlock(),e.createBlock(et,{key:2,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,size:n.size,clearable:"",filterable:"",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),disabled:n.disabled,multiple:n.multiple,"collapse-tags":n.omit,placeholder:n.placeholder?n.placeholder:"\u8BF7\u9009\u62E9"+n.label,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.options,c=>(e.openBlock(),e.createBlock(Ze,{label:c.label?c.label:c.value,value:c.value,disabled:c.disabled},null,8,["label","value","disabled"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue","size","style","disabled","multiple","collapse-tags","placeholder","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u65E5\u671F\u9009\u62E9 "),n.search&&n.type=="date"?(e.openBlock(),e.createBlock(k,{key:3,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,type:"date",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":""),placeholder:n.placeholder?n.placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",size:n.size,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","style","placeholder","size","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u65F6\u95F4\u9009\u62E9 "),n.search&&n.type=="time"?(e.openBlock(),e.createBlock(M,{key:4,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,"arrow-control":"",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),placeholder:n.placeholder?n.placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",size:n.size,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","style","placeholder","size","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u65E5\u671F\u65F6\u95F4\u641C\u7D22 "),n.search&&n.type=="datetime"?(e.openBlock(),e.createBlock(k,{key:5,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,type:"datetime",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),placeholder:n.placeholder?n.placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4",size:n.size,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","style","placeholder","size","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u65E5\u671F\u8303\u56F4\u9009\u62E9 "),n.search&&n.type=="daterange"?(e.openBlock(),e.createBlock(k,{key:6,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,type:"daterange","range-separator":"-","start-placeholder":n.placeholder?n.placeholder.split("&&")[0]:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F","end-placeholder":n.placeholder?n.placeholder.split("&&")[1]:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),size:n.size,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","style","size","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u65F6\u95F4\u8303\u56F4\u9009\u62E9 "),n.search&&n.type=="timerange"?(e.openBlock(),e.createBlock(M,{key:7,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,"is-range":"","arrow-control":"","range-separator":"-","start-placeholder":n.placeholder?n.placeholder.split("&&")[0]:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4","end-placeholder":n.placeholder?n.placeholder.split("&&")[1]:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),size:n.size,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","style","size","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u65E5\u671F\u65F6\u95F4\u8303\u56F4\u9009\u62E9 "),n.search&&n.type=="datetimerange"?(e.openBlock(),e.createBlock(k,{key:8,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,type:"datetimerange","range-separator":"-","start-placeholder":n.placeholder?n.placeholder.split("&&")[0]:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F\u65F6\u95F4","end-placeholder":n.placeholder?n.placeholder.split("&&")[1]:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F\u65F6\u95F4",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),size:n.size,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","style","size","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u5F00\u5173 "),n.search&&n.type=="switch"?(e.openBlock(),e.createBlock(tt,{key:9,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,size:n.size,"active-text":n.openText,"inactive-text":n.closeText,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","size","active-text","inactive-text","class"])):e.createCommentVNode("v-if",!0)]),_:2},[n.costom?{name:"default",fn:e.withCtx(c=>[e.createElementVNode("span",{innerHTML:n.costom?n.costom(c.row):""},null,8,Ge)]),key:"0"}:void 0]),1032,["prop","width","fixed","align","show-overflow-tooltip"]))],64))),256)),t.operate?(e.openBlock(),e.createBlock(x,{key:3,align:"center",width:t.operateWidth?t.operateWidth:"",fixed:t.operateIsFixed?"right":!1},{header:e.withCtx(()=>[e.createElementVNode("div",Ke,e.toDisplayString(t.operateLabel),1),e.renderSlot(d.$slots,"operate-front",{},void 0,!0),t.search?(e.openBlock(),e.createBlock(w,{key:0,type:"primary",size:t.operateSize,icon:e.unref(Ee),onClick:y},{default:e.withCtx(()=>[e.createTextVNode("\u641C\u7D22")]),_:1},8,["size","icon"])):e.createCommentVNode("v-if",!0),e.renderSlot(d.$slots,"operate-middle",{},void 0,!0),t.clear?(e.openBlock(),e.createBlock(w,{key:1,type:"info",size:t.operateSize,icon:e.unref(v),onClick:_},{default:e.withCtx(()=>[e.createTextVNode("\u6E05\u7A7A")]),_:1},8,["size","icon"])):e.createCommentVNode("v-if",!0),e.renderSlot(d.$slots,"operate",{},void 0,!0)]),default:e.withCtx(n=>[e.renderSlot(d.$slots,"row-operate-front",{row:n.row},void 0,!0),t.edit?(e.openBlock(),e.createBlock(w,{key:0,link:"",type:"primary",size:t.rowButtonSize,icon:e.unref(_e),onClick:c=>m(n.row)},{default:e.withCtx(()=>[e.createTextVNode("\u4FEE\u6539")]),_:2},1032,["size","icon","onClick"])):e.createCommentVNode("v-if",!0),e.renderSlot(d.$slots,"row-operate-middle",{row:n.row},void 0,!0),t.delete?(e.openBlock(),e.createBlock(nt,{key:1,"confirm-button-text":"\u5426","cancel-button-text":"\u662F","confirm-button-type":"text","cancel-button-type":"danger",icon:e.unref(le),width:"auto",onCancel:c=>g(n.row),title:t.deleteTitle?t.deleteTitle:"\u662F\u5426\u8981\u5220\u9664\u5F53\u524D\u884C\uFF1F"},{reference:e.withCtx(()=>[e.createVNode(w,{link:"",type:"danger",size:t.rowButtonSize,icon:e.unref(ce)},{default:e.withCtx(()=>[e.createTextVNode("\u5220\u9664")]),_:1},8,["size","icon"])]),_:2},1032,["icon","onCancel","title"])):e.createCommentVNode("v-if",!0),e.renderSlot(d.$slots,"row-operate",{row:n.row},void 0,!0)]),_:3},8,["width","fixed"])):e.createCommentVNode("v-if",!0)]),_:3},8,["data","class","max-height","size","stripe","border","highlight-current-row"]),e.createElementVNode("div",Ye,[t.pagination?(e.openBlock(),e.createBlock(lt,{key:0,"current-page":e.unref(l).pageIndex,"onUpdate:current-page":h[0]||(h[0]=n=>e.unref(l).pageIndex=n),"page-size":e.unref(l).pageSize,"onUpdate:page-size":h[1]||(h[1]=n=>e.unref(l).pageSize=n),small:t.small,"hide-on-Single-page":t.hideOnSinglePage,background:"",layout:"prev, pager, next, total, jumper, sizes","page-sizes":[5,10,20,50],total:t.total,class:"mt-4"},null,8,["current-page","page-size","small","hide-on-Single-page","total"])):e.createCommentVNode("v-if",!0)])],64)}}}),pt="",P=C(Je,[["__scopeId","data-v-f4c855de"],["__file","D:/Code/front/dld-vue-ui/src/packages/TableForm/index.vue"]]),Xe={install:t=>{t.component("SplitPanes",S),t.component("Pane",B),t.component("UpLoadFile",E),t.component("Layout",F),t.component("TableForm",P),t.component("UpLoadFiles",N)}};f.Layout=F,f.Pane=B,f.SplitPanes=S,f.TableForm=P,f.UpLoadFile=E,f.UpLoadFiles=N,f.default=Xe,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(f,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(f=typeof globalThis<"u"?globalThis:f||self,e(f["dld-vue-ui"]={},f.Vue))})(this,function(f,e){"use strict";const q={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,a)=>(t[a.id]=a)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){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))},unbindEvents(){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))},onMouseDown(t,a){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=a},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,a){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===a?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,a),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=a,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[a])},onSplitterDblClick(t,a){let o=0;this.panes=this.panes.map((l,i)=>(l.size=i===a?l.max:l.min,i!==a&&(o+=l.min),l)),this.panes[a].size-=o,this.$emit("pane-maximize",this.panes[a]),this.$emit("resized",this.panes.map(l=>({min:l.min,max:l.max,size:l.size})))},onPaneClick(t,a){this.$emit("pane-click",this.indexedPanes[a])},getCurrentMouseDrag(t){const a=this.container.getBoundingClientRect(),{clientX:o,clientY:l}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:o-a.left,y:l-a.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const a=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=a-t),t*100/a},calculatePanesSize(t){const a=this.touch.activeSplitter;let o={prevPanesSize:this.sumPrevPanesSize(a),nextPanesSize:this.sumNextPanesSize(a),prevReachedMinPanes:0,nextReachedMinPanes:0};const l=0+(this.pushOtherPanes?0:o.prevPanesSize),i=100-(this.pushOtherPanes?0:o.nextPanesSize),s=Math.max(Math.min(this.getCurrentDragPercentage(t),i),l);let r=[a,a+1],p=this.panes[r[0]]||null,u=this.panes[r[1]]||null;const _=p.max<100&&s>=p.max+o.prevPanesSize,y=u.max<100&&s<=100-(u.max+this.sumNextPanesSize(a+1));if(_||y){_?(p.size=p.max,u.size=Math.max(100-p.max-o.prevPanesSize-o.nextPanesSize,0)):(p.size=Math.max(100-u.max-o.prevPanesSize-this.sumNextPanesSize(a+1),0),u.size=u.max);return}if(this.pushOtherPanes){const m=this.doPushOtherPanes(o,s);if(!m)return;({sums:o,panesToResize:r}=m),p=this.panes[r[0]]||null,u=this.panes[r[1]]||null}p!==null&&(p.size=Math.min(Math.max(s-o.prevPanesSize-o.prevReachedMinPanes,p.min),p.max)),u!==null&&(u.size=Math.min(Math.max(100-s-o.nextPanesSize-o.nextReachedMinPanes,u.min),u.max))},doPushOtherPanes(t,a){const o=this.touch.activeSplitter,l=[o,o+1];return a<t.prevPanesSize+this.panes[l[0]].min&&(l[0]=this.findPrevExpandedPane(o).index,t.prevReachedMinPanes=0,l[0]<o&&this.panes.forEach((i,s)=>{s>l[0]&&s<=o&&(i.size=i.min,t.prevReachedMinPanes+=i.min)}),t.prevPanesSize=this.sumPrevPanesSize(l[0]),l[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((i,s)=>{s>0&&s<=o&&(i.size=i.min,t.prevReachedMinPanes+=i.min)}),this.panes[l[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):a>100-t.nextPanesSize-this.panes[l[1]].min&&(l[1]=this.findNextExpandedPane(o).index,t.nextReachedMinPanes=0,l[1]>o+1&&this.panes.forEach((i,s)=>{s>o&&s<l[1]&&(i.size=i.min,t.nextReachedMinPanes+=i.min)}),t.nextPanesSize=this.sumNextPanesSize(l[1]-1),l[1]===void 0)?(t.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((i,s)=>{s<this.panesCount-1&&s>=o+1&&(i.size=i.min,t.nextReachedMinPanes+=i.min)}),this.panes[l[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:l}},sumPrevPanesSize(t){return this.panes.reduce((a,o,l)=>a+(l<t?o.size:0),0)},sumNextPanesSize(t){return this.panes.reduce((a,o,l)=>a+(l>t+1?o.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(a=>a.index<t&&a.size>a.min)||{}},findNextExpandedPane(t){return this.panes.find(a=>a.index>t+1&&a.size>a.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const a=t.classList.contains("splitpanes__pane"),o=t.classList.contains("splitpanes__splitter");!a&&!o&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(t,a,o=!1){const l=t-1,i=document.createElement("div");i.classList.add("splitpanes__splitter"),o||(i.onmousedown=s=>this.onMouseDown(s,l),typeof window<"u"&&"ontouchstart"in window&&(i.ontouchstart=s=>this.onMouseDown(s,l)),i.onclick=s=>this.onSplitterClick(s,l+1)),this.dblClickSplitter&&(i.ondblclick=s=>this.onSplitterDblClick(s,l+1)),a.parentNode.insertBefore(i,a)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(o=>{o.className.includes("splitpanes__splitter")&&this.removeSplitter(o)});let a=0;t.forEach(o=>{o.className.includes("splitpanes__pane")&&(!a&&this.firstSplitter?this.addSplitter(a,o,!0):a&&this.addSplitter(a,o),a++)})},requestUpdate({target:t,...a}){const o=this.indexedPanes[t._.uid];Object.entries(a).forEach(([l,i])=>o[l]=i)},onPaneAdd(t){let a=-1;Array.from(t.$el.parentNode.children).some(i=>(i.className.includes("splitpanes__pane")&&a++,i===t.$el));const o=parseFloat(t.minSize),l=parseFloat(t.maxSize);this.panes.splice(a,0,{id:t._.uid,index:a,min:isNaN(o)?0:o,max:isNaN(l)?100:l,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((i,s)=>i.index=s),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[a]}),this.$emit("pane-add",{index:a,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},onPaneRemove(t){const a=this.panes.findIndex(l=>l.id===t._.uid),o=this.panes.splice(a,1)[0];this.panes.forEach((l,i)=>l.index=i),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...o,index:a}}),this.$emit("pane-remove",{removed:o,panes:this.panes.map(l=>({min:l.min,max:l.max,size:l.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(a=>a.givenSize!==null||a.min||a.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(a=>({min:a.min,max:a.max,size:a.size})))},equalize(){const t=100/this.panesCount;let a=0;const o=[],l=[];this.panes.forEach(i=>{i.size=Math.max(Math.min(t,i.max),i.min),a-=i.size,i.size>=i.max&&o.push(i.id),i.size<=i.min&&l.push(i.id)}),a>.1&&this.readjustSizes(a,o,l)},initialPanesSizing(){let t=100;const a=[],o=[];let l=0;this.panes.forEach(s=>{t-=s.size,s.size!==null&&l++,s.size>=s.max&&a.push(s.id),s.size<=s.min&&o.push(s.id)});let i=100;t>.1&&(this.panes.forEach(s=>{s.size===null&&(s.size=Math.max(Math.min(t/(this.panesCount-l),s.max),s.min)),i-=s.size}),i>.1&&this.readjustSizes(t,a,o))},equalizeAfterAddOrRemove({addedPane:t,removedPane:a}={}){let o=100/this.panesCount,l=0;const i=[],s=[];t&&t.givenSize!==null&&(o=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(r=>{l-=r.size,r.size>=r.max&&i.push(r.id),r.size<=r.min&&s.push(r.id)}),!(Math.abs(l)<.1)&&(this.panes.forEach(r=>{t&&t.givenSize!==null&&t.id===r.id||(r.size=Math.max(Math.min(o,r.max),r.min)),l-=r.size,r.size>=r.max&&i.push(r.id),r.size<=r.min&&s.push(r.id)}),l>.1&&this.readjustSizes(l,i,s))},readjustSizes(t,a,o){let l;t>0?l=t/(this.panesCount-a.length):l=t/(this.panesCount-o.length),this.panes.forEach((i,s)=>{if(t>0&&!a.includes(i.id)){const r=Math.max(Math.min(i.size+l,i.max),i.min),p=r-i.size;t-=p,i.size=r}else if(!o.includes(i.id)){const r=Math.max(Math.min(i.size+l,i.max),i.min),p=r-i.size;t-=p,i.size=r}i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((a,o)=>{a.ondblclick=t?l=>this.onSplitterDblClick(l,o):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return e.h("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},L=(t,a)=>{const o=t.__vccOpts||t;for(const[l,i]of a)o[l]=i;return o},D={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function U(t,a,o,l,i,s){return e.openBlock(),e.createElementBlock("div",{class:"splitpanes__pane",onClick:a[0]||(a[0]=r=>s.onPaneClick(r,t._.uid)),style:e.normalizeStyle(t.style)},[e.renderSlot(t.$slots,"default")],4)}const T=L(D,[["render",U]]),ot="",R=e.defineComponent({__name:"index",props:{styles:{type:Object,required:!1,default:()=>({width:"100%",height:"100%"})},horizontal:{type:Boolean,required:!1,default:!1}},setup(t){return(a,o)=>(e.openBlock(),e.createBlock(e.unref(q),{horizontal:t.horizontal,style:e.normalizeStyle(t.styles),class:"splitpanes"},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3},8,["horizontal","style"]))}}),it="",C=(t,a)=>{const o=t.__vccOpts||t;for(const[l,i]of a)o[l]=i;return o},w=C(R,[["__scopeId","data-v-4226b5d2"],["__file","D:/Code/front/dld-vue-ui/src/packages/SplitPanes/index.vue"]]),B=C(e.defineComponent({__name:"pane",props:{styles:{type:Object,required:!0,default:()=>({background:"#ececec"})}},setup(t){return(a,o)=>(e.openBlock(),e.createBlock(e.unref(T),{style:e.normalizeStyle(t.styles)},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},8,["style"]))}}),[["__file","D:/Code/front/dld-vue-ui/src/packages/SplitPanes/pane.vue"]]);/*! Element Plus Icons Vue v2.0.10 */var z=(t,a)=>{let o=t.__vccOpts||t;for(let[l,i]of a)o[l]=i;return o},W={name:"CircleClose"},H={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},I=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),O=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),A=[I,O];function j(t,a,o,l,i,s){return e.openBlock(),e.createElementBlock("svg",H,A)}var v=z(W,[["render",j],["__file","circle-close.vue"]]),G={name:"Close"},K={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Y=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),J=[Y];function X(t,a,o,l,i,s){return e.openBlock(),e.createElementBlock("svg",K,J)}var Q=z(G,[["render",X],["__file","close.vue"]]),Z={name:"DeleteFilled"},ee={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},te=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),ne=[te];function ae(t,a,o,l,i,s){return e.openBlock(),e.createElementBlock("svg",ee,ne)}var le=z(Z,[["render",ae],["__file","delete-filled.vue"]]),oe={name:"Delete"},ie={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},se=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),re=[se];function de(t,a,o,l,i,s){return e.openBlock(),e.createElementBlock("svg",ie,re)}var ce=z(oe,[["render",de],["__file","delete.vue"]]),pe={name:"Edit"},he={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ue=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),me=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),fe=[ue,me];function ze(t,a,o,l,i,s){return e.openBlock(),e.createElementBlock("svg",he,fe)}var _e=z(pe,[["render",ze],["__file","edit.vue"]]),ye={name:"FolderOpened"},ge={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},xe=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),Ce=[xe];function ke(t,a,o,l,i,s){return e.openBlock(),e.createElementBlock("svg",ge,Ce)}var b=z(ye,[["render",ke],["__file","folder-opened.vue"]]),Se={name:"Search"},we={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Be=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),be=[Be];function Ve(t,a,o,l,i,s){return e.openBlock(),e.createElementBlock("svg",we,be)}var Ee=z(Se,[["render",Ve],["__file","search.vue"]]),Ne={name:"Upload"},Fe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Pe=e.createElementVNode("path",{fill:"currentColor",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"},null,-1),$e=[Pe];function Me(t,a,o,l,i,s){return e.openBlock(),e.createElementBlock("svg",Fe,$e)}var V=z(Ne,[["render",Me],["__file","upload.vue"]]),qe=function(){function t(a){if(!a)throw new TypeError("Invalid argument; `value` has no value.");this.value=t.EMPTY,a&&t.isGuid(a)&&(this.value=a)}return t.isGuid=function(a){var o=a.toString();return a&&(a instanceof t||t.validator.test(o))},t.create=function(){return new t([t.gen(2),t.gen(1),t.gen(1),t.gen(1),t.gen(3)].join("-"))},t.createEmpty=function(){return new t("emptyguid")},t.parse=function(a){return new t(a)},t.raw=function(){return[t.gen(2),t.gen(1),t.gen(1),t.gen(1),t.gen(3)].join("-")},t.gen=function(a){for(var o="",l=0;l<a;l++)o+=((1+Math.random())*65536|0).toString(16).substring(1);return o},t.prototype.equals=function(a){return t.isGuid(a)&&this.value===a.toString()},t.prototype.isEmpty=function(){return this.value===t.EMPTY},t.prototype.toString=function(){return this.value},t.prototype.toJSON=function(){return{value:this.value}},t.validator=new RegExp("^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$","i"),t.EMPTY="00000000-0000-0000-0000-000000000000",t}(),Le=qe;const De={style:{}},Ue=["id","accept"],Te={class:"filename"},Re=e.defineComponent({__name:"index",props:{size:{type:String,required:!1,default:"default"},name:{type:String,required:!1,default:"\u4E0A\u4F20\u6587\u4EF6"},icon:{type:null,required:!1,default:V},type:{type:null,required:!1,default:"success"},accept:{type:String,required:!0,default:"*"}},emits:["upload"],setup(t,{expose:a,emit:o}){let l=Le.create().toString(),i,s=e.ref("");function r(){i.click()}function p(){s.value=i.value}function u(){i.files!==null&&o("upload",i.files[0])}function _(){i.value="",s.value=""}return e.onMounted(()=>{i=document.getElementById(l)}),a({Clear:_}),(y,m)=>{const g=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",De,[e.createVNode(g,{type:t.type,icon:e.unref(b),size:t.size,class:"btn",onClick:r},{default:e.withCtx(()=>[e.createTextVNode("\u9009\u62E9\u6587\u4EF6")]),_:1},8,["type","icon","size"]),e.withDirectives(e.createElementVNode("input",{type:"file",id:e.unref(l),onChange:p,accept:t.accept},null,40,Ue),[[e.vShow,!1]]),e.createElementVNode("span",Te,e.toDisplayString(e.unref(s)),1),e.createVNode(g,{type:t.type,icon:t.icon,size:t.size,disabled:e.unref(s)==null||e.unref(s)=="",class:"btn",title:e.unref(s)==null||e.unref(s)==""?"\u8BF7\u9009\u62E9\u6587\u4EF6":"",onClick:u},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.name),1)]),_:1},8,["type","icon","size","disabled","title"])])}}}),rt="",E=C(Re,[["__scopeId","data-v-83b9cdd7"],["__file","D:/Code/front/dld-vue-ui/src/packages/UpLoadFile/index.vue"]]),We=["accept"],He={class:"filename"},Ie={class:"content"},Oe=e.defineComponent({__name:"index",props:{size:{type:String,required:!0,default:"default"},accept:{type:String,required:!0,default:"*"}},emits:["upload","clear"],setup(t,{expose:a,emit:o}){const l=t,i=e.ref(),s=e.ref([]);function r(){var m;(m=i.value)==null||m.click()}function p(){var m,g,d;if(s.value=[],(m=i.value)!=null&&m.files)for(let h=0;h<((d=(g=i.value)==null?void 0:g.files)==null?void 0:d.length);h++)s.value[h]=i.value.files[h];else s.value=[]}function u(m){s.value.splice(m,1)}function _(){o("upload",s.value)}function y(){s.value=[]}return a({Clear:y}),(m,g)=>{const d=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("input",{type:"file",ref_key:"files",ref:i,multiple:"",style:{display:"none"},onChange:p,accept:l.accept},null,40,We),e.createVNode(d,{type:"success",size:l.size,icon:e.unref(b),onClick:r},{default:e.withCtx(()=>[e.createTextVNode("\u9009\u62E9\u6587\u4EF6")]),_:1},8,["size","icon"]),e.createVNode(d,{type:"success",size:l.size,icon:e.unref(V),onClick:_,disabled:s.value.length==0},{default:e.withCtx(()=>[e.createTextVNode("\u4E0A\u4F20\u6587\u4EF6")]),_:1},8,["size","icon","disabled"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(h,x)=>(e.openBlock(),e.createElementBlock("p",He,[e.createElementVNode("span",Ie,e.toDisplayString(h.name),1),e.createVNode(d,{size:"small",icon:e.unref(Q),class:"operation",link:"",onClick:$=>u(x)},null,8,["icon","onClick"])]))),256))])}}}),dt="",N=C(Oe,[["__scopeId","data-v-50d3310f"],["__file","D:/Code/front/dld-vue-ui/src/packages/UpLoadFiles/index.vue"]]),Ae=e.defineComponent({__name:"index",props:{asideWidth:{type:Number,required:!1,default:220},headerMaxHeight:{type:Number,required:!1,default:60},horizontal:{type:Boolean,required:!1,default:!1}},setup(t){const a=e.useSlots();return(o,l)=>{const i=e.resolveComponent("el-aside"),s=e.resolveComponent("el-header"),r=e.resolveComponent("el-main"),p=e.resolveComponent("el-container");return e.openBlock(),e.createBlock(p,{class:"container"},{default:e.withCtx(()=>[e.unref(a).aside&&!t.horizontal?(e.openBlock(),e.createBlock(i,{key:0,class:"aside",style:e.normalizeStyle("width: "+t.asideWidth+"px;")},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"aside",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("v-if",!0),e.unref(a).header&&t.horizontal?(e.openBlock(),e.createBlock(s,{key:1,class:"inside_header",style:e.normalizeStyle("height: "+t.headerMaxHeight+"px;")},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"header",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("v-if",!0),e.createVNode(r,{class:"main"},{default:e.withCtx(()=>[e.createVNode(p,{class:"inside_container"},{default:e.withCtx(()=>[e.unref(a).header&&!t.horizontal?(e.openBlock(),e.createBlock(s,{key:0,class:"inside_header",style:e.normalizeStyle("height: "+t.headerMaxHeight+"px;")},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"header",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("v-if",!0),e.unref(a).aside&&t.horizontal?(e.openBlock(),e.createBlock(i,{key:1,class:"aside",style:e.normalizeStyle("width: "+t.asideWidth+"px;")},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"aside",{},void 0,!0)]),_:3},8,["style"])):e.createCommentVNode("v-if",!0),e.createVNode(r,{class:"inside_main"},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]),_:3})]),_:3})}}}),ct="",F=C(Ae,[["__scopeId","data-v-5d747d9d"],["__file","D:/Code/front/dld-vue-ui/src/packages/Layout/index.vue"]]),je={key:0,class:"header"},ve={class:"header_title"},Ge=["innerHTML"],Ke={class:"header_title"},Ye={class:"pagination"},Je=e.defineComponent({__name:"index",props:{maxHeight:{type:Number,required:!1,default:550},size:{type:String,required:!1,default:"default"},tableData:{type:Array,required:!1,default:()=>[]},headStyle:{type:null,required:!1,default:{}},tableColumn:{type:Array,required:!1,default:()=>[]},stripe:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},highLight:{type:Boolean,required:!1,default:!1},type:{type:String,required:!1},typeLabel:{type:String,required:!1,default:"\u5E8F\u53F7"},typeWidth:{type:Number,required:!1,default:60},typeIsFixed:{type:Boolean,required:!1},operate:{type:Boolean,required:!1},operateSize:{type:String,required:!1,default:"default"},rowButtonSize:{type:String,required:!1,default:"default"},operateLabel:{type:String,required:!1,default:""},operateWidth:{type:Number,required:!1,default:220},operateIsFixed:{type:Boolean,required:!1},search:{type:Boolean,required:!1},clear:{type:Boolean,required:!1},edit:{type:Boolean,required:!1},delete:{type:Boolean,required:!1},deleteTitle:{type:String,required:!1},pagination:{type:Boolean,required:!1,default:!1},small:{type:Boolean,required:!1,default:!1},total:{type:Number,required:!1,default:0},hideOnSinglePage:{type:Boolean,required:!1,default:!1},defaultSelect:{type:Function,required:!1},defaultSize:{type:Number,required:!1,default:5}},emits:["row-click","row-dblclick","selection-change","search","clear","delete","edit","page-index","page-size","get-ref"],setup(t,{emit:a}){const o=t;let l=e.reactive({pageIndex:1,pageSize:5}),i=e.ref();const s=e.useSlots(),r=d=>{a("row-click",d)},p=d=>{a("row-click",d)},u=d=>{a("selection-change",d)},_=()=>{if(o.tableColumn.length>0)for(let d=0;d<o.tableColumn.length;d++){let h=o.tableColumn[d];l[h.prop]=null}a("clear")},y=()=>{a("search",l)},m=d=>{a("edit",d)},g=d=>{a("delete",d)};return e.watch(()=>l.pageIndex,(d,h)=>{a("page-index",Number(d),Number(h))}),e.watch(()=>l.pageSize,(d,h)=>{a("page-size",Number(d),Number(h))}),e.onMounted(()=>{if(o.tableColumn.length>0)for(let d=0;d<o.tableColumn.length;d++){let h=o.tableColumn[d];l[h.prop]=null}o.tableData.forEach(d=>{o.defaultSelect&&o.type=="selection"&&o.defaultSelect(d)&&i.value.toggleRowSelection(d,void 0,!1)}),l.pageSize=o.defaultSize}),(d,h)=>{const x=e.resolveComponent("el-table-column"),$=e.resolveComponent("el-input"),Qe=e.resolveComponent("el-input-number"),Ze=e.resolveComponent("el-option"),et=e.resolveComponent("el-select"),k=e.resolveComponent("el-date-picker"),M=e.resolveComponent("el-time-picker"),tt=e.resolveComponent("el-switch"),S=e.resolveComponent("el-button"),nt=e.resolveComponent("el-popconfirm"),at=e.resolveComponent("el-table"),lt=e.resolveComponent("el-pagination");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(s).header?(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(d.$slots,"header",{},void 0,!0)])):e.createCommentVNode("v-if",!0),e.createVNode(at,{data:t.tableData,class:e.normalizeClass([t.size&&t.size=="small"?"mini-table":"table"]),"max-height":t.maxHeight,size:t.size,stripe:t.stripe,border:t.border,"highlight-current-row":t.highLight,onRowClick:r,onRowDblclick:p,onSelectionChange:u,ref_key:"tableRef",ref:i,"header-cell-style":t.headStyle},{default:e.withCtx(()=>[t.type&&t.type=="index"?(e.openBlock(),e.createBlock(x,{key:0,align:"center",type:"index",width:t.typeWidth+"px",fixed:t.typeIsFixed?"left":!1,label:t.typeLabel},null,8,["width","fixed","label"])):e.createCommentVNode("v-if",!0),t.type=="selection"?(e.openBlock(),e.createBlock(x,{key:1,align:"center",type:"selection",width:t.typeWidth+"px",fixed:t.typeIsFixed?"left":!1},null,8,["width","fixed"])):e.createCommentVNode("v-if",!0),t.type=="expand"?(e.openBlock(),e.createBlock(x,{key:2,align:"center",type:"expand",width:t.typeWidth+"px",fixed:t.typeIsFixed?"left":!1,label:t.typeLabel},{default:e.withCtx(n=>[e.renderSlot(d.$slots,"expand",{row:n.row},void 0,!0)]),_:3},8,["width","fixed","label"])):e.createCommentVNode("v-if",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tableColumn,n=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[n.hidden?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(x,{key:0,prop:n.costom?!1:n.prop,width:n.width?n.width:"",fixed:n.fixed?n.fixed:!1,align:n.align?n.align:"left","show-overflow-tooltip":!!n.overflow},e.createSlots({header:e.withCtx(()=>[e.createElementVNode("div",ve,e.toDisplayString(n.label),1),e.createCommentVNode(" \u6587\u672C\u641C\u7D22\u6846 "),n.search&&(!n.type||n.type=="text")?(e.openBlock(),e.createBlock($,{key:0,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,size:n.size,clearable:"",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),disabled:n.disabled,placeholder:n.placeholder?n.placeholder:"\u8BF7\u8F93\u5165"+n.label,class:e.normalizeClass([n.align&&n.align=="center"?"center":""]),onKeyup:e.withKeys(y,["enter","native"])},null,8,["modelValue","onUpdate:modelValue","size","style","disabled","placeholder","class","onKeyup"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u6570\u5B57\u6846\u641C\u7D22 "),n.search&&n.type=="number"?(e.openBlock(),e.createBlock(Qe,{key:1,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,size:n.size,clearable:"",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),disabled:n.disabled,placeholder:n.placeholder?n.placeholder:"\u8BF7\u8F93\u5165"+n.label,class:e.normalizeClass([n.align&&n.align=="center"?"center":""]),max:n.max!=null?n.max:1/0,min:n.min!=null?n.min:-1/0,step:n.step!=null?n.step:1,onKeyup:e.withKeys(y,["enter","native"])},null,8,["modelValue","onUpdate:modelValue","size","style","disabled","placeholder","class","max","min","step","onKeyup"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u9009\u62E9\u641C\u7D22 "),n.search&&n.type=="select"?(e.openBlock(),e.createBlock(et,{key:2,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,size:n.size,clearable:"",filterable:"",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),disabled:n.disabled,multiple:n.multiple,"collapse-tags":n.omit,placeholder:n.placeholder?n.placeholder:"\u8BF7\u9009\u62E9"+n.label,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.options,c=>(e.openBlock(),e.createBlock(Ze,{label:c.label?c.label:c.value,value:c.value,disabled:c.disabled},null,8,["label","value","disabled"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue","size","style","disabled","multiple","collapse-tags","placeholder","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u65E5\u671F\u9009\u62E9 "),n.search&&n.type=="date"?(e.openBlock(),e.createBlock(k,{key:3,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,type:"date",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":""),placeholder:n.placeholder?n.placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",size:n.size,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","style","placeholder","size","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u65F6\u95F4\u9009\u62E9 "),n.search&&n.type=="time"?(e.openBlock(),e.createBlock(M,{key:4,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,"arrow-control":"",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),placeholder:n.placeholder?n.placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",size:n.size,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","style","placeholder","size","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u65E5\u671F\u65F6\u95F4\u641C\u7D22 "),n.search&&n.type=="datetime"?(e.openBlock(),e.createBlock(k,{key:5,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,type:"datetime",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),placeholder:n.placeholder?n.placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4",size:n.size,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","style","placeholder","size","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u65E5\u671F\u8303\u56F4\u9009\u62E9 "),n.search&&n.type=="daterange"?(e.openBlock(),e.createBlock(k,{key:6,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,type:"daterange","range-separator":"-","start-placeholder":n.placeholder?n.placeholder.split("&&")[0]:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F","end-placeholder":n.placeholder?n.placeholder.split("&&")[1]:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),size:n.size,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","style","size","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u65F6\u95F4\u8303\u56F4\u9009\u62E9 "),n.search&&n.type=="timerange"?(e.openBlock(),e.createBlock(M,{key:7,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,"is-range":"","arrow-control":"","range-separator":"-","start-placeholder":n.placeholder?n.placeholder.split("&&")[0]:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4","end-placeholder":n.placeholder?n.placeholder.split("&&")[1]:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),size:n.size,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","style","size","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u65E5\u671F\u65F6\u95F4\u8303\u56F4\u9009\u62E9 "),n.search&&n.type=="datetimerange"?(e.openBlock(),e.createBlock(k,{key:8,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,type:"datetimerange","range-separator":"-","start-placeholder":n.placeholder?n.placeholder.split("&&")[0]:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F\u65F6\u95F4","end-placeholder":n.placeholder?n.placeholder.split("&&")[1]:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F\u65F6\u95F4",style:e.normalizeStyle(n.searchWidth?"width: "+n.searchWidth+"px;":"width: 92%"),size:n.size,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","start-placeholder","end-placeholder","style","size","class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" \u5F00\u5173 "),n.search&&n.type=="switch"?(e.openBlock(),e.createBlock(tt,{key:9,modelValue:e.unref(l)[n.prop],"onUpdate:modelValue":c=>e.unref(l)[n.prop]=c,size:n.size,"active-text":n.openText,"inactive-text":n.closeText,class:e.normalizeClass([n.align&&n.align=="center"?"center":""])},null,8,["modelValue","onUpdate:modelValue","size","active-text","inactive-text","class"])):e.createCommentVNode("v-if",!0)]),_:2},[n.costom?{name:"default",fn:e.withCtx(c=>[e.createElementVNode("span",{innerHTML:n.costom?n.costom(c.row):""},null,8,Ge)]),key:"0"}:void 0]),1032,["prop","width","fixed","align","show-overflow-tooltip"]))],64))),256)),t.operate?(e.openBlock(),e.createBlock(x,{key:3,align:"center",width:t.operateWidth?t.operateWidth:"",fixed:t.operateIsFixed?"right":!1},{header:e.withCtx(()=>[e.createElementVNode("div",Ke,e.toDisplayString(t.operateLabel),1),e.renderSlot(d.$slots,"operate-front",{},void 0,!0),t.search?(e.openBlock(),e.createBlock(S,{key:0,type:"primary",size:t.operateSize,icon:e.unref(Ee),onClick:y},{default:e.withCtx(()=>[e.createTextVNode("\u641C\u7D22")]),_:1},8,["size","icon"])):e.createCommentVNode("v-if",!0),e.renderSlot(d.$slots,"operate-middle",{},void 0,!0),t.clear?(e.openBlock(),e.createBlock(S,{key:1,type:"info",size:t.operateSize,icon:e.unref(v),onClick:_},{default:e.withCtx(()=>[e.createTextVNode("\u6E05\u7A7A")]),_:1},8,["size","icon"])):e.createCommentVNode("v-if",!0),e.renderSlot(d.$slots,"operate",{},void 0,!0)]),default:e.withCtx(n=>[e.renderSlot(d.$slots,"row-operate-front",{row:n.row},void 0,!0),t.edit?(e.openBlock(),e.createBlock(S,{key:0,link:"",type:"primary",size:t.rowButtonSize,icon:e.unref(_e),onClick:c=>m(n.row)},{default:e.withCtx(()=>[e.createTextVNode("\u4FEE\u6539")]),_:2},1032,["size","icon","onClick"])):e.createCommentVNode("v-if",!0),e.renderSlot(d.$slots,"row-operate-middle",{row:n.row},void 0,!0),t.delete?(e.openBlock(),e.createBlock(nt,{key:1,"confirm-button-text":"\u5426","cancel-button-text":"\u662F","confirm-button-type":"text","cancel-button-type":"danger",icon:e.unref(le),width:"auto",onCancel:c=>g(n.row),title:t.deleteTitle?t.deleteTitle:"\u662F\u5426\u8981\u5220\u9664\u5F53\u524D\u884C\uFF1F"},{reference:e.withCtx(()=>[e.createVNode(S,{link:"",type:"danger",size:t.rowButtonSize,icon:e.unref(ce)},{default:e.withCtx(()=>[e.createTextVNode("\u5220\u9664")]),_:1},8,["size","icon"])]),_:2},1032,["icon","onCancel","title"])):e.createCommentVNode("v-if",!0),e.renderSlot(d.$slots,"row-operate",{row:n.row},void 0,!0)]),_:3},8,["width","fixed"])):e.createCommentVNode("v-if",!0)]),_:3},8,["data","class","max-height","size","stripe","border","highlight-current-row","header-cell-style"]),e.createElementVNode("div",Ye,[t.pagination?(e.openBlock(),e.createBlock(lt,{key:0,"current-page":e.unref(l).pageIndex,"onUpdate:current-page":h[0]||(h[0]=n=>e.unref(l).pageIndex=n),"page-size":e.unref(l).pageSize,"onUpdate:page-size":h[1]||(h[1]=n=>e.unref(l).pageSize=n),small:t.small,"hide-on-Single-page":t.hideOnSinglePage,background:"",layout:"prev, pager, next, total, jumper, sizes","page-sizes":[5,10,20,50],total:t.total,class:"mt-4"},null,8,["current-page","page-size","small","hide-on-Single-page","total"])):e.createCommentVNode("v-if",!0)])],64)}}}),pt="",P=C(Je,[["__scopeId","data-v-f4c855de"],["__file","D:/Code/front/dld-vue-ui/src/packages/TableForm/index.vue"]]),Xe={install:t=>{t.component("SplitPanes",w),t.component("Pane",B),t.component("UpLoadFile",E),t.component("Layout",F),t.component("TableForm",P),t.component("UpLoadFiles",N)}};f.Layout=F,f.Pane=B,f.SplitPanes=w,f.TableForm=P,f.UpLoadFile=E,f.UpLoadFiles=N,f.default=Xe,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -15,6 +15,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
15
15
|
required: false;
|
|
16
16
|
default: () => never[];
|
|
17
17
|
};
|
|
18
|
+
headStyle: {
|
|
19
|
+
type: null;
|
|
20
|
+
required: false;
|
|
21
|
+
default: {};
|
|
22
|
+
};
|
|
18
23
|
tableColumn: {
|
|
19
24
|
type: ArrayConstructor;
|
|
20
25
|
required: false;
|
|
@@ -125,6 +130,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
125
130
|
type: FunctionConstructor;
|
|
126
131
|
required: false;
|
|
127
132
|
};
|
|
133
|
+
defaultSize: {
|
|
134
|
+
type: NumberConstructor;
|
|
135
|
+
required: false;
|
|
136
|
+
default: number;
|
|
137
|
+
};
|
|
128
138
|
}, {
|
|
129
139
|
props: any;
|
|
130
140
|
emits: {
|
|
@@ -172,6 +182,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
172
182
|
required: false;
|
|
173
183
|
default: () => never[];
|
|
174
184
|
};
|
|
185
|
+
headStyle: {
|
|
186
|
+
type: null;
|
|
187
|
+
required: false;
|
|
188
|
+
default: {};
|
|
189
|
+
};
|
|
175
190
|
tableColumn: {
|
|
176
191
|
type: ArrayConstructor;
|
|
177
192
|
required: false;
|
|
@@ -282,6 +297,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
282
297
|
type: FunctionConstructor;
|
|
283
298
|
required: false;
|
|
284
299
|
};
|
|
300
|
+
defaultSize: {
|
|
301
|
+
type: NumberConstructor;
|
|
302
|
+
required: false;
|
|
303
|
+
default: number;
|
|
304
|
+
};
|
|
285
305
|
}>> & {
|
|
286
306
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
287
307
|
"onRow-click"?: ((...args: any[]) => any) | undefined;
|
|
@@ -301,6 +321,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
301
321
|
edit: boolean;
|
|
302
322
|
maxHeight: number;
|
|
303
323
|
tableData: unknown[];
|
|
324
|
+
headStyle: any;
|
|
304
325
|
tableColumn: unknown[];
|
|
305
326
|
stripe: boolean;
|
|
306
327
|
border: boolean;
|
|
@@ -318,5 +339,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
318
339
|
small: boolean;
|
|
319
340
|
total: number;
|
|
320
341
|
hideOnSinglePage: boolean;
|
|
342
|
+
defaultSize: number;
|
|
321
343
|
}>;
|
|
322
344
|
export default _sfc_main;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.splitpanes[data-v-4226b5d2] .splitpanes__splitter{min-width:4px;min-height:4px}.fileupload[data-v-83b9cdd7]{overflow-x:auto}.btn[data-v-83b9cdd7]{margin-left:5px;margin-right:5px}.filename[data-v-83b9cdd7]{font-size:12px;text-indent:1em}.filename[data-v-83b9cdd7]:hover{background:rgb(228,228,228)}.filename[data-v-50d3310f]{width:100%;height:22px;font-size:13px;position:relative}.filename[data-v-50d3310f]:hover{background:rgb(245,245,245)}.filename .content[data-v-50d3310f]{position:absolute;left:0px;top:3px;text-indent:1em}.filename .operation[data-v-50d3310f]{position:absolute;right:5px;top:3px}.container[data-v-5d747d9d]{height:100%;background:rgb(241,241,241)}.container .aside[data-v-5d747d9d]{height:100%;background:#fff;margin-right:4px;transition:width .3s linear}.container .aside[data-v-5d747d9d]::-webkit-scrollbar{height:7px;width:7px}.container .aside[data-v-5d747d9d]::-webkit-scrollbar-thumb{border-radius:4px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);background:#b6dcfd}.container .aside[data-v-5d747d9d]::-webkit-scrollbar-track{-webkit-box-shadow:0;border-radius:0;background:#f6f8ff}.container .main[data-v-5d747d9d]{height:100%;padding:0;margin-left:0}.container .main .inside_container[data-v-5d747d9d]{height:100%;margin-left:0}.container .main .inside_container .inside_header[data-v-5d747d9d]{padding:5px;background:#fff;margin-bottom:2px}.container .main .inside_container .inside_main[data-v-5d747d9d]{padding:0;background:#fff}.container .main .inside_container .inside_main[data-v-5d747d9d]::-webkit-scrollbar{height:7px;width:7px}.container .main .inside_container .inside_main[data-v-5d747d9d]::-webkit-scrollbar-thumb{border-radius:4px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);background:#b6dcfd}.container .main .inside_container .inside_main[data-v-5d747d9d]::-webkit-scrollbar-track{-webkit-box-shadow:0;border-radius:0;background:#f6f8ff}.header[data-v-f4c855de]{text-align:right;margin-bottom:2px}.center[data-v-f4c855de] .el-input__inner{text-align:center}.table[data-v-f4c855de] .el-table__cell{padding:4px 0}.mini-table[data-v-f4c855de] .el-table__cell{padding:2px 0}.pagination[data-v-f4c855de]{display:flex;justify-content:flex-end;margin-top:2px}
|
|
1
|
+
.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.splitpanes[data-v-4226b5d2] .splitpanes__splitter{min-width:4px;min-height:4px}.fileupload[data-v-83b9cdd7]{overflow-x:auto}.btn[data-v-83b9cdd7]{margin-left:5px;margin-right:5px}.filename[data-v-83b9cdd7]{font-size:12px;text-indent:1em}.filename[data-v-83b9cdd7]:hover{background:rgb(228,228,228)}.filename[data-v-50d3310f]{width:100%;height:22px;font-size:13px;position:relative}.filename[data-v-50d3310f]:hover{background:rgb(245,245,245)}.filename .content[data-v-50d3310f]{position:absolute;left:0px;top:3px;text-indent:1em}.filename .operation[data-v-50d3310f]{position:absolute;right:5px;top:3px}.container[data-v-5d747d9d]{height:100%;background:rgb(241,241,241)}.container .aside[data-v-5d747d9d]{height:100%;background:#fff;margin-right:4px;transition:width .3s linear}.container .aside[data-v-5d747d9d]::-webkit-scrollbar{height:7px;width:7px}.container .aside[data-v-5d747d9d]::-webkit-scrollbar-thumb{border-radius:4px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);background:#b6dcfd}.container .aside[data-v-5d747d9d]::-webkit-scrollbar-track{-webkit-box-shadow:0;border-radius:0;background:#f6f8ff}.container .main[data-v-5d747d9d]{height:100%;padding:0;margin-left:0}.container .main .inside_container[data-v-5d747d9d]{height:100%;margin-left:0}.container .main .inside_container .inside_header[data-v-5d747d9d]{padding:5px;background:#fff;margin-bottom:2px}.container .main .inside_container .inside_main[data-v-5d747d9d]{padding:0;background:#fff}.container .main .inside_container .inside_main[data-v-5d747d9d]::-webkit-scrollbar{height:7px;width:7px}.container .main .inside_container .inside_main[data-v-5d747d9d]::-webkit-scrollbar-thumb{border-radius:4px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);background:#b6dcfd}.container .main .inside_container .inside_main[data-v-5d747d9d]::-webkit-scrollbar-track{-webkit-box-shadow:0;border-radius:0;background:#f6f8ff}.header[data-v-f4c855de]{text-align:right;margin-bottom:2px}.center[data-v-f4c855de] .el-input__inner,.center[data-v-f4c855de] .el-select__placeholder{text-align:center}.table[data-v-f4c855de] .el-table__cell{padding:4px 0}.mini-table[data-v-f4c855de] .el-table__cell{padding:2px 0}.pagination[data-v-f4c855de]{display:flex;justify-content:flex-end;margin-top:2px}
|