feat(Dialog): expose dialogContentRef (#7633)

This commit is contained in:
FunkyZc 2022-05-22 08:17:05 +08:00 committed by GitHub
parent 3114d7d3be
commit 10a64b65ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,7 @@
>
<el-dialog-content
v-if="rendered"
ref="dialogContentRef"
:custom-class="customClass"
:center="center"
:close-icon="closeIcon"
@ -103,6 +104,7 @@ useDeprecated(
const ns = useNamespace('dialog')
const dialogRef = ref<HTMLElement>()
const headerRef = ref<HTMLElement>()
const dialogContentRef = ref()
const {
visible,
@ -139,5 +141,6 @@ useDraggable(dialogRef, headerRef, draggable)
defineExpose({
/** @description whether the dialog is visible */
visible,
dialogContentRef,
})
</script>