{
- setShowOptions(false)
+ if (closeOnTriggerLeave) setShowOptions(false)
}}
>
{selectedItem
- ? selectedItem(options[selectedIdx].label)
- : options[selectedIdx].label}
-
+ ? selectedItem(options[selectedIdx]?.label ?? '')
+ : options[selectedIdx]?.label}
+ {!hideChevron && (
+
+ )}
@@ -165,22 +216,19 @@ export const Select =
(
(
transformOrigin: !bottom ? 'top center' : 'bottom center',
}}
>
-
-
+
+
{options.map((o, i) => (
--
Gitee
From 0926165f01c480b3b0aa24eb72365bb59b9554e5 Mon Sep 17 00:00:00 2001
From: kvass <1356957408@qq.com>
Date: Sat, 11 Apr 2026 14:08:00 +0800
Subject: [PATCH 6/9] =?UTF-8?q?feat:=20AP=E5=92=8C=E9=AB=98=E7=BA=A7?=
=?UTF-8?q?=E9=94=AE=E7=9A=84AP=E5=80=BC=20=E6=B2=A1=E6=9C=89=E7=BB=9F?=
=?UTF-8?q?=E4=B8=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../configure/adv-key/common/aprt.tsx | 34 +++++++++++++++++--
1 file changed, 32 insertions(+), 2 deletions(-)
diff --git a/src/components/configure/adv-key/common/aprt.tsx b/src/components/configure/adv-key/common/aprt.tsx
index 7b22d6f..9453752 100644
--- a/src/components/configure/adv-key/common/aprt.tsx
+++ b/src/components/configure/adv-key/common/aprt.tsx
@@ -1,4 +1,4 @@
-import {useMemo, useState, useEffect} from 'react'
+import {useMemo, useState, useEffect, useRef} from 'react'
import {useTranslation} from 'react-i18next'
import {Slider} from 'src/components/form/slider'
import {
@@ -14,7 +14,7 @@ import {
} from 'src/store/actuationSlice'
import {useAppDispatch, useAppSelector} from 'src/store/hook'
import {getSelectedKeys} from 'src/store/keymapSlice'
-import {APData, RTData} from 'src/types/types'
+import {AK, APData, RTData} from 'src/types/types'
import styled from 'styled-components'
import {Switch} from 'src/components/form/switch'
import {getSelectedAdvKey} from 'src/store/advkeySlice'
@@ -136,6 +136,21 @@ const AP = () => {
dispatch(updatePerKeyActuation(selectedKeys, data))
}
+ const rsSocdApSig = useRef('')
+ useEffect(() => {
+ const t = advKey?.type
+ if (t !== AK.RS && t !== AK.SOCD) {
+ rsSocdApSig.current = ''
+ return
+ }
+ if (!selectedKeys?.length) return
+ const sig = `${t}-${selectedKeys.join(',')}`
+ if (rsSocdApSig.current === sig) return
+ rsSocdApSig.current = sig
+ setAPData(ap)
+ dispatch(updatePerKeyActuation(selectedKeys, ap))
+ }, [advKey?.type, selectedKeys, ap, dispatch])
+
useEffect(() => {
setAPData(ap)
}, [selectedKeys, actuationMap])
@@ -206,6 +221,21 @@ export const RT = () => {
dispatch(updatePerKeyRT(selectedKeys, rtData))
}
+ const rsSocdRtSig = useRef('')
+ useEffect(() => {
+ const t = advKey?.type
+ if (t !== AK.RS && t !== AK.SOCD) {
+ rsSocdRtSig.current = ''
+ return
+ }
+ if (!selectedKeys?.length) return
+ const sig = `${t}-${selectedKeys.join(',')}`
+ if (rsSocdRtSig.current === sig) return
+ rsSocdRtSig.current = sig
+ setRTData(rt)
+ dispatch(updatePerKeyRT(selectedKeys, rt))
+ }, [advKey?.type, selectedKeys, rt, dispatch])
+
useEffect(() => {
setRTData(rt)
}, [selectedKeys, actuationMap])
--
Gitee
From 4ab897ca01a51f6fe0c0f46e0ad72990ca2713d8 Mon Sep 17 00:00:00 2001
From: kvass <1356957408@qq.com>
Date: Sat, 11 Apr 2026 17:32:33 +0800
Subject: [PATCH 7/9] =?UTF-8?q?feat:=20=E5=9C=86=E8=A7=92=E7=BB=9F?=
=?UTF-8?q?=E4=B8=80=E5=8A=A0=E5=A4=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/index.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/index.css b/src/index.css
index d34dbfe..c6324a5 100644
--- a/src/index.css
+++ b/src/index.css
@@ -39,7 +39,7 @@
}
html {
- --radius-default: 12px;
+ --radius-default: 24px;
--font-menu-1: 900 16px var(--font);
--font-menu-2: 700 20px var(--font);
--
Gitee
From 711b2271b053c8db52b416239de29cc81f4b2fbe Mon Sep 17 00:00:00 2001
From: kvass <1356957408@qq.com>
Date: Sat, 11 Apr 2026 17:43:17 +0800
Subject: [PATCH 8/9] =?UTF-8?q?feat:=20=E6=89=93=E5=8C=85=E6=8A=A5?=
=?UTF-8?q?=E9=94=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/configure/firmware/FirmwareUpdate.tsx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/components/configure/firmware/FirmwareUpdate.tsx b/src/components/configure/firmware/FirmwareUpdate.tsx
index e26a926..c759d6d 100644
--- a/src/components/configure/firmware/FirmwareUpdate.tsx
+++ b/src/components/configure/firmware/FirmwareUpdate.tsx
@@ -181,11 +181,11 @@ const LogLine = styled.div`
}
`;
-const FileName = styled.span`
- color: var(--color-primary);
- font-size: 14px;
- font-weight: 500;
-`;
+// const FileName = styled.span`
+// color: var(--color-primary);
+// font-size: 14px;
+// font-weight: 500;
+// `;
const InfoRow = styled.div`
display: flex;
--
Gitee
From 436c720345a0ca13cc15cc77500f4edbe913ce99 Mon Sep 17 00:00:00 2001
From: kvass <1356957408@qq.com>
Date: Sat, 11 Apr 2026 22:11:02 +0800
Subject: [PATCH 9/9] =?UTF-8?q?feat:=20=E6=89=93=E5=8C=85=E6=8A=A5?=
=?UTF-8?q?=E9=94=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/configure/firmware/FirmwareUpdate.tsx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/components/configure/firmware/FirmwareUpdate.tsx b/src/components/configure/firmware/FirmwareUpdate.tsx
index c759d6d..cccd856 100644
--- a/src/components/configure/firmware/FirmwareUpdate.tsx
+++ b/src/components/configure/firmware/FirmwareUpdate.tsx
@@ -181,11 +181,11 @@ const LogLine = styled.div`
}
`;
-// const FileName = styled.span`
-// color: var(--color-primary);
-// font-size: 14px;
-// font-weight: 500;
-// `;
+/* const FileName = styled.span`
+ color: var(--color-primary);
+ font-size: 14px;
+ font-weight: 500;
+`; */
const InfoRow = styled.div`
display: flex;
--
Gitee