Skip to content

Commit

Permalink
fix(vue-xrender): x-tpl render error in vue3
Browse files Browse the repository at this point in the history
  • Loading branch information
2214962083 committed Apr 21, 2022
1 parent 9ea21fb commit 21c4a88
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 69 deletions.
70 changes: 3 additions & 67 deletions packages/vue-xrender/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## 0.0.9 (2022-04-21)
## 0.1.1 (2022-04-21)

## 0.1.1 (2022-04-21)

### Bug Fixes

Expand Down Expand Up @@ -31,69 +33,3 @@
- add vue-xrender useJsx example ([e6d3a54](https://github.com/2214962083/vue-superman/commit/e6d3a54cdd55ddcddf21630737417f5906660477))
- add vue2 and vue3 playgrounds, add vitest for test ([62ef8d6](https://github.com/2214962083/vue-superman/commit/62ef8d6ab55520b2e39d00837613fa3d6c772e0c))
- init project, create vue-xrender package ([8b3f883](https://github.com/2214962083/vue-superman/commit/8b3f883ddb4f6dba3bc3889f39b867735c7e2b69))

## 0.0.9-beta.1 (2022-04-21)

# 0.1.0 (2022-04-21)

### Features

- add x-jsx x-tpl components ([ce906b5](https://github.com/2214962083/vue-superman/commit/ce906b52ee35fbfcb6ff159590591ef420ceee84))

## 0.0.9-beta.1 (2022-04-20)

## 0.0.8 (2022-04-20)

## 0.0.7 (2022-04-19)

## 0.0.6 (2022-04-19)

## 0.0.5 (2022-04-19)

### Bug Fixes

- fix vue-xrender vite build empty bug ([ce019c5](https://github.com/2214962083/vue-superman/commit/ce019c582e99dc88924dd046393283f90f63ba2b))

### Features

- add vue-xrender useJsx example ([e6d3a54](https://github.com/2214962083/vue-superman/commit/e6d3a54cdd55ddcddf21630737417f5906660477))
- add vue2 and vue3 playgrounds, add vitest for test ([62ef8d6](https://github.com/2214962083/vue-superman/commit/62ef8d6ab55520b2e39d00837613fa3d6c772e0c))
- init project, create vue-xrender package ([8b3f883](https://github.com/2214962083/vue-superman/commit/8b3f883ddb4f6dba3bc3889f39b867735c7e2b69))

## 0.0.8 (2022-04-20)

## 0.0.8 (2022-04-20)

## 0.0.7 (2022-04-19)

## 0.0.6 (2022-04-19)

## 0.0.5 (2022-04-19)

### Bug Fixes

- fix vue-xrender vite build empty bug ([ce019c5](https://github.com/2214962083/vue-superman/commit/ce019c582e99dc88924dd046393283f90f63ba2b))

### Features

- add vue-xrender useJsx example ([e6d3a54](https://github.com/2214962083/vue-superman/commit/e6d3a54cdd55ddcddf21630737417f5906660477))
- add vue2 and vue3 playgrounds, add vitest for test ([62ef8d6](https://github.com/2214962083/vue-superman/commit/62ef8d6ab55520b2e39d00837613fa3d6c772e0c))
- init project, create vue-xrender package ([8b3f883](https://github.com/2214962083/vue-superman/commit/8b3f883ddb4f6dba3bc3889f39b867735c7e2b69))

## 0.0.7 (2022-04-20)

## 0.0.7 (2022-04-19)

## 0.0.6 (2022-04-19)

## 0.0.5 (2022-04-19)

### Bug Fixes

- fix vue-xrender vite build empty bug ([ce019c5](https://github.com/2214962083/vue-superman/commit/ce019c582e99dc88924dd046393283f90f63ba2b))

### Features

- add vue-xrender useJsx example ([e6d3a54](https://github.com/2214962083/vue-superman/commit/e6d3a54cdd55ddcddf21630737417f5906660477))
- add vue2 and vue3 playgrounds, add vitest for test ([62ef8d6](https://github.com/2214962083/vue-superman/commit/62ef8d6ab55520b2e39d00837613fa3d6c772e0c))
- init project, create vue-xrender package ([8b3f883](https://github.com/2214962083/vue-superman/commit/8b3f883ddb4f6dba3bc3889f39b867735c7e2b69))
2 changes: 1 addition & 1 deletion packages/vue-xrender/src/components/x-tpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const vm = defineComponent({
if (!tpl) return null

const renderFunc = compile(tpl, _ctx)
const result = isVue2 ? renderFunc(h) : renderFunc(ctx)
const result = isVue2 ? renderFunc(h) : renderFunc(_ctx)

return result as VNode
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function generateChangelog() {
const pkgNames = getPackagesName('all')

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

0 comments on commit 21c4a88

Please sign in to comment.