2周前

最近沉淀了一套 Mermaid / Flowchart 样式,即将内置,也可以分享给大家独立使用! flowchart TD %% 样式节点示例 A((开始节点)) --> B[处理步骤节点] B --> C{决策节点} C -->|是| D[(数据存储节点)] C -->|否| E[输出节点] D --> F[错误处理节点] E --> G((结束节点)) %% 通用样式定义 classDef startEndStyle fill:#e8f5e8,stroke:#4caf50,stroke-width:3px,color:#000 classDef processStyle fill:#e3f2fd,stroke:#2196f3,stroke-width:2px,color:#000 classDef decisionStyle fill:#fff3e0,stroke:#ff9800,stroke-width:2px,color:#000 classDef dataStyle fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px,color:#000 classDef outputStyle fill:#fce4ec,stroke:#e91e63,stroke-width:2px,color:#000 classDef errorStyle fill:#ffebee,stroke:#f44336,stroke-width:2px,color:#000 %% 应用样式到示例节点 class A,G startEndStyle class B processStyle class C decisionStyle class D dataStyle class E outputStyle class F errorStyle