统一参数变量命名

This commit is contained in:
fofolee
2025-01-06 11:25:16 +08:00
parent 7475b40a07
commit 5ea6850bb9
14 changed files with 21 additions and 22 deletions

View File

@@ -113,7 +113,7 @@ const customComponentGuide = {
if (!result) return this.defaultArgvs;
// 处理解析结果
const [url, config] = result.args;
const [url, config] = result.argvs;
// 返回处理后的参数对象
return {

View File

@@ -303,13 +303,13 @@ export const parseFunction = (functionStr, options = {}) => {
}
};
const args = callExpression.arguments.map((arg, index) =>
const argvs = callExpression.arguments.map((arg, index) =>
processNode(arg, `arg${index}`)
);
return {
name,
args,
argvs,
};
} catch (e) {
console.warn("Failed to parse function:", e);