1
0
mirror of synced 2026-04-02 22:18:39 +08:00

feat(ui,runtime): vue-runtime-help中添加use-app方法

This commit is contained in:
roymondchen
2024-06-13 20:44:58 +08:00
parent 7ee7f53938
commit 948c194a60
24 changed files with 287 additions and 405 deletions

View File

@@ -190,6 +190,18 @@ const getAssertionTokenByTraverse = (ast: any) => {
variableDeclarations.push(p.node);
this.traverse(p);
},
visitExportNamedDeclaration(p) {
const { node } = p;
const { specifiers } = node;
const specifier = specifiers?.find((specifier) => specifier.exported.name === 'default');
if (specifier?.local) {
exportDefaultName = `${specifier.local.name}`;
}
this.traverse(p);
},
visitExportDefaultDeclaration(p) {
const { node } = p;
const { declaration } = node;