mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-02-03 02:54:40 +08:00
style: update global spin
This commit is contained in:
parent
fca0bb164a
commit
3a651767fe
@ -1,3 +1,8 @@
|
|||||||
|
.app-svg-loading {
|
||||||
|
position: relative;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
width: 6px;
|
width: 6px;
|
||||||
height: 6px;
|
height: 6px;
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
@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;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,12 +1,11 @@
|
|||||||
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 class="app-svg-loading">
|
<div class="app-svg-loading">
|
||||||
<img src={svgImg} alt="" height="32" width="32" class="g-loading" />
|
<img src={svgImg} alt="" height="32" width="32" />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user