Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
9582ef28
You need to sign in or sign up before continuing.
Commit
9582ef28
authored
May 06, 2025
by
nick zheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'beta' into 'master'
fix: 期望点击弹窗外不会自动关闭 See merge request
!220
parents
8897a3b1
131df033
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
custom-modal.vue
src/components/custom-modal/custom-modal.vue
+10
-1
add-agent-plugin-modal.vue
...onfig/agent-setting/components/add-agent-plugin-modal.vue
+1
-0
No files found.
src/components/custom-modal/custom-modal.vue
View file @
9582ef28
...
...
@@ -16,6 +16,7 @@ interface Props {
labelWidth
?:
number
// 标签的宽度
labelPlacement
?:
'left'
|
'top'
// 标签显示的位置
contentStyle
?:
object
maskClosable
?:
boolean
// 点击遮罩层是否关闭
}
interface
Emits
{
...
...
@@ -37,6 +38,7 @@ const props = withDefaults(defineProps<Props>(), {
labelWidth
:
80
,
labelPlacement
:
'left'
,
contentStyle
:
()
=>
({}),
maskClosable
:
true
,
})
const
cancelBtnText
=
computed
(()
=>
props
.
cancelBtnText
||
t
(
'common_module.cancel_btn_text'
))
...
...
@@ -73,6 +75,12 @@ function handleCloseModal() {
function
handleConfirm
()
{
emit
(
'confirm'
)
}
function
handleMaskClick
()
{
if
(
props
.
maskClosable
)
{
handleCloseModal
()
}
}
</
script
>
<
template
>
...
...
@@ -87,7 +95,8 @@ function handleConfirm() {
:header-style=
"modalHeaderStyle"
:content-style=
"contentStyle"
:footer-style=
"modalFooterStyle"
:on-mask-click=
"handleCloseModal"
:mask-closable=
"maskClosable"
:on-mask-click=
"handleMaskClick"
@
close=
"handleCloseModal"
>
<template
#
header
>
...
...
src/views/personal-space/personal-app-setting/components/agent-config/agent-setting/components/add-agent-plugin-modal.vue
View file @
9582ef28
...
...
@@ -164,6 +164,7 @@ function handleCloseModal() {
v-model:show=
"showModal"
class=
"h-[700px] w-[954px] rounded-[10px] bg-white"
:auto-focus=
"false"
:mask-closable=
"false"
@
after-leave=
"handleCloseModal"
>
<div
class=
"flex"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment