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 26, 2024
1 parent f5b3e8d commit 07e99fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"mkdirp": "^1.0.4",
"mustache": "^4.0.1",
"san": "^3.14.1",
"san-html-cases": "^3.14.3",
"san-html-cases": "^3.14.5",
"san-ssr-target-fake-cmd": "^1.0.0",
"san-ssr-target-fake-esm": "^1.0.0",
"source-map-support": "^0.5.19",
Expand Down
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 07e99fb

Please sign in to comment.