Skip to content

Commit

Permalink
Merge pull request #185 from QLXWS/release-3.6.8-app-qlx
Browse files Browse the repository at this point in the history
fix: 添加对一种扩展运算符语句(形如 ...xxx)的转换支持
  • Loading branch information
qican77 authored Sep 7, 2023
2 parents d302be6 + bb09063 commit a26ca59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taroize/src/wxml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ function parseAttribute (attr: Attribute) {
} else {
throw new Error(err)
}
} else if (content.includes(':') || (content.includes('...') && content.includes(','))) {
} else if (content.includes(':') || (content.includes('...'))) {
const file = parseFile(`var a = ${attr.value!.slice(1, attr.value!.length - 1)}`, {
plugins: ['objectRestSpread'],
})
Expand Down

0 comments on commit a26ca59

Please sign in to comment.