Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
3d7c3d71
Commit
3d7c3d71
authored
Dec 30, 2020
by
好多大米
Committed by
GitHub
Dec 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drawer: fix focus bug (#20626)
Co-authored-by:
wp178491
<
wp178491@alibaba-inc.com
>
parent
127dfadb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
packages/drawer/src/main.vue
packages/drawer/src/main.vue
+1
-5
packages/theme-chalk/src/drawer.scss
packages/theme-chalk/src/drawer.scss
+1
-0
No files found.
packages/drawer/src/main.vue
View file @
3d7c3d71
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
>
>
<header
class=
"el-drawer__header"
id=
"el-drawer__title"
v-if=
"withHeader"
>
<header
class=
"el-drawer__header"
id=
"el-drawer__title"
v-if=
"withHeader"
>
<slot
name=
"title"
>
<slot
name=
"title"
>
<span
role=
"heading"
tabindex=
"0"
:title=
"title"
>
{{
title
}}
</span>
<span
role=
"heading"
:title=
"title"
>
{{
title
}}
</span>
</slot>
</slot>
<button
<button
:aria-label=
"`close $
{title || 'drawer'}`"
:aria-label=
"`close $
{title || 'drawer'}`"
...
@@ -49,7 +49,6 @@
...
@@ -49,7 +49,6 @@
<
script
>
<
script
>
import
Popup
from
'
element-ui/src/utils/popup
'
;
import
Popup
from
'
element-ui/src/utils/popup
'
;
import
emitter
from
'
element-ui/src/mixins/emitter
'
;
import
emitter
from
'
element-ui/src/mixins/emitter
'
;
import
Utils
from
'
element-ui/src/utils/aria-utils
'
;
export
default
{
export
default
{
name
:
'
ElDrawer
'
,
name
:
'
ElDrawer
'
,
...
@@ -133,9 +132,6 @@ export default {
...
@@ -133,9 +132,6 @@ export default {
document
.
body
.
appendChild
(
this
.
$el
);
document
.
body
.
appendChild
(
this
.
$el
);
}
}
this
.
prevActiveElement
=
document
.
activeElement
;
this
.
prevActiveElement
=
document
.
activeElement
;
this
.
$nextTick
(()
=>
{
Utils
.
focusFirstDescendant
(
this
.
$refs
.
drawer
);
});
}
else
{
}
else
{
if
(
!
this
.
closed
)
this
.
$emit
(
'
close
'
);
if
(
!
this
.
closed
)
this
.
$emit
(
'
close
'
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
...
packages/theme-chalk/src/drawer.scss
View file @
3d7c3d71
...
@@ -119,6 +119,7 @@ $directions: rtl, ltr, ttb, btt;
...
@@ -119,6 +119,7 @@ $directions: rtl, ltr, ttb, btt;
0
16px
24px
2px
rgba
(
0
,
0
,
0
,
0
.14
)
,
0
16px
24px
2px
rgba
(
0
,
0
,
0
,
0
.14
)
,
0
6px
30px
5px
rgba
(
0
,
0
,
0
,
0
.12
);
0
6px
30px
5px
rgba
(
0
,
0
,
0
,
0
.12
);
overflow
:
hidden
;
overflow
:
hidden
;
outline
:
0
;
@each
$direction
in
$directions
{
@each
$direction
in
$directions
{
@include
animation-out
(
$direction
);
@include
animation-out
(
$direction
);
...
...
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