Commit fca0bb164a0f2e03acb5090bf59634225f5c06ee

Authored by vben
1 parent ea24dfa3

fix: fix spin style

src/setup/ant-design-vue/spin.less 0 → 100644
  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';
4 5 Spin.setDefaultIndicator({
5 6 indicator: () => {
6 7 return (
7   - <div
8   - class="app-svg-loading"
9   - style={{
10   - position: 'relative',
11   - width: 'auto',
12   - }}
13   - >
  8 + <div class="app-svg-loading">
14 9 <img src={svgImg} alt="" height="32" width="32" class="g-loading" />
15 10 </div>
16 11 );
... ...