+
{child.isHeaderShow ? (
-
-
{child.titleText}
+
) : null}
-
{child.body}
+
{child.body}
{child.isFooterShow ? (
-
+
{(child.isSubmitShow ?? true) ? : null}
{(child.isCanCelShow ?? true) ? : null}
) : null}
- >
+
);
};
diff --git a/src/components/update/Modal/modal.module.scss b/src/components/update/Modal/modal.module.scss
new file mode 100644
index 0000000..a9536de
--- /dev/null
+++ b/src/components/update/Modal/modal.module.scss
@@ -0,0 +1,63 @@
+.modal{
+ :global{
+ .modal-bg {
+ width: 100vw;
+ height: 100vh;
+ position: fixed;
+ left: 0;
+ top: 0;
+ z-index: 9999;
+ background: rgba(0, 0, 0, 0.3);
+ }
+
+ .modal-outboard {
+ position: absolute;
+ top: 20vh;
+ left: 30vw;
+ z-index: 10000;
+ }
+
+ .modal-panel {
+ border: 1px solid #000000;
+ border-radius: 5px;
+
+ .modal-header {
+ $titleheight: 38px;
+ width: 530px;
+ height: $titleheight;
+ line-height: $titleheight;
+ background-color: rgb(99, 153, 255);
+ display: flex;
+
+ .modal-header-text {
+ text-align: center;
+ width: 480px;
+ }
+ }
+
+ .modal-body {
+ background-color: #ffffff;
+ }
+
+ .modal-footer {
+ background-color: #ffffff;
+ display: flex;
+ justify-content: end;
+
+ button {
+ margin: 10px;
+ }
+ }
+ }
+
+ .icon {
+ padding: 0 15px;
+ width: 20px;
+ fill: currentColor;
+
+ &:hover {
+ color: rgba(0, 0, 0, 0.4);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/components/update/Progress/index.scss b/src/components/update/Progress/index.scss
deleted file mode 100644
index 51ee222..0000000
--- a/src/components/update/Progress/index.scss
+++ /dev/null
@@ -1,16 +0,0 @@
-.up-progress{
- display: flex;
- align-items: center;
- .up-progress-pr{
- border: 1px solid #000000;
- border-radius: 3px;
- height: 6px;
- }
- .up-progress-rate{
- height: 6px;
- border-radius: 3px;
- }
- .up-progress-num{
- margin: 0 10px;
- }
-}
diff --git a/src/components/update/Progress/index.tsx b/src/components/update/Progress/index.tsx
index de02693..bb82162 100644
--- a/src/components/update/Progress/index.tsx
+++ b/src/components/update/Progress/index.tsx
@@ -1,20 +1,20 @@
import { RsProgressType } from './type'
-import './index.scss'
+import progressScss from './progress.module.scss'
const Progress = (props: RsProgressType) => {
return (
-
-
+
+
-
{props.percent > 100 ? 100 :(props.percent.toString().substring(0,4) ?? 0) }%
+
{props.percent > 100 ? 100 :(props.percent.toString().substring(0,4) ?? 0) }%
);
};
diff --git a/src/components/update/Progress/progress.module.scss b/src/components/update/Progress/progress.module.scss
new file mode 100644
index 0000000..ff84486
--- /dev/null
+++ b/src/components/update/Progress/progress.module.scss
@@ -0,0 +1,21 @@
+.progress {
+ display: flex;
+ align-items: center;
+
+ :global {
+ .progress-pr {
+ border: 1px solid #000000;
+ border-radius: 3px;
+ height: 6px;
+ }
+
+ .progress-rate {
+ height: 6px;
+ border-radius: 3px;
+ }
+
+ .progress-num {
+ margin: 0 10px;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/components/update/index.scss b/src/components/update/index.scss
deleted file mode 100644
index 39961b2..0000000
--- a/src/components/update/index.scss
+++ /dev/null
@@ -1,13 +0,0 @@
-.up-modal-body{
- display: flex;
- align-items: center;
- justify-content: center;
- height: 100px;
- .progress-title{
- width: 150px;
- }
-
- .update-progress{
- display: flex;
- }
-}
\ No newline at end of file
diff --git a/src/components/update/index.tsx b/src/components/update/index.tsx
index 61ed92b..3eb4fd0 100644
--- a/src/components/update/index.tsx
+++ b/src/components/update/index.tsx
@@ -2,7 +2,7 @@ import Modal from '@/components/update/Modal'
import Progress from '@/components/update/Progress'
import { ipcRenderer } from 'electron'
import { useEffect, useState } from 'react'
-import './index.scss'
+import updateScss from './update.module.scss'
import { checkUpdateType, isUpdateAvailable, ModalBtnText, VersionInfo } from './type'
@@ -89,11 +89,11 @@ const Update = () => {
})
return (
-
+ <>
-
+
{updateError ?
Error downloading the latest version, please contact the developer
:
checkType ? (
@@ -116,7 +116,7 @@ const Update = () => {
-
+ >
)
}
diff --git a/src/components/update/update.module.scss b/src/components/update/update.module.scss
new file mode 100644
index 0000000..926bb44
--- /dev/null
+++ b/src/components/update/update.module.scss
@@ -0,0 +1,19 @@
+.modalslot{
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ height: 100px;
+
+ :global {
+ .progress-title {
+ width: 150px;
+ }
+
+ .update-progress {
+ display: flex;
+ }
+ }
+}
+.a{
+ color: red;
+}
\ No newline at end of file