mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
parent
23759a7126
commit
622d000767
@ -932,3 +932,15 @@ action 还可以使用 `body` 来渲染其他组件,让那些不支持行为
|
||||
| tooltipPlacement | `string` | `top` | 如果配置了`tooltip`或者`disabledTip`,指定提示信息位置,可配置`top`、`bottom`、`left`、`right`。 |
|
||||
| close | `boolean` or `string` | - | 当`action`配置在`dialog`或`drawer`的`actions`中时,配置为`true`指定此次操作完后关闭当前`dialog`或`drawer`。当值为字符串,并且是祖先层弹框的名字的时候,会把祖先弹框关闭掉。 |
|
||||
| required | `Array<string>` | - | 配置字符串数组,指定在`form`中进行操作之前,需要指定的字段名的表单项通过验证 |
|
||||
|
||||
## 事件表
|
||||
|
||||
| 事件名称 | 事件参数 | 说明 |
|
||||
| ---------- | --------------------------------------------- | -------- |
|
||||
| click | [动作](../../docs/concepts/event-action#动作) | 点击 |
|
||||
| mouseenter | - | 鼠标移入 |
|
||||
| mouseleave | - | 鼠标移出 |
|
||||
|
||||
## 动作表
|
||||
|
||||
暂无
|
||||
|
@ -78,3 +78,13 @@ order: 55
|
||||
| disabled | `boolean` | | 禁用超链接 |
|
||||
| icon | `string` | | 超链接图标,以加强显示 |
|
||||
| rightIcon | `string` | | 右侧图标 |
|
||||
|
||||
## 事件表
|
||||
|
||||
| 事件名称 | 事件参数 | 说明 |
|
||||
| -------- | -------------------------------------------------------------------------------------------------- | ---- |
|
||||
| click | `url: string` 链接地址 <br> `blank: boolean` 是否在新标签页打开 <br> `label: SchemaTpl` 标签内文本 | 点击 |
|
||||
|
||||
## 动作表
|
||||
|
||||
暂无
|
||||
|
1862
docs/zh-CN/concepts/event-action.md
Normal file
1862
docs/zh-CN/concepts/event-action.md
Normal file
File diff suppressed because it is too large
Load Diff
@ -92,6 +92,13 @@ export default [
|
||||
import('../../docs/zh-CN/concepts/linkage.md').then(wrapDoc)
|
||||
)
|
||||
},
|
||||
{
|
||||
label: '事件动作',
|
||||
path: '/zh-CN/docs/concepts/event-action',
|
||||
component: React.lazy(() =>
|
||||
import('../../docs/zh-CN/concepts/event-action.md').then(wrapDoc)
|
||||
)
|
||||
},
|
||||
{
|
||||
label: '行为',
|
||||
path: '/zh-CN/docs/concepts/action',
|
||||
|
Loading…
Reference in New Issue
Block a user