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
c6428fab
Commit
c6428fab
authored
Jun 21, 2020
by
zhangwenshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update loading style
parent
395c6459
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
Table.less
components/apolloTable/component/Table.less
+2
-1
Table.tsx
components/apolloTable/component/Table.tsx
+11
-11
No files found.
components/apolloTable/component/Table.less
View file @
c6428fab
...
@@ -9,9 +9,10 @@
...
@@ -9,9 +9,10 @@
height: 100%;
height: 100%;
.loading {
.loading {
position: absolute;
position: absolute;
top: 200px;
//
top: 200px;
left: 50%;
left: 50%;
transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
z-index: 10;
}
}
}
}
.leftSideContainer {
.leftSideContainer {
...
...
components/apolloTable/component/Table.tsx
View file @
c6428fab
...
@@ -537,16 +537,16 @@ export default class AirTable extends Component<TableProps, TableState> {
...
@@ -537,16 +537,16 @@ export default class AirTable extends Component<TableProps, TableState> {
})
}
})
}
/>
/>
)
:
(
)
:
(
columnCount
>
0
&&
columnCount
>
0
&&
!
loading
&&
(
!
loading
&&
(
<
Empty
<
Empty
className=
{
styles
.
defaultEmpty
}
className=
{
styles
.
defaultEmpty
}
description=
{
description=
{
noDataPlaceholder
||
locale
.
empty
noDataPlaceholder
||
locale
.
empty
}
}
/>
/>
)
)
)
}
)
}
</
div
>
</
div
>
}
}
</
div
>
</
div
>
...
@@ -628,7 +628,7 @@ export default class AirTable extends Component<TableProps, TableState> {
...
@@ -628,7 +628,7 @@ export default class AirTable extends Component<TableProps, TableState> {
</
div
>
</
div
>
)
}
)
}
<
div
className=
{
styles
.
fillHandleWrapper
}
/>
<
div
className=
{
styles
.
fillHandleWrapper
}
/>
<
div
className=
{
styles
.
loading
}
>
{
loading
&&
(
loadComp
?
loadComp
:
<
Spin
/>)
}
</
div
>
<
div
className=
{
styles
.
loading
}
style=
{
{
top
:
`${totalHeight / 2}px`
}
}
>
{
loading
&&
(
loadComp
?
loadComp
:
<
Spin
/>)
}
</
div
>
</
div
>
</
div
>
);
);
}
}
}
}
...
...
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