mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
修复测试用例问题
This commit is contained in:
parent
915ce9dd77
commit
f24e5c09c5
@ -5,7 +5,7 @@ export function isPureVariable(path?: any): path is string {
|
||||
try {
|
||||
const ast = parse(path);
|
||||
// 只有一个成员说明是纯表达式模式
|
||||
return ast.body.length === 1;
|
||||
return ast.body.length === 1 && ast.body[0].type === 'script';
|
||||
} catch (err) {
|
||||
return false;
|
||||
}
|
||||
|
@ -9,6 +9,6 @@
|
||||
"../../node_modules/@types"
|
||||
]
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"include": ["src/**/*", "../amis-ui/src/custom.d.ts"],
|
||||
"references": [{"path": "../amis-core"}, {"path": "../amis-ui"}]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user