SxTreeChart UI 设计规范

自动生成时间: 2026-02-04 组件路径: src/NextUI.Blazor/Components/SxTreeChart.razor

1. 组件概述

  • 组件包含 7 个参数,0 个回调,0 个公开方法。

2. 组件模式

模式 条件 说明
- - -

3. 表单字段

字段组件 绑定
- -

4. 操作按钮

外观 动作/链接 禁用条件
- - -

5. 验证规则

未检测到显式验证标记。

6. 状态与流程

内部状态字段: 未检测到明确状态字段。

7. 公共 API

7.1 Parameters

参数 类型 默认值 说明
NameField string "name" Field name for the name property. Default is "name".
ChildrenField string "children" Field name for the children property. Default is "children".
Layout string "orthogonal" Layout type. Options: "orthogonal", "radial". Default is "orthogonal".
Orient string "LR" Orientation of the tree. Options: "LR" (left-right), "RL", "TB" (top-bottom), "BT". Default is "LR".
ExpandAndCollapse bool true Whether nodes can be expanded and collapsed. Default is true.
InitialTreeDepth int 2 Initial tree depth to expand. Set to -1 to expand all. Default is 2.
Roam bool true Whether to enable roam (zoom and pan). Default is true.

7.2 Public Methods

无公开方法。

7.3 Events/Callbacks

无回调事件。

8. 典型使用场景 (Use Cases)

8.1 UC-1: 基础渲染

  1. 组件渲染默认状态
  2. 关键区域可见
  3. 无异常

9. 状态不变性测试 (State Invariants)

  • 同一参数重复设置不应触发非必要 UI 改变
  • 与表单字段无关的操作不应影响字段值

10. 测试检查点

  • 默认渲染与基础交互

11. Fluent UI 对齐

未在官方 Fluent UI Blazor 组件目录中找到直接对应项(以官方 demo/docs 目录为准)。

12. 参考文档摘要

  • docs/components/SxTreeChart.md: SxTreeChart (树图) - Implemented

13. 规范合规检查

  • 未检测到明显硬编码颜色/px。

14. 变更历史

  • 2026-02-04: 深度分析填充规范。