Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hs-sky-ui
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
何虹
hs-sky-ui
Commits
d598c1d9
Commit
d598c1d9
authored
Jan 22, 2021
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化日期框隐藏
parent
42ab9ca7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
index.vue
src/packages/hs-dialog/src/index.vue
+1
-0
click-out-side.js
src/packages/ucClass/click-out-side.js
+2
-2
No files found.
src/packages/hs-dialog/src/index.vue
View file @
d598c1d9
...
...
@@ -10,6 +10,7 @@
:fullscreen=
'configData.fullscreen'
:append-to-body=
"true"
:before-close=
"handleClose"
:destroy-on-close=
'true'
>
<slot
name=
"body"
></slot>
<slot
name=
"footer"
></slot>
...
...
src/packages/ucClass/click-out-side.js
View file @
d598c1d9
...
...
@@ -12,11 +12,11 @@ export default {
event
.
stopPropagation
()
}
el
.
addEventListener
(
'click'
,
el
.
stopProp
)
document
.
body
.
addEventListener
(
'click'
,
el
.
handler
,
tru
e
)
document
.
body
.
addEventListener
(
'click'
,
el
.
handler
,
fals
e
)
},
unbind
(
el
,
binding
)
{
el
.
removeEventListener
(
'click'
,
el
.
stopProp
)
document
.
body
.
removeEventListener
(
'click'
,
el
.
handler
,
tru
e
)
document
.
body
.
removeEventListener
(
'click'
,
el
.
handler
,
fals
e
)
},
install
(
Vue
)
{
Vue
.
directive
(
'clickoutside'
,
{
...
...
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