@tmagic/element-plus-adapter 1.7.0-beta.2 → 1.7.0-beta.4
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/dist/tmagic-element-plus-adapter.js +27 -502
- package/dist/tmagic-element-plus-adapter.umd.cjs +26 -501
- package/package.json +2 -2
- package/src/Table.vue +3 -0
- package/src/index.ts +8 -3
- package/src/FormItem.vue +0 -27
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
})(this, (function (elementPlus) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @vue/shared v3.5.
|
|
8
|
+
* @vue/shared v3.5.24
|
|
9
9
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
10
10
|
* @license MIT
|
|
11
11
|
**/
|
|
@@ -109,20 +109,9 @@
|
|
|
109
109
|
}
|
|
110
110
|
return res.trim();
|
|
111
111
|
}
|
|
112
|
-
function normalizeProps(props) {
|
|
113
|
-
if (!props) return null;
|
|
114
|
-
let { class: klass, style } = props;
|
|
115
|
-
if (klass && !isString(klass)) {
|
|
116
|
-
props.class = normalizeClass(klass);
|
|
117
|
-
}
|
|
118
|
-
if (style) {
|
|
119
|
-
props.style = normalizeStyle(style);
|
|
120
|
-
}
|
|
121
|
-
return props;
|
|
122
|
-
}
|
|
123
112
|
|
|
124
113
|
/**
|
|
125
|
-
* @vue/reactivity v3.5.
|
|
114
|
+
* @vue/reactivity v3.5.24
|
|
126
115
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
127
116
|
* @license MIT
|
|
128
117
|
**/
|
|
@@ -130,21 +119,8 @@
|
|
|
130
119
|
function warn(msg, ...args) {
|
|
131
120
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
132
121
|
}
|
|
133
|
-
|
|
134
|
-
let activeSub;
|
|
135
122
|
let batchDepth = 0;
|
|
136
123
|
let batchedSub;
|
|
137
|
-
let batchedComputed;
|
|
138
|
-
function batch(sub, isComputed = false) {
|
|
139
|
-
sub.flags |= 8;
|
|
140
|
-
if (isComputed) {
|
|
141
|
-
sub.next = batchedComputed;
|
|
142
|
-
batchedComputed = sub;
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
sub.next = batchedSub;
|
|
146
|
-
batchedSub = sub;
|
|
147
|
-
}
|
|
148
124
|
function startBatch() {
|
|
149
125
|
batchDepth++;
|
|
150
126
|
}
|
|
@@ -152,16 +128,6 @@
|
|
|
152
128
|
if (--batchDepth > 0) {
|
|
153
129
|
return;
|
|
154
130
|
}
|
|
155
|
-
if (batchedComputed) {
|
|
156
|
-
let e = batchedComputed;
|
|
157
|
-
batchedComputed = void 0;
|
|
158
|
-
while (e) {
|
|
159
|
-
const next = e.next;
|
|
160
|
-
e.next = void 0;
|
|
161
|
-
e.flags &= -9;
|
|
162
|
-
e = next;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
131
|
let error;
|
|
166
132
|
while (batchedSub) {
|
|
167
133
|
let e = batchedSub;
|
|
@@ -183,137 +149,6 @@
|
|
|
183
149
|
}
|
|
184
150
|
if (error) throw error;
|
|
185
151
|
}
|
|
186
|
-
function prepareDeps(sub) {
|
|
187
|
-
for (let link = sub.deps; link; link = link.nextDep) {
|
|
188
|
-
link.version = -1;
|
|
189
|
-
link.prevActiveLink = link.dep.activeLink;
|
|
190
|
-
link.dep.activeLink = link;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
function cleanupDeps(sub) {
|
|
194
|
-
let head;
|
|
195
|
-
let tail = sub.depsTail;
|
|
196
|
-
let link = tail;
|
|
197
|
-
while (link) {
|
|
198
|
-
const prev = link.prevDep;
|
|
199
|
-
if (link.version === -1) {
|
|
200
|
-
if (link === tail) tail = prev;
|
|
201
|
-
removeSub(link);
|
|
202
|
-
removeDep(link);
|
|
203
|
-
} else {
|
|
204
|
-
head = link;
|
|
205
|
-
}
|
|
206
|
-
link.dep.activeLink = link.prevActiveLink;
|
|
207
|
-
link.prevActiveLink = void 0;
|
|
208
|
-
link = prev;
|
|
209
|
-
}
|
|
210
|
-
sub.deps = head;
|
|
211
|
-
sub.depsTail = tail;
|
|
212
|
-
}
|
|
213
|
-
function isDirty(sub) {
|
|
214
|
-
for (let link = sub.deps; link; link = link.nextDep) {
|
|
215
|
-
if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) {
|
|
216
|
-
return true;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
if (sub._dirty) {
|
|
220
|
-
return true;
|
|
221
|
-
}
|
|
222
|
-
return false;
|
|
223
|
-
}
|
|
224
|
-
function refreshComputed(computed) {
|
|
225
|
-
if (computed.flags & 4 && !(computed.flags & 16)) {
|
|
226
|
-
return;
|
|
227
|
-
}
|
|
228
|
-
computed.flags &= -17;
|
|
229
|
-
if (computed.globalVersion === globalVersion) {
|
|
230
|
-
return;
|
|
231
|
-
}
|
|
232
|
-
computed.globalVersion = globalVersion;
|
|
233
|
-
if (!computed.isSSR && computed.flags & 128 && (!computed.deps && !computed._dirty || !isDirty(computed))) {
|
|
234
|
-
return;
|
|
235
|
-
}
|
|
236
|
-
computed.flags |= 2;
|
|
237
|
-
const dep = computed.dep;
|
|
238
|
-
const prevSub = activeSub;
|
|
239
|
-
const prevShouldTrack = shouldTrack;
|
|
240
|
-
activeSub = computed;
|
|
241
|
-
shouldTrack = true;
|
|
242
|
-
try {
|
|
243
|
-
prepareDeps(computed);
|
|
244
|
-
const value = computed.fn(computed._value);
|
|
245
|
-
if (dep.version === 0 || hasChanged(value, computed._value)) {
|
|
246
|
-
computed.flags |= 128;
|
|
247
|
-
computed._value = value;
|
|
248
|
-
dep.version++;
|
|
249
|
-
}
|
|
250
|
-
} catch (err) {
|
|
251
|
-
dep.version++;
|
|
252
|
-
throw err;
|
|
253
|
-
} finally {
|
|
254
|
-
activeSub = prevSub;
|
|
255
|
-
shouldTrack = prevShouldTrack;
|
|
256
|
-
cleanupDeps(computed);
|
|
257
|
-
computed.flags &= -3;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
function removeSub(link, soft = false) {
|
|
261
|
-
const { dep, prevSub, nextSub } = link;
|
|
262
|
-
if (prevSub) {
|
|
263
|
-
prevSub.nextSub = nextSub;
|
|
264
|
-
link.prevSub = void 0;
|
|
265
|
-
}
|
|
266
|
-
if (nextSub) {
|
|
267
|
-
nextSub.prevSub = prevSub;
|
|
268
|
-
link.nextSub = void 0;
|
|
269
|
-
}
|
|
270
|
-
if (!!(process.env.NODE_ENV !== "production") && dep.subsHead === link) {
|
|
271
|
-
dep.subsHead = nextSub;
|
|
272
|
-
}
|
|
273
|
-
if (dep.subs === link) {
|
|
274
|
-
dep.subs = prevSub;
|
|
275
|
-
if (!prevSub && dep.computed) {
|
|
276
|
-
dep.computed.flags &= -5;
|
|
277
|
-
for (let l = dep.computed.deps; l; l = l.nextDep) {
|
|
278
|
-
removeSub(l, true);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
if (!soft && !--dep.sc && dep.map) {
|
|
283
|
-
dep.map.delete(dep.key);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
function removeDep(link) {
|
|
287
|
-
const { prevDep, nextDep } = link;
|
|
288
|
-
if (prevDep) {
|
|
289
|
-
prevDep.nextDep = nextDep;
|
|
290
|
-
link.prevDep = void 0;
|
|
291
|
-
}
|
|
292
|
-
if (nextDep) {
|
|
293
|
-
nextDep.prevDep = prevDep;
|
|
294
|
-
link.nextDep = void 0;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
let shouldTrack = true;
|
|
298
|
-
const trackStack = [];
|
|
299
|
-
function pauseTracking() {
|
|
300
|
-
trackStack.push(shouldTrack);
|
|
301
|
-
shouldTrack = false;
|
|
302
|
-
}
|
|
303
|
-
function resetTracking() {
|
|
304
|
-
const last = trackStack.pop();
|
|
305
|
-
shouldTrack = last === void 0 ? true : last;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
let globalVersion = 0;
|
|
309
|
-
class Link {
|
|
310
|
-
constructor(sub, dep) {
|
|
311
|
-
this.sub = sub;
|
|
312
|
-
this.dep = dep;
|
|
313
|
-
this.version = dep.version;
|
|
314
|
-
this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
152
|
class Dep {
|
|
318
153
|
// TODO isolatedDeclarations "__v_skip"
|
|
319
154
|
constructor(computed) {
|
|
@@ -345,52 +180,12 @@
|
|
|
345
180
|
}
|
|
346
181
|
}
|
|
347
182
|
track(debugInfo) {
|
|
348
|
-
|
|
183
|
+
{
|
|
349
184
|
return;
|
|
350
185
|
}
|
|
351
|
-
let link = this.activeLink;
|
|
352
|
-
if (link === void 0 || link.sub !== activeSub) {
|
|
353
|
-
link = this.activeLink = new Link(activeSub, this);
|
|
354
|
-
if (!activeSub.deps) {
|
|
355
|
-
activeSub.deps = activeSub.depsTail = link;
|
|
356
|
-
} else {
|
|
357
|
-
link.prevDep = activeSub.depsTail;
|
|
358
|
-
activeSub.depsTail.nextDep = link;
|
|
359
|
-
activeSub.depsTail = link;
|
|
360
|
-
}
|
|
361
|
-
addSub(link);
|
|
362
|
-
} else if (link.version === -1) {
|
|
363
|
-
link.version = this.version;
|
|
364
|
-
if (link.nextDep) {
|
|
365
|
-
const next = link.nextDep;
|
|
366
|
-
next.prevDep = link.prevDep;
|
|
367
|
-
if (link.prevDep) {
|
|
368
|
-
link.prevDep.nextDep = next;
|
|
369
|
-
}
|
|
370
|
-
link.prevDep = activeSub.depsTail;
|
|
371
|
-
link.nextDep = void 0;
|
|
372
|
-
activeSub.depsTail.nextDep = link;
|
|
373
|
-
activeSub.depsTail = link;
|
|
374
|
-
if (activeSub.deps === link) {
|
|
375
|
-
activeSub.deps = next;
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
if (!!(process.env.NODE_ENV !== "production") && activeSub.onTrack) {
|
|
380
|
-
activeSub.onTrack(
|
|
381
|
-
extend(
|
|
382
|
-
{
|
|
383
|
-
effect: activeSub
|
|
384
|
-
},
|
|
385
|
-
debugInfo
|
|
386
|
-
)
|
|
387
|
-
);
|
|
388
|
-
}
|
|
389
|
-
return link;
|
|
390
186
|
}
|
|
391
187
|
trigger(debugInfo) {
|
|
392
188
|
this.version++;
|
|
393
|
-
globalVersion++;
|
|
394
189
|
this.notify(debugInfo);
|
|
395
190
|
}
|
|
396
191
|
notify(debugInfo) {
|
|
@@ -421,27 +216,6 @@
|
|
|
421
216
|
}
|
|
422
217
|
}
|
|
423
218
|
}
|
|
424
|
-
function addSub(link) {
|
|
425
|
-
link.dep.sc++;
|
|
426
|
-
if (link.sub.flags & 4) {
|
|
427
|
-
const computed = link.dep.computed;
|
|
428
|
-
if (computed && !link.dep.subs) {
|
|
429
|
-
computed.flags |= 4 | 16;
|
|
430
|
-
for (let l = computed.deps; l; l = l.nextDep) {
|
|
431
|
-
addSub(l);
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
const currentTail = link.dep.subs;
|
|
435
|
-
if (currentTail !== link) {
|
|
436
|
-
link.prevSub = currentTail;
|
|
437
|
-
if (currentTail) currentTail.nextSub = link;
|
|
438
|
-
}
|
|
439
|
-
if (!!(process.env.NODE_ENV !== "production") && link.dep.subsHead === void 0) {
|
|
440
|
-
link.dep.subsHead = link;
|
|
441
|
-
}
|
|
442
|
-
link.dep.subs = link;
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
219
|
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
446
220
|
const ITERATE_KEY = Symbol(
|
|
447
221
|
!!(process.env.NODE_ENV !== "production") ? "Object iterate" : ""
|
|
@@ -453,32 +227,10 @@
|
|
|
453
227
|
!!(process.env.NODE_ENV !== "production") ? "Array iterate" : ""
|
|
454
228
|
);
|
|
455
229
|
function track(target, type, key) {
|
|
456
|
-
if (shouldTrack && activeSub) {
|
|
457
|
-
let depsMap = targetMap.get(target);
|
|
458
|
-
if (!depsMap) {
|
|
459
|
-
targetMap.set(target, depsMap = /* @__PURE__ */ new Map());
|
|
460
|
-
}
|
|
461
|
-
let dep = depsMap.get(key);
|
|
462
|
-
if (!dep) {
|
|
463
|
-
depsMap.set(key, dep = new Dep());
|
|
464
|
-
dep.map = depsMap;
|
|
465
|
-
dep.key = key;
|
|
466
|
-
}
|
|
467
|
-
if (!!(process.env.NODE_ENV !== "production")) {
|
|
468
|
-
dep.track({
|
|
469
|
-
target,
|
|
470
|
-
type,
|
|
471
|
-
key
|
|
472
|
-
});
|
|
473
|
-
} else {
|
|
474
|
-
dep.track();
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
230
|
}
|
|
478
231
|
function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
479
232
|
const depsMap = targetMap.get(target);
|
|
480
233
|
if (!depsMap) {
|
|
481
|
-
globalVersion++;
|
|
482
234
|
return;
|
|
483
235
|
}
|
|
484
236
|
const run = (dep) => {
|
|
@@ -550,11 +302,10 @@
|
|
|
550
302
|
function reactiveReadArray(array) {
|
|
551
303
|
const raw = toRaw(array);
|
|
552
304
|
if (raw === array) return raw;
|
|
553
|
-
track(raw, "iterate", ARRAY_ITERATE_KEY);
|
|
554
305
|
return isShallow(array) ? raw : raw.map(toReactive);
|
|
555
306
|
}
|
|
556
307
|
function shallowReadArray(arr) {
|
|
557
|
-
track(arr = toRaw(arr)
|
|
308
|
+
track(arr = toRaw(arr));
|
|
558
309
|
return arr;
|
|
559
310
|
}
|
|
560
311
|
const arrayInstrumentations = {
|
|
@@ -706,7 +457,6 @@
|
|
|
706
457
|
}
|
|
707
458
|
function searchProxy(self, method, args) {
|
|
708
459
|
const arr = toRaw(self);
|
|
709
|
-
track(arr, "iterate", ARRAY_ITERATE_KEY);
|
|
710
460
|
const res = arr[method](...args);
|
|
711
461
|
if ((res === -1 || res === false) && isProxy(args[0])) {
|
|
712
462
|
args[0] = toRaw(args[0]);
|
|
@@ -715,11 +465,9 @@
|
|
|
715
465
|
return res;
|
|
716
466
|
}
|
|
717
467
|
function noTracking(self, method, args = []) {
|
|
718
|
-
pauseTracking();
|
|
719
468
|
startBatch();
|
|
720
469
|
const res = toRaw(self)[method].apply(self, args);
|
|
721
470
|
endBatch();
|
|
722
|
-
resetTracking();
|
|
723
471
|
return res;
|
|
724
472
|
}
|
|
725
473
|
|
|
@@ -730,7 +478,6 @@
|
|
|
730
478
|
function hasOwnProperty(key) {
|
|
731
479
|
if (!isSymbol(key)) key = String(key);
|
|
732
480
|
const obj = toRaw(this);
|
|
733
|
-
track(obj, "has", key);
|
|
734
481
|
return obj.hasOwnProperty(key);
|
|
735
482
|
}
|
|
736
483
|
class BaseReactiveHandler {
|
|
@@ -776,9 +523,6 @@
|
|
|
776
523
|
if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
|
|
777
524
|
return res;
|
|
778
525
|
}
|
|
779
|
-
if (!isReadonly2) {
|
|
780
|
-
track(target, "get", key);
|
|
781
|
-
}
|
|
782
526
|
if (isShallow2) {
|
|
783
527
|
return res;
|
|
784
528
|
}
|
|
@@ -846,17 +590,10 @@
|
|
|
846
590
|
}
|
|
847
591
|
has(target, key) {
|
|
848
592
|
const result = Reflect.has(target, key);
|
|
849
|
-
if (!isSymbol(key) || !builtInSymbols.has(key))
|
|
850
|
-
track(target, "has", key);
|
|
851
|
-
}
|
|
593
|
+
if (!isSymbol(key) || !builtInSymbols.has(key)) ;
|
|
852
594
|
return result;
|
|
853
595
|
}
|
|
854
596
|
ownKeys(target) {
|
|
855
|
-
track(
|
|
856
|
-
target,
|
|
857
|
-
"iterate",
|
|
858
|
-
isArray(target) ? "length" : ITERATE_KEY
|
|
859
|
-
);
|
|
860
597
|
return Reflect.ownKeys(target);
|
|
861
598
|
}
|
|
862
599
|
}
|
|
@@ -894,14 +631,8 @@
|
|
|
894
631
|
const rawTarget = toRaw(target);
|
|
895
632
|
const targetIsMap = isMap(rawTarget);
|
|
896
633
|
const isPair = method === "entries" || method === Symbol.iterator && targetIsMap;
|
|
897
|
-
const isKeyOnly = method === "keys" && targetIsMap;
|
|
898
634
|
const innerIterator = target[method](...args);
|
|
899
635
|
const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
|
|
900
|
-
!isReadonly2 && track(
|
|
901
|
-
rawTarget,
|
|
902
|
-
"iterate",
|
|
903
|
-
isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY
|
|
904
|
-
);
|
|
905
636
|
return {
|
|
906
637
|
// iterator protocol
|
|
907
638
|
next() {
|
|
@@ -936,12 +667,6 @@
|
|
|
936
667
|
const target = this["__v_raw"];
|
|
937
668
|
const rawTarget = toRaw(target);
|
|
938
669
|
const rawKey = toRaw(key);
|
|
939
|
-
if (!readonly) {
|
|
940
|
-
if (hasChanged(key, rawKey)) {
|
|
941
|
-
track(rawTarget, "get", key);
|
|
942
|
-
}
|
|
943
|
-
track(rawTarget, "get", rawKey);
|
|
944
|
-
}
|
|
945
670
|
const { has } = getProto(rawTarget);
|
|
946
671
|
const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
|
|
947
672
|
if (has.call(rawTarget, key)) {
|
|
@@ -954,27 +679,20 @@
|
|
|
954
679
|
},
|
|
955
680
|
get size() {
|
|
956
681
|
const target = this["__v_raw"];
|
|
957
|
-
!readonly && track(toRaw(target)
|
|
682
|
+
!readonly && track(toRaw(target));
|
|
958
683
|
return target.size;
|
|
959
684
|
},
|
|
960
685
|
has(key) {
|
|
961
686
|
const target = this["__v_raw"];
|
|
962
|
-
|
|
687
|
+
toRaw(target);
|
|
963
688
|
const rawKey = toRaw(key);
|
|
964
|
-
if (!readonly) {
|
|
965
|
-
if (hasChanged(key, rawKey)) {
|
|
966
|
-
track(rawTarget, "has", key);
|
|
967
|
-
}
|
|
968
|
-
track(rawTarget, "has", rawKey);
|
|
969
|
-
}
|
|
970
689
|
return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);
|
|
971
690
|
},
|
|
972
691
|
forEach(callback, thisArg) {
|
|
973
692
|
const observed = this;
|
|
974
693
|
const target = observed["__v_raw"];
|
|
975
|
-
|
|
694
|
+
toRaw(target);
|
|
976
695
|
const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
|
|
977
|
-
!readonly && track(rawTarget, "iterate", ITERATE_KEY);
|
|
978
696
|
return target.forEach((value, key) => {
|
|
979
697
|
return callback.call(thisArg, wrap(value), wrap(key), observed);
|
|
980
698
|
});
|
|
@@ -1253,96 +971,8 @@
|
|
|
1253
971
|
return isRef(ref2) ? ref2.value : ref2;
|
|
1254
972
|
}
|
|
1255
973
|
|
|
1256
|
-
class ComputedRefImpl {
|
|
1257
|
-
constructor(fn, setter, isSSR) {
|
|
1258
|
-
this.fn = fn;
|
|
1259
|
-
this.setter = setter;
|
|
1260
|
-
/**
|
|
1261
|
-
* @internal
|
|
1262
|
-
*/
|
|
1263
|
-
this._value = void 0;
|
|
1264
|
-
/**
|
|
1265
|
-
* @internal
|
|
1266
|
-
*/
|
|
1267
|
-
this.dep = new Dep(this);
|
|
1268
|
-
/**
|
|
1269
|
-
* @internal
|
|
1270
|
-
*/
|
|
1271
|
-
this.__v_isRef = true;
|
|
1272
|
-
// TODO isolatedDeclarations "__v_isReadonly"
|
|
1273
|
-
// A computed is also a subscriber that tracks other deps
|
|
1274
|
-
/**
|
|
1275
|
-
* @internal
|
|
1276
|
-
*/
|
|
1277
|
-
this.deps = void 0;
|
|
1278
|
-
/**
|
|
1279
|
-
* @internal
|
|
1280
|
-
*/
|
|
1281
|
-
this.depsTail = void 0;
|
|
1282
|
-
/**
|
|
1283
|
-
* @internal
|
|
1284
|
-
*/
|
|
1285
|
-
this.flags = 16;
|
|
1286
|
-
/**
|
|
1287
|
-
* @internal
|
|
1288
|
-
*/
|
|
1289
|
-
this.globalVersion = globalVersion - 1;
|
|
1290
|
-
/**
|
|
1291
|
-
* @internal
|
|
1292
|
-
*/
|
|
1293
|
-
this.next = void 0;
|
|
1294
|
-
// for backwards compat
|
|
1295
|
-
this.effect = this;
|
|
1296
|
-
this["__v_isReadonly"] = !setter;
|
|
1297
|
-
this.isSSR = isSSR;
|
|
1298
|
-
}
|
|
1299
|
-
/**
|
|
1300
|
-
* @internal
|
|
1301
|
-
*/
|
|
1302
|
-
notify() {
|
|
1303
|
-
this.flags |= 16;
|
|
1304
|
-
if (!(this.flags & 8) && // avoid infinite self recursion
|
|
1305
|
-
activeSub !== this) {
|
|
1306
|
-
batch(this, true);
|
|
1307
|
-
return true;
|
|
1308
|
-
} else if (!!(process.env.NODE_ENV !== "production")) ;
|
|
1309
|
-
}
|
|
1310
|
-
get value() {
|
|
1311
|
-
const link = !!(process.env.NODE_ENV !== "production") ? this.dep.track({
|
|
1312
|
-
target: this,
|
|
1313
|
-
type: "get",
|
|
1314
|
-
key: "value"
|
|
1315
|
-
}) : this.dep.track();
|
|
1316
|
-
refreshComputed(this);
|
|
1317
|
-
if (link) {
|
|
1318
|
-
link.version = this.dep.version;
|
|
1319
|
-
}
|
|
1320
|
-
return this._value;
|
|
1321
|
-
}
|
|
1322
|
-
set value(newValue) {
|
|
1323
|
-
if (this.setter) {
|
|
1324
|
-
this.setter(newValue);
|
|
1325
|
-
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
1326
|
-
warn("Write operation failed: computed value is readonly");
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
function computed$1(getterOrOptions, debugOptions, isSSR = false) {
|
|
1331
|
-
let getter;
|
|
1332
|
-
let setter;
|
|
1333
|
-
if (isFunction(getterOrOptions)) {
|
|
1334
|
-
getter = getterOrOptions;
|
|
1335
|
-
} else {
|
|
1336
|
-
getter = getterOrOptions.get;
|
|
1337
|
-
setter = getterOrOptions.set;
|
|
1338
|
-
}
|
|
1339
|
-
const cRef = new ComputedRefImpl(getter, setter, isSSR);
|
|
1340
|
-
if (!!(process.env.NODE_ENV !== "production") && debugOptions) ;
|
|
1341
|
-
return cRef;
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
974
|
/**
|
|
1345
|
-
* @vue/runtime-core v3.5.
|
|
975
|
+
* @vue/runtime-core v3.5.24
|
|
1346
976
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1347
977
|
* @license MIT
|
|
1348
978
|
**/
|
|
@@ -1357,7 +987,6 @@
|
|
|
1357
987
|
function warn$1(msg, ...args) {
|
|
1358
988
|
if (isWarning) return;
|
|
1359
989
|
isWarning = true;
|
|
1360
|
-
pauseTracking();
|
|
1361
990
|
const instance = stack.length ? stack[stack.length - 1].component : null;
|
|
1362
991
|
const appWarnHandler = instance && instance.appContext.config.warnHandler;
|
|
1363
992
|
const trace = getComponentTrace();
|
|
@@ -1388,7 +1017,6 @@
|
|
|
1388
1017
|
}
|
|
1389
1018
|
console.warn(...warnArgs);
|
|
1390
1019
|
}
|
|
1391
|
-
resetTracking();
|
|
1392
1020
|
isWarning = false;
|
|
1393
1021
|
}
|
|
1394
1022
|
function getComponentTrace() {
|
|
@@ -1517,13 +1145,11 @@
|
|
|
1517
1145
|
cur = cur.parent;
|
|
1518
1146
|
}
|
|
1519
1147
|
if (errorHandler) {
|
|
1520
|
-
pauseTracking();
|
|
1521
1148
|
callWithErrorHandling(errorHandler, null, 10, [
|
|
1522
1149
|
err,
|
|
1523
1150
|
exposedInstance,
|
|
1524
1151
|
errorInfo
|
|
1525
1152
|
]);
|
|
1526
|
-
resetTracking();
|
|
1527
1153
|
return;
|
|
1528
1154
|
}
|
|
1529
1155
|
}
|
|
@@ -1942,7 +1568,6 @@
|
|
|
1942
1568
|
}
|
|
1943
1569
|
getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));
|
|
1944
1570
|
getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));
|
|
1945
|
-
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
1946
1571
|
const COMPONENTS = "components";
|
|
1947
1572
|
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
1948
1573
|
function resolveDynamicComponent(component) {
|
|
@@ -2055,58 +1680,6 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
2055
1680
|
}
|
|
2056
1681
|
return slots;
|
|
2057
1682
|
}
|
|
2058
|
-
function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
2059
|
-
if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {
|
|
2060
|
-
const hasProps = Object.keys(props).length > 0;
|
|
2061
|
-
if (name !== "default") props.name = name;
|
|
2062
|
-
return openBlock(), createBlock(
|
|
2063
|
-
Fragment,
|
|
2064
|
-
null,
|
|
2065
|
-
[createVNode("slot", props, fallback)],
|
|
2066
|
-
hasProps ? -2 : 64
|
|
2067
|
-
);
|
|
2068
|
-
}
|
|
2069
|
-
let slot = slots[name];
|
|
2070
|
-
if (!!(process.env.NODE_ENV !== "production") && slot && slot.length > 1) {
|
|
2071
|
-
warn$1(
|
|
2072
|
-
`SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template.`
|
|
2073
|
-
);
|
|
2074
|
-
slot = () => [];
|
|
2075
|
-
}
|
|
2076
|
-
if (slot && slot._c) {
|
|
2077
|
-
slot._d = false;
|
|
2078
|
-
}
|
|
2079
|
-
openBlock();
|
|
2080
|
-
const validSlotContent = slot && ensureValidVNode(slot(props));
|
|
2081
|
-
const slotKey = props.key || // slot content array of a dynamic conditional slot may have a branch
|
|
2082
|
-
// key attached in the `createSlots` helper, respect that
|
|
2083
|
-
validSlotContent && validSlotContent.key;
|
|
2084
|
-
const rendered = createBlock(
|
|
2085
|
-
Fragment,
|
|
2086
|
-
{
|
|
2087
|
-
key: (slotKey && !isSymbol(slotKey) ? slotKey : `_${name}`) + // #7256 force differentiate fallback content from actual content
|
|
2088
|
-
("")
|
|
2089
|
-
},
|
|
2090
|
-
validSlotContent || ([]),
|
|
2091
|
-
validSlotContent && slots._ === 1 ? 64 : -2
|
|
2092
|
-
);
|
|
2093
|
-
if (rendered.scopeId) {
|
|
2094
|
-
rendered.slotScopeIds = [rendered.scopeId + "-s"];
|
|
2095
|
-
}
|
|
2096
|
-
if (slot && slot._c) {
|
|
2097
|
-
slot._d = true;
|
|
2098
|
-
}
|
|
2099
|
-
return rendered;
|
|
2100
|
-
}
|
|
2101
|
-
function ensureValidVNode(vnodes) {
|
|
2102
|
-
return vnodes.some((child) => {
|
|
2103
|
-
if (!isVNode(child)) return true;
|
|
2104
|
-
if (child.type === Comment) return false;
|
|
2105
|
-
if (child.type === Fragment && !ensureValidVNode(child.children))
|
|
2106
|
-
return false;
|
|
2107
|
-
return true;
|
|
2108
|
-
}) ? vnodes : null;
|
|
2109
|
-
}
|
|
2110
1683
|
const PublicInstanceProxyHandlers = {
|
|
2111
1684
|
};
|
|
2112
1685
|
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
@@ -2379,9 +1952,6 @@ Component that was made reactive: `,
|
|
|
2379
1952
|
function createTextVNode(text = " ", flag = 0) {
|
|
2380
1953
|
return createVNode(Text, null, text, flag);
|
|
2381
1954
|
}
|
|
2382
|
-
function createCommentVNode(text = "", asBlock = false) {
|
|
2383
|
-
return asBlock ? (openBlock(), createBlock(Comment, null, text)) : createVNode(Comment, null, text);
|
|
2384
|
-
}
|
|
2385
1955
|
function normalizeChildren(vnode, children) {
|
|
2386
1956
|
let type = 0;
|
|
2387
1957
|
const { shapeFlag } = vnode;
|
|
@@ -2470,10 +2040,9 @@ Component that was made reactive: `,
|
|
|
2470
2040
|
);
|
|
2471
2041
|
registerGlobalSetter(
|
|
2472
2042
|
`__VUE_SSR_SETTERS__`,
|
|
2473
|
-
(v) =>
|
|
2043
|
+
(v) => v
|
|
2474
2044
|
);
|
|
2475
2045
|
}
|
|
2476
|
-
let isInSSRComponentSetup = false;
|
|
2477
2046
|
!!(process.env.NODE_ENV !== "production") ? {
|
|
2478
2047
|
} : {
|
|
2479
2048
|
};
|
|
@@ -2507,16 +2076,6 @@ Component that was made reactive: `,
|
|
|
2507
2076
|
function isClassComponent(value) {
|
|
2508
2077
|
return isFunction(value) && "__vccOpts" in value;
|
|
2509
2078
|
}
|
|
2510
|
-
const computed = (getterOrOptions, debugOptions) => {
|
|
2511
|
-
const c = computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
2512
|
-
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2513
|
-
const i = getCurrentInstance();
|
|
2514
|
-
if (i && i.appContext.config.warnRecursiveComputed) {
|
|
2515
|
-
c._warnRecursive = true;
|
|
2516
|
-
}
|
|
2517
|
-
}
|
|
2518
|
-
return c;
|
|
2519
|
-
};
|
|
2520
2079
|
function initCustomFormatter() {
|
|
2521
2080
|
if (!!!(process.env.NODE_ENV !== "production") || typeof window === "undefined") {
|
|
2522
2081
|
return;
|
|
@@ -2534,9 +2093,7 @@ Component that was made reactive: `,
|
|
|
2534
2093
|
if (obj.__isVue) {
|
|
2535
2094
|
return ["div", vueStyle, `VueInstance`];
|
|
2536
2095
|
} else if (isRef(obj)) {
|
|
2537
|
-
pauseTracking();
|
|
2538
2096
|
const value = obj.value;
|
|
2539
|
-
resetTracking();
|
|
2540
2097
|
return [
|
|
2541
2098
|
"div",
|
|
2542
2099
|
{},
|
|
@@ -2701,7 +2258,7 @@ Component that was made reactive: `,
|
|
|
2701
2258
|
!!(process.env.NODE_ENV !== "production") || true ? setDevtoolsHook$1 : NOOP;
|
|
2702
2259
|
|
|
2703
2260
|
/**
|
|
2704
|
-
* vue v3.5.
|
|
2261
|
+
* vue v3.5.24
|
|
2705
2262
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
2706
2263
|
* @license MIT
|
|
2707
2264
|
**/
|
|
@@ -2716,50 +2273,6 @@ Component that was made reactive: `,
|
|
|
2716
2273
|
initDev();
|
|
2717
2274
|
}
|
|
2718
2275
|
|
|
2719
|
-
const _hoisted_1 = ["innerHTML"];
|
|
2720
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
2721
|
-
...{
|
|
2722
|
-
name: "TElAdapterFormItem"
|
|
2723
|
-
},
|
|
2724
|
-
__name: "FormItem",
|
|
2725
|
-
props: {
|
|
2726
|
-
prop: {},
|
|
2727
|
-
labelWidth: {},
|
|
2728
|
-
rules: {},
|
|
2729
|
-
extra: {}
|
|
2730
|
-
},
|
|
2731
|
-
setup(__props) {
|
|
2732
|
-
const props = __props;
|
|
2733
|
-
const itemProps = computed(() => {
|
|
2734
|
-
const { extra, ...rest } = props;
|
|
2735
|
-
return rest;
|
|
2736
|
-
});
|
|
2737
|
-
return (_ctx, _cache) => {
|
|
2738
|
-
return openBlock(), createBlock(
|
|
2739
|
-
unref(elementPlus.ElFormItem),
|
|
2740
|
-
normalizeProps(guardReactiveProps(itemProps.value)),
|
|
2741
|
-
{
|
|
2742
|
-
label: withCtx(() => [
|
|
2743
|
-
renderSlot(_ctx.$slots, "label")
|
|
2744
|
-
]),
|
|
2745
|
-
default: withCtx(() => [
|
|
2746
|
-
renderSlot(_ctx.$slots, "default"),
|
|
2747
|
-
__props.extra ? (openBlock(), createElementBlock("div", {
|
|
2748
|
-
key: 0,
|
|
2749
|
-
innerHTML: __props.extra,
|
|
2750
|
-
class: "m-form-tip"
|
|
2751
|
-
}, null, 8, _hoisted_1)) : createCommentVNode("v-if", true)
|
|
2752
|
-
]),
|
|
2753
|
-
_: 3
|
|
2754
|
-
/* FORWARDED */
|
|
2755
|
-
},
|
|
2756
|
-
16
|
|
2757
|
-
/* FULL_PROPS */
|
|
2758
|
-
);
|
|
2759
|
-
};
|
|
2760
|
-
}
|
|
2761
|
-
});
|
|
2762
|
-
|
|
2763
2276
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2764
2277
|
...{
|
|
2765
2278
|
name: "TElAdapterTable"
|
|
@@ -2855,12 +2368,19 @@ Component that was made reactive: `,
|
|
|
2855
2368
|
_: 2
|
|
2856
2369
|
/* DYNAMIC */
|
|
2857
2370
|
}, [
|
|
2371
|
+
item.title ? {
|
|
2372
|
+
name: "header",
|
|
2373
|
+
fn: withCtx((scope) => [
|
|
2374
|
+
(openBlock(), createBlock(resolveDynamicComponent(item.title(scope))))
|
|
2375
|
+
]),
|
|
2376
|
+
key: "0"
|
|
2377
|
+
} : void 0,
|
|
2858
2378
|
item.cell ? {
|
|
2859
2379
|
name: "default",
|
|
2860
2380
|
fn: withCtx((scope) => [
|
|
2861
2381
|
(openBlock(), createBlock(resolveDynamicComponent(item.cell(scope))))
|
|
2862
2382
|
]),
|
|
2863
|
-
key: "
|
|
2383
|
+
key: "1"
|
|
2864
2384
|
} : void 0
|
|
2865
2385
|
]),
|
|
2866
2386
|
1040
|
|
@@ -2894,7 +2414,12 @@ Component that was made reactive: `,
|
|
|
2894
2414
|
},
|
|
2895
2415
|
button: {
|
|
2896
2416
|
component: elementPlus.ElButton,
|
|
2897
|
-
props: (props) =>
|
|
2417
|
+
props: (props) => {
|
|
2418
|
+
return {
|
|
2419
|
+
...props,
|
|
2420
|
+
type: props.type === "default" ? "" : props.type
|
|
2421
|
+
};
|
|
2422
|
+
}
|
|
2898
2423
|
},
|
|
2899
2424
|
card: {
|
|
2900
2425
|
component: elementPlus.ElCard,
|
|
@@ -2961,7 +2486,7 @@ Component that was made reactive: `,
|
|
|
2961
2486
|
props: (props) => props
|
|
2962
2487
|
},
|
|
2963
2488
|
formItem: {
|
|
2964
|
-
component:
|
|
2489
|
+
component: elementPlus.ElFormItem,
|
|
2965
2490
|
props: (props) => props
|
|
2966
2491
|
},
|
|
2967
2492
|
icon: {
|