Skip to content

Commit

Permalink
fix: wrap "propsAttr" with quotation
Browse files Browse the repository at this point in the history
  • Loading branch information
wunci committed Jan 24, 2024
1 parent 221c90b commit 01db4d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compilers/anode-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export class ANodeCompiler {
const rootAttrExec = []
if (Object.keys(propsAttrAssign).length) {
rootAttrExec.push(...[
DEF('propsAttr', new MapLiteral(Object.keys(propsAttrAssign).map(name => [I(name), I('1')]))),
DEF('propsAttr', new MapLiteral(Object.keys(propsAttrAssign).map(name => [L(name), L(1)]))),
new Foreach(I('key'), I('val'), I('attrs'), [
// 如果props已经存在对应属性,则attr重复的属性需要被删除
new If(
Expand Down

0 comments on commit 01db4d5

Please sign in to comment.