1 | ---
|
2 | title: Title
|
3 | category: Components
|
4 | chinese: 标题组件
|
5 | ---
|
6 |
|
7 | 标题组件。
|
8 |
|
9 | ## 参数(props)
|
10 |
|
11 | | 参数名 | 说明 | 必填 | 类型 | 默认值 | 可选值 | 备注 |
|
12 | | ---------- | -------------------------------- | ---- | ------------------------- | ------ | ---------- | ---- |
|
13 | | text | 要显示的文本 | 否 | string | | | |
|
14 | | subtitle | 二级标题 | 否 | string 或 React.component | | | |
|
15 | | decoration | 是否有左边竖线 | 否 | boolean | true | true/false | |
|
16 | | children | 要显示的内容,支持复杂 component | 否 | string、components | | | |
|