Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 08b6e771
authored
Oct 18, 2025
by
zoumingjun
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 修复对话框modal组件方法名错误
1 parent
6a89814b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
packages/@core/ui-kit/popup-ui/src/modal/modal.vue
packages/@core/ui-kit/popup-ui/src/modal/modal.vue
View file @
08b6e77
...
@@ -180,7 +180,7 @@ function escapeKeyDown(e: KeyboardEvent) {
...
@@ -180,7 +180,7 @@ function escapeKeyDown(e: KeyboardEvent) {
}
}
}
}
function
hand
er
OpenAutoFocus
(
e
:
Event
)
{
function
hand
le
OpenAutoFocus
(
e
:
Event
)
{
if
(
!
openAutoFocus
.
value
)
{
if
(
!
openAutoFocus
.
value
)
{
e
?.
preventDefault
();
e
?.
preventDefault
();
}
}
...
@@ -209,6 +209,12 @@ const getForceMount = computed(() => {
...
@@ -209,6 +209,12 @@ const getForceMount = computed(() => {
return
!
unref
(
destroyOnClose
)
&&
unref
(
firstOpened
);
return
!
unref
(
destroyOnClose
)
&&
unref
(
firstOpened
);
});
});
const
handleOpened
=
()
=>
{
requestAnimationFrame
(()
=>
{
props
.
modalApi
?.
onOpened
();
});
};
function
handleClosed
()
{
function
handleClosed
()
{
isClosed
.
value
=
true
;
isClosed
.
value
=
true
;
props
.
modalApi
?.
onClosed
();
props
.
modalApi
?.
onClosed
();
...
@@ -253,8 +259,8 @@ function handleClosed() {
...
@@ -253,8 +259,8 @@ function handleClosed() {
@escape-key-down="escapeKeyDown"
@escape-key-down="escapeKeyDown"
@focus-outside="handleFocusOutside"
@focus-outside="handleFocusOutside"
@interact-outside="interactOutside"
@interact-outside="interactOutside"
@open-auto-focus="hand
er
OpenAutoFocus"
@open-auto-focus="hand
le
OpenAutoFocus"
@opened="
() => modalApi?.onOpened()
"
@opened="
handleOpened
"
@pointer-down-outside="pointerDownOutside"
@pointer-down-outside="pointerDownOutside"
>
>
<DialogHeader
<DialogHeader
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment