🌱 🏗️ ⬆️ ✨add expense table 🎨 🔧
This commit is contained in:
52
node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js
generated
vendored
52
node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @vue/reactivity v3.5.13
|
||||
* @vue/reactivity v3.5.14
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
@@ -17,6 +17,10 @@ class EffectScope {
|
||||
* @internal
|
||||
*/
|
||||
this._active = true;
|
||||
/**
|
||||
* @internal track `on` calls, allow `on` call multiple times
|
||||
*/
|
||||
this._on = 0;
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
@@ -85,14 +89,20 @@ class EffectScope {
|
||||
* @internal
|
||||
*/
|
||||
on() {
|
||||
activeEffectScope = this;
|
||||
if (++this._on === 1) {
|
||||
this.prevScope = activeEffectScope;
|
||||
activeEffectScope = this;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* This should only be called on non-detached scopes
|
||||
* @internal
|
||||
*/
|
||||
off() {
|
||||
activeEffectScope = this.parent;
|
||||
if (this._on > 0 && --this._on === 0) {
|
||||
activeEffectScope = this.prevScope;
|
||||
this.prevScope = void 0;
|
||||
}
|
||||
}
|
||||
stop(fromParent) {
|
||||
if (this._active) {
|
||||
@@ -150,7 +160,9 @@ const EffectFlags = {
|
||||
"ALLOW_RECURSE": 32,
|
||||
"32": "ALLOW_RECURSE",
|
||||
"PAUSED": 64,
|
||||
"64": "PAUSED"
|
||||
"64": "PAUSED",
|
||||
"EVALUATED": 128,
|
||||
"128": "EVALUATED"
|
||||
};
|
||||
const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
|
||||
class ReactiveEffect {
|
||||
@@ -186,7 +198,7 @@ class ReactiveEffect {
|
||||
}
|
||||
resume() {
|
||||
if (this.flags & 64) {
|
||||
this.flags &= ~64;
|
||||
this.flags &= -65;
|
||||
if (pausedQueueEffects.has(this)) {
|
||||
pausedQueueEffects.delete(this);
|
||||
this.trigger();
|
||||
@@ -221,7 +233,7 @@ class ReactiveEffect {
|
||||
cleanupDeps(this);
|
||||
activeSub = prevEffect;
|
||||
shouldTrack = prevShouldTrack;
|
||||
this.flags &= ~2;
|
||||
this.flags &= -3;
|
||||
}
|
||||
}
|
||||
stop() {
|
||||
@@ -232,7 +244,7 @@ class ReactiveEffect {
|
||||
this.deps = this.depsTail = void 0;
|
||||
cleanupEffect(this);
|
||||
this.onStop && this.onStop();
|
||||
this.flags &= ~1;
|
||||
this.flags &= -2;
|
||||
}
|
||||
}
|
||||
trigger() {
|
||||
@@ -282,7 +294,7 @@ function endBatch() {
|
||||
while (e) {
|
||||
const next = e.next;
|
||||
e.next = void 0;
|
||||
e.flags &= ~8;
|
||||
e.flags &= -9;
|
||||
e = next;
|
||||
}
|
||||
}
|
||||
@@ -293,7 +305,7 @@ function endBatch() {
|
||||
while (e) {
|
||||
const next = e.next;
|
||||
e.next = void 0;
|
||||
e.flags &= ~8;
|
||||
e.flags &= -9;
|
||||
if (e.flags & 1) {
|
||||
try {
|
||||
;
|
||||
@@ -349,17 +361,16 @@ function refreshComputed(computed) {
|
||||
if (computed.flags & 4 && !(computed.flags & 16)) {
|
||||
return;
|
||||
}
|
||||
computed.flags &= ~16;
|
||||
computed.flags &= -17;
|
||||
if (computed.globalVersion === globalVersion) {
|
||||
return;
|
||||
}
|
||||
computed.globalVersion = globalVersion;
|
||||
const dep = computed.dep;
|
||||
computed.flags |= 2;
|
||||
if (dep.version > 0 && !computed.isSSR && computed.deps && !isDirty(computed)) {
|
||||
computed.flags &= ~2;
|
||||
if (!computed.isSSR && computed.flags & 128 && (!computed.deps && !computed._dirty || !isDirty(computed))) {
|
||||
return;
|
||||
}
|
||||
computed.flags |= 2;
|
||||
const dep = computed.dep;
|
||||
const prevSub = activeSub;
|
||||
const prevShouldTrack = shouldTrack;
|
||||
activeSub = computed;
|
||||
@@ -368,6 +379,7 @@ function refreshComputed(computed) {
|
||||
prepareDeps(computed);
|
||||
const value = computed.fn(computed._value);
|
||||
if (dep.version === 0 || shared.hasChanged(value, computed._value)) {
|
||||
computed.flags |= 128;
|
||||
computed._value = value;
|
||||
dep.version++;
|
||||
}
|
||||
@@ -378,7 +390,7 @@ function refreshComputed(computed) {
|
||||
activeSub = prevSub;
|
||||
shouldTrack = prevShouldTrack;
|
||||
cleanupDeps(computed);
|
||||
computed.flags &= ~2;
|
||||
computed.flags &= -3;
|
||||
}
|
||||
}
|
||||
function removeSub(link, soft = false) {
|
||||
@@ -394,7 +406,7 @@ function removeSub(link, soft = false) {
|
||||
if (dep.subs === link) {
|
||||
dep.subs = prevSub;
|
||||
if (!prevSub && dep.computed) {
|
||||
dep.computed.flags &= ~4;
|
||||
dep.computed.flags &= -5;
|
||||
for (let l = dep.computed.deps; l; l = l.nextDep) {
|
||||
removeSub(l, true);
|
||||
}
|
||||
@@ -1254,14 +1266,14 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
|
||||
if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
|
||||
return target;
|
||||
}
|
||||
const existingProxy = proxyMap.get(target);
|
||||
if (existingProxy) {
|
||||
return existingProxy;
|
||||
}
|
||||
const targetType = getTargetType(target);
|
||||
if (targetType === 0 /* INVALID */) {
|
||||
return target;
|
||||
}
|
||||
const existingProxy = proxyMap.get(target);
|
||||
if (existingProxy) {
|
||||
return existingProxy;
|
||||
}
|
||||
const proxy = new Proxy(
|
||||
target,
|
||||
targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers
|
||||
|
||||
Reference in New Issue
Block a user