摘要: 借助 ref() 函数 用elementUI时,需要form表单验证,文档给的是 this.$refs[formName],但是在vue3中没有this, 通过 ref 函数,依然可以实现类似 this.$refs 的功能。 首先在 setup 中定义一个 Ref 变量 import {ref, r 阅读全文
posted @ 2021-07-01 09:33 g731717 阅读(4276) 评论(0) 推荐(0)