@tmagic/element-plus-adapter 1.7.0-beta.3 → 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 +21 -501
- package/dist/tmagic-element-plus-adapter.umd.cjs +20 -500
- package/package.json +2 -2
- package/src/Table.vue +3 -0
- package/src/index.ts +2 -2
- package/src/FormItem.vue +0 -27
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElTable, ElTableColumn, ElLoading, ElPopconfirm, ElUpload, ElTooltip, ElTimePicker, ElTag, ElTabs, ElTabPane, ElSwitch, ElSteps, ElStep, ElSelect, ElScrollbar, ElRow, ElRadioGroup, ElRadioButton, ElRadio, ElPagination, ElOptionGroup, ElOption, ElInputNumber, ElInput, ElIcon, ElFormItem, ElForm, ElDropdownMenu, ElDropdownItem, ElDropdown, ElDrawer, ElDivider, ElDialog, ElDatePicker, ElColorPicker, ElCollapseItem, ElCollapse, ElCol, ElCheckboxGroup, ElCheckbox, ElCascader, ElCard, ElButton, ElBadge, ElAutocomplete, ElMessageBox, ElMessage, useZIndex } from 'element-plus';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @vue/shared v3.5.
|
|
4
|
+
* @vue/shared v3.5.24
|
|
5
5
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
6
6
|
* @license MIT
|
|
7
7
|
**/
|
|
@@ -105,20 +105,9 @@ function normalizeClass(value) {
|
|
|
105
105
|
}
|
|
106
106
|
return res.trim();
|
|
107
107
|
}
|
|
108
|
-
function normalizeProps(props) {
|
|
109
|
-
if (!props) return null;
|
|
110
|
-
let { class: klass, style } = props;
|
|
111
|
-
if (klass && !isString(klass)) {
|
|
112
|
-
props.class = normalizeClass(klass);
|
|
113
|
-
}
|
|
114
|
-
if (style) {
|
|
115
|
-
props.style = normalizeStyle(style);
|
|
116
|
-
}
|
|
117
|
-
return props;
|
|
118
|
-
}
|
|
119
108
|
|
|
120
109
|
/**
|
|
121
|
-
* @vue/reactivity v3.5.
|
|
110
|
+
* @vue/reactivity v3.5.24
|
|
122
111
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
123
112
|
* @license MIT
|
|
124
113
|
**/
|
|
@@ -126,21 +115,8 @@ function normalizeProps(props) {
|
|
|
126
115
|
function warn(msg, ...args) {
|
|
127
116
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
128
117
|
}
|
|
129
|
-
|
|
130
|
-
let activeSub;
|
|
131
118
|
let batchDepth = 0;
|
|
132
119
|
let batchedSub;
|
|
133
|
-
let batchedComputed;
|
|
134
|
-
function batch(sub, isComputed = false) {
|
|
135
|
-
sub.flags |= 8;
|
|
136
|
-
if (isComputed) {
|
|
137
|
-
sub.next = batchedComputed;
|
|
138
|
-
batchedComputed = sub;
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
sub.next = batchedSub;
|
|
142
|
-
batchedSub = sub;
|
|
143
|
-
}
|
|
144
120
|
function startBatch() {
|
|
145
121
|
batchDepth++;
|
|
146
122
|
}
|
|
@@ -148,16 +124,6 @@ function endBatch() {
|
|
|
148
124
|
if (--batchDepth > 0) {
|
|
149
125
|
return;
|
|
150
126
|
}
|
|
151
|
-
if (batchedComputed) {
|
|
152
|
-
let e = batchedComputed;
|
|
153
|
-
batchedComputed = void 0;
|
|
154
|
-
while (e) {
|
|
155
|
-
const next = e.next;
|
|
156
|
-
e.next = void 0;
|
|
157
|
-
e.flags &= -9;
|
|
158
|
-
e = next;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
127
|
let error;
|
|
162
128
|
while (batchedSub) {
|
|
163
129
|
let e = batchedSub;
|
|
@@ -179,137 +145,6 @@ function endBatch() {
|
|
|
179
145
|
}
|
|
180
146
|
if (error) throw error;
|
|
181
147
|
}
|
|
182
|
-
function prepareDeps(sub) {
|
|
183
|
-
for (let link = sub.deps; link; link = link.nextDep) {
|
|
184
|
-
link.version = -1;
|
|
185
|
-
link.prevActiveLink = link.dep.activeLink;
|
|
186
|
-
link.dep.activeLink = link;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
function cleanupDeps(sub) {
|
|
190
|
-
let head;
|
|
191
|
-
let tail = sub.depsTail;
|
|
192
|
-
let link = tail;
|
|
193
|
-
while (link) {
|
|
194
|
-
const prev = link.prevDep;
|
|
195
|
-
if (link.version === -1) {
|
|
196
|
-
if (link === tail) tail = prev;
|
|
197
|
-
removeSub(link);
|
|
198
|
-
removeDep(link);
|
|
199
|
-
} else {
|
|
200
|
-
head = link;
|
|
201
|
-
}
|
|
202
|
-
link.dep.activeLink = link.prevActiveLink;
|
|
203
|
-
link.prevActiveLink = void 0;
|
|
204
|
-
link = prev;
|
|
205
|
-
}
|
|
206
|
-
sub.deps = head;
|
|
207
|
-
sub.depsTail = tail;
|
|
208
|
-
}
|
|
209
|
-
function isDirty(sub) {
|
|
210
|
-
for (let link = sub.deps; link; link = link.nextDep) {
|
|
211
|
-
if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) {
|
|
212
|
-
return true;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
if (sub._dirty) {
|
|
216
|
-
return true;
|
|
217
|
-
}
|
|
218
|
-
return false;
|
|
219
|
-
}
|
|
220
|
-
function refreshComputed(computed) {
|
|
221
|
-
if (computed.flags & 4 && !(computed.flags & 16)) {
|
|
222
|
-
return;
|
|
223
|
-
}
|
|
224
|
-
computed.flags &= -17;
|
|
225
|
-
if (computed.globalVersion === globalVersion) {
|
|
226
|
-
return;
|
|
227
|
-
}
|
|
228
|
-
computed.globalVersion = globalVersion;
|
|
229
|
-
if (!computed.isSSR && computed.flags & 128 && (!computed.deps && !computed._dirty || !isDirty(computed))) {
|
|
230
|
-
return;
|
|
231
|
-
}
|
|
232
|
-
computed.flags |= 2;
|
|
233
|
-
const dep = computed.dep;
|
|
234
|
-
const prevSub = activeSub;
|
|
235
|
-
const prevShouldTrack = shouldTrack;
|
|
236
|
-
activeSub = computed;
|
|
237
|
-
shouldTrack = true;
|
|
238
|
-
try {
|
|
239
|
-
prepareDeps(computed);
|
|
240
|
-
const value = computed.fn(computed._value);
|
|
241
|
-
if (dep.version === 0 || hasChanged(value, computed._value)) {
|
|
242
|
-
computed.flags |= 128;
|
|
243
|
-
computed._value = value;
|
|
244
|
-
dep.version++;
|
|
245
|
-
}
|
|
246
|
-
} catch (err) {
|
|
247
|
-
dep.version++;
|
|
248
|
-
throw err;
|
|
249
|
-
} finally {
|
|
250
|
-
activeSub = prevSub;
|
|
251
|
-
shouldTrack = prevShouldTrack;
|
|
252
|
-
cleanupDeps(computed);
|
|
253
|
-
computed.flags &= -3;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
function removeSub(link, soft = false) {
|
|
257
|
-
const { dep, prevSub, nextSub } = link;
|
|
258
|
-
if (prevSub) {
|
|
259
|
-
prevSub.nextSub = nextSub;
|
|
260
|
-
link.prevSub = void 0;
|
|
261
|
-
}
|
|
262
|
-
if (nextSub) {
|
|
263
|
-
nextSub.prevSub = prevSub;
|
|
264
|
-
link.nextSub = void 0;
|
|
265
|
-
}
|
|
266
|
-
if (!!(process.env.NODE_ENV !== "production") && dep.subsHead === link) {
|
|
267
|
-
dep.subsHead = nextSub;
|
|
268
|
-
}
|
|
269
|
-
if (dep.subs === link) {
|
|
270
|
-
dep.subs = prevSub;
|
|
271
|
-
if (!prevSub && dep.computed) {
|
|
272
|
-
dep.computed.flags &= -5;
|
|
273
|
-
for (let l = dep.computed.deps; l; l = l.nextDep) {
|
|
274
|
-
removeSub(l, true);
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
if (!soft && !--dep.sc && dep.map) {
|
|
279
|
-
dep.map.delete(dep.key);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
function removeDep(link) {
|
|
283
|
-
const { prevDep, nextDep } = link;
|
|
284
|
-
if (prevDep) {
|
|
285
|
-
prevDep.nextDep = nextDep;
|
|
286
|
-
link.prevDep = void 0;
|
|
287
|
-
}
|
|
288
|
-
if (nextDep) {
|
|
289
|
-
nextDep.prevDep = prevDep;
|
|
290
|
-
link.nextDep = void 0;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
let shouldTrack = true;
|
|
294
|
-
const trackStack = [];
|
|
295
|
-
function pauseTracking() {
|
|
296
|
-
trackStack.push(shouldTrack);
|
|
297
|
-
shouldTrack = false;
|
|
298
|
-
}
|
|
299
|
-
function resetTracking() {
|
|
300
|
-
const last = trackStack.pop();
|
|
301
|
-
shouldTrack = last === void 0 ? true : last;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
let globalVersion = 0;
|
|
305
|
-
class Link {
|
|
306
|
-
constructor(sub, dep) {
|
|
307
|
-
this.sub = sub;
|
|
308
|
-
this.dep = dep;
|
|
309
|
-
this.version = dep.version;
|
|
310
|
-
this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
148
|
class Dep {
|
|
314
149
|
// TODO isolatedDeclarations "__v_skip"
|
|
315
150
|
constructor(computed) {
|
|
@@ -341,52 +176,12 @@ class Dep {
|
|
|
341
176
|
}
|
|
342
177
|
}
|
|
343
178
|
track(debugInfo) {
|
|
344
|
-
|
|
179
|
+
{
|
|
345
180
|
return;
|
|
346
181
|
}
|
|
347
|
-
let link = this.activeLink;
|
|
348
|
-
if (link === void 0 || link.sub !== activeSub) {
|
|
349
|
-
link = this.activeLink = new Link(activeSub, this);
|
|
350
|
-
if (!activeSub.deps) {
|
|
351
|
-
activeSub.deps = activeSub.depsTail = link;
|
|
352
|
-
} else {
|
|
353
|
-
link.prevDep = activeSub.depsTail;
|
|
354
|
-
activeSub.depsTail.nextDep = link;
|
|
355
|
-
activeSub.depsTail = link;
|
|
356
|
-
}
|
|
357
|
-
addSub(link);
|
|
358
|
-
} else if (link.version === -1) {
|
|
359
|
-
link.version = this.version;
|
|
360
|
-
if (link.nextDep) {
|
|
361
|
-
const next = link.nextDep;
|
|
362
|
-
next.prevDep = link.prevDep;
|
|
363
|
-
if (link.prevDep) {
|
|
364
|
-
link.prevDep.nextDep = next;
|
|
365
|
-
}
|
|
366
|
-
link.prevDep = activeSub.depsTail;
|
|
367
|
-
link.nextDep = void 0;
|
|
368
|
-
activeSub.depsTail.nextDep = link;
|
|
369
|
-
activeSub.depsTail = link;
|
|
370
|
-
if (activeSub.deps === link) {
|
|
371
|
-
activeSub.deps = next;
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
if (!!(process.env.NODE_ENV !== "production") && activeSub.onTrack) {
|
|
376
|
-
activeSub.onTrack(
|
|
377
|
-
extend(
|
|
378
|
-
{
|
|
379
|
-
effect: activeSub
|
|
380
|
-
},
|
|
381
|
-
debugInfo
|
|
382
|
-
)
|
|
383
|
-
);
|
|
384
|
-
}
|
|
385
|
-
return link;
|
|
386
182
|
}
|
|
387
183
|
trigger(debugInfo) {
|
|
388
184
|
this.version++;
|
|
389
|
-
globalVersion++;
|
|
390
185
|
this.notify(debugInfo);
|
|
391
186
|
}
|
|
392
187
|
notify(debugInfo) {
|
|
@@ -417,27 +212,6 @@ class Dep {
|
|
|
417
212
|
}
|
|
418
213
|
}
|
|
419
214
|
}
|
|
420
|
-
function addSub(link) {
|
|
421
|
-
link.dep.sc++;
|
|
422
|
-
if (link.sub.flags & 4) {
|
|
423
|
-
const computed = link.dep.computed;
|
|
424
|
-
if (computed && !link.dep.subs) {
|
|
425
|
-
computed.flags |= 4 | 16;
|
|
426
|
-
for (let l = computed.deps; l; l = l.nextDep) {
|
|
427
|
-
addSub(l);
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
const currentTail = link.dep.subs;
|
|
431
|
-
if (currentTail !== link) {
|
|
432
|
-
link.prevSub = currentTail;
|
|
433
|
-
if (currentTail) currentTail.nextSub = link;
|
|
434
|
-
}
|
|
435
|
-
if (!!(process.env.NODE_ENV !== "production") && link.dep.subsHead === void 0) {
|
|
436
|
-
link.dep.subsHead = link;
|
|
437
|
-
}
|
|
438
|
-
link.dep.subs = link;
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
215
|
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
442
216
|
const ITERATE_KEY = Symbol(
|
|
443
217
|
!!(process.env.NODE_ENV !== "production") ? "Object iterate" : ""
|
|
@@ -449,32 +223,10 @@ const ARRAY_ITERATE_KEY = Symbol(
|
|
|
449
223
|
!!(process.env.NODE_ENV !== "production") ? "Array iterate" : ""
|
|
450
224
|
);
|
|
451
225
|
function track(target, type, key) {
|
|
452
|
-
if (shouldTrack && activeSub) {
|
|
453
|
-
let depsMap = targetMap.get(target);
|
|
454
|
-
if (!depsMap) {
|
|
455
|
-
targetMap.set(target, depsMap = /* @__PURE__ */ new Map());
|
|
456
|
-
}
|
|
457
|
-
let dep = depsMap.get(key);
|
|
458
|
-
if (!dep) {
|
|
459
|
-
depsMap.set(key, dep = new Dep());
|
|
460
|
-
dep.map = depsMap;
|
|
461
|
-
dep.key = key;
|
|
462
|
-
}
|
|
463
|
-
if (!!(process.env.NODE_ENV !== "production")) {
|
|
464
|
-
dep.track({
|
|
465
|
-
target,
|
|
466
|
-
type,
|
|
467
|
-
key
|
|
468
|
-
});
|
|
469
|
-
} else {
|
|
470
|
-
dep.track();
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
226
|
}
|
|
474
227
|
function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
475
228
|
const depsMap = targetMap.get(target);
|
|
476
229
|
if (!depsMap) {
|
|
477
|
-
globalVersion++;
|
|
478
230
|
return;
|
|
479
231
|
}
|
|
480
232
|
const run = (dep) => {
|
|
@@ -546,11 +298,10 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
546
298
|
function reactiveReadArray(array) {
|
|
547
299
|
const raw = toRaw(array);
|
|
548
300
|
if (raw === array) return raw;
|
|
549
|
-
track(raw, "iterate", ARRAY_ITERATE_KEY);
|
|
550
301
|
return isShallow(array) ? raw : raw.map(toReactive);
|
|
551
302
|
}
|
|
552
303
|
function shallowReadArray(arr) {
|
|
553
|
-
track(arr = toRaw(arr)
|
|
304
|
+
track(arr = toRaw(arr));
|
|
554
305
|
return arr;
|
|
555
306
|
}
|
|
556
307
|
const arrayInstrumentations = {
|
|
@@ -702,7 +453,6 @@ function reduce(self, method, fn, args) {
|
|
|
702
453
|
}
|
|
703
454
|
function searchProxy(self, method, args) {
|
|
704
455
|
const arr = toRaw(self);
|
|
705
|
-
track(arr, "iterate", ARRAY_ITERATE_KEY);
|
|
706
456
|
const res = arr[method](...args);
|
|
707
457
|
if ((res === -1 || res === false) && isProxy(args[0])) {
|
|
708
458
|
args[0] = toRaw(args[0]);
|
|
@@ -711,11 +461,9 @@ function searchProxy(self, method, args) {
|
|
|
711
461
|
return res;
|
|
712
462
|
}
|
|
713
463
|
function noTracking(self, method, args = []) {
|
|
714
|
-
pauseTracking();
|
|
715
464
|
startBatch();
|
|
716
465
|
const res = toRaw(self)[method].apply(self, args);
|
|
717
466
|
endBatch();
|
|
718
|
-
resetTracking();
|
|
719
467
|
return res;
|
|
720
468
|
}
|
|
721
469
|
|
|
@@ -726,7 +474,6 @@ const builtInSymbols = new Set(
|
|
|
726
474
|
function hasOwnProperty(key) {
|
|
727
475
|
if (!isSymbol(key)) key = String(key);
|
|
728
476
|
const obj = toRaw(this);
|
|
729
|
-
track(obj, "has", key);
|
|
730
477
|
return obj.hasOwnProperty(key);
|
|
731
478
|
}
|
|
732
479
|
class BaseReactiveHandler {
|
|
@@ -772,9 +519,6 @@ class BaseReactiveHandler {
|
|
|
772
519
|
if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
|
|
773
520
|
return res;
|
|
774
521
|
}
|
|
775
|
-
if (!isReadonly2) {
|
|
776
|
-
track(target, "get", key);
|
|
777
|
-
}
|
|
778
522
|
if (isShallow2) {
|
|
779
523
|
return res;
|
|
780
524
|
}
|
|
@@ -842,17 +586,10 @@ class MutableReactiveHandler extends BaseReactiveHandler {
|
|
|
842
586
|
}
|
|
843
587
|
has(target, key) {
|
|
844
588
|
const result = Reflect.has(target, key);
|
|
845
|
-
if (!isSymbol(key) || !builtInSymbols.has(key))
|
|
846
|
-
track(target, "has", key);
|
|
847
|
-
}
|
|
589
|
+
if (!isSymbol(key) || !builtInSymbols.has(key)) ;
|
|
848
590
|
return result;
|
|
849
591
|
}
|
|
850
592
|
ownKeys(target) {
|
|
851
|
-
track(
|
|
852
|
-
target,
|
|
853
|
-
"iterate",
|
|
854
|
-
isArray(target) ? "length" : ITERATE_KEY
|
|
855
|
-
);
|
|
856
593
|
return Reflect.ownKeys(target);
|
|
857
594
|
}
|
|
858
595
|
}
|
|
@@ -890,14 +627,8 @@ function createIterableMethod(method, isReadonly2, isShallow2) {
|
|
|
890
627
|
const rawTarget = toRaw(target);
|
|
891
628
|
const targetIsMap = isMap(rawTarget);
|
|
892
629
|
const isPair = method === "entries" || method === Symbol.iterator && targetIsMap;
|
|
893
|
-
const isKeyOnly = method === "keys" && targetIsMap;
|
|
894
630
|
const innerIterator = target[method](...args);
|
|
895
631
|
const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
|
|
896
|
-
!isReadonly2 && track(
|
|
897
|
-
rawTarget,
|
|
898
|
-
"iterate",
|
|
899
|
-
isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY
|
|
900
|
-
);
|
|
901
632
|
return {
|
|
902
633
|
// iterator protocol
|
|
903
634
|
next() {
|
|
@@ -932,12 +663,6 @@ function createInstrumentations(readonly, shallow) {
|
|
|
932
663
|
const target = this["__v_raw"];
|
|
933
664
|
const rawTarget = toRaw(target);
|
|
934
665
|
const rawKey = toRaw(key);
|
|
935
|
-
if (!readonly) {
|
|
936
|
-
if (hasChanged(key, rawKey)) {
|
|
937
|
-
track(rawTarget, "get", key);
|
|
938
|
-
}
|
|
939
|
-
track(rawTarget, "get", rawKey);
|
|
940
|
-
}
|
|
941
666
|
const { has } = getProto(rawTarget);
|
|
942
667
|
const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
|
|
943
668
|
if (has.call(rawTarget, key)) {
|
|
@@ -950,27 +675,20 @@ function createInstrumentations(readonly, shallow) {
|
|
|
950
675
|
},
|
|
951
676
|
get size() {
|
|
952
677
|
const target = this["__v_raw"];
|
|
953
|
-
!readonly && track(toRaw(target)
|
|
678
|
+
!readonly && track(toRaw(target));
|
|
954
679
|
return target.size;
|
|
955
680
|
},
|
|
956
681
|
has(key) {
|
|
957
682
|
const target = this["__v_raw"];
|
|
958
|
-
|
|
683
|
+
toRaw(target);
|
|
959
684
|
const rawKey = toRaw(key);
|
|
960
|
-
if (!readonly) {
|
|
961
|
-
if (hasChanged(key, rawKey)) {
|
|
962
|
-
track(rawTarget, "has", key);
|
|
963
|
-
}
|
|
964
|
-
track(rawTarget, "has", rawKey);
|
|
965
|
-
}
|
|
966
685
|
return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);
|
|
967
686
|
},
|
|
968
687
|
forEach(callback, thisArg) {
|
|
969
688
|
const observed = this;
|
|
970
689
|
const target = observed["__v_raw"];
|
|
971
|
-
|
|
690
|
+
toRaw(target);
|
|
972
691
|
const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
|
|
973
|
-
!readonly && track(rawTarget, "iterate", ITERATE_KEY);
|
|
974
692
|
return target.forEach((value, key) => {
|
|
975
693
|
return callback.call(thisArg, wrap(value), wrap(key), observed);
|
|
976
694
|
});
|
|
@@ -1249,96 +967,8 @@ function unref(ref2) {
|
|
|
1249
967
|
return isRef(ref2) ? ref2.value : ref2;
|
|
1250
968
|
}
|
|
1251
969
|
|
|
1252
|
-
class ComputedRefImpl {
|
|
1253
|
-
constructor(fn, setter, isSSR) {
|
|
1254
|
-
this.fn = fn;
|
|
1255
|
-
this.setter = setter;
|
|
1256
|
-
/**
|
|
1257
|
-
* @internal
|
|
1258
|
-
*/
|
|
1259
|
-
this._value = void 0;
|
|
1260
|
-
/**
|
|
1261
|
-
* @internal
|
|
1262
|
-
*/
|
|
1263
|
-
this.dep = new Dep(this);
|
|
1264
|
-
/**
|
|
1265
|
-
* @internal
|
|
1266
|
-
*/
|
|
1267
|
-
this.__v_isRef = true;
|
|
1268
|
-
// TODO isolatedDeclarations "__v_isReadonly"
|
|
1269
|
-
// A computed is also a subscriber that tracks other deps
|
|
1270
|
-
/**
|
|
1271
|
-
* @internal
|
|
1272
|
-
*/
|
|
1273
|
-
this.deps = void 0;
|
|
1274
|
-
/**
|
|
1275
|
-
* @internal
|
|
1276
|
-
*/
|
|
1277
|
-
this.depsTail = void 0;
|
|
1278
|
-
/**
|
|
1279
|
-
* @internal
|
|
1280
|
-
*/
|
|
1281
|
-
this.flags = 16;
|
|
1282
|
-
/**
|
|
1283
|
-
* @internal
|
|
1284
|
-
*/
|
|
1285
|
-
this.globalVersion = globalVersion - 1;
|
|
1286
|
-
/**
|
|
1287
|
-
* @internal
|
|
1288
|
-
*/
|
|
1289
|
-
this.next = void 0;
|
|
1290
|
-
// for backwards compat
|
|
1291
|
-
this.effect = this;
|
|
1292
|
-
this["__v_isReadonly"] = !setter;
|
|
1293
|
-
this.isSSR = isSSR;
|
|
1294
|
-
}
|
|
1295
|
-
/**
|
|
1296
|
-
* @internal
|
|
1297
|
-
*/
|
|
1298
|
-
notify() {
|
|
1299
|
-
this.flags |= 16;
|
|
1300
|
-
if (!(this.flags & 8) && // avoid infinite self recursion
|
|
1301
|
-
activeSub !== this) {
|
|
1302
|
-
batch(this, true);
|
|
1303
|
-
return true;
|
|
1304
|
-
} else if (!!(process.env.NODE_ENV !== "production")) ;
|
|
1305
|
-
}
|
|
1306
|
-
get value() {
|
|
1307
|
-
const link = !!(process.env.NODE_ENV !== "production") ? this.dep.track({
|
|
1308
|
-
target: this,
|
|
1309
|
-
type: "get",
|
|
1310
|
-
key: "value"
|
|
1311
|
-
}) : this.dep.track();
|
|
1312
|
-
refreshComputed(this);
|
|
1313
|
-
if (link) {
|
|
1314
|
-
link.version = this.dep.version;
|
|
1315
|
-
}
|
|
1316
|
-
return this._value;
|
|
1317
|
-
}
|
|
1318
|
-
set value(newValue) {
|
|
1319
|
-
if (this.setter) {
|
|
1320
|
-
this.setter(newValue);
|
|
1321
|
-
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
1322
|
-
warn("Write operation failed: computed value is readonly");
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
function computed$1(getterOrOptions, debugOptions, isSSR = false) {
|
|
1327
|
-
let getter;
|
|
1328
|
-
let setter;
|
|
1329
|
-
if (isFunction(getterOrOptions)) {
|
|
1330
|
-
getter = getterOrOptions;
|
|
1331
|
-
} else {
|
|
1332
|
-
getter = getterOrOptions.get;
|
|
1333
|
-
setter = getterOrOptions.set;
|
|
1334
|
-
}
|
|
1335
|
-
const cRef = new ComputedRefImpl(getter, setter, isSSR);
|
|
1336
|
-
if (!!(process.env.NODE_ENV !== "production") && debugOptions) ;
|
|
1337
|
-
return cRef;
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
970
|
/**
|
|
1341
|
-
* @vue/runtime-core v3.5.
|
|
971
|
+
* @vue/runtime-core v3.5.24
|
|
1342
972
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1343
973
|
* @license MIT
|
|
1344
974
|
**/
|
|
@@ -1353,7 +983,6 @@ let isWarning = false;
|
|
|
1353
983
|
function warn$1(msg, ...args) {
|
|
1354
984
|
if (isWarning) return;
|
|
1355
985
|
isWarning = true;
|
|
1356
|
-
pauseTracking();
|
|
1357
986
|
const instance = stack.length ? stack[stack.length - 1].component : null;
|
|
1358
987
|
const appWarnHandler = instance && instance.appContext.config.warnHandler;
|
|
1359
988
|
const trace = getComponentTrace();
|
|
@@ -1384,7 +1013,6 @@ function warn$1(msg, ...args) {
|
|
|
1384
1013
|
}
|
|
1385
1014
|
console.warn(...warnArgs);
|
|
1386
1015
|
}
|
|
1387
|
-
resetTracking();
|
|
1388
1016
|
isWarning = false;
|
|
1389
1017
|
}
|
|
1390
1018
|
function getComponentTrace() {
|
|
@@ -1513,13 +1141,11 @@ function handleError(err, instance, type, throwInDev = true) {
|
|
|
1513
1141
|
cur = cur.parent;
|
|
1514
1142
|
}
|
|
1515
1143
|
if (errorHandler) {
|
|
1516
|
-
pauseTracking();
|
|
1517
1144
|
callWithErrorHandling(errorHandler, null, 10, [
|
|
1518
1145
|
err,
|
|
1519
1146
|
exposedInstance,
|
|
1520
1147
|
errorInfo
|
|
1521
1148
|
]);
|
|
1522
|
-
resetTracking();
|
|
1523
1149
|
return;
|
|
1524
1150
|
}
|
|
1525
1151
|
}
|
|
@@ -1938,7 +1564,6 @@ function useTemplateRef(key) {
|
|
|
1938
1564
|
}
|
|
1939
1565
|
getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));
|
|
1940
1566
|
getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));
|
|
1941
|
-
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
1942
1567
|
const COMPONENTS = "components";
|
|
1943
1568
|
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
1944
1569
|
function resolveDynamicComponent(component) {
|
|
@@ -2051,58 +1676,6 @@ function createSlots(slots, dynamicSlots) {
|
|
|
2051
1676
|
}
|
|
2052
1677
|
return slots;
|
|
2053
1678
|
}
|
|
2054
|
-
function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
2055
|
-
if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {
|
|
2056
|
-
const hasProps = Object.keys(props).length > 0;
|
|
2057
|
-
if (name !== "default") props.name = name;
|
|
2058
|
-
return openBlock(), createBlock(
|
|
2059
|
-
Fragment,
|
|
2060
|
-
null,
|
|
2061
|
-
[createVNode("slot", props, fallback)],
|
|
2062
|
-
hasProps ? -2 : 64
|
|
2063
|
-
);
|
|
2064
|
-
}
|
|
2065
|
-
let slot = slots[name];
|
|
2066
|
-
if (!!(process.env.NODE_ENV !== "production") && slot && slot.length > 1) {
|
|
2067
|
-
warn$1(
|
|
2068
|
-
`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.`
|
|
2069
|
-
);
|
|
2070
|
-
slot = () => [];
|
|
2071
|
-
}
|
|
2072
|
-
if (slot && slot._c) {
|
|
2073
|
-
slot._d = false;
|
|
2074
|
-
}
|
|
2075
|
-
openBlock();
|
|
2076
|
-
const validSlotContent = slot && ensureValidVNode(slot(props));
|
|
2077
|
-
const slotKey = props.key || // slot content array of a dynamic conditional slot may have a branch
|
|
2078
|
-
// key attached in the `createSlots` helper, respect that
|
|
2079
|
-
validSlotContent && validSlotContent.key;
|
|
2080
|
-
const rendered = createBlock(
|
|
2081
|
-
Fragment,
|
|
2082
|
-
{
|
|
2083
|
-
key: (slotKey && !isSymbol(slotKey) ? slotKey : `_${name}`) + // #7256 force differentiate fallback content from actual content
|
|
2084
|
-
("")
|
|
2085
|
-
},
|
|
2086
|
-
validSlotContent || ([]),
|
|
2087
|
-
validSlotContent && slots._ === 1 ? 64 : -2
|
|
2088
|
-
);
|
|
2089
|
-
if (rendered.scopeId) {
|
|
2090
|
-
rendered.slotScopeIds = [rendered.scopeId + "-s"];
|
|
2091
|
-
}
|
|
2092
|
-
if (slot && slot._c) {
|
|
2093
|
-
slot._d = true;
|
|
2094
|
-
}
|
|
2095
|
-
return rendered;
|
|
2096
|
-
}
|
|
2097
|
-
function ensureValidVNode(vnodes) {
|
|
2098
|
-
return vnodes.some((child) => {
|
|
2099
|
-
if (!isVNode(child)) return true;
|
|
2100
|
-
if (child.type === Comment) return false;
|
|
2101
|
-
if (child.type === Fragment && !ensureValidVNode(child.children))
|
|
2102
|
-
return false;
|
|
2103
|
-
return true;
|
|
2104
|
-
}) ? vnodes : null;
|
|
2105
|
-
}
|
|
2106
1679
|
const PublicInstanceProxyHandlers = {
|
|
2107
1680
|
};
|
|
2108
1681
|
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
@@ -2375,9 +1948,6 @@ function deepCloneVNode(vnode) {
|
|
|
2375
1948
|
function createTextVNode(text = " ", flag = 0) {
|
|
2376
1949
|
return createVNode(Text, null, text, flag);
|
|
2377
1950
|
}
|
|
2378
|
-
function createCommentVNode(text = "", asBlock = false) {
|
|
2379
|
-
return asBlock ? (openBlock(), createBlock(Comment, null, text)) : createVNode(Comment, null, text);
|
|
2380
|
-
}
|
|
2381
1951
|
function normalizeChildren(vnode, children) {
|
|
2382
1952
|
let type = 0;
|
|
2383
1953
|
const { shapeFlag } = vnode;
|
|
@@ -2466,10 +2036,9 @@ const getCurrentInstance = () => currentInstance || currentRenderingInstance;
|
|
|
2466
2036
|
);
|
|
2467
2037
|
registerGlobalSetter(
|
|
2468
2038
|
`__VUE_SSR_SETTERS__`,
|
|
2469
|
-
(v) =>
|
|
2039
|
+
(v) => v
|
|
2470
2040
|
);
|
|
2471
2041
|
}
|
|
2472
|
-
let isInSSRComponentSetup = false;
|
|
2473
2042
|
!!(process.env.NODE_ENV !== "production") ? {
|
|
2474
2043
|
} : {
|
|
2475
2044
|
};
|
|
@@ -2503,16 +2072,6 @@ function formatComponentName(instance, Component, isRoot = false) {
|
|
|
2503
2072
|
function isClassComponent(value) {
|
|
2504
2073
|
return isFunction(value) && "__vccOpts" in value;
|
|
2505
2074
|
}
|
|
2506
|
-
const computed = (getterOrOptions, debugOptions) => {
|
|
2507
|
-
const c = computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
2508
|
-
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2509
|
-
const i = getCurrentInstance();
|
|
2510
|
-
if (i && i.appContext.config.warnRecursiveComputed) {
|
|
2511
|
-
c._warnRecursive = true;
|
|
2512
|
-
}
|
|
2513
|
-
}
|
|
2514
|
-
return c;
|
|
2515
|
-
};
|
|
2516
2075
|
function initCustomFormatter() {
|
|
2517
2076
|
if (!!!(process.env.NODE_ENV !== "production") || typeof window === "undefined") {
|
|
2518
2077
|
return;
|
|
@@ -2530,9 +2089,7 @@ function initCustomFormatter() {
|
|
|
2530
2089
|
if (obj.__isVue) {
|
|
2531
2090
|
return ["div", vueStyle, `VueInstance`];
|
|
2532
2091
|
} else if (isRef(obj)) {
|
|
2533
|
-
pauseTracking();
|
|
2534
2092
|
const value = obj.value;
|
|
2535
|
-
resetTracking();
|
|
2536
2093
|
return [
|
|
2537
2094
|
"div",
|
|
2538
2095
|
{},
|
|
@@ -2697,7 +2254,7 @@ function initCustomFormatter() {
|
|
|
2697
2254
|
!!(process.env.NODE_ENV !== "production") || true ? setDevtoolsHook$1 : NOOP;
|
|
2698
2255
|
|
|
2699
2256
|
/**
|
|
2700
|
-
* vue v3.5.
|
|
2257
|
+
* vue v3.5.24
|
|
2701
2258
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
2702
2259
|
* @license MIT
|
|
2703
2260
|
**/
|
|
@@ -2712,50 +2269,6 @@ if (!!(process.env.NODE_ENV !== "production")) {
|
|
|
2712
2269
|
initDev();
|
|
2713
2270
|
}
|
|
2714
2271
|
|
|
2715
|
-
const _hoisted_1 = ["innerHTML"];
|
|
2716
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
2717
|
-
...{
|
|
2718
|
-
name: "TElAdapterFormItem"
|
|
2719
|
-
},
|
|
2720
|
-
__name: "FormItem",
|
|
2721
|
-
props: {
|
|
2722
|
-
prop: {},
|
|
2723
|
-
labelWidth: {},
|
|
2724
|
-
rules: {},
|
|
2725
|
-
extra: {}
|
|
2726
|
-
},
|
|
2727
|
-
setup(__props) {
|
|
2728
|
-
const props = __props;
|
|
2729
|
-
const itemProps = computed(() => {
|
|
2730
|
-
const { extra, ...rest } = props;
|
|
2731
|
-
return rest;
|
|
2732
|
-
});
|
|
2733
|
-
return (_ctx, _cache) => {
|
|
2734
|
-
return openBlock(), createBlock(
|
|
2735
|
-
unref(ElFormItem),
|
|
2736
|
-
normalizeProps(guardReactiveProps(itemProps.value)),
|
|
2737
|
-
{
|
|
2738
|
-
label: withCtx(() => [
|
|
2739
|
-
renderSlot(_ctx.$slots, "label")
|
|
2740
|
-
]),
|
|
2741
|
-
default: withCtx(() => [
|
|
2742
|
-
renderSlot(_ctx.$slots, "default"),
|
|
2743
|
-
__props.extra ? (openBlock(), createElementBlock("div", {
|
|
2744
|
-
key: 0,
|
|
2745
|
-
innerHTML: __props.extra,
|
|
2746
|
-
class: "m-form-tip"
|
|
2747
|
-
}, null, 8, _hoisted_1)) : createCommentVNode("v-if", true)
|
|
2748
|
-
]),
|
|
2749
|
-
_: 3
|
|
2750
|
-
/* FORWARDED */
|
|
2751
|
-
},
|
|
2752
|
-
16
|
|
2753
|
-
/* FULL_PROPS */
|
|
2754
|
-
);
|
|
2755
|
-
};
|
|
2756
|
-
}
|
|
2757
|
-
});
|
|
2758
|
-
|
|
2759
2272
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2760
2273
|
...{
|
|
2761
2274
|
name: "TElAdapterTable"
|
|
@@ -2851,12 +2364,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2851
2364
|
_: 2
|
|
2852
2365
|
/* DYNAMIC */
|
|
2853
2366
|
}, [
|
|
2367
|
+
item.title ? {
|
|
2368
|
+
name: "header",
|
|
2369
|
+
fn: withCtx((scope) => [
|
|
2370
|
+
(openBlock(), createBlock(resolveDynamicComponent(item.title(scope))))
|
|
2371
|
+
]),
|
|
2372
|
+
key: "0"
|
|
2373
|
+
} : void 0,
|
|
2854
2374
|
item.cell ? {
|
|
2855
2375
|
name: "default",
|
|
2856
2376
|
fn: withCtx((scope) => [
|
|
2857
2377
|
(openBlock(), createBlock(resolveDynamicComponent(item.cell(scope))))
|
|
2858
2378
|
]),
|
|
2859
|
-
key: "
|
|
2379
|
+
key: "1"
|
|
2860
2380
|
} : void 0
|
|
2861
2381
|
]),
|
|
2862
2382
|
1040
|
|
@@ -2962,7 +2482,7 @@ const adapter = {
|
|
|
2962
2482
|
props: (props) => props
|
|
2963
2483
|
},
|
|
2964
2484
|
formItem: {
|
|
2965
|
-
component:
|
|
2485
|
+
component: ElFormItem,
|
|
2966
2486
|
props: (props) => props
|
|
2967
2487
|
},
|
|
2968
2488
|
icon: {
|