💄
This commit is contained in:
parent
6e52e78ea4
commit
988c2ef8da
1 changed files with 2 additions and 2 deletions
|
@ -293,7 +293,7 @@ export const progressLoading = (data: IWebSocketData) => {
|
|||
}
|
||||
if (data.code === 0) {
|
||||
progressElement.innerHTML = `<div class="b3-dialog__scrim" style="z-index:400;opacity: 1"></div>
|
||||
<div style="position: fixed;top: 45vh;width: 70vw;left: 15vw;color:#fff;z-index:400;">
|
||||
<div style="position: fixed;top: 45vh;width: 70vw;left: 15vw;color:var(--b3-theme-on-surface);z-index:400;">
|
||||
<div style="text-align: right">${data.data.current}/${data.data.total}</div>
|
||||
<div style="margin: 8px 0;height: 8px;border-radius: var(--b3-border-radius);overflow: hidden;background-color:#fff;"><div style="width: ${data.data.current / data.data.total * 100}%;transition: var(--b3-transition);background-color: var(--b3-theme-primary);height: 8px;"></div></div>
|
||||
<div>${data.msg}</div>
|
||||
|
@ -303,7 +303,7 @@ export const progressLoading = (data: IWebSocketData) => {
|
|||
progressElement.lastElementChild.lastElementChild.innerHTML = data.msg;
|
||||
} else {
|
||||
progressElement.innerHTML = `<div class="b3-dialog__scrim" style="z-index:400;opacity: 1"></div>
|
||||
<div style="position: fixed;top: 45vh;width: 70vw;left: 15vw;color:#fff;z-index:400;">
|
||||
<div style="position: fixed;top: 45vh;width: 70vw;left: 15vw;color:var(--b3-theme-on-surface);z-index:400;">
|
||||
<div style="margin: 8px 0;height: 8px;border-radius: var(--b3-border-radius);overflow: hidden;background-color:#fff;"><div style="background-color: var(--b3-theme-primary);height: 8px;background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);animation: stripMove 450ms linear infinite;background-size: 50px 50px;"></div></div>
|
||||
<div>${data.msg}</div>
|
||||
</div>`;
|
||||
|
|
Loading…
Add table
Reference in a new issue