mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-15 17:31:18 +08:00
29 lines
406 B
Markdown
29 lines
406 B
Markdown
|
---
|
||
|
title: Button 按钮
|
||
|
description:
|
||
|
type: 0
|
||
|
group: ⚙ 组件
|
||
|
menuName: Button 按钮
|
||
|
icon:
|
||
|
order: 29
|
||
|
---
|
||
|
## 基本用法
|
||
|
|
||
|
```schema:height="100" scope="body"
|
||
|
{
|
||
|
"label": "弹个框",
|
||
|
"type": "button",
|
||
|
"actionType": "dialog",
|
||
|
"dialog": {
|
||
|
"title": "弹框",
|
||
|
"body": "这是个简单的弹框。"
|
||
|
}
|
||
|
}
|
||
|
```
|
||
|
|
||
|
`button` 实际上是 `action` 的别名,更多用法见[action](./action)
|
||
|
|
||
|
|
||
|
|
||
|
|