mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 13:10:30 +08:00
auto expand
This commit is contained in:
parent
90b7373af2
commit
c494907b19
@ -288,7 +288,13 @@ const Proxies: React.FC = () => {
|
|||||||
size="sm"
|
size="sm"
|
||||||
isIconOnly
|
isIconOnly
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
if (!isOpen[index]) return
|
if (!isOpen[index]) {
|
||||||
|
setIsOpen((prev) => {
|
||||||
|
const newOpen = [...prev]
|
||||||
|
newOpen[index] = true
|
||||||
|
return newOpen
|
||||||
|
})
|
||||||
|
}
|
||||||
let i = 0
|
let i = 0
|
||||||
for (let j = 0; j < index; j++) {
|
for (let j = 0; j < index; j++) {
|
||||||
i += groupCounts[j]
|
i += groupCounts[j]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user