Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
najiu-frontend
najiu-admin-template
Commits
fca0bb16
Commit
fca0bb16
authored
Nov 19, 2020
by
vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix spin style
parent
ea24dfa3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
spin.less
src/setup/ant-design-vue/spin.less
+14
-0
spin.tsx
src/setup/ant-design-vue/spin.tsx
+2
-7
No files found.
src/setup/ant-design-vue/spin.less
0 → 100644
View file @
fca0bb16
@import (reference) '../../design/index.less';
.app-svg-loading {
position: relative;
width: auto;
&__tip {
display: block;
margin-top: 4px;
font-size: 13px;
color: #303133;
text-align: center;
}
}
src/setup/ant-design-vue/spin.tsx
View file @
fca0bb16
import
{
Spin
}
from
'
ant-design-vue
'
;
import
{
Spin
}
from
'
ant-design-vue
'
;
import
svgImg
from
'
/@/assets/images/loading.svg
'
;
import
svgImg
from
'
/@/assets/images/loading.svg
'
;
import
'
./spin.less
'
;
Spin
.
setDefaultIndicator
({
Spin
.
setDefaultIndicator
({
indicator
:
()
=>
{
indicator
:
()
=>
{
return
(
return
(
<
div
<
div
class=
"app-svg-loading"
>
class=
"app-svg-loading"
style=
{
{
position
:
'
relative
'
,
width
:
'
auto
'
,
}
}
>
<
img
src=
{
svgImg
}
alt=
""
height=
"32"
width=
"32"
class=
"g-loading"
/>
<
img
src=
{
svgImg
}
alt=
""
height=
"32"
width=
"32"
class=
"g-loading"
/>
</
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