CzRger před 1 týdnem
rodič
revize
8a5dc300d4
5 změnil soubory, kde provedl 8 přidání a 98 odebrání
  1. 4 11
      index.html
  2. 0 1
      package.json
  3. binární
      src/assets/images/global/loading.png
  4. 0 1
      src/main.ts
  5. 4 85
      src/style/index.scss

+ 4 - 11
index.html

@@ -13,17 +13,10 @@
     <script src="/tinymce_7.9.1/tinymce/tinymce.min.js"></script>
   </head>
   <body>
-    <div id="loader" class="loader">
-      <div class="loader-content">
-        <span></span>
-        <span></span>
-        <span></span>
-        <span></span>
-        <span></span>
-        <span></span>
-        <span></span>
-        <span></span>
-        <span></span>
+    <div id="loader" style="width: 100%;height: 100vh;display: flex;align-items: center;justify-content: center" class="loader">
+      <div class="loader-content" style="display: flex;flex-direction:column;align-items: center;">
+        <img src="/src/assets/images/global/loading.png"/>
+        <div style="color: #606266;font-size: 2rem;font-weight: bold;margin-top: 2rem;">页面加载中...</div>
       </div>
     </div>
     <div id="app"></div>

+ 0 - 1
package.json

@@ -47,7 +47,6 @@
     "vite-plugin-svg-icons": "^2.0.1",
     "vite-plugin-top-level-await": "^1.4.4",
     "vue": "^3.5.16",
-    "vue-data-ui": "^3.3.3",
     "vue-router": "^4.5.1"
   },
   "devDependencies": {

binární
src/assets/images/global/loading.png


+ 0 - 1
src/main.ts

@@ -15,7 +15,6 @@ import Antd from 'ant-design-vue'
 import 'ant-design-vue/dist/reset.css'
 import './style/index.scss'
 import './style/tailwind.css'
-import 'vue-data-ui/style.css' // 如果您使用多个组件,请将此样式导入放在您的主文件中
 
 const app = createApp(App)
 app.use(initDirectives)

+ 4 - 85
src/style/index.scss

@@ -26,98 +26,17 @@ body,
 }
 
 .loader {
-  width: 100%;
-  height: 100vh;
-  background-color: #ffffff;
-  display: flex;
-  align-items: center;
-  justify-content: center;
   .loader-content {
-    width: 300px;
-    height: 300px;
-    position: relative;
-    display: flex;
-    align-items: center;
-    justify-content: center;
-    --h: calc(var(--percent) / 100 * 360);
-    color: hsl(var(--h), 100%, 75%);
-    animation: changeColor 5s linear infinite;
-    > span {
-      position: absolute;
-      --diameter: calc(50px + (var(--n) - 1) * 30px);
-      width: var(--diameter);
-      height: var(--diameter);
-      border-style: solid;
-      border-color: currentColor transparent;
-      border-width: 10px 10px 0 0;
-      border-radius: 50%;
-      animation: rotating 5s linear infinite;
-      animation-duration: calc(5s / (9 - var(--n) + 1));
-      &:nth-child(1) {
-        --n: 1;
-      }
-      &:nth-child(2) {
-        --n: 2;
-      }
-      &:nth-child(3) {
-        --n: 3;
-      }
-      &:nth-child(4) {
-        --n: 4;
-      }
-      &:nth-child(5) {
-        --n: 5;
-      }
-      &:nth-child(6) {
-        --n: 6;
-      }
-      &:nth-child(7) {
-        --n: 7;
-      }
-      &:nth-child(8) {
-        --n: 8;
-      }
-      &:nth-child(9) {
-        --n: 9;
-      }
-    }
-  }
-  @keyframes rotating {
-    to {
-      transform: rotate(1turn);
-    }
+    animation: changeColor 3s linear infinite;
   }
+
   @keyframes changeColor {
     0%,
     100% {
-      --percent: 0;
-    }
-    10% {
-      --percent: 10;
-    }
-    20% {
-      --percent: 20;
-    }
-    30% {
-      --percent: 30;
-    }
-    40% {
-      --percent: 40;
+      transform: translateY(-30px);
     }
     50% {
-      --percent: 50;
-    }
-    60% {
-      --percent: 60;
-    }
-    70% {
-      --percent: 70;
-    }
-    80% {
-      --percent: 80;
-    }
-    90% {
-      --percent: 90;
+      transform: translateY(0px);
     }
   }
 }