amis2/docs/css-utilities/state.md

19 lines
437 B
Markdown
Raw Normal View History

2020-11-30 14:50:04 +08:00
---
title: 状态样式
---
2020-11-30 16:53:04 +08:00
除了给默认状态设置样式外还支持几个特定状态的样式设置比如hover鼠标悬停、active当前选中或者 disabled当前不可用
2020-11-30 14:50:04 +08:00
2020-11-30 16:53:04 +08:00
```schema:height="100" scope="body"
{
"type": "button",
"label": "按钮",
"className": "bg-pink-400 hover:bg-pink-600",
"actionType": "dialog",
"dialog": {
"title": "弹框",
"body": "Hello World!"
}
}
2020-11-30 14:50:04 +08:00
```