瀏覽代碼

style: update global spin

vben 4 年之前
父節點
當前提交
3a651767fe
共有 3 個文件被更改,包括 6 次插入16 次删除
  1. 5 0
      src/design/public.less
  2. 0 14
      src/setup/ant-design-vue/spin.less
  3. 1 2
      src/setup/ant-design-vue/spin.tsx

+ 5 - 0
src/design/public.less

@@ -1,3 +1,8 @@
+.app-svg-loading {
+  position: relative;
+  width: auto;
+}
+
 ::-webkit-scrollbar {
   width: 6px;
   height: 6px;

+ 0 - 14
src/setup/ant-design-vue/spin.less

@@ -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 - 2
src/setup/ant-design-vue/spin.tsx

@@ -1,12 +1,11 @@
 import { Spin } from 'ant-design-vue';
 import svgImg from '/@/assets/images/loading.svg';
 
-import './spin.less';
 Spin.setDefaultIndicator({
   indicator: () => {
     return (
       <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>
     );
   },