vue框架中props的typescript用法
vue框架中props的typescript用法在vue中使用typescript时,需要引入vue-property-decorator库来兼容格式。javascript写法Vue.component('blog-post', { // 在 JavaScript 中是 camelCase 的 props: ['postTitle'], template: '<h3>...
原创
2020-02-17 11:35:55 ·
3364 阅读 ·
0 评论