vue 3.6.0-alpha.7 → 3.6.0-beta.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/dist/vue.cjs.js +1 -1
- package/dist/vue.cjs.prod.js +1 -1
- package/dist/vue.esm-browser.js +392 -330
- package/dist/vue.esm-browser.prod.js +8 -8
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +363 -301
- package/dist/vue.global.prod.js +9 -9
- package/dist/vue.runtime-with-vapor.esm-browser.js +484 -345
- package/dist/vue.runtime-with-vapor.esm-browser.prod.js +6 -6
- package/dist/vue.runtime.esm-browser.js +277 -235
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +249 -206
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.6.0-
|
|
2
|
+
* vue v3.6.0-beta.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -754,13 +754,13 @@ var Vue = (function (exports) {
|
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
756
|
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
757
|
-
const ITERATE_KEY = Symbol(
|
|
757
|
+
const ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
758
758
|
"Object iterate"
|
|
759
759
|
);
|
|
760
|
-
const MAP_KEY_ITERATE_KEY = Symbol(
|
|
760
|
+
const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
761
761
|
"Map keys iterate"
|
|
762
762
|
);
|
|
763
|
-
const ARRAY_ITERATE_KEY = Symbol(
|
|
763
|
+
const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
764
764
|
"Array iterate"
|
|
765
765
|
);
|
|
766
766
|
function track(target, type, key) {
|
|
@@ -2761,10 +2761,10 @@ var Vue = (function (exports) {
|
|
|
2761
2761
|
}
|
|
2762
2762
|
}
|
|
2763
2763
|
let isFlushing = false;
|
|
2764
|
-
function flushOnAppMount() {
|
|
2764
|
+
function flushOnAppMount(instance) {
|
|
2765
2765
|
if (!isFlushing) {
|
|
2766
2766
|
isFlushing = true;
|
|
2767
|
-
flushPreFlushCbs();
|
|
2767
|
+
flushPreFlushCbs(instance);
|
|
2768
2768
|
flushPostFlushCbs();
|
|
2769
2769
|
isFlushing = false;
|
|
2770
2770
|
}
|
|
@@ -3179,7 +3179,175 @@ var Vue = (function (exports) {
|
|
|
3179
3179
|
}
|
|
3180
3180
|
}
|
|
3181
3181
|
|
|
3182
|
-
|
|
3182
|
+
function provide(key, value) {
|
|
3183
|
+
{
|
|
3184
|
+
if (!currentInstance || currentInstance.isMounted && !isHmrUpdating) {
|
|
3185
|
+
warn$1(`provide() can only be used inside setup().`);
|
|
3186
|
+
}
|
|
3187
|
+
}
|
|
3188
|
+
if (currentInstance) {
|
|
3189
|
+
let provides = currentInstance.provides;
|
|
3190
|
+
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
3191
|
+
if (parentProvides === provides) {
|
|
3192
|
+
provides = currentInstance.provides = Object.create(parentProvides);
|
|
3193
|
+
}
|
|
3194
|
+
provides[key] = value;
|
|
3195
|
+
}
|
|
3196
|
+
}
|
|
3197
|
+
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
3198
|
+
const instance = getCurrentGenericInstance();
|
|
3199
|
+
if (instance || currentApp) {
|
|
3200
|
+
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.appContext && instance.appContext.provides : instance.parent.provides : void 0;
|
|
3201
|
+
if (provides && key in provides) {
|
|
3202
|
+
return provides[key];
|
|
3203
|
+
} else if (arguments.length > 1) {
|
|
3204
|
+
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
3205
|
+
} else {
|
|
3206
|
+
warn$1(`injection "${String(key)}" not found.`);
|
|
3207
|
+
}
|
|
3208
|
+
} else {
|
|
3209
|
+
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
3210
|
+
}
|
|
3211
|
+
}
|
|
3212
|
+
function hasInjectionContext() {
|
|
3213
|
+
return !!(getCurrentGenericInstance() || currentApp);
|
|
3214
|
+
}
|
|
3215
|
+
|
|
3216
|
+
const ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx");
|
|
3217
|
+
const useSSRContext = () => {
|
|
3218
|
+
{
|
|
3219
|
+
warn$1(`useSSRContext() is not supported in the global build.`);
|
|
3220
|
+
}
|
|
3221
|
+
};
|
|
3222
|
+
|
|
3223
|
+
function watchEffect(effect, options) {
|
|
3224
|
+
return doWatch(effect, null, options);
|
|
3225
|
+
}
|
|
3226
|
+
function watchPostEffect(effect, options) {
|
|
3227
|
+
return doWatch(
|
|
3228
|
+
effect,
|
|
3229
|
+
null,
|
|
3230
|
+
extend({}, options, { flush: "post" })
|
|
3231
|
+
);
|
|
3232
|
+
}
|
|
3233
|
+
function watchSyncEffect(effect, options) {
|
|
3234
|
+
return doWatch(
|
|
3235
|
+
effect,
|
|
3236
|
+
null,
|
|
3237
|
+
extend({}, options, { flush: "sync" })
|
|
3238
|
+
);
|
|
3239
|
+
}
|
|
3240
|
+
function watch(source, cb, options) {
|
|
3241
|
+
if (!isFunction(cb)) {
|
|
3242
|
+
warn$1(
|
|
3243
|
+
`\`watch(fn, options?)\` signature has been moved to a separate API. Use \`watchEffect(fn, options?)\` instead. \`watch\` now only supports \`watch(source, cb, options?) signature.`
|
|
3244
|
+
);
|
|
3245
|
+
}
|
|
3246
|
+
return doWatch(source, cb, options);
|
|
3247
|
+
}
|
|
3248
|
+
class RenderWatcherEffect extends WatcherEffect {
|
|
3249
|
+
constructor(instance, source, cb, options, flush) {
|
|
3250
|
+
super(source, cb, options);
|
|
3251
|
+
this.flush = flush;
|
|
3252
|
+
const job = () => {
|
|
3253
|
+
if (this.dirty) {
|
|
3254
|
+
this.run();
|
|
3255
|
+
}
|
|
3256
|
+
};
|
|
3257
|
+
if (cb) {
|
|
3258
|
+
this.flags |= 128;
|
|
3259
|
+
job.flags |= 2;
|
|
3260
|
+
}
|
|
3261
|
+
if (instance) {
|
|
3262
|
+
job.i = instance;
|
|
3263
|
+
}
|
|
3264
|
+
this.job = job;
|
|
3265
|
+
}
|
|
3266
|
+
notify() {
|
|
3267
|
+
const flags = this.flags;
|
|
3268
|
+
if (!(flags & 256)) {
|
|
3269
|
+
const flush = this.flush;
|
|
3270
|
+
const job = this.job;
|
|
3271
|
+
if (flush === "post") {
|
|
3272
|
+
queuePostRenderEffect(job, void 0, job.i ? job.i.suspense : null);
|
|
3273
|
+
} else if (flush === "pre") {
|
|
3274
|
+
queueJob(job, job.i ? job.i.uid : void 0, true);
|
|
3275
|
+
} else {
|
|
3276
|
+
job();
|
|
3277
|
+
}
|
|
3278
|
+
}
|
|
3279
|
+
}
|
|
3280
|
+
}
|
|
3281
|
+
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
3282
|
+
const { immediate, deep, flush = "pre", once } = options;
|
|
3283
|
+
if (!cb) {
|
|
3284
|
+
if (immediate !== void 0) {
|
|
3285
|
+
warn$1(
|
|
3286
|
+
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3287
|
+
);
|
|
3288
|
+
}
|
|
3289
|
+
if (deep !== void 0) {
|
|
3290
|
+
warn$1(
|
|
3291
|
+
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3292
|
+
);
|
|
3293
|
+
}
|
|
3294
|
+
if (once !== void 0) {
|
|
3295
|
+
warn$1(
|
|
3296
|
+
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3297
|
+
);
|
|
3298
|
+
}
|
|
3299
|
+
}
|
|
3300
|
+
const baseWatchOptions = extend({}, options);
|
|
3301
|
+
baseWatchOptions.onWarn = warn$1;
|
|
3302
|
+
const instance = currentInstance;
|
|
3303
|
+
baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
|
|
3304
|
+
const effect = new RenderWatcherEffect(
|
|
3305
|
+
instance,
|
|
3306
|
+
source,
|
|
3307
|
+
cb,
|
|
3308
|
+
baseWatchOptions,
|
|
3309
|
+
flush
|
|
3310
|
+
);
|
|
3311
|
+
if (cb) {
|
|
3312
|
+
effect.run(true);
|
|
3313
|
+
} else if (flush === "post") {
|
|
3314
|
+
queuePostRenderEffect(effect.job, void 0, instance && instance.suspense);
|
|
3315
|
+
} else {
|
|
3316
|
+
effect.run(true);
|
|
3317
|
+
}
|
|
3318
|
+
const stop = effect.stop.bind(effect);
|
|
3319
|
+
stop.pause = effect.pause.bind(effect);
|
|
3320
|
+
stop.resume = effect.resume.bind(effect);
|
|
3321
|
+
stop.stop = stop;
|
|
3322
|
+
return stop;
|
|
3323
|
+
}
|
|
3324
|
+
function instanceWatch(source, value, options) {
|
|
3325
|
+
const publicThis = this.proxy;
|
|
3326
|
+
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
3327
|
+
let cb;
|
|
3328
|
+
if (isFunction(value)) {
|
|
3329
|
+
cb = value;
|
|
3330
|
+
} else {
|
|
3331
|
+
cb = value.handler;
|
|
3332
|
+
options = value;
|
|
3333
|
+
}
|
|
3334
|
+
const prev = setCurrentInstance(this);
|
|
3335
|
+
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
3336
|
+
setCurrentInstance(...prev);
|
|
3337
|
+
return res;
|
|
3338
|
+
}
|
|
3339
|
+
function createPathGetter(ctx, path) {
|
|
3340
|
+
const segments = path.split(".");
|
|
3341
|
+
return () => {
|
|
3342
|
+
let cur = ctx;
|
|
3343
|
+
for (let i = 0; i < segments.length && cur; i++) {
|
|
3344
|
+
cur = cur[segments[i]];
|
|
3345
|
+
}
|
|
3346
|
+
return cur;
|
|
3347
|
+
};
|
|
3348
|
+
}
|
|
3349
|
+
|
|
3350
|
+
const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
|
|
3183
3351
|
const isTeleport = (type) => type.__isTeleport;
|
|
3184
3352
|
const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
|
|
3185
3353
|
const isTeleportDeferred = (props) => props && (props.defer || props.defer === "");
|
|
@@ -3551,8 +3719,8 @@ var Vue = (function (exports) {
|
|
|
3551
3719
|
return targetAnchor;
|
|
3552
3720
|
}
|
|
3553
3721
|
|
|
3554
|
-
const leaveCbKey = Symbol("_leaveCb");
|
|
3555
|
-
const enterCbKey$1 = Symbol("_enterCb");
|
|
3722
|
+
const leaveCbKey = /* @__PURE__ */ Symbol("_leaveCb");
|
|
3723
|
+
const enterCbKey$1 = /* @__PURE__ */ Symbol("_enterCb");
|
|
3556
3724
|
function useTransitionState() {
|
|
3557
3725
|
const state = {
|
|
3558
3726
|
isMounted: false,
|
|
@@ -5159,7 +5327,9 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
5159
5327
|
}
|
|
5160
5328
|
function pruneCache(filter) {
|
|
5161
5329
|
cache.forEach((vnode, key) => {
|
|
5162
|
-
const name = getComponentName(
|
|
5330
|
+
const name = getComponentName(
|
|
5331
|
+
isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type
|
|
5332
|
+
);
|
|
5163
5333
|
if (name && !filter(name)) {
|
|
5164
5334
|
pruneCacheEntry(key);
|
|
5165
5335
|
}
|
|
@@ -5461,7 +5631,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
5461
5631
|
function resolveComponent(name, maybeSelfReference) {
|
|
5462
5632
|
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
5463
5633
|
}
|
|
5464
|
-
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
5634
|
+
const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
5465
5635
|
function resolveDynamicComponent(component) {
|
|
5466
5636
|
if (isString(component)) {
|
|
5467
5637
|
return resolveAsset(COMPONENTS, component, false) || component;
|
|
@@ -5652,14 +5822,14 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5652
5822
|
}
|
|
5653
5823
|
}
|
|
5654
5824
|
|
|
5655
|
-
function toHandlers(obj, preserveCaseIfNecessary) {
|
|
5825
|
+
function toHandlers(obj, preserveCaseIfNecessary, needWrap) {
|
|
5656
5826
|
const ret = {};
|
|
5657
5827
|
if (!isObject(obj)) {
|
|
5658
5828
|
warn$1(`v-on with no argument expects an object value.`);
|
|
5659
5829
|
return ret;
|
|
5660
5830
|
}
|
|
5661
5831
|
for (const key in obj) {
|
|
5662
|
-
ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key];
|
|
5832
|
+
ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = needWrap ? () => obj[key] : obj[key];
|
|
5663
5833
|
}
|
|
5664
5834
|
return ret;
|
|
5665
5835
|
}
|
|
@@ -6628,174 +6798,6 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6628
6798
|
}
|
|
6629
6799
|
let currentApp = null;
|
|
6630
6800
|
|
|
6631
|
-
function provide(key, value) {
|
|
6632
|
-
{
|
|
6633
|
-
if (!currentInstance || currentInstance.isMounted) {
|
|
6634
|
-
warn$1(`provide() can only be used inside setup().`);
|
|
6635
|
-
}
|
|
6636
|
-
}
|
|
6637
|
-
if (currentInstance) {
|
|
6638
|
-
let provides = currentInstance.provides;
|
|
6639
|
-
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
6640
|
-
if (parentProvides === provides) {
|
|
6641
|
-
provides = currentInstance.provides = Object.create(parentProvides);
|
|
6642
|
-
}
|
|
6643
|
-
provides[key] = value;
|
|
6644
|
-
}
|
|
6645
|
-
}
|
|
6646
|
-
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
6647
|
-
const instance = getCurrentGenericInstance();
|
|
6648
|
-
if (instance || currentApp) {
|
|
6649
|
-
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.appContext && instance.appContext.provides : instance.parent.provides : void 0;
|
|
6650
|
-
if (provides && key in provides) {
|
|
6651
|
-
return provides[key];
|
|
6652
|
-
} else if (arguments.length > 1) {
|
|
6653
|
-
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
6654
|
-
} else {
|
|
6655
|
-
warn$1(`injection "${String(key)}" not found.`);
|
|
6656
|
-
}
|
|
6657
|
-
} else {
|
|
6658
|
-
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
6659
|
-
}
|
|
6660
|
-
}
|
|
6661
|
-
function hasInjectionContext() {
|
|
6662
|
-
return !!(getCurrentGenericInstance() || currentApp);
|
|
6663
|
-
}
|
|
6664
|
-
|
|
6665
|
-
const ssrContextKey = Symbol.for("v-scx");
|
|
6666
|
-
const useSSRContext = () => {
|
|
6667
|
-
{
|
|
6668
|
-
warn$1(`useSSRContext() is not supported in the global build.`);
|
|
6669
|
-
}
|
|
6670
|
-
};
|
|
6671
|
-
|
|
6672
|
-
function watchEffect(effect, options) {
|
|
6673
|
-
return doWatch(effect, null, options);
|
|
6674
|
-
}
|
|
6675
|
-
function watchPostEffect(effect, options) {
|
|
6676
|
-
return doWatch(
|
|
6677
|
-
effect,
|
|
6678
|
-
null,
|
|
6679
|
-
extend({}, options, { flush: "post" })
|
|
6680
|
-
);
|
|
6681
|
-
}
|
|
6682
|
-
function watchSyncEffect(effect, options) {
|
|
6683
|
-
return doWatch(
|
|
6684
|
-
effect,
|
|
6685
|
-
null,
|
|
6686
|
-
extend({}, options, { flush: "sync" })
|
|
6687
|
-
);
|
|
6688
|
-
}
|
|
6689
|
-
function watch(source, cb, options) {
|
|
6690
|
-
if (!isFunction(cb)) {
|
|
6691
|
-
warn$1(
|
|
6692
|
-
`\`watch(fn, options?)\` signature has been moved to a separate API. Use \`watchEffect(fn, options?)\` instead. \`watch\` now only supports \`watch(source, cb, options?) signature.`
|
|
6693
|
-
);
|
|
6694
|
-
}
|
|
6695
|
-
return doWatch(source, cb, options);
|
|
6696
|
-
}
|
|
6697
|
-
class RenderWatcherEffect extends WatcherEffect {
|
|
6698
|
-
constructor(instance, source, cb, options, flush) {
|
|
6699
|
-
super(source, cb, options);
|
|
6700
|
-
this.flush = flush;
|
|
6701
|
-
const job = () => {
|
|
6702
|
-
if (this.dirty) {
|
|
6703
|
-
this.run();
|
|
6704
|
-
}
|
|
6705
|
-
};
|
|
6706
|
-
if (cb) {
|
|
6707
|
-
this.flags |= 128;
|
|
6708
|
-
job.flags |= 2;
|
|
6709
|
-
}
|
|
6710
|
-
if (instance) {
|
|
6711
|
-
job.i = instance;
|
|
6712
|
-
}
|
|
6713
|
-
this.job = job;
|
|
6714
|
-
}
|
|
6715
|
-
notify() {
|
|
6716
|
-
const flags = this.flags;
|
|
6717
|
-
if (!(flags & 256)) {
|
|
6718
|
-
const flush = this.flush;
|
|
6719
|
-
const job = this.job;
|
|
6720
|
-
if (flush === "post") {
|
|
6721
|
-
queuePostRenderEffect(job, void 0, job.i ? job.i.suspense : null);
|
|
6722
|
-
} else if (flush === "pre") {
|
|
6723
|
-
queueJob(job, job.i ? job.i.uid : void 0, true);
|
|
6724
|
-
} else {
|
|
6725
|
-
job();
|
|
6726
|
-
}
|
|
6727
|
-
}
|
|
6728
|
-
}
|
|
6729
|
-
}
|
|
6730
|
-
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
6731
|
-
const { immediate, deep, flush = "pre", once } = options;
|
|
6732
|
-
if (!cb) {
|
|
6733
|
-
if (immediate !== void 0) {
|
|
6734
|
-
warn$1(
|
|
6735
|
-
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
6736
|
-
);
|
|
6737
|
-
}
|
|
6738
|
-
if (deep !== void 0) {
|
|
6739
|
-
warn$1(
|
|
6740
|
-
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
6741
|
-
);
|
|
6742
|
-
}
|
|
6743
|
-
if (once !== void 0) {
|
|
6744
|
-
warn$1(
|
|
6745
|
-
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
6746
|
-
);
|
|
6747
|
-
}
|
|
6748
|
-
}
|
|
6749
|
-
const baseWatchOptions = extend({}, options);
|
|
6750
|
-
baseWatchOptions.onWarn = warn$1;
|
|
6751
|
-
const instance = currentInstance;
|
|
6752
|
-
baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
|
|
6753
|
-
const effect = new RenderWatcherEffect(
|
|
6754
|
-
instance,
|
|
6755
|
-
source,
|
|
6756
|
-
cb,
|
|
6757
|
-
baseWatchOptions,
|
|
6758
|
-
flush
|
|
6759
|
-
);
|
|
6760
|
-
if (cb) {
|
|
6761
|
-
effect.run(true);
|
|
6762
|
-
} else if (flush === "post") {
|
|
6763
|
-
queuePostRenderEffect(effect.job, void 0, instance && instance.suspense);
|
|
6764
|
-
} else {
|
|
6765
|
-
effect.run(true);
|
|
6766
|
-
}
|
|
6767
|
-
const stop = effect.stop.bind(effect);
|
|
6768
|
-
stop.pause = effect.pause.bind(effect);
|
|
6769
|
-
stop.resume = effect.resume.bind(effect);
|
|
6770
|
-
stop.stop = stop;
|
|
6771
|
-
return stop;
|
|
6772
|
-
}
|
|
6773
|
-
function instanceWatch(source, value, options) {
|
|
6774
|
-
const publicThis = this.proxy;
|
|
6775
|
-
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
6776
|
-
let cb;
|
|
6777
|
-
if (isFunction(value)) {
|
|
6778
|
-
cb = value;
|
|
6779
|
-
} else {
|
|
6780
|
-
cb = value.handler;
|
|
6781
|
-
options = value;
|
|
6782
|
-
}
|
|
6783
|
-
const prev = setCurrentInstance(this);
|
|
6784
|
-
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
6785
|
-
setCurrentInstance(...prev);
|
|
6786
|
-
return res;
|
|
6787
|
-
}
|
|
6788
|
-
function createPathGetter(ctx, path) {
|
|
6789
|
-
const segments = path.split(".");
|
|
6790
|
-
return () => {
|
|
6791
|
-
let cur = ctx;
|
|
6792
|
-
for (let i = 0; i < segments.length && cur; i++) {
|
|
6793
|
-
cur = cur[segments[i]];
|
|
6794
|
-
}
|
|
6795
|
-
return cur;
|
|
6796
|
-
};
|
|
6797
|
-
}
|
|
6798
|
-
|
|
6799
6801
|
function useModel(props, name, options = EMPTY_OBJ) {
|
|
6800
6802
|
const i = getCurrentGenericInstance();
|
|
6801
6803
|
if (!i) {
|
|
@@ -7880,6 +7882,14 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7880
7882
|
return supported;
|
|
7881
7883
|
}
|
|
7882
7884
|
|
|
7885
|
+
const MoveType = {
|
|
7886
|
+
"ENTER": 0,
|
|
7887
|
+
"0": "ENTER",
|
|
7888
|
+
"LEAVE": 1,
|
|
7889
|
+
"1": "LEAVE",
|
|
7890
|
+
"REORDER": 2,
|
|
7891
|
+
"2": "REORDER"
|
|
7892
|
+
};
|
|
7883
7893
|
const queuePostRenderEffect = queueEffectWithSuspense ;
|
|
7884
7894
|
function createRenderer(options) {
|
|
7885
7895
|
return baseCreateRenderer(options);
|
|
@@ -8028,7 +8038,15 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8028
8038
|
} else {
|
|
8029
8039
|
const el = n2.el = n1.el;
|
|
8030
8040
|
if (n2.children !== n1.children) {
|
|
8031
|
-
|
|
8041
|
+
if (isHmrUpdating && n2.patchFlag === -1 && "__elIndex" in n1) {
|
|
8042
|
+
const childNodes = container.childNodes;
|
|
8043
|
+
const newChild = hostCreateText(n2.children);
|
|
8044
|
+
const oldChild = childNodes[n2.__elIndex = n1.__elIndex];
|
|
8045
|
+
hostInsert(newChild, container, oldChild);
|
|
8046
|
+
hostRemove(oldChild);
|
|
8047
|
+
} else {
|
|
8048
|
+
hostSetText(el, n2.children);
|
|
8049
|
+
}
|
|
8032
8050
|
}
|
|
8033
8051
|
}
|
|
8034
8052
|
};
|
|
@@ -8414,7 +8432,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8414
8432
|
} else {
|
|
8415
8433
|
if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result
|
|
8416
8434
|
// of renderSlot() with no valid children
|
|
8417
|
-
n1.dynamicChildren) {
|
|
8435
|
+
n1.dynamicChildren && n1.dynamicChildren.length === dynamicChildren.length) {
|
|
8418
8436
|
patchBlockChildren(
|
|
8419
8437
|
n1.dynamicChildren,
|
|
8420
8438
|
dynamicChildren,
|
|
@@ -9102,8 +9120,8 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9102
9120
|
const nextChild = c2[nextIndex];
|
|
9103
9121
|
const anchorVNode = c2[nextIndex + 1];
|
|
9104
9122
|
const anchor = nextIndex + 1 < l2 ? (
|
|
9105
|
-
// #13559, fallback to el placeholder for unresolved async component
|
|
9106
|
-
anchorVNode.el || anchorVNode
|
|
9123
|
+
// #13559, #14173 fallback to el placeholder for unresolved async component
|
|
9124
|
+
anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode)
|
|
9107
9125
|
) : parentAnchor;
|
|
9108
9126
|
if (newIndexToOldIndexMap[i] === 0) {
|
|
9109
9127
|
patch(
|
|
@@ -9408,9 +9426,11 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9408
9426
|
return teleportEnd ? hostNextSibling(teleportEnd) : el;
|
|
9409
9427
|
};
|
|
9410
9428
|
const render = (vnode, container, namespace) => {
|
|
9429
|
+
let instance;
|
|
9411
9430
|
if (vnode == null) {
|
|
9412
9431
|
if (container._vnode) {
|
|
9413
9432
|
unmount(container._vnode, null, null, true);
|
|
9433
|
+
instance = container._vnode.component;
|
|
9414
9434
|
}
|
|
9415
9435
|
} else {
|
|
9416
9436
|
patch(
|
|
@@ -9424,7 +9444,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9424
9444
|
);
|
|
9425
9445
|
}
|
|
9426
9446
|
container._vnode = vnode;
|
|
9427
|
-
flushOnAppMount();
|
|
9447
|
+
flushOnAppMount(instance);
|
|
9428
9448
|
};
|
|
9429
9449
|
const internals = {
|
|
9430
9450
|
p: patch,
|
|
@@ -9514,9 +9534,13 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9514
9534
|
if (!shallow && c2.patchFlag !== -2)
|
|
9515
9535
|
traverseStaticChildren(c1, c2);
|
|
9516
9536
|
}
|
|
9517
|
-
if (c2.type === Text
|
|
9518
|
-
|
|
9519
|
-
|
|
9537
|
+
if (c2.type === Text) {
|
|
9538
|
+
if (c2.patchFlag !== -1) {
|
|
9539
|
+
c2.el = c1.el;
|
|
9540
|
+
} else {
|
|
9541
|
+
c2.__elIndex = i + // take fragment start anchor into account
|
|
9542
|
+
(n1.type === Fragment ? 1 : 0);
|
|
9543
|
+
}
|
|
9520
9544
|
}
|
|
9521
9545
|
if (c2.type === Comment && !c2.el) {
|
|
9522
9546
|
c2.el = c1.el;
|
|
@@ -9552,16 +9576,24 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9552
9576
|
insert();
|
|
9553
9577
|
}
|
|
9554
9578
|
}
|
|
9555
|
-
function performTransitionLeave(el, transition, remove, isElement = true) {
|
|
9579
|
+
function performTransitionLeave(el, transition, remove, isElement = true, force = false) {
|
|
9556
9580
|
const performRemove = () => {
|
|
9557
9581
|
remove();
|
|
9558
9582
|
if (transition && !transition.persisted && transition.afterLeave) {
|
|
9559
9583
|
transition.afterLeave();
|
|
9560
9584
|
}
|
|
9561
9585
|
};
|
|
9562
|
-
if (isElement && transition && !transition.persisted) {
|
|
9586
|
+
if (force || isElement && transition && !transition.persisted) {
|
|
9563
9587
|
const { leave, delayLeave } = transition;
|
|
9564
|
-
const performLeave = () =>
|
|
9588
|
+
const performLeave = () => {
|
|
9589
|
+
if (el._isLeaving && force) {
|
|
9590
|
+
el[leaveCbKey](
|
|
9591
|
+
true
|
|
9592
|
+
/* cancelled */
|
|
9593
|
+
);
|
|
9594
|
+
}
|
|
9595
|
+
leave(el, performRemove);
|
|
9596
|
+
};
|
|
9565
9597
|
if (delayLeave) {
|
|
9566
9598
|
delayLeave(el, performRemove, performLeave);
|
|
9567
9599
|
} else {
|
|
@@ -9617,6 +9649,16 @@ app.use(vaporInteropPlugin)
|
|
|
9617
9649
|
}
|
|
9618
9650
|
return inheritedScopeIds;
|
|
9619
9651
|
}
|
|
9652
|
+
function resolveAsyncComponentPlaceholder(anchorVnode) {
|
|
9653
|
+
if (anchorVnode.placeholder) {
|
|
9654
|
+
return anchorVnode.placeholder;
|
|
9655
|
+
}
|
|
9656
|
+
const instance = anchorVnode.component;
|
|
9657
|
+
if (instance) {
|
|
9658
|
+
return resolveAsyncComponentPlaceholder(instance.subTree);
|
|
9659
|
+
}
|
|
9660
|
+
return null;
|
|
9661
|
+
}
|
|
9620
9662
|
|
|
9621
9663
|
const isSuspense = (type) => type.__isSuspense;
|
|
9622
9664
|
let suspenseId = 0;
|
|
@@ -10199,11 +10241,11 @@ app.use(vaporInteropPlugin)
|
|
|
10199
10241
|
return suspensible != null && suspensible !== false;
|
|
10200
10242
|
}
|
|
10201
10243
|
|
|
10202
|
-
const Fragment = Symbol.for("v-fgt");
|
|
10203
|
-
const Text = Symbol.for("v-txt");
|
|
10204
|
-
const Comment = Symbol.for("v-cmt");
|
|
10205
|
-
const Static = Symbol.for("v-stc");
|
|
10206
|
-
const VaporSlot = Symbol.for("v-vps");
|
|
10244
|
+
const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
|
|
10245
|
+
const Text = /* @__PURE__ */ Symbol.for("v-txt");
|
|
10246
|
+
const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
10247
|
+
const Static = /* @__PURE__ */ Symbol.for("v-stc");
|
|
10248
|
+
const VaporSlot = /* @__PURE__ */ Symbol.for("v-vps");
|
|
10207
10249
|
const blockStack = [];
|
|
10208
10250
|
let currentBlock = null;
|
|
10209
10251
|
function openBlock(disableTracking = false) {
|
|
@@ -11245,7 +11287,7 @@ Component that was made reactive: `,
|
|
|
11245
11287
|
return true;
|
|
11246
11288
|
}
|
|
11247
11289
|
|
|
11248
|
-
const version = "3.6.0-
|
|
11290
|
+
const version = "3.6.0-beta.1";
|
|
11249
11291
|
const warn = warn$1 ;
|
|
11250
11292
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11251
11293
|
const devtools = devtools$1 ;
|
|
@@ -11338,7 +11380,7 @@ Component that was made reactive: `,
|
|
|
11338
11380
|
|
|
11339
11381
|
const TRANSITION = "transition";
|
|
11340
11382
|
const ANIMATION = "animation";
|
|
11341
|
-
const vtcKey = Symbol("_vtc");
|
|
11383
|
+
const vtcKey = /* @__PURE__ */ Symbol("_vtc");
|
|
11342
11384
|
const DOMTransitionPropsValidators = {
|
|
11343
11385
|
name: String,
|
|
11344
11386
|
type: String,
|
|
@@ -11631,8 +11673,8 @@ Component that was made reactive: `,
|
|
|
11631
11673
|
}
|
|
11632
11674
|
}
|
|
11633
11675
|
|
|
11634
|
-
const vShowOriginalDisplay = Symbol("_vod");
|
|
11635
|
-
const vShowHidden = Symbol("_vsh");
|
|
11676
|
+
const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
|
|
11677
|
+
const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
|
|
11636
11678
|
const vShow = {
|
|
11637
11679
|
// used for prop mismatch check during hydration
|
|
11638
11680
|
name: "show",
|
|
@@ -11674,7 +11716,7 @@ Component that was made reactive: `,
|
|
|
11674
11716
|
el[vShowHidden] = !value;
|
|
11675
11717
|
}
|
|
11676
11718
|
|
|
11677
|
-
const CSS_VAR_TEXT = Symbol("CSS_VAR_TEXT" );
|
|
11719
|
+
const CSS_VAR_TEXT = /* @__PURE__ */ Symbol("CSS_VAR_TEXT" );
|
|
11678
11720
|
function useCssVars(getter) {
|
|
11679
11721
|
const instance = getCurrentInstance();
|
|
11680
11722
|
const getVars = () => getter(instance.proxy);
|
|
@@ -11935,7 +11977,7 @@ Component that was made reactive: `,
|
|
|
11935
11977
|
function removeEventListener(el, event, handler, options) {
|
|
11936
11978
|
el.removeEventListener(event, handler, options);
|
|
11937
11979
|
}
|
|
11938
|
-
const veiKey = Symbol("_vei");
|
|
11980
|
+
const veiKey = /* @__PURE__ */ Symbol("_vei");
|
|
11939
11981
|
function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
11940
11982
|
const invokers = el[veiKey] || (el[veiKey] = {});
|
|
11941
11983
|
const existingInvoker = invokers[rawName];
|
|
@@ -12585,8 +12627,8 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
12585
12627
|
|
|
12586
12628
|
const positionMap = /* @__PURE__ */ new WeakMap();
|
|
12587
12629
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
12588
|
-
const moveCbKey = Symbol("_moveCb");
|
|
12589
|
-
const enterCbKey = Symbol("_enterCb");
|
|
12630
|
+
const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
|
|
12631
|
+
const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
|
|
12590
12632
|
const decorate = (t) => {
|
|
12591
12633
|
delete t.props.mode;
|
|
12592
12634
|
return t;
|
|
@@ -12749,7 +12791,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
12749
12791
|
target.dispatchEvent(new Event("input"));
|
|
12750
12792
|
}
|
|
12751
12793
|
}
|
|
12752
|
-
const assignKey = Symbol("_assign");
|
|
12794
|
+
const assignKey = /* @__PURE__ */ Symbol("_assign");
|
|
12753
12795
|
const vModelText = {
|
|
12754
12796
|
created(el, { modifiers: { lazy, trim, number } }, vnode) {
|
|
12755
12797
|
el[assignKey] = getModelAssigner(vnode);
|
|
@@ -13218,6 +13260,7 @@ Make sure to use the production build (*.prod.js) when deploying for production.
|
|
|
13218
13260
|
exports.ErrorTypeStrings = ErrorTypeStrings;
|
|
13219
13261
|
exports.Fragment = Fragment;
|
|
13220
13262
|
exports.KeepAlive = KeepAlive;
|
|
13263
|
+
exports.MoveType = MoveType;
|
|
13221
13264
|
exports.ReactiveEffect = ReactiveEffect;
|
|
13222
13265
|
exports.Static = Static;
|
|
13223
13266
|
exports.Suspense = Suspense;
|