Commit 9fabf5d5 by pangchong

docs: 更新规则文档及优化工具栏按钮暗色主题样式

parent e5785566
......@@ -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>` 标题能实时联动更新。
......@@ -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
: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)'"
: '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
: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)'"
: 'background: transparent; color: var(--colorText3)'
"
@click="insertBelow = true"
>
下方
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment