Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
najiu-frontend
najiu-admin-template
Commits
e3851dc5
Commit
e3851dc5
authored
Feb 20, 2021
by
vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(moda;): can switch full screen by double-clicking on the head close #277
parent
4f8e1c1b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+1
-0
BasicModal.vue
src/components/Modal/src/BasicModal.vue
+12
-1
index.less
src/design/index.less
+5
-2
No files found.
CHANGELOG.zh_CN.md
View file @
e3851dc5
...
...
@@ -3,6 +3,7 @@
### ✨ Features
-
新增
`settingButtonPosition`
配置项,用于配置
`设置`
按钮位置
-
`modal`
可以通过双击头部切换全屏
### ⚡ Performance Improvements
...
...
src/components/Modal/src/BasicModal.vue
View file @
e3851dc5
...
...
@@ -10,7 +10,11 @@
</
template
>
<
template
#title
v-if=
"!$slots.title"
>
<ModalHeader
:helpMessage=
"getProps.helpMessage"
:title=
"getMergeProps.title"
/>
<ModalHeader
:helpMessage=
"getProps.helpMessage"
:title=
"getMergeProps.title"
@
dblclick=
"handleTitleDbClick"
/>
</
template
>
<
template
#footer
v-if=
"!$slots.footer"
>
...
...
@@ -193,6 +197,12 @@
extHeightRef
.
value
=
height
;
}
function
handleTitleDbClick
(
e
:
ChangeEvent
)
{
if
(
!
props
.
canFullscreen
)
return
;
e
.
stopPropagation
();
handleFullScreen
(
e
);
}
return
{
handleCancel
,
getBindValue
,
...
...
@@ -206,6 +216,7 @@
modalWrapperRef
,
handleExtHeight
,
handleHeightChange
,
handleTitleDbClick
,
};
},
});
...
...
src/design/index.less
View file @
e3851dc5
...
...
@@ -44,6 +44,9 @@ body {
}
a:focus,
a:active {
outline: none;
a:active,
button,
div,
span {
outline: none !important;
}
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