amis2/docs/zh-CN/components/button.md

26 lines
389 B
Markdown
Raw Normal View History

2020-07-28 10:03:53 +08:00
---
title: Button 按钮
description:
2020-07-28 10:03:53 +08:00
type: 0
group: ⚙ 组件
menuName: Button 按钮
icon:
2020-07-28 10:03:53 +08:00
order: 29
---
2020-07-28 10:03:53 +08:00
## 基本用法
```schema: scope="body"
2020-07-28 10:03:53 +08:00
{
"label": "弹个框",
"type": "button",
"actionType": "dialog",
"dialog": {
"title": "弹框",
"body": "这是个简单的弹框。"
}
}
```
`button` 实际上是 `action` 的别名,更多用法见[action](./action)