first commit

This commit is contained in:
编码猿
2024-09-27 01:28:38 +08:00
commit a9bde91e8e
2653 changed files with 701970 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import { Component, Vue, Prop } from 'vue-property-decorator';
@Component
export default class HelloWorld extends Vue {
@Prop({ default: 'default value' }) public readonly msg!: string;
private mounted() {
// console.log(...this.$slots.default)
}
private showAlert() {
alert("showAlert")
}
private render() {
return (
<div class="hello">
<h1>{this.msg}</h1>
{this.$slots.default}
<h2 onclick={()=>this.showAlert()}>HelloWorld组件点击事件:{this.msg}</h2>
</div>
)
}
}