- 链接地址:https://blog.csdn.net/CF1402345274/article/details/110989087
- 链接标题:vue-ts-demo1_vue-ts-mall-demo-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:7387
文章浏览阅读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
版权声明:本文发布于特牛生活网 内容均来源于互联网 如有侵权联系删除