Skip to content

Commit 21c4a88

Browse files
committed
fix(vue-xrender): x-tpl render error in vue3
1 parent 9ea21fb commit 21c4a88

File tree

3 files changed

+5
-69
lines changed

3 files changed

+5
-69
lines changed

packages/vue-xrender/CHANGELOG.md

Lines changed: 3 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
## 0.0.9 (2022-04-21)
1+
## 0.1.1 (2022-04-21)
2+
3+
## 0.1.1 (2022-04-21)
24

35
### Bug Fixes
46

@@ -31,69 +33,3 @@
3133
- add vue-xrender useJsx example ([e6d3a54](https://github.com/2214962083/vue-superman/commit/e6d3a54cdd55ddcddf21630737417f5906660477))
3234
- add vue2 and vue3 playgrounds, add vitest for test ([62ef8d6](https://github.com/2214962083/vue-superman/commit/62ef8d6ab55520b2e39d00837613fa3d6c772e0c))
3335
- init project, create vue-xrender package ([8b3f883](https://github.com/2214962083/vue-superman/commit/8b3f883ddb4f6dba3bc3889f39b867735c7e2b69))
34-
35-
## 0.0.9-beta.1 (2022-04-21)
36-
37-
# 0.1.0 (2022-04-21)
38-
39-
### Features
40-
41-
- add x-jsx x-tpl components ([ce906b5](https://github.com/2214962083/vue-superman/commit/ce906b52ee35fbfcb6ff159590591ef420ceee84))
42-
43-
## 0.0.9-beta.1 (2022-04-20)
44-
45-
## 0.0.8 (2022-04-20)
46-
47-
## 0.0.7 (2022-04-19)
48-
49-
## 0.0.6 (2022-04-19)
50-
51-
## 0.0.5 (2022-04-19)
52-
53-
### Bug Fixes
54-
55-
- fix vue-xrender vite build empty bug ([ce019c5](https://github.com/2214962083/vue-superman/commit/ce019c582e99dc88924dd046393283f90f63ba2b))
56-
57-
### Features
58-
59-
- add vue-xrender useJsx example ([e6d3a54](https://github.com/2214962083/vue-superman/commit/e6d3a54cdd55ddcddf21630737417f5906660477))
60-
- add vue2 and vue3 playgrounds, add vitest for test ([62ef8d6](https://github.com/2214962083/vue-superman/commit/62ef8d6ab55520b2e39d00837613fa3d6c772e0c))
61-
- init project, create vue-xrender package ([8b3f883](https://github.com/2214962083/vue-superman/commit/8b3f883ddb4f6dba3bc3889f39b867735c7e2b69))
62-
63-
## 0.0.8 (2022-04-20)
64-
65-
## 0.0.8 (2022-04-20)
66-
67-
## 0.0.7 (2022-04-19)
68-
69-
## 0.0.6 (2022-04-19)
70-
71-
## 0.0.5 (2022-04-19)
72-
73-
### Bug Fixes
74-
75-
- fix vue-xrender vite build empty bug ([ce019c5](https://github.com/2214962083/vue-superman/commit/ce019c582e99dc88924dd046393283f90f63ba2b))
76-
77-
### Features
78-
79-
- add vue-xrender useJsx example ([e6d3a54](https://github.com/2214962083/vue-superman/commit/e6d3a54cdd55ddcddf21630737417f5906660477))
80-
- add vue2 and vue3 playgrounds, add vitest for test ([62ef8d6](https://github.com/2214962083/vue-superman/commit/62ef8d6ab55520b2e39d00837613fa3d6c772e0c))
81-
- init project, create vue-xrender package ([8b3f883](https://github.com/2214962083/vue-superman/commit/8b3f883ddb4f6dba3bc3889f39b867735c7e2b69))
82-
83-
## 0.0.7 (2022-04-20)
84-
85-
## 0.0.7 (2022-04-19)
86-
87-
## 0.0.6 (2022-04-19)
88-
89-
## 0.0.5 (2022-04-19)
90-
91-
### Bug Fixes
92-
93-
- fix vue-xrender vite build empty bug ([ce019c5](https://github.com/2214962083/vue-superman/commit/ce019c582e99dc88924dd046393283f90f63ba2b))
94-
95-
### Features
96-
97-
- add vue-xrender useJsx example ([e6d3a54](https://github.com/2214962083/vue-superman/commit/e6d3a54cdd55ddcddf21630737417f5906660477))
98-
- add vue2 and vue3 playgrounds, add vitest for test ([62ef8d6](https://github.com/2214962083/vue-superman/commit/62ef8d6ab55520b2e39d00837613fa3d6c772e0c))
99-
- init project, create vue-xrender package ([8b3f883](https://github.com/2214962083/vue-superman/commit/8b3f883ddb4f6dba3bc3889f39b867735c7e2b69))

packages/vue-xrender/src/components/x-tpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const vm = defineComponent({
6868
if (!tpl) return null
6969

7070
const renderFunc = compile(tpl, _ctx)
71-
const result = isVue2 ? renderFunc(h) : renderFunc(ctx)
71+
const result = isVue2 ? renderFunc(h) : renderFunc(_ctx)
7272

7373
return result as VNode
7474
}

scripts/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function generateChangelog() {
5050
const pkgNames = getPackagesName('all')
5151

5252
for (const pkgName of pkgNames) {
53-
const cmd = `pnpm exec conventional-changelog -p angular -i CHANGELOG.md -s --commit-path . -l ${pkgName} -r 1`
53+
const cmd = `pnpm exec conventional-changelog -p angular -i CHANGELOG.md -s --commit-path . -l ${pkgName} -r 0`
5454
console.log('start run command: ', cmd)
5555
execSync(cmd, {stdio: 'inherit', cwd: pathResolve('../packages', pkgName)})
5656
}

0 commit comments

Comments
 (0)