amis/docs/components/container.md
2020-07-28 10:03:53 +08:00

34 lines
882 B
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Container 容器
description:
type: 0
group: ⚙ 组件
menuName: Container 容器
icon:
order: 38
---
Container 是一种容器组件它可以渲染其他amis组件
## 基本用法
```schema:height="200" scope="body"
{
"type": "container",
"body":"这里是容器内容区"
}
```
## 属性表
| 属性名 | 类型 | 默认值 | 说明 |
| ------------- | -------------------------------- | --------- | ------------------- |
| type | `string` | `"alert"` | 指定为 alert 渲染器 |
| className | `string` | | 外层 Dom 的类名 |
| bodyClassName | `string` | | 容器内容区的类名 |
| body | [SchemaNode](./types-schemanode) | | 容器内容 |