有态度的萌狮子

关注

vue3 使用ref函数

有态度的萌狮子

关注

阅读 129

2023-02-24


<el-form
ref="dialogForm"
:model="dialogInfo"



const dialogForm = ref<typeof ElForm | null>(null)


const dialogConfirm = () => {
dialogForm.value?.validate(async (valid) => {
if (valid) {

<el-tree 
:data="rightsList"
:props="treeProps"
ref="treeRef"

const treeRef = ref<InstanceType<typeof ElTree>>()


相关推荐

m逆光生长

# vue3 ref 和 reactive 函数

m逆光生长 86 0 0

you的日常

vue3 #ref #reactive

you的日常 24 0 0

深夜瞎琢磨

Vue3 : ref 与 reactive

深夜瞎琢磨 44 0 0

木匠0819

Vue3 动态设置 ref

木匠0819 82 0 0

崭新的韭菜

Vue3 中应该使用 Ref 还是 Reactive?

崭新的韭菜 30 0 0

求索大伟

vue3: ref, reactive, readonly, shallowReactive

求索大伟 4 0 0

开源分享

vue3 中 v-for 的 Ref 需要绑定函数

开源分享 146 0 0

王老师说

vue3学习笔记(3)setup、ref和reactive基本使用

王老师说 98 0 0

梅梅的时光

VUE框架Vue3下使用ref函数包裹的对象实现响应式处理------VUE框架

梅梅的时光 40 0 0

技术只适用于干活

Vue3: ref 拿到 DOM / 组件实例

技术只适用于干活 43 0 0

精彩评论(0)

0 0 举报