1、setup
新的组件选项,在创建组件之前执行,并作为组合式 API 的入口点


可以后台打印一下 proxy 不管是函数还是对象 属性 方法 都是合并在里面的哟



一般不要混合使用:methods中可以访问setup提供的属性和方法,但在setup方法中不能访问data和methods
setup不能是一个async函数:因为返回值不在是return的对象,而是promise,模板看不到return对象中的属性数据
setup的参数:

这个面试肯定会呗问到哟 小伙伴们注意了
3.子组件 (写太麻烦了 直接上代码)

4.父组件 注意vue3 ref 是个坑哟 记得填充
