Commit 3a651767fea526a04e2797af3eac72c872589fbc

Authored by vben
1 parent fca0bb16

style: update global spin

src/design/public.less
  1 +.app-svg-loading {
  2 + position: relative;
  3 + width: auto;
  4 +}
  5 +
1 6 ::-webkit-scrollbar {
2 7 width: 6px;
3 8 height: 6px;
... ...
src/setup/ant-design-vue/spin.less deleted 100644 → 0
1   -@import (reference) '../../design/index.less';
2   -
3   -.app-svg-loading {
4   - position: relative;
5   - width: auto;
6   -
7   - &__tip {
8   - display: block;
9   - margin-top: 4px;
10   - font-size: 13px;
11   - color: #303133;
12   - text-align: center;
13   - }
14   -}
src/setup/ant-design-vue/spin.tsx
1 1 import { Spin } from 'ant-design-vue';
2 2 import svgImg from '/@/assets/images/loading.svg';
3 3  
4   -import './spin.less';
5 4 Spin.setDefaultIndicator({
6 5 indicator: () => {
7 6 return (
8 7 <div class="app-svg-loading">
9   - <img src={svgImg} alt="" height="32" width="32" class="g-loading" />
  8 + <img src={svgImg} alt="" height="32" width="32" />
10 9 </div>
11 10 );
12 11 },
... ...