Commit fca0bb164a0f2e03acb5090bf59634225f5c06ee
1 parent
ea24dfa3
fix: fix spin style
Showing
2 changed files
with
16 additions
and
7 deletions
src/setup/ant-design-vue/spin.less
0 → 100644
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 | ); | ... | ... |