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
07b9e00f
Commit
07b9e00f
authored
Aug 22, 2016
by
FuryBean
Committed by
GitHub
Aug 22, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #87 from QingWei-Li/feat/next-fix-table
Feat/next fix table
parents
a0a3c57e
699d288e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
9 deletions
+10
-9
packages/steps/src/step.vue
packages/steps/src/step.vue
+1
-1
packages/table/src/table-header.js
packages/table/src/table-header.js
+1
-1
packages/table/src/table.vue
packages/table/src/table.vue
+7
-6
packages/theme-default/src/step.css
packages/theme-default/src/step.css
+1
-0
packages/theme-default/src/steps.css
packages/theme-default/src/steps.css
+0
-1
No files found.
packages/steps/src/step.vue
View file @
07b9e00f
...
@@ -110,7 +110,7 @@ export default {
...
@@ -110,7 +110,7 @@ export default {
if
(
parent
.
direction
===
'
horizontal
'
)
{
if
(
parent
.
direction
===
'
horizontal
'
)
{
this
.
style
=
{
width
:
space
};
this
.
style
=
{
width
:
space
};
this
.
mainOffset
=
-
this
.
$refs
.
title
.
getBoundingClientRect
().
width
/
2
+
16
+
'
px
'
;
//
this.mainOffset = -this.$refs.title.getBoundingClientRect().width / 2 + 16 + 'px';
}
else
{
}
else
{
this
.
style
=
{
height
:
space
};
this
.
style
=
{
height
:
space
};
}
}
...
...
packages/table/src/table-header.js
View file @
07b9e00f
...
@@ -45,7 +45,7 @@ export default {
...
@@ -45,7 +45,7 @@ export default {
class
=
"
gutter
"
class
=
"
gutter
"
style
=
{{
style
=
{{
width
:
(
this
.
$parent
.
showVScrollBar
width
:
(
this
.
$parent
.
showVScrollBar
?
this
.
$parent
.
g
utterWidth
?
this
.
$parent
.
currentG
utterWidth
:
0
:
0
)
+
'
px
'
)
+
'
px
'
}}
>&
nbsp
;
<
/th>
)
}}
>&
nbsp
;
<
/th>
)
...
...
packages/table/src/table.vue
View file @
07b9e00f
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<table-header
:columns=
"columns"
:all-selected=
"allSelected"
@
allselectedchange=
"handleAllSelectedChange"
:selection=
"selection"
:style=
"
{ width: bodyWidth ? bodyWidth + 'px' : '' }" :border="border">
</table-header>
<table-header
:columns=
"columns"
:all-selected=
"allSelected"
@
allselectedchange=
"handleAllSelectedChange"
:selection=
"selection"
:style=
"
{ width: bodyWidth ? bodyWidth + 'px' : '' }" :border="border">
</table-header>
</div>
</div>
<div
class=
"el-table__body-wrapper"
>
<div
class=
"el-table__body-wrapper"
>
<table-body
:columns=
"columns"
:selection=
"selection"
:data=
"filterData"
:style=
"
{ width: bodyWidth ? bodyWidth - (showVScrollBar ?
g
utterWidth : 0 ) + 'px' : '' }">
</table-body>
<table-body
:columns=
"columns"
:selection=
"selection"
:data=
"filterData"
:style=
"
{ width: bodyWidth ? bodyWidth - (showVScrollBar ?
currentG
utterWidth : 0 ) + 'px' : '' }">
</table-body>
</div>
</div>
<div
class=
"el-table__fixed"
:style=
"
{ width: fixedBodyWidth ? fixedBodyWidth + 'px' : '' }" ref="fixed">
<div
class=
"el-table__fixed"
:style=
"
{ width: fixedBodyWidth ? fixedBodyWidth + 'px' : '' }" ref="fixed">
<div
class=
"el-table__fixed-header-wrapper"
v-if=
"fixedColumnCount > 0"
>
<div
class=
"el-table__fixed-header-wrapper"
v-if=
"fixedColumnCount > 0"
>
...
@@ -160,8 +160,8 @@
...
@@ -160,8 +160,8 @@
}
}
});
});
if
(
bodyMinWidth
<
bodyWidth
-
this
.
g
utterWidth
)
{
// do not have scroll bar.
if
(
bodyMinWidth
<
bodyWidth
-
this
.
currentG
utterWidth
)
{
// do not have scroll bar.
let
flexWidthTotal
=
bodyWidth
-
this
.
g
utterWidth
-
columns
.
length
-
bodyMinWidth
;
let
flexWidthTotal
=
bodyWidth
-
this
.
currentG
utterWidth
-
columns
.
length
-
bodyMinWidth
;
let
flexWidthPerColumn
=
Math
.
floor
(
flexWidthTotal
/
flexColumns
.
length
);
let
flexWidthPerColumn
=
Math
.
floor
(
flexWidthTotal
/
flexColumns
.
length
);
let
flexWidthFirstColumn
=
flexWidthTotal
-
flexWidthPerColumn
*
flexColumns
.
length
+
flexWidthPerColumn
;
let
flexWidthFirstColumn
=
flexWidthTotal
-
flexWidthPerColumn
*
flexColumns
.
length
+
flexWidthPerColumn
;
...
@@ -254,7 +254,7 @@
...
@@ -254,7 +254,7 @@
const
fixedBodyWrapper
=
this
.
$el
.
querySelector
(
'
.el-table__fixed-body-wrapper
'
);
const
fixedBodyWrapper
=
this
.
$el
.
querySelector
(
'
.el-table__fixed-body-wrapper
'
);
if
(
fixedBodyWrapper
)
{
if
(
fixedBodyWrapper
)
{
fixedBodyWrapper
.
style
.
height
=
(
this
.
showHScrollBar
?
gridWrapper
.
offsetHeight
-
this
.
g
utterWidth
:
gridWrapper
.
offsetHeight
)
+
'
px
'
;
fixedBodyWrapper
.
style
.
height
=
(
this
.
showHScrollBar
?
gridWrapper
.
offsetHeight
-
this
.
currentG
utterWidth
:
gridWrapper
.
offsetHeight
)
+
'
px
'
;
}
}
}
}
},
},
...
@@ -317,7 +317,7 @@
...
@@ -317,7 +317,7 @@
if
(
GUTTER_WIDTH
===
undefined
)
{
if
(
GUTTER_WIDTH
===
undefined
)
{
GUTTER_WIDTH
=
getScrollBarWidth
();
GUTTER_WIDTH
=
getScrollBarWidth
();
}
}
this
.
g
utterWidth
=
GUTTER_WIDTH
;
this
.
currentG
utterWidth
=
GUTTER_WIDTH
;
this
.
debouncedReRender
=
debounce
(
50
,
()
=>
{
this
.
debouncedReRender
=
debounce
(
50
,
()
=>
{
this
.
doRender
();
this
.
doRender
();
...
@@ -428,7 +428,8 @@
...
@@ -428,7 +428,8 @@
sortingColumn
:
null
,
sortingColumn
:
null
,
sortingProperty
:
null
,
sortingProperty
:
null
,
sortingDirection
:
1
,
sortingDirection
:
1
,
visibleFilter
:
null
visibleFilter
:
null
,
currentGutterWidth
:
this
.
gutterWidth
};
};
}
}
};
};
...
...
packages/theme-default/src/step.css
View file @
07b9e00f
...
@@ -142,6 +142,7 @@
...
@@ -142,6 +142,7 @@
@e
main
{
@e
main
{
white-space
:
normal
;
white-space
:
normal
;
padding-right
:
10px
;
padding-right
:
10px
;
text-align
:
left
;
}
}
@e
title
{
@e
title
{
...
...
packages/theme-default/src/steps.css
View file @
07b9e00f
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
@component-namespace
el
{
@component-namespace
el
{
@b
steps
{
@b
steps
{
overflow
:
hidden
;
font-size
:
0
;
font-size
:
0
;
>
:last-child
.el-step__line
{
>
:last-child
.el-step__line
{
...
...
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