BasicTree组件,怎么拿到halfCheckedKey #2748
Unanswered
uncarbon97
asked this question in
Q&A
Replies: 1 comment
-
这是antdv的文档,可以参考一下
下面是vue3中的写法,可以参考一下 <template>
<div ref="myRef">Hello World!</div>
</template>
<script>
import { ref, onMounted } from 'vue';
export default {
setup() {
const myRef = ref(null);
onMounted(() => {
console.log(myRef.value);
});
return {
myRef
};
}
};
</script> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
双向绑定 checkedKeys 只能拿到完全勾选的
半勾选(一般是父级节点)应该怎么拿到呢?
另外问一下 ref 取DOM的正确写法应该是什么……网络上好多教程看了 结果都是null
Beta Was this translation helpful? Give feedback.
All reactions