Skip to content

树视图图表 (v<MERMAID_RELEASE_VERSION>+)

🌐 TreeView Diagram (v<MERMAID_RELEASE_VERSION>+)

介绍

🌐 Introduction

树视图图用于以类似目录的结构表示层次化数据。

🌐 A TreeView diagram is used to represent hierarchical data in the form of a directory-like structure.

语法

🌐 Syntax

树的结构仅取决于缩进。

🌐 The structure of the tree depends only on indentation.

treeView-beta
    "<folder name>"
        "<file name>"
        "<folder name>"
            "<file name>"
    "<file-name>"

示例

🌐 Examples

配置变量

🌐 Config Variables

属性描述默认值
rowIndent每行的缩进10
paddingX行的水平内边距5
paddingY行的垂直内边距5
lineThickness线条的厚度1

主题变量

🌐 Theme Variables

属性描述默认值
labelFontSize标签的字体大小'16px'
labelColor标签的颜色'black'
lineColor线条的颜色'black'
Opens in mermaid.ai