网站介绍:文章浏览阅读340次。重新创建了项目vue-property-decorator 掘金组件内使用 自定义事件父组件<ButtonDemo @add="add" @reduce="reduce" text="默认按钮"></ButtonDemo> count = 0 add() { this.count++ // console.log(this) } reduce() { this.count-- }子组件@Emit 装饰器 可以接收父组件传递的_vue-ts-mall-demo
- 链接地址:https://blog.csdn.net/CF1402345274/article/details/110989087
- 链接标题:vue-ts-demo1_vue-ts-mall-demo-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:9821
- 网站标签:vue-ts-mall-demo