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
80172d8e
Commit
80172d8e
authored
Jun 24, 2020
by
满振华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://apollo.mttop.cn/gitlab/web_component/submodule
parents
90aaa9bb
8ad20434
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Table.tsx
components/apolloTable/component/Table.tsx
+6
-2
No files found.
components/apolloTable/component/Table.tsx
View file @
80172d8e
...
...
@@ -345,7 +345,11 @@ export default class AirTable extends Component<TableProps, TableState> {
const
record
:
any
=
dataSource
[
rowIndex
];
// 行数据
const
rowData
:
any
=
showData
[
rowIndex
];
// 行数据
const
columnConfig
:
any
=
showColumns
[
columnIndex
];
// 列属性
const
columnData
:
any
=
rowData
.
rowData
[
columnIndex
];
// 列数据
// const columnData: any = rowData.rowData[columnIndex]; // 列数据
const
columnData
:
any
=
rowData
.
rowData
.
find
((
temp
)
=>
{
return
temp
.
colName
===
columnConfig
.
columnName
;
});
// 列数据
const
cellData
:
any
=
columnData
&&
columnData
.
cellValueList
;
// 列数据
const
{
cellClassName
,
cellStyle
,
bordered
=
false
}
=
columnConfig
;
...
...
@@ -519,7 +523,7 @@ export default class AirTable extends Component<TableProps, TableState> {
showColumns
:
leftColumns
,
})
}
onScroll=
{
(...
arg
:
Array
<
Object
>
)
=>
{
onScroll
(
...
arg
);
onScroll
(
{
scrollTop
:
arg
[
0
].
scrollTop
}
);
this
.
onScroll
(
arg
[
0
]);
}
}
columnCount=
{
leftCount
}
...
...
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