Skip to content

Commit eaecb99

Browse files
committed
feat: support double quote in attribute value
1 parent 49c7d94 commit eaecb99

File tree

7 files changed

+73
-228
lines changed

7 files changed

+73
-228
lines changed

playground/vapor/macros-global.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

playground/virtual-dom/App.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ defineRender((
7676
{/* Function Components */}
7777
<component is={Component} />
7878
<Comp
79-
v-permission="post"
79+
v-permission={`"post"`}
8080
v-model_number={count.value}
81+
icon1={`"icon1"`}
8182
icon={(
8283
<i id="id">
8384
{count.value
@@ -87,11 +88,13 @@ defineRender((
8788
</span>
8889
)
8990
: null}
90-
+
91+
"+"
9192
</i>
9293
)}
9394
getChildren={() => {
94-
const A = <div>A</div>
95+
const A = (
96+
<Comp icon={<i>"-"</i>} />
97+
)
9598
return A
9699
}}
97100
>

playground/virtual-dom/macros-global.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

playground/virtual-dom/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
},
66
"devDependencies": {
77
"@vitejs/plugin-vue": "^5.0.2",
8-
"@vue-macros/define-render": "^1.5.1",
9-
"@vue-macros/reactivity-transform": "^0.4.2",
108
"@vue-macros/volar": "^0.18.10",
119
"unplugin-vue-jsx-vapor": "workspace:*",
1210
"unplugin-vue-macros": "^2.7.10",

playground/virtual-dom/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"module": "esnext",
99
"moduleResolution": "node",
1010
"resolveJsonModule": true,
11+
"types": [
12+
"unplugin-vue-macros/macros-global"
13+
],
1114
"strict": true,
1215
"strictNullChecks": true,
1316
"esModuleInterop": true

pnpm-lock.yaml

Lines changed: 5 additions & 181 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)