Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
Falcon
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Walter Huang
Falcon
Commits
8a58b1e3
Commit
8a58b1e3
authored
Jun 25, 2025
by
Lin Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
7a41d3e0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
handlePageContent.ts
src/detect_section_selector_masters/handlePageContent.ts
+16
-1
No files found.
src/detect_section_selector_masters/handlePageContent.ts
View file @
8a58b1e3
...
...
@@ -34,6 +34,21 @@ function handleFullDiffNode(node: any, path: string[], output: any) {
});
}
// 检查当前节点是否为 Buttons,并将其内部每个 Button 当成独立 Button 处理
if
(
node
.
type
===
"Buttons"
)
{
// 直接获取 block1 下的 items 数组
const
items
=
node
.
components
.
block1
?.
items
||
[];
items
.
filter
((
btn
:
any
)
=>
btn
.
type
===
"Button"
).
forEach
((
btn
:
any
)
=>
{
output
.
result
.
push
({
type
:
'Button'
,
path
:
path
.
join
(
'.'
),
color
:
btn
.
color
,
backgroundSettings
:
btn
.
backgroundSettings
||
{},
id
:
btn
.
id
||
null
});
});
}
// 检查当前节点是否为 Button
if
(
node
.
type
===
"Button"
)
{
output
.
result
.
push
({
...
...
@@ -474,7 +489,7 @@ function parseJsonForStyles(
}
// 遍历子节点
if
(
node
.
components
)
{
if
(
node
.
components
&&
node
.
type
!==
"Buttons"
)
{
// Only traverse individual Button when no Buttons group is present
let
componentKeys
=
Object
.
keys
(
node
.
components
);
if
(
componentKeys
.
includes
(
'buttons'
)
&&
componentKeys
.
includes
(
'button1'
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment