From 9083c7a034f4e1f22408ef4a52bf3e32c43cf518 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Tue, 27 Jun 2023 08:26:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A6=96=E9=A1=B5loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/demo/src/WTA/wwwroot/app.js | 3 ++- .../src/WTA/wwwroot/assets/icons/loading.svg | 1 + docs/demo/src/WTA/wwwroot/index.html | 27 ++++++++++++++++++- 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 docs/demo/src/WTA/wwwroot/assets/icons/loading.svg diff --git a/docs/demo/src/WTA/wwwroot/app.js b/docs/demo/src/WTA/wwwroot/app.js index 937bad15..9f35eb2c 100644 --- a/docs/demo/src/WTA/wwwroot/app.js +++ b/docs/demo/src/WTA/wwwroot/app.js @@ -2,7 +2,7 @@ import html from "html"; import { ElConfigProvider } from "element-plus"; import zh from "./lib/element-plus/locale/zh-cn.min.mjs"; import en from "./lib/element-plus/locale/en.min.mjs"; -import { Suspense, reactive } from "vue"; +import { Suspense, reactive, onMounted } from "vue"; export default { components: { ElConfigProvider, Suspense }, @@ -19,6 +19,7 @@ export default { ["en", en], ]) ); + onMounted(() => document.querySelector("#loading.loading").classList.remove("loading")); return { localeMap, }; diff --git a/docs/demo/src/WTA/wwwroot/assets/icons/loading.svg b/docs/demo/src/WTA/wwwroot/assets/icons/loading.svg new file mode 100644 index 00000000..ad6abaf3 --- /dev/null +++ b/docs/demo/src/WTA/wwwroot/assets/icons/loading.svg @@ -0,0 +1 @@ + diff --git a/docs/demo/src/WTA/wwwroot/index.html b/docs/demo/src/WTA/wwwroot/index.html index 0627c5db..e487ebc9 100644 --- a/docs/demo/src/WTA/wwwroot/index.html +++ b/docs/demo/src/WTA/wwwroot/index.html @@ -5,12 +5,37 @@ +
+ - \ No newline at end of file +