Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
Overview
Overview
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
王衍超
rbc-demo
Commits
4a64d4ee
Commit
4a64d4ee
authored
Mar 02, 2022
by
Joey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(@gms/gms-plugin-billexpand): vxetable中弹出modal点击会消失
- vxetable会在document监听点击事件取消选中,所以绑定在document中的modal会被误判
parent
2a995a33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
edit-modal.vue
...ugin-billexpand/src/control/baseDataSelect/edit-modal.vue
+9
-0
No files found.
develop/@gms/gms-plugin-billexpand/src/control/baseDataSelect/edit-modal.vue
View file @
4a64d4ee
...
...
@@ -25,9 +25,11 @@
<
template
>
<div
class=
"dept-person-div"
>
<Modal
ref=
"modal"
v-model=
"visible"
:title=
"title"
:width=
"modalWidth"
:mask-closable=
"false"
@
on-ok=
"onOk"
@
on-cancel=
"onCancel"
>
...
...
@@ -134,8 +136,15 @@ export default {
window
.
onresize
=
()
=>
{
this
.
getModalHeight
()
}
this
.
$refs
.
modal
.
$el
.
addEventListener
(
'click'
,
this
.
stopPropagation
)
},
beforeUnmount
()
{
this
.
$refs
.
modal
.
$el
.
removeeventlistener
(
'click'
,
this
.
stopPropagation
)
},
methods
:
{
stopPropagation
(
event
)
{
event
.
stopPropagation
()
},
getModalHeight
()
{
let
viewport
=
window
.
innerHeight
if
(
viewport
<=
600
&&
viewport
>=
400
)
{
...
...
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