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
8ea9e715
Commit
8ea9e715
authored
Feb 22, 2017
by
cinwell.li
Committed by
baiyaaaaa
Feb 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scrollbar: fix style (#2948)
parent
c4367604
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
packages/scrollbar/src/main.js
packages/scrollbar/src/main.js
+5
-2
packages/theme-default/src/date-picker/time-spinner.css
packages/theme-default/src/date-picker/time-spinner.css
+4
-0
No files found.
packages/scrollbar/src/main.js
View file @
8ea9e715
...
@@ -45,12 +45,15 @@ export default {
...
@@ -45,12 +45,15 @@ export default {
if
(
gutter
)
{
if
(
gutter
)
{
const
gutterWith
=
`-
${
gutter
}
px`
;
const
gutterWith
=
`-
${
gutter
}
px`
;
const
gutterStyle
=
`margin-bottom:
${
gutterWith
}
; margin-right:
${
gutterWith
}
;`
;
if
(
Array
.
isArray
(
this
.
wrapStyle
))
{
if
(
Array
.
isArray
(
this
.
wrapStyle
))
{
style
=
util
.
toObject
(
this
.
wrapStyle
);
style
=
util
.
toObject
(
this
.
wrapStyle
);
style
.
marginRight
=
style
.
marginBottom
=
gutterWith
;
style
.
marginRight
=
style
.
marginBottom
=
gutterWith
;
}
else
if
(
typeof
this
.
wrapStyle
===
'
string
'
)
{
}
else
if
(
typeof
this
.
wrapStyle
===
'
string
'
)
{
style
+=
`margin-bottom:
${
gutterWith
}
; margin-right:
${
gutterWith
}
;`
;
style
+=
gutterStyle
;
}
else
{
style
=
gutterStyle
;
}
}
}
}
const
view
=
h
(
this
.
tag
,
{
const
view
=
h
(
this
.
tag
,
{
...
@@ -63,7 +66,7 @@ export default {
...
@@ -63,7 +66,7 @@ export default {
ref
=
"
wrap
"
ref
=
"
wrap
"
style
=
{
style
}
style
=
{
style
}
onScroll
=
{
this
.
handleScroll
}
onScroll
=
{
this
.
handleScroll
}
class
=
{
[
this
.
wrapClass
,
'
el-scrollbar__wrap
el-scrollbar__wrap--hidden-default
'
]
}
>
class
=
{
[
this
.
wrapClass
,
'
el-scrollbar__wrap
'
,
gutter
?
''
:
'
el-scrollbar__wrap--hidden-default
'
]
}
>
{
[
view
]
}
{
[
view
]
}
<
/div
>
<
/div
>
);
);
...
...
packages/theme-default/src/date-picker/time-spinner.css
View file @
8ea9e715
...
@@ -5,6 +5,10 @@
...
@@ -5,6 +5,10 @@
&
.has-seconds
{
&
.has-seconds
{
.el-time-spinner__wrapper
{
.el-time-spinner__wrapper
{
width
:
33%
;
width
:
33%
;
.
el-scrollbar__wrap
:
not
(.
el-scrollbar__wrap--hidden-default
)
{
padding-bottom
:
15px
;
}
}
}
.el-time-spinner__wrapper
:nth-child
(
2
)
{
.el-time-spinner__wrapper
:nth-child
(
2
)
{
...
...
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