摘要: setup语法糖简介 直接在script标签中添加setup属性就可以直接使用setup语法糖了。 使用setup语法糖后,不用写setup函数;组件只需要引入不需要注册;属性和方法也不需要再返回,可以直接在template模板中使用。 <template> <my-component @click 阅读全文
posted @ 2023-03-08 09:20 xpbb 阅读(142) 评论(0) 推荐(0) 编辑