@ganwei-web/gw-base-components-plus 1.0.26 → 1.0.28
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/element-plus-adapter/dist/ElementPlusAdapter.cjs +47 -16
- package/element-plus-adapter/dist/ElementPlusAdapter.cjs.map +1 -1
- package/element-plus-adapter/dist/ElementPlusAdapter.css +15 -4
- package/element-plus-adapter/dist/ElementPlusAdapter.iife.js +47 -16
- package/element-plus-adapter/dist/ElementPlusAdapter.iife.js.map +1 -1
- package/element-plus-adapter/dist/ElementPlusAdapter.js +48 -17
- package/element-plus-adapter/dist/ElementPlusAdapter.js.map +1 -1
- package/equip-list-plus/dist/index.es.js +93 -93
- package/equip-list-plus/dist/index.umd.js +1 -1
- package/equip-list-vue2/dist/index.es.js +147 -119
- package/equip-list-vue3/dist/index.es.js +1214 -1202
- package/equip-list-vue3/dist/index.umd.js +5 -5
- package/equip-select-vue3-java/dist/index.es.js +4723 -0
- package/equip-select-vue3-java/dist/index.umd.js +6 -0
- package/equip-select-vue3-java/dist/style.css +1 -0
- package/equipProcessing/dist/index.es.js +46 -45
- package/equipProcessing/dist/index.umd.js +1 -1
- package/package.json +1 -1
|
@@ -7,16 +7,16 @@ var st = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
7
7
|
* open source under the MIT license
|
|
8
8
|
* https://github.com/tangbc/vue-virtual-scroll-list#readme
|
|
9
9
|
*/
|
|
10
|
-
(function(o, t) {
|
|
11
|
-
(function(e, i) {
|
|
10
|
+
(function (o, t) {
|
|
11
|
+
(function (e, i) {
|
|
12
12
|
o.exports = i(et);
|
|
13
|
-
})(st, function(e) {
|
|
13
|
+
})(st, function (e) {
|
|
14
14
|
e = e && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
15
15
|
function i(u, n) {
|
|
16
16
|
var r = Object.keys(u);
|
|
17
17
|
if (Object.getOwnPropertySymbols) {
|
|
18
18
|
var p = Object.getOwnPropertySymbols(u);
|
|
19
|
-
n && (p = p.filter(function(f) {
|
|
19
|
+
n && (p = p.filter(function (f) {
|
|
20
20
|
return Object.getOwnPropertyDescriptor(u, f).enumerable;
|
|
21
21
|
})), r.push.apply(r, p);
|
|
22
22
|
}
|
|
@@ -25,9 +25,9 @@ var st = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
25
25
|
function s(u) {
|
|
26
26
|
for (var n = 1; n < arguments.length; n++) {
|
|
27
27
|
var r = arguments[n] != null ? arguments[n] : {};
|
|
28
|
-
n % 2 ? i(Object(r), !0).forEach(function(p) {
|
|
28
|
+
n % 2 ? i(Object(r), !0).forEach(function (p) {
|
|
29
29
|
l(u, p, r[p]);
|
|
30
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(u, Object.getOwnPropertyDescriptors(r)) : i(Object(r)).forEach(function(p) {
|
|
30
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(u, Object.getOwnPropertyDescriptors(r)) : i(Object(r)).forEach(function (p) {
|
|
31
31
|
Object.defineProperty(u, p, Object.getOwnPropertyDescriptor(r, p));
|
|
32
32
|
});
|
|
33
33
|
}
|
|
@@ -95,75 +95,75 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
95
95
|
INIT: "INIT",
|
|
96
96
|
FIXED: "FIXED",
|
|
97
97
|
DYNAMIC: "DYNAMIC"
|
|
98
|
-
}, G = 0, z = /* @__PURE__ */ function() {
|
|
98
|
+
}, G = 0, z = /* @__PURE__ */ function () {
|
|
99
99
|
function u(n, r) {
|
|
100
100
|
a(this, u), this.init(n, r);
|
|
101
101
|
}
|
|
102
102
|
return c(u, [{
|
|
103
103
|
key: "init",
|
|
104
|
-
value: function(r, p) {
|
|
104
|
+
value: function (r, p) {
|
|
105
105
|
this.param = r, this.callUpdate = p, this.sizes = /* @__PURE__ */ new Map(), this.firstRangeTotalSize = 0, this.firstRangeAverageSize = 0, this.fixedSizeValue = 0, this.calcType = O.INIT, this.offset = 0, this.direction = "", this.range = /* @__PURE__ */ Object.create(null), r && this.checkRange(0, r.keeps - 1);
|
|
106
106
|
}
|
|
107
107
|
}, {
|
|
108
108
|
key: "destroy",
|
|
109
|
-
value: function() {
|
|
109
|
+
value: function () {
|
|
110
110
|
this.init(null, null);
|
|
111
111
|
}
|
|
112
112
|
}, {
|
|
113
113
|
key: "getRange",
|
|
114
|
-
value: function() {
|
|
114
|
+
value: function () {
|
|
115
115
|
var r = /* @__PURE__ */ Object.create(null);
|
|
116
116
|
return r.start = this.range.start, r.end = this.range.end, r.padFront = this.range.padFront, r.padBehind = this.range.padBehind, r;
|
|
117
117
|
}
|
|
118
118
|
}, {
|
|
119
119
|
key: "isBehind",
|
|
120
|
-
value: function() {
|
|
120
|
+
value: function () {
|
|
121
121
|
return this.direction === y.BEHIND;
|
|
122
122
|
}
|
|
123
123
|
}, {
|
|
124
124
|
key: "isFront",
|
|
125
|
-
value: function() {
|
|
125
|
+
value: function () {
|
|
126
126
|
return this.direction === y.FRONT;
|
|
127
127
|
}
|
|
128
128
|
}, {
|
|
129
129
|
key: "getOffset",
|
|
130
|
-
value: function(r) {
|
|
130
|
+
value: function (r) {
|
|
131
131
|
return (r < 1 ? 0 : this.getIndexOffset(r)) + this.param.slotHeaderSize;
|
|
132
132
|
}
|
|
133
133
|
}, {
|
|
134
134
|
key: "updateParam",
|
|
135
|
-
value: function(r, p) {
|
|
135
|
+
value: function (r, p) {
|
|
136
136
|
var f = this;
|
|
137
|
-
this.param && r in this.param && (r === "uniqueIds" && this.sizes.forEach(function(C, q) {
|
|
137
|
+
this.param && r in this.param && (r === "uniqueIds" && this.sizes.forEach(function (C, q) {
|
|
138
138
|
p.includes(q) || f.sizes.delete(q);
|
|
139
139
|
}), this.param[r] = p);
|
|
140
140
|
}
|
|
141
141
|
}, {
|
|
142
142
|
key: "saveSize",
|
|
143
|
-
value: function(r, p) {
|
|
144
|
-
this.sizes.set(r, p), this.calcType === O.INIT ? (this.fixedSizeValue = p, this.calcType = O.FIXED) : this.calcType === O.FIXED && this.fixedSizeValue !== p && (this.calcType = O.DYNAMIC, delete this.fixedSizeValue), this.calcType !== O.FIXED && typeof this.firstRangeTotalSize < "u" && (this.sizes.size < Math.min(this.param.keeps, this.param.uniqueIds.length) ? (this.firstRangeTotalSize = g(this.sizes.values()).reduce(function(f, C) {
|
|
143
|
+
value: function (r, p) {
|
|
144
|
+
this.sizes.set(r, p), this.calcType === O.INIT ? (this.fixedSizeValue = p, this.calcType = O.FIXED) : this.calcType === O.FIXED && this.fixedSizeValue !== p && (this.calcType = O.DYNAMIC, delete this.fixedSizeValue), this.calcType !== O.FIXED && typeof this.firstRangeTotalSize < "u" && (this.sizes.size < Math.min(this.param.keeps, this.param.uniqueIds.length) ? (this.firstRangeTotalSize = g(this.sizes.values()).reduce(function (f, C) {
|
|
145
145
|
return f + C;
|
|
146
146
|
}, 0), this.firstRangeAverageSize = Math.round(this.firstRangeTotalSize / this.sizes.size)) : delete this.firstRangeTotalSize);
|
|
147
147
|
}
|
|
148
148
|
}, {
|
|
149
149
|
key: "handleDataSourcesChange",
|
|
150
|
-
value: function() {
|
|
150
|
+
value: function () {
|
|
151
151
|
var r = this.range.start;
|
|
152
152
|
this.isFront() ? r = r - G : this.isBehind() && (r = r + G), r = Math.max(r, 0), this.updateRange(this.range.start, this.getEndByStart(r));
|
|
153
153
|
}
|
|
154
154
|
}, {
|
|
155
155
|
key: "handleSlotSizeChange",
|
|
156
|
-
value: function() {
|
|
156
|
+
value: function () {
|
|
157
157
|
this.handleDataSourcesChange();
|
|
158
158
|
}
|
|
159
159
|
}, {
|
|
160
160
|
key: "handleScroll",
|
|
161
|
-
value: function(r) {
|
|
161
|
+
value: function (r) {
|
|
162
162
|
this.direction = r < this.offset || r === 0 ? y.FRONT : y.BEHIND, this.offset = r, this.param && (this.direction === y.FRONT ? this.handleFront() : this.direction === y.BEHIND && this.handleBehind());
|
|
163
163
|
}
|
|
164
164
|
}, {
|
|
165
165
|
key: "handleFront",
|
|
166
|
-
value: function() {
|
|
166
|
+
value: function () {
|
|
167
167
|
var r = this.getScrollOvers();
|
|
168
168
|
if (!(r > this.range.start)) {
|
|
169
169
|
var p = Math.max(r - this.param.buffer, 0);
|
|
@@ -172,19 +172,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
172
172
|
}
|
|
173
173
|
}, {
|
|
174
174
|
key: "handleBehind",
|
|
175
|
-
value: function() {
|
|
175
|
+
value: function () {
|
|
176
176
|
var r = this.getScrollOvers();
|
|
177
177
|
r < this.range.start + this.param.buffer || this.checkRange(r, this.getEndByStart(r));
|
|
178
178
|
}
|
|
179
179
|
}, {
|
|
180
180
|
key: "getScrollOvers",
|
|
181
|
-
value: function() {
|
|
181
|
+
value: function () {
|
|
182
182
|
var r = this.offset - this.param.slotHeaderSize;
|
|
183
183
|
if (r <= 0)
|
|
184
184
|
return 0;
|
|
185
185
|
if (this.isFixedType())
|
|
186
186
|
return Math.floor(r / this.fixedSizeValue);
|
|
187
|
-
for (var p = 0, f = 0, C = 0, q = this.param.uniqueIds.length; p <= q;
|
|
187
|
+
for (var p = 0, f = 0, C = 0, q = this.param.uniqueIds.length; p <= q;) {
|
|
188
188
|
if (f = p + Math.floor((q - p) / 2), C = this.getIndexOffset(f), C === r)
|
|
189
189
|
return f;
|
|
190
190
|
C < r ? p = f + 1 : C > r && (q = f - 1);
|
|
@@ -193,7 +193,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
193
193
|
}
|
|
194
194
|
}, {
|
|
195
195
|
key: "getIndexOffset",
|
|
196
|
-
value: function(r) {
|
|
196
|
+
value: function (r) {
|
|
197
197
|
if (!r)
|
|
198
198
|
return 0;
|
|
199
199
|
for (var p = 0, f = 0, C = 0; C < r; C++)
|
|
@@ -202,45 +202,45 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
202
202
|
}
|
|
203
203
|
}, {
|
|
204
204
|
key: "isFixedType",
|
|
205
|
-
value: function() {
|
|
205
|
+
value: function () {
|
|
206
206
|
return this.calcType === O.FIXED;
|
|
207
207
|
}
|
|
208
208
|
}, {
|
|
209
209
|
key: "getLastIndex",
|
|
210
|
-
value: function() {
|
|
210
|
+
value: function () {
|
|
211
211
|
return this.param.uniqueIds.length - 1;
|
|
212
212
|
}
|
|
213
213
|
}, {
|
|
214
214
|
key: "checkRange",
|
|
215
|
-
value: function(r, p) {
|
|
215
|
+
value: function (r, p) {
|
|
216
216
|
var f = this.param.keeps, C = this.param.uniqueIds.length;
|
|
217
217
|
C <= f ? (r = 0, p = this.getLastIndex()) : p - r < f - 1 && (r = p - f + 1), this.range.start !== r && this.updateRange(r, p);
|
|
218
218
|
}
|
|
219
219
|
}, {
|
|
220
220
|
key: "updateRange",
|
|
221
|
-
value: function(r, p) {
|
|
221
|
+
value: function (r, p) {
|
|
222
222
|
this.range.start = r, this.range.end = p, this.range.padFront = this.getPadFront(), this.range.padBehind = this.getPadBehind(), this.callUpdate(this.getRange());
|
|
223
223
|
}
|
|
224
224
|
}, {
|
|
225
225
|
key: "getEndByStart",
|
|
226
|
-
value: function(r) {
|
|
226
|
+
value: function (r) {
|
|
227
227
|
var p = r + this.param.keeps - 1, f = Math.min(p, this.getLastIndex());
|
|
228
228
|
return f;
|
|
229
229
|
}
|
|
230
230
|
}, {
|
|
231
231
|
key: "getPadFront",
|
|
232
|
-
value: function() {
|
|
232
|
+
value: function () {
|
|
233
233
|
return this.isFixedType() ? this.fixedSizeValue * this.range.start : this.getIndexOffset(this.range.start);
|
|
234
234
|
}
|
|
235
235
|
}, {
|
|
236
236
|
key: "getPadBehind",
|
|
237
|
-
value: function() {
|
|
237
|
+
value: function () {
|
|
238
238
|
var r = this.range.end, p = this.getLastIndex();
|
|
239
239
|
return this.isFixedType() ? (p - r) * this.fixedSizeValue : (p - r) * this.getEstimateSize();
|
|
240
240
|
}
|
|
241
241
|
}, {
|
|
242
242
|
key: "getEstimateSize",
|
|
243
|
-
value: function() {
|
|
243
|
+
value: function () {
|
|
244
244
|
return this.isFixedType() ? this.fixedSizeValue : this.firstRangeAverageSize || this.param.estimateSize;
|
|
245
245
|
}
|
|
246
246
|
}]), u;
|
|
@@ -391,33 +391,33 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
391
391
|
type: Boolean
|
|
392
392
|
}
|
|
393
393
|
}, D = {
|
|
394
|
-
created: function() {
|
|
394
|
+
created: function () {
|
|
395
395
|
this.shapeKey = this.horizontal ? "offsetWidth" : "offsetHeight";
|
|
396
396
|
},
|
|
397
|
-
mounted: function() {
|
|
397
|
+
mounted: function () {
|
|
398
398
|
var n = this;
|
|
399
|
-
typeof ResizeObserver < "u" && (this.resizeObserver = new ResizeObserver(function() {
|
|
399
|
+
typeof ResizeObserver < "u" && (this.resizeObserver = new ResizeObserver(function () {
|
|
400
400
|
n.dispatchSizeChange();
|
|
401
401
|
}), this.resizeObserver.observe(this.$el));
|
|
402
402
|
},
|
|
403
|
-
updated: function() {
|
|
403
|
+
updated: function () {
|
|
404
404
|
this.resizeObserver.observe(this.$el);
|
|
405
405
|
},
|
|
406
|
-
beforeDestroy: function() {
|
|
406
|
+
beforeDestroy: function () {
|
|
407
407
|
this.resizeObserver && (this.resizeObserver.disconnect(), this.resizeObserver = null);
|
|
408
408
|
},
|
|
409
409
|
methods: {
|
|
410
|
-
getCurrentSize: function() {
|
|
410
|
+
getCurrentSize: function () {
|
|
411
411
|
return this.$el ? this.$el[this.shapeKey] : 0;
|
|
412
412
|
},
|
|
413
|
-
dispatchSizeChange: function() {
|
|
413
|
+
dispatchSizeChange: function () {
|
|
414
414
|
this.$parent.$emit(this.event, this.uniqueKey, this.getCurrentSize(), this.hasInitial);
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
}, Y = e.component("virtual-list-item", {
|
|
418
418
|
mixins: [D],
|
|
419
419
|
props: J,
|
|
420
|
-
render: function(n) {
|
|
420
|
+
render: function (n) {
|
|
421
421
|
var r = this.tag, p = this.component, f = this.extraProps, C = f === void 0 ? {} : f, q = this.index, v = this.source, N = this.scopedSlots, I = N === void 0 ? {} : N, x = this.uniqueKey, M = this.slotComponent, j = s(s({}, C), {}, {
|
|
422
422
|
source: v,
|
|
423
423
|
index: q
|
|
@@ -439,7 +439,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
439
439
|
}), K = e.component("virtual-list-slot", {
|
|
440
440
|
mixins: [D],
|
|
441
441
|
props: X,
|
|
442
|
-
render: function(n) {
|
|
442
|
+
render: function (n) {
|
|
443
443
|
var r = this.tag, p = this.uniqueKey;
|
|
444
444
|
return n(r, {
|
|
445
445
|
key: p,
|
|
@@ -456,72 +456,72 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
456
456
|
FOOTER: "tfoot"
|
|
457
457
|
}, Q = e.component("virtual-list", {
|
|
458
458
|
props: V,
|
|
459
|
-
data: function() {
|
|
459
|
+
data: function () {
|
|
460
460
|
return {
|
|
461
461
|
range: null
|
|
462
462
|
};
|
|
463
463
|
},
|
|
464
464
|
watch: {
|
|
465
|
-
"dataSources.length": function() {
|
|
465
|
+
"dataSources.length": function () {
|
|
466
466
|
this.virtual.updateParam("uniqueIds", this.getUniqueIdFromDataSources()), this.virtual.handleDataSourcesChange();
|
|
467
467
|
},
|
|
468
|
-
keeps: function(n) {
|
|
468
|
+
keeps: function (n) {
|
|
469
469
|
this.virtual.updateParam("keeps", n), this.virtual.handleSlotSizeChange();
|
|
470
470
|
},
|
|
471
|
-
start: function(n) {
|
|
471
|
+
start: function (n) {
|
|
472
472
|
this.scrollToIndex(n);
|
|
473
473
|
},
|
|
474
|
-
offset: function(n) {
|
|
474
|
+
offset: function (n) {
|
|
475
475
|
this.scrollToOffset(n);
|
|
476
476
|
}
|
|
477
477
|
},
|
|
478
|
-
created: function() {
|
|
478
|
+
created: function () {
|
|
479
479
|
this.isHorizontal = this.direction === "horizontal", this.directionKey = this.isHorizontal ? "scrollLeft" : "scrollTop", this.installVirtual(), this.$on(T.ITEM, this.onItemResized), (this.$slots.header || this.$slots.footer) && this.$on(T.SLOT, this.onSlotResized);
|
|
480
480
|
},
|
|
481
|
-
activated: function() {
|
|
481
|
+
activated: function () {
|
|
482
482
|
this.scrollToOffset(this.virtual.offset), this.pageMode && document.addEventListener("scroll", this.onScroll, {
|
|
483
483
|
passive: !1
|
|
484
484
|
});
|
|
485
485
|
},
|
|
486
|
-
deactivated: function() {
|
|
486
|
+
deactivated: function () {
|
|
487
487
|
this.pageMode && document.removeEventListener("scroll", this.onScroll);
|
|
488
488
|
},
|
|
489
|
-
mounted: function() {
|
|
489
|
+
mounted: function () {
|
|
490
490
|
this.start ? this.scrollToIndex(this.start) : this.offset && this.scrollToOffset(this.offset), this.pageMode && (this.updatePageModeFront(), document.addEventListener("scroll", this.onScroll, {
|
|
491
491
|
passive: !1
|
|
492
492
|
}));
|
|
493
493
|
},
|
|
494
|
-
beforeDestroy: function() {
|
|
494
|
+
beforeDestroy: function () {
|
|
495
495
|
this.virtual.destroy(), this.pageMode && document.removeEventListener("scroll", this.onScroll);
|
|
496
496
|
},
|
|
497
497
|
methods: {
|
|
498
|
-
getSize: function(n) {
|
|
498
|
+
getSize: function (n) {
|
|
499
499
|
return this.virtual.sizes.get(n);
|
|
500
500
|
},
|
|
501
|
-
getSizes: function() {
|
|
501
|
+
getSizes: function () {
|
|
502
502
|
return this.virtual.sizes.size;
|
|
503
503
|
},
|
|
504
|
-
getOffset: function() {
|
|
504
|
+
getOffset: function () {
|
|
505
505
|
if (this.pageMode)
|
|
506
506
|
return document.documentElement[this.directionKey] || document.body[this.directionKey];
|
|
507
507
|
var n = this.$refs.root;
|
|
508
508
|
return n ? Math.ceil(n[this.directionKey]) : 0;
|
|
509
509
|
},
|
|
510
|
-
getClientSize: function() {
|
|
510
|
+
getClientSize: function () {
|
|
511
511
|
var n = this.isHorizontal ? "clientWidth" : "clientHeight";
|
|
512
512
|
if (this.pageMode)
|
|
513
513
|
return document.documentElement[n] || document.body[n];
|
|
514
514
|
var r = this.$refs.root;
|
|
515
515
|
return r ? Math.ceil(r[n]) : 0;
|
|
516
516
|
},
|
|
517
|
-
getScrollSize: function() {
|
|
517
|
+
getScrollSize: function () {
|
|
518
518
|
var n = this.isHorizontal ? "scrollWidth" : "scrollHeight";
|
|
519
519
|
if (this.pageMode)
|
|
520
520
|
return document.documentElement[n] || document.body[n];
|
|
521
521
|
var r = this.$refs.root;
|
|
522
522
|
return r ? Math.ceil(r[n]) : 0;
|
|
523
523
|
},
|
|
524
|
-
scrollToOffset: function(n) {
|
|
524
|
+
scrollToOffset: function (n) {
|
|
525
525
|
if (this.pageMode)
|
|
526
526
|
document.body[this.directionKey] = n, document.documentElement[this.directionKey] = n;
|
|
527
527
|
else {
|
|
@@ -529,7 +529,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
529
529
|
r && (r[this.directionKey] = n);
|
|
530
530
|
}
|
|
531
531
|
},
|
|
532
|
-
scrollToIndex: function(n) {
|
|
532
|
+
scrollToIndex: function (n) {
|
|
533
533
|
if (n >= this.dataSources.length - 1)
|
|
534
534
|
this.scrollToBottom();
|
|
535
535
|
else {
|
|
@@ -537,26 +537,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
537
537
|
this.scrollToOffset(r);
|
|
538
538
|
}
|
|
539
539
|
},
|
|
540
|
-
scrollToBottom: function() {
|
|
540
|
+
scrollToBottom: function () {
|
|
541
541
|
var n = this, r = this.$refs.shepherd;
|
|
542
542
|
if (r) {
|
|
543
543
|
var p = r[this.isHorizontal ? "offsetLeft" : "offsetTop"];
|
|
544
|
-
this.scrollToOffset(p), setTimeout(function() {
|
|
544
|
+
this.scrollToOffset(p), setTimeout(function () {
|
|
545
545
|
n.getOffset() + n.getClientSize() + 1 < n.getScrollSize() && n.scrollToBottom();
|
|
546
546
|
}, 3);
|
|
547
547
|
}
|
|
548
548
|
},
|
|
549
|
-
updatePageModeFront: function() {
|
|
549
|
+
updatePageModeFront: function () {
|
|
550
550
|
var n = this.$refs.root;
|
|
551
551
|
if (n) {
|
|
552
552
|
var r = n.getBoundingClientRect(), p = n.ownerDocument.defaultView, f = this.isHorizontal ? r.left + p.pageXOffset : r.top + p.pageYOffset;
|
|
553
553
|
this.virtual.updateParam("slotHeaderSize", f);
|
|
554
554
|
}
|
|
555
555
|
},
|
|
556
|
-
reset: function() {
|
|
556
|
+
reset: function () {
|
|
557
557
|
this.virtual.destroy(), this.scrollToOffset(0), this.installVirtual();
|
|
558
558
|
},
|
|
559
|
-
installVirtual: function() {
|
|
559
|
+
installVirtual: function () {
|
|
560
560
|
this.virtual = new z({
|
|
561
561
|
slotHeaderSize: 0,
|
|
562
562
|
slotFooterSize: 0,
|
|
@@ -566,29 +566,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
566
566
|
uniqueIds: this.getUniqueIdFromDataSources()
|
|
567
567
|
}, this.onRangeChanged), this.range = this.virtual.getRange();
|
|
568
568
|
},
|
|
569
|
-
getUniqueIdFromDataSources: function() {
|
|
569
|
+
getUniqueIdFromDataSources: function () {
|
|
570
570
|
var n = this.dataKey;
|
|
571
|
-
return this.dataSources.map(function(r) {
|
|
571
|
+
return this.dataSources.map(function (r) {
|
|
572
572
|
return typeof n == "function" ? n(r) : r[n];
|
|
573
573
|
});
|
|
574
574
|
},
|
|
575
|
-
onItemResized: function(n, r) {
|
|
575
|
+
onItemResized: function (n, r) {
|
|
576
576
|
this.virtual.saveSize(n, r), this.$emit("resized", n, r);
|
|
577
577
|
},
|
|
578
|
-
onSlotResized: function(n, r, p) {
|
|
578
|
+
onSlotResized: function (n, r, p) {
|
|
579
579
|
n === L.HEADER ? this.virtual.updateParam("slotHeaderSize", r) : n === L.FOOTER && this.virtual.updateParam("slotFooterSize", r), p && this.virtual.handleSlotSizeChange();
|
|
580
580
|
},
|
|
581
|
-
onRangeChanged: function(n) {
|
|
581
|
+
onRangeChanged: function (n) {
|
|
582
582
|
this.range = n;
|
|
583
583
|
},
|
|
584
|
-
onScroll: function(n) {
|
|
584
|
+
onScroll: function (n) {
|
|
585
585
|
var r = this.getOffset(), p = this.getClientSize(), f = this.getScrollSize();
|
|
586
586
|
r < 0 || r + p > f + 1 || !f || (this.virtual.handleScroll(r), this.emitEvent(r, p, f, n));
|
|
587
587
|
},
|
|
588
|
-
emitEvent: function(n, r, p, f) {
|
|
588
|
+
emitEvent: function (n, r, p, f) {
|
|
589
589
|
this.$emit("scroll", f, this.virtual.getRange()), this.virtual.isFront() && !!this.dataSources.length && n - this.topThreshold <= 0 ? this.$emit("totop") : this.virtual.isBehind() && n + r + this.bottomThreshold >= p && this.$emit("tobottom");
|
|
590
590
|
},
|
|
591
|
-
getRenderSlots: function(n) {
|
|
591
|
+
getRenderSlots: function (n) {
|
|
592
592
|
for (var r = [], p = this.range, f = p.start, C = p.end, q = this.dataSources, v = this.dataKey, N = this.itemClass, I = this.itemTag, x = this.itemStyle, M = this.isHorizontal, j = this.extraProps, A = this.dataComponent, R = this.itemScopedSlots, F = this.$scopedSlots && this.$scopedSlots.item, E = f; E <= C; E++) {
|
|
593
593
|
var $ = q[E];
|
|
594
594
|
if ($) {
|
|
@@ -615,7 +615,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
615
615
|
return r;
|
|
616
616
|
}
|
|
617
617
|
},
|
|
618
|
-
render: function(n) {
|
|
618
|
+
render: function (n) {
|
|
619
619
|
var r = this.$slots, p = r.header, f = r.footer, C = this.range, q = C.padFront, v = C.padBehind, N = this.isHorizontal, I = this.pageMode, x = this.rootTag, M = this.wrapTag, j = this.wrapClass, A = this.wrapStyle, R = this.headerTag, F = this.headerClass, E = this.headerStyle, $ = this.footerTag, _ = this.footerClass, Z = this.footerStyle, U = {
|
|
620
620
|
padding: N ? "0px ".concat(v, "px 0px ").concat(q, "px") : "".concat(q, "px 0px ").concat(v, "px")
|
|
621
621
|
}, tt = A ? Object.assign({}, A, U) : U;
|
|
@@ -1224,7 +1224,7 @@ class k {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
static generateUUID() {
|
|
1226
1226
|
let t = new Date().getTime();
|
|
1227
|
-
return window.performance && typeof window.performance.now == "function" && (t += performance.now()), "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(i) {
|
|
1227
|
+
return window.performance && typeof window.performance.now == "function" && (t += performance.now()), "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (i) {
|
|
1228
1228
|
let s = (t + Math.random() * 16) % 16 | 0;
|
|
1229
1229
|
return t = Math.floor(t / 16), (i === "x" ? s : s & 3 | 8).toString(16);
|
|
1230
1230
|
});
|
|
@@ -1256,9 +1256,9 @@ function B(o, t, e, i, s, a, h, c) {
|
|
|
1256
1256
|
var l = typeof o == "function" ? o.options : o;
|
|
1257
1257
|
t && (l.render = t, l.staticRenderFns = e, l._compiled = !0), i && (l.functional = !0), a && (l._scopeId = "data-v-" + a);
|
|
1258
1258
|
var g;
|
|
1259
|
-
if (h ? (g = function(S) {
|
|
1259
|
+
if (h ? (g = function (S) {
|
|
1260
1260
|
S = S || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !S && typeof __VUE_SSR_CONTEXT__ < "u" && (S = __VUE_SSR_CONTEXT__), s && s.call(this, S), S && S._registeredComponents && S._registeredComponents.add(h);
|
|
1261
|
-
}, l._ssrRegister = g) : s && (g = c ? function() {
|
|
1261
|
+
}, l._ssrRegister = g) : s && (g = c ? function () {
|
|
1262
1262
|
s.call(
|
|
1263
1263
|
this,
|
|
1264
1264
|
(l.functional ? this.parent : this).$root.$options.shadowRoot
|
|
@@ -1267,7 +1267,7 @@ function B(o, t, e, i, s, a, h, c) {
|
|
|
1267
1267
|
if (l.functional) {
|
|
1268
1268
|
l._injectStyles = g;
|
|
1269
1269
|
var d = l.render;
|
|
1270
|
-
l.render = function(b, m) {
|
|
1270
|
+
l.render = function (b, m) {
|
|
1271
1271
|
return g.call(m), d(b, m);
|
|
1272
1272
|
};
|
|
1273
1273
|
} else {
|
|
@@ -1292,17 +1292,33 @@ const dt = {
|
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
1294
|
};
|
|
1295
|
-
var ft = function() {
|
|
1295
|
+
var ft = function () {
|
|
1296
1296
|
var t = this, e = t._self._c;
|
|
1297
|
-
return e("div", { staticClass: "operates" }, [e("el-popover", {
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
|
|
1297
|
+
return e("div", { staticClass: "operates" }, [e("el-popover", {
|
|
1298
|
+
attrs: { placement: "bottom", trigger: "hover" }, scopedSlots: t._u([{
|
|
1299
|
+
key: "reference", fn: function () {
|
|
1300
|
+
return [e("i", { staticClass: "el-icon-more" })];
|
|
1301
|
+
}, proxy: !0
|
|
1302
|
+
}])
|
|
1303
|
+
}, [e("el-button-group", { staticClass: "new-button-group setModule" }, [e("el-button", {
|
|
1304
|
+
staticClass: "elBtn", attrs: { type: "text", size: "small", icon: "iconfont icon-tubiao20_bianji" }, on: {
|
|
1305
|
+
click: function (i) {
|
|
1306
|
+
return i.stopPropagation(), t.groupEditAndNew(!1, t.source);
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
}, [t._v(" " + t._s(t.$t("equipInfo.poverTips.rename")) + " ")]), e("el-button", {
|
|
1310
|
+
staticClass: "elBtn", attrs: { type: "text", size: "small", icon: "iconfont icon-gw-icon-tianjia1" }, on: {
|
|
1311
|
+
click: function (i) {
|
|
1312
|
+
return t.groupEditAndNew(!0, t.source);
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
}, [t._v(" " + t._s(t.$t("equipInfo.poverTips.newChildGroup")) + " ")]), t.source.level != 1 ? e("el-button", {
|
|
1316
|
+
attrs: { type: "danger", size: "small", icon: "iconfont icon-tubiao20_shanchu" }, on: {
|
|
1317
|
+
click: function (i) {
|
|
1318
|
+
return i.stopPropagation(), t.deleteGroup(t.source);
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
}, [t._v(" " + t._s(t.$t("publics.button.deletes")) + " ")]) : t._e()], 1)], 1)], 1);
|
|
1306
1322
|
}, gt = [], St = /* @__PURE__ */ B(
|
|
1307
1323
|
dt,
|
|
1308
1324
|
ft,
|
|
@@ -1383,7 +1399,7 @@ const Ct = St.exports, wt = {
|
|
|
1383
1399
|
},
|
|
1384
1400
|
computed: {
|
|
1385
1401
|
getColor() {
|
|
1386
|
-
return function(o) {
|
|
1402
|
+
return function (o) {
|
|
1387
1403
|
let t;
|
|
1388
1404
|
switch (o) {
|
|
1389
1405
|
case 0:
|
|
@@ -1429,22 +1445,30 @@ const Ct = St.exports, wt = {
|
|
|
1429
1445
|
}
|
|
1430
1446
|
}
|
|
1431
1447
|
};
|
|
1432
|
-
var bt = function() {
|
|
1448
|
+
var bt = function () {
|
|
1433
1449
|
var t = this, e = t._self._c;
|
|
1434
|
-
return e("div", {
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
{
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1450
|
+
return e("div", {
|
|
1451
|
+
staticClass: "el-tree-node", class: {
|
|
1452
|
+
parent_tag: t.source.isGroup,
|
|
1453
|
+
child_tags: !t.source.isGroup,
|
|
1454
|
+
selectedColor: t.currentSelect === t.source.key && !t.source.isGroup
|
|
1455
|
+
}, on: { click: t.clickFunction }
|
|
1456
|
+
}, [e("div", { staticClass: "el-tree-node__content" }, [e("span", { staticClass: "el-tree__indent", style: { width: (t.source.level - 1) * t.indent + "px" }, attrs: { "aria-hidden": "true" } }), t.source.isGroup ? e("span", {
|
|
1457
|
+
class: [
|
|
1458
|
+
{
|
|
1459
|
+
"is-leaf": !t.source.isGroup,
|
|
1460
|
+
expanded: t.source.isGroup && t.source.expand
|
|
1461
|
+
},
|
|
1462
|
+
"el-tree-node__expand-icon",
|
|
1463
|
+
"el-icon-arrow-right"
|
|
1464
|
+
]
|
|
1465
|
+
}) : t._e(), e("div", { staticClass: "nodeContent" }, [t.showCheckbox ? e("el-checkbox", {
|
|
1466
|
+
attrs: { indeterminate: t.source.indeterminate }, on: { change: t.checkedChange }, model: {
|
|
1467
|
+
value: t.source.checked, callback: function (i) {
|
|
1468
|
+
t.$set(t.source, "checked", i);
|
|
1469
|
+
}, expression: "source.checked"
|
|
1470
|
+
}
|
|
1471
|
+
}) : t._e(), t.showStatus ? e("span", { staticClass: "circle" }, [t.source.status != 6 ? e("span", { staticClass: "yd", style: { backgroundColor: t.getColor(t.source.status) } }) : e("i", { staticClass: "iconfont icon-gw-icon-beiji2", style: { color: t.colorConfig.BackUp } })]) : t._e(), e("span", { staticClass: "label" }, [t._v(" " + t._s(t.source.title))]), t.source.isGroup && !t.source.isEquip ? e("span", { staticClass: "equipNumber" }, [t._v(" " + t._s(t.source.count) + " ")]) : t._e(), t.source.isGroup && t.showOperate ? e("oparate", { attrs: { source: t.source, groupEditAndNew: t.groupEditAndNew, deleteGroup: t.deleteGroup } }) : t._e(), t.source.loading ? e("span", { staticClass: "el-tree-node__loading-icon el-icon-loading" }) : t._e()], 1)])]);
|
|
1448
1472
|
}, mt = [], yt = /* @__PURE__ */ B(
|
|
1449
1473
|
wt,
|
|
1450
1474
|
bt,
|
|
@@ -1722,21 +1746,25 @@ const qt = yt.exports, Ot = {
|
|
|
1722
1746
|
}
|
|
1723
1747
|
}
|
|
1724
1748
|
};
|
|
1725
|
-
var vt = function() {
|
|
1749
|
+
var vt = function () {
|
|
1726
1750
|
var t = this, e = t._self._c;
|
|
1727
|
-
return e("div", { staticClass: "gw-tree", style: { height: "100%" } }, [e("div", { staticClass: "tree", style: { height: "100%" } }, [e("virtual-list", {
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1751
|
+
return e("div", { staticClass: "gw-tree", style: { height: "100%" } }, [e("div", { staticClass: "tree", style: { height: "100%" } }, [e("virtual-list", {
|
|
1752
|
+
ref: "virtualList", staticClass: "virtualList", attrs: {
|
|
1753
|
+
"data-key": "key", "data-sources": t.visibleList, "data-component": t.itemComponent, keeps: 40, "extra-props": {
|
|
1754
|
+
currentSelect: t.currentSelect,
|
|
1755
|
+
nodeClick: t.nodeClick,
|
|
1756
|
+
showStatus: t.showStatus,
|
|
1757
|
+
showSettings: t.showSettings,
|
|
1758
|
+
showCheckbox: t.showCheckbox,
|
|
1759
|
+
onChecked: t.onChecked,
|
|
1760
|
+
showOperate: t.showOperate,
|
|
1761
|
+
groupEditAndNew: t.groupEditAndNew,
|
|
1762
|
+
deleteGroup: t.deleteGroup,
|
|
1763
|
+
colorConfig: t.colorConfig,
|
|
1764
|
+
isSearchStatus: t.isSearchStatus
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
})], 1)]);
|
|
1740
1768
|
}, Nt = [], Et = /* @__PURE__ */ B(
|
|
1741
1769
|
Ot,
|
|
1742
1770
|
vt,
|
|
@@ -2011,7 +2039,7 @@ const jt = {
|
|
|
2011
2039
|
}
|
|
2012
2040
|
}
|
|
2013
2041
|
};
|
|
2014
|
-
var $t = function() {
|
|
2042
|
+
var $t = function () {
|
|
2015
2043
|
var t = this, e = t._self._c;
|
|
2016
2044
|
return e("tree", t._g(t._b({ ref: t.refId, attrs: { data: t.list, buildTree: t.buildTree } }, "tree", { ...t.$attrs, ...t.$props }, !1), t.$listeners));
|
|
2017
2045
|
}, Gt = [], Tt = /* @__PURE__ */ B(
|
|
@@ -2025,7 +2053,7 @@ var $t = function() {
|
|
|
2025
2053
|
null
|
|
2026
2054
|
);
|
|
2027
2055
|
const P = Tt.exports;
|
|
2028
|
-
P.install = function(o) {
|
|
2056
|
+
P.install = function (o) {
|
|
2029
2057
|
o.component(P.name, P);
|
|
2030
2058
|
};
|
|
2031
2059
|
export {
|