2020-07-28 10:03:53 +08:00
|
|
|
---
|
|
|
|
title: Collapse 折叠器
|
2020-07-29 16:20:21 +08:00
|
|
|
description:
|
2020-07-28 10:03:53 +08:00
|
|
|
type: 0
|
|
|
|
group: ⚙ 组件
|
|
|
|
menuName: Collapse 折叠器
|
2020-07-29 16:20:21 +08:00
|
|
|
icon:
|
2020-07-28 10:03:53 +08:00
|
|
|
order: 36
|
|
|
|
---
|
2020-07-29 16:20:21 +08:00
|
|
|
|
2020-07-28 10:03:53 +08:00
|
|
|
## 基本用法
|
|
|
|
|
|
|
|
```schema:height="350" scope="body"
|
|
|
|
{
|
|
|
|
"type": "collapse",
|
|
|
|
"title": "标题",
|
|
|
|
"body": "这里是内容"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## 属性表
|
|
|
|
|
2020-07-29 16:20:21 +08:00
|
|
|
| 属性名 | 类型 | 默认值 | 说明 |
|
|
|
|
| ---------------- | --------------------------------- | -------------------------------------- | ---------------------- |
|
|
|
|
| type | `string` | `"collapse"` | 指定为 Collapse 渲染器 |
|
|
|
|
| title | [SchemaNode](../types/schemanode) | | 标题 |
|
|
|
|
| body | [SchemaNode](../types/schemanode) | | 内容 |
|
|
|
|
| className | `string` | `bg-white wrapper` | CSS 类名 |
|
|
|
|
| headingClassName | `string` | `font-thin b-b b-light text-lg p-b-xs` | 标题 CSS 类名 |
|
|
|
|
| bodyClassName | `string` | | 内容 CSS 类名。 |
|
|
|
|
| collapsed | `boolean` | `false` | 默认是否要收起。 |
|