Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
submodule
Project
Project
Details
Activity
Releases
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
web_component
submodule
Commits
a312367f
Commit
a312367f
authored
Jul 23, 2020
by
zhangwenshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update table column
parent
cc8ae7d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
Column.tsx
components/apolloTable/component/Column.tsx
+8
-1
No files found.
components/apolloTable/component/Column.tsx
View file @
a312367f
...
...
@@ -82,10 +82,17 @@ export default class TableColumn extends PureComponent<ColumnProps> {
return
item
.
colName
===
columnName
;
});
const
{
sortType
}:
{
sortType
:
string
}
=
sort
||
{};
let
marginLeft
:
any
=
0
;
if
(
columnIndex
===
0
&&
(
rowSelection
||
showIndex
))
{
marginLeft
=
'56px'
;
if
(
!
rowSelection
)
{
marginLeft
=
'82px'
;
}
}
return
(
<
div
className=
{
s
.
colContainer
}
>
{
rowSelection
&&
columnIndex
===
0
&&
<
div
className=
{
s
.
checkbox
}
>
{
this
.
getCheckbox
()
}
</
div
>
}
<
div
className=
{
s
.
colBrief
}
style=
{
{
marginLeft
:
showIndex
&&
columnIndex
===
0
?
'56px'
:
0
}
}
>
<
div
className=
{
s
.
colBrief
}
style=
{
{
marginLeft
}
}
>
{
icon
&&
<
div
className=
{
s
.
colIcon
}
>
{
icon
()
}
</
div
>
}
<
span
className=
{
required
?
classNames
(
s
.
colTitle
,
s
.
required
)
:
s
.
colTitle
}
>
{
columnChsName
}
...
...
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