🌱 🏗️ ⬆️ ✨add expense table 🎨 🔧
This commit is contained in:
21
node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.js
generated
vendored
21
node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @vue/compiler-dom v3.5.13
|
||||
* @vue/compiler-dom v3.5.14
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
@@ -1669,7 +1669,7 @@ function isForStatement(stmt) {
|
||||
}
|
||||
function walkForStatement(stmt, isVar, onIdent) {
|
||||
const variable = stmt.type === "ForStatement" ? stmt.init : stmt.left;
|
||||
if (variable && variable.type === "VariableDeclaration" && (variable.kind === "var" ? isVar : !isVar)) {
|
||||
if (variable && variable.type === "VariableDeclaration" && (variable.kind === "var" ? isVar : false)) {
|
||||
for (const decl of variable.declarations) {
|
||||
for (const id of extractIdentifiers(decl.id)) {
|
||||
onIdent(id);
|
||||
@@ -2286,7 +2286,7 @@ const tokenizer = new Tokenizer(stack, {
|
||||
"COMPILER_V_BIND_SYNC",
|
||||
currentOptions,
|
||||
currentProp.loc,
|
||||
currentProp.rawName
|
||||
currentProp.arg.loc.source
|
||||
)) {
|
||||
currentProp.name = "model";
|
||||
currentProp.modifiers.splice(syncIndex, 1);
|
||||
@@ -2862,6 +2862,7 @@ function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
|
||||
}
|
||||
}
|
||||
let cachedAsArray = false;
|
||||
const slotCacheKeys = [];
|
||||
if (toCache.length === children.length && node.type === 1) {
|
||||
if (node.tagType === 0 && node.codegenNode && node.codegenNode.type === 13 && isArray(node.codegenNode.children)) {
|
||||
node.codegenNode.children = getCacheExpression(
|
||||
@@ -2871,6 +2872,7 @@ function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
|
||||
} else if (node.tagType === 1 && node.codegenNode && node.codegenNode.type === 13 && node.codegenNode.children && !isArray(node.codegenNode.children) && node.codegenNode.children.type === 15) {
|
||||
const slot = getSlotNode(node.codegenNode, "default");
|
||||
if (slot) {
|
||||
slotCacheKeys.push(context.cached.length);
|
||||
slot.returns = getCacheExpression(
|
||||
createArrayExpression(slot.returns)
|
||||
);
|
||||
@@ -2880,6 +2882,7 @@ function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
|
||||
const slotName = findDir(node, "slot", true);
|
||||
const slot = slotName && slotName.arg && getSlotNode(parent.codegenNode, slotName.arg);
|
||||
if (slot) {
|
||||
slotCacheKeys.push(context.cached.length);
|
||||
slot.returns = getCacheExpression(
|
||||
createArrayExpression(slot.returns)
|
||||
);
|
||||
@@ -2889,9 +2892,18 @@ function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
|
||||
}
|
||||
if (!cachedAsArray) {
|
||||
for (const child of toCache) {
|
||||
slotCacheKeys.push(context.cached.length);
|
||||
child.codegenNode = context.cache(child.codegenNode);
|
||||
}
|
||||
}
|
||||
if (slotCacheKeys.length && node.type === 1 && node.tagType === 1 && node.codegenNode && node.codegenNode.type === 13 && node.codegenNode.children && !isArray(node.codegenNode.children) && node.codegenNode.children.type === 15) {
|
||||
node.codegenNode.children.properties.push(
|
||||
createObjectProperty(
|
||||
`__`,
|
||||
createSimpleExpression(JSON.stringify(slotCacheKeys), false)
|
||||
)
|
||||
);
|
||||
}
|
||||
function getCacheExpression(value) {
|
||||
const exp = context.cache(value);
|
||||
if (inFor && context.hmr) {
|
||||
@@ -5620,8 +5632,7 @@ const transformModel$1 = (dir, node, context) => {
|
||||
context.onError(createCompilerError(44, exp.loc));
|
||||
return createTransformProps();
|
||||
}
|
||||
const maybeRef = false;
|
||||
if (!expString.trim() || !isMemberExpression(exp) && !maybeRef) {
|
||||
if (!expString.trim() || !isMemberExpression(exp) && true) {
|
||||
context.onError(
|
||||
createCompilerError(42, exp.loc)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user