摘要: <script> // computed 计算属性 const app = Vue.createApp({ setup() { // 引入计算属性 const { reactive, computed } = Vue; const countObj = reactive({ count: 0}); 阅读全文
posted @ 2022-04-14 09:55 咸瑜 阅读(271) 评论(0) 推荐(0)
摘要: toRef的使用: Context 使用: context 里面有3个参数, {attrs,slots,emit} : 1.attrs 的使用: 其实就是父组件传递的属性 <script> const app = Vue.createApp({ // 使用组件 child template:` <c 阅读全文
posted @ 2022-04-14 09:06 咸瑜 阅读(179) 评论(0) 推荐(0)