Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
Ifar-Xml-Edtor
Overview
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
0
Merge Requests
0
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
pangchong
Ifar-Xml-Edtor
Commits
9fabf5d5
Commit
9fabf5d5
authored
Aug 06, 2026
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: 更新规则文档及优化工具栏按钮暗色主题样式
parent
e5785566
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
.gemini/.rules.md
+0
-1
src/views/editor/components/EditorToolbar/index.vue
+10
-6
No files found.
.gemini/.rules.md
View file @
9fabf5d5
...
...
@@ -316,4 +316,3 @@ export const COMPOSITE_CONTAINER_MAP: Record<string, string[]> = {
- **多文本节点 / 混合内容**(节点内部包含多个被子 Element 元素分隔的独立文本片段,如 `<REFBLOCK>文本1<REFINT/>文本2</REFBLOCK>`):**必须**保留 `-txt-` 虚拟文本节点,以便用户精确定位到具体的文本片段。右键点击具体文本片段时展示 `目标: #text`,并在下拉层级列表中展示并打勾该具体 `#text` 选项。
- **目标节点名称展示格式**:在右键菜单 Header 顶部及相关面板展示目标节点名称时,实体 XML 节点名称**必须**统一附带尖括号格式(如 `目标: <REFBLOCK>`),保持与大纲树和层级列表一致的视觉识别。
- **层级切换响应式刷新**:右键菜单 Header 选项的 Key 必须包含 `activeNodeId` 动态后缀(如 `key: `headerTarget:${activeNodeId}``
),以保证用户在下拉层级列表中手动切换选择父/子/文本节点时,菜单顶部的
`目标: <XXX>`
标题能实时联动更新。
src/views/editor/components/EditorToolbar/index.vue
View file @
9fabf5d5
...
...
@@ -9,9 +9,11 @@
<button
type=
"button"
class=
"px-2.5 h-6 text-xs font-semibold rounded transition-[background-color,color] select-none focus:outline-none"
:style=
"!insertBelow
? 'background: var(--card-color); box-shadow: 0 1px 3px rgba(0,0,0,0.12); color: var(--colorText1)'
: 'background: transparent; color: var(--colorText3)'"
:style=
"
!insertBelow
? 'background: var(--card-color); box-shadow: 0 1px 3px rgba(0,0,0,0.12); color: var(--colorText1)'
: 'background: transparent; color: var(--colorText3)'
"
@
click=
"insertBelow = false"
>
内部
...
...
@@ -19,9 +21,11 @@
<button
type=
"button"
class=
"px-2.5 h-6 text-xs font-semibold rounded transition-[background-color,color] select-none focus:outline-none hover:bg-fill-3"
:style=
"insertBelow
? 'background: var(--card-color); box-shadow: 0 1px 3px rgba(0,0,0,0.12); color: var(--colorText1)'
: 'background: transparent; color: var(--colorText3)'"
:style=
"
insertBelow
? 'background: var(--card-color); box-shadow: 0 1px 3px rgba(0,0,0,0.12); color: var(--colorText1)'
: 'background: transparent; color: var(--colorText3)'
"
@
click=
"insertBelow = true"
>
下方
...
...
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