基于Vue3+OOP+JSX改造项目代码,增加pnpm统一管理依赖
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { defineComponent } from 'vue'
|
||||
import {Component, VueComponent} from 'vue3-oop'
|
||||
|
||||
export default defineComponent({
|
||||
name: "About",
|
||||
setup() {
|
||||
return () => (
|
||||
<div class="about">
|
||||
<h1>我的</h1>
|
||||
</div>
|
||||
@Component()
|
||||
export default class About extends VueComponent {
|
||||
render() {
|
||||
return (
|
||||
<div class="about">
|
||||
<h1>我的</h1>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user