diff --git a/docs/zh-CN/components/form/button-group-select.md b/docs/zh-CN/components/form/button-group-select.md
index 5d17d000716..9d188972b54 100755
--- a/docs/zh-CN/components/form/button-group-select.md
+++ b/docs/zh-CN/components/form/button-group-select.md
@@ -215,6 +215,48 @@ order: 6
| -------- | ------------------------- | ---------------- |
| change | `[name]: string` 组件的值 | 选中值变化时触发 |
+### change
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "type": "button-group-select",
+ "label": "选项",
+ "name": "type",
+ "options": [
+ {
+ "label": "Option A",
+ "value": "a"
+ },
+ {
+ "label": "Option B",
+ "value": "b"
+ },
+ {
+ "label": "Option C",
+ "value": "c"
+ }
+ ],
+ "onEvent": {
+ "change": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
## 动作表
当前组件对外暴露以下特性动作,其他组件可以通过指定`actionType: 动作名称`、`componentId: 该组件id`来触发这些动作,动作配置可以通过`args: {动作配置项名称: xxx}`来配置具体的参数,详细请查看[事件动作](../../docs/concepts/event-action#触发其他组件的动作)。
diff --git a/docs/zh-CN/components/form/chain-select.md b/docs/zh-CN/components/form/chain-select.md
index 4cb556340a9..ae315491fef 100755
--- a/docs/zh-CN/components/form/chain-select.md
+++ b/docs/zh-CN/components/form/chain-select.md
@@ -65,6 +65,36 @@ order: 7
| -------- | ------------------------- | ---------------- |
| change | `[name]: string` 组件的值 | 选中值变化时触发 |
+### change
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "name": "select3",
+ "type": "chained-select",
+ "label": "链式下拉",
+ "source": "/api/mock2/options/chainedOptions?waitSeconds=1&parentId=$parentId&level=$level&maxLevel=4",
+ "value": "a,b",
+ "onEvent": {
+ "change": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
## 动作表
当前组件对外暴露以下特性动作,其他组件可以通过指定`actionType: 动作名称`、`componentId: 该组件id`来触发这些动作,动作配置可以通过`args: {动作配置项名称: xxx}`来配置具体的参数,详细请查看[事件动作](../../docs/concepts/event-action#触发其他组件的动作)。
diff --git a/docs/zh-CN/components/form/checkbox.md b/docs/zh-CN/components/form/checkbox.md
index 1f3676327a5..b37cbe198a3 100755
--- a/docs/zh-CN/components/form/checkbox.md
+++ b/docs/zh-CN/components/form/checkbox.md
@@ -110,6 +110,35 @@ order: 8
| -------- | -------------------------- | ------------------ |
| change | `[name]: boolean` 组件的值 | 选中状态变化时触发 |
+### change
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "name": "checkbox",
+ "type": "checkbox",
+ "label": "勾选框",
+ "option": "选项说明",
+ "onEvent": {
+ "change": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
## 动作表
当前组件对外暴露以下特性动作,其他组件可以通过指定`actionType: 动作名称`、`componentId: 该组件id`来触发这些动作,动作配置可以通过`args: {动作配置项名称: xxx}`来配置具体的参数,详细请查看[事件动作](../../docs/concepts/event-action#触发其他组件的动作)。
diff --git a/docs/zh-CN/components/form/checkboxes.md b/docs/zh-CN/components/form/checkboxes.md
index 1f6744db924..09e6c0768a6 100755
--- a/docs/zh-CN/components/form/checkboxes.md
+++ b/docs/zh-CN/components/form/checkboxes.md
@@ -473,9 +473,207 @@ order: 9
> `[name]`表示当前组件绑定的名称,即`name`属性,如果没有配置`name`属性,则通过`value`取值。
-| 事件名称 | 事件参数 | 说明 |
-| -------- | ----------------------- | ---------------- |
-| change | `[name]: string` 选中值 | 选中值变化时触发 |
+| 事件名称 | 事件参数 | 说明 |
+| -------------------------------- | ----------------------------------------------------------------------------------------- | ------------------ |
+| change | `[name]: string` 选中值 | 选中值变化时触发 |
+| addConfirm (3.6.4 及以上版本) | `[name]: string` 组件的值
`item: object` 新增的节点信息
`items: object[]`选项集合 | 新增节点提交时触发 |
+| editConfirm (3.6.4 及以上版本) | `[name]: object` 组件的值
`item: object` 编辑的节点信息
`items: object[]`选项集合 | 编辑节点提交时触发 |
+| deleteConfirm (3.6.4 及以上版本) | `[name]: string` 组件的值
`item: object` 删除的节点信息
`items: object[]`选项集合 | 删除节点提交时触发 |
+
+### change
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "name": "checkboxes",
+ "type": "checkboxes",
+ "label": "复选框",
+ "options": [
+ {
+ "label": "OptionA",
+ "value": "a"
+ },
+ {
+ "label": "OptionB",
+ "value": "b"
+ },
+ {
+ "label": "OptionC",
+ "value": "c"
+ },
+ {
+ "label": "OptionD",
+ "value": "d"
+ }
+ ],
+ "onEvent": {
+ "change": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
+### addConfirm
+
+配置 `creatable`后,可监听确认新增操作。
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "name": "checkboxes",
+ "type": "checkboxes",
+ "label": "复选框",
+ "creatable": true,
+ "options": [
+ {
+ "label": "OptionA",
+ "value": "a"
+ },
+ {
+ "label": "OptionB",
+ "value": "b"
+ },
+ {
+ "label": "OptionC",
+ "value": "c"
+ },
+ {
+ "label": "OptionD",
+ "value": "d"
+ }
+ ],
+ "onEvent": {
+ "addConfirm": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.item|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
+### editConfirm
+
+配置 `editable`后,可监听确认编辑操作。
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "name": "checkboxes",
+ "type": "checkboxes",
+ "label": "复选框",
+ "editable": true,
+ "options": [
+ {
+ "label": "OptionA",
+ "value": "a"
+ },
+ {
+ "label": "OptionB",
+ "value": "b"
+ },
+ {
+ "label": "OptionC",
+ "value": "c"
+ },
+ {
+ "label": "OptionD",
+ "value": "d"
+ }
+ ],
+ "onEvent": {
+ "editConfirm": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.item|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
+### deleteConfirm
+
+配置 `removable`后,可监听确认删除操作。
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "name": "checkboxes",
+ "type": "checkboxes",
+ "label": "复选框",
+ "removable": true,
+ "labelField": "label2",
+ "valueField": "value2",
+ "options": [
+ {
+ "label2": "OptionA",
+ "value2": "a"
+ },
+ {
+ "label2": "OptionB",
+ "value2": "b"
+ },
+ {
+ "label2": "OptionC",
+ "value2": "c"
+ },
+ {
+ "label2": "OptionD",
+ "value2": "d"
+ }
+ ],
+ "onEvent": {
+ "deleteConfirm": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.item|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
## 动作表
diff --git a/docs/zh-CN/components/form/combo.md b/docs/zh-CN/components/form/combo.md
index 4b7e49043ac..b164b25f80b 100755
--- a/docs/zh-CN/components/form/combo.md
+++ b/docs/zh-CN/components/form/combo.md
@@ -957,6 +957,155 @@ combo 还有一个作用是增加层级,比如返回的数据是一个深层
| delete | `key: number` 移除项的索引
`item: object` 移除项
`[name]: object \| object[]` 组件的值 | 删除组合项时触发 |
| tabsChange | `key: number` 选项卡索引
`item: object` 激活项
`[name]: object \| object[]` 组件的值 | 当设置 tabsMode 为 true 时,切换选项卡时触发 |
+### add
+
+```schema: scope="body"
+{
+ "type": "form",
+ "mode": "horizontal",
+ "api": "/api/mock2/form/saveForm",
+ "debug": true,
+ "body": [
+ {
+ "type": "combo",
+ "name": "combo",
+ "label": "Combo",
+ "multiple": true,
+ "items": [
+ {
+ "name": "text",
+ "label": "文本",
+ "type": "input-text"
+ },
+ {
+ "name": "select",
+ "label": "选项",
+ "type": "select",
+ "options": ["a", "b", "c"]
+ }
+ ],
+ "onEvent": {
+ "add": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
+```
+
+### delete
+
+```schema: scope="body"
+{
+ "type": "form",
+ "mode": "horizontal",
+ "api": "/api/mock2/form/saveForm",
+ "debug": true,
+ "body": [
+ {
+ "type": "combo",
+ "name": "combo",
+ "label": "Combo",
+ "multiple": true,
+ "items": [
+ {
+ "name": "text",
+ "label": "文本",
+ "type": "input-text"
+ },
+ {
+ "name": "select",
+ "label": "选项",
+ "type": "select",
+ "options": ["a", "b", "c"]
+ }
+ ],
+ "onEvent": {
+ "delete": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.item|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
+```
+
+### tabsChange
+
+监听 tab 切换,获取被激活的索引。
+
+```schema: scope="body"
+{
+ "type": "form",
+ "mode": "horizontal",
+ "api": "/api/mock2/form/saveForm",
+ "debug": true,
+ "body": [
+ {
+ "type": "combo",
+ "name": "combo101",
+ "label": "组合多条多行",
+ "multiple": true,
+ "multiLine": true,
+ "value": [
+ {}
+ ],
+ "tabsMode": true,
+ "tabsStyle": "card",
+ "maxLength": 3,
+ "items": [
+ {
+ "name": "a",
+ "label": "文本",
+ "type": "input-text",
+ "placeholder": "文本",
+ "value": "",
+ "size": "full"
+ },
+ {
+ "name": "b",
+ "label": "选项",
+ "type": "select",
+ "options": [
+ "a",
+ "b",
+ "c"
+ ],
+ "size": "full"
+ }
+ ],
+ "onEvent": {
+ "tabsChange": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.key|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
+```
+
## 动作表
当前组件对外暴露以下特性动作,其他组件可以通过指定`actionType: 动作名称`、`componentId: 该组件id`来触发这些动作,动作配置可以通过`args: {动作配置项名称: xxx}`来配置具体的参数,详细请查看[事件动作](../../docs/concepts/event-action#触发其他组件的动作)。
diff --git a/docs/zh-CN/components/form/input-city.md b/docs/zh-CN/components/form/input-city.md
index 42312333dce..9e01cdf620c 100755
--- a/docs/zh-CN/components/form/input-city.md
+++ b/docs/zh-CN/components/form/input-city.md
@@ -113,6 +113,34 @@ order: 10
| -------- | ----------------------------------- | ---------------- |
| change | `[name]: number \| string` 组件的值 | 选中值变化时触发 |
+### change
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "name": "city",
+ "type": "input-city",
+ "label": "城市",
+ "onEvent": {
+ "change": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
## 动作表
当前组件对外暴露以下特性动作,其他组件可以通过指定`actionType: 动作名称`、`componentId: 该组件id`来触发这些动作,动作配置可以通过`args: {动作配置项名称: xxx}`来配置具体的参数,详细请查看[事件动作](../../docs/concepts/event-action#触发其他组件的动作)。
diff --git a/docs/zh-CN/components/form/input-range.md b/docs/zh-CN/components/form/input-range.md
index 7c202eba1ff..87e4bf2fc06 100755
--- a/docs/zh-CN/components/form/input-range.md
+++ b/docs/zh-CN/components/form/input-range.md
@@ -300,16 +300,16 @@ order: 38
当做选择器表单项使用时,除了支持 [普通表单项属性表](./formitem#%E5%B1%9E%E6%80%A7%E8%A1%A8) 中的配置以外,还支持下面一些配置
-| 属性名 | 类型 | 默认值 | 说明 | 版本 |
-| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |
-| className | `string` | | css 类名 |
-| value | `number` or `string` or `{min: number, max: number}` or `[number, number]` | | |
-| min | `number \| string` | `0` | 最小值,支持变量 | `3.3.0`后支持变量 |
-| max | `number \| string` | `100` | 最大, 支持变量值 | `3.3.0`后支持变量 |
-| disabled | `boolean` | `false` | 是否禁用 |
-| step | `number \| string` | `1` | 步长,支持变量 | `3.3.0`后支持变量 |
-| showSteps | `boolean` | `false` | 是否显示步长 |
-| parts | `number` or `number[]` | `1` | 分割的块数
主持数组传入分块的节点 |
+| 属性名 | 类型 | 默认值 | 说明 | 版本 |
+| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |
+| className | `string` | | css 类名 |
+| value | `number` or `string` or `{min: number, max: number}` or `[number, number]` | | |
+| min | `number \| string` | `0` | 最小值,支持变量 | `3.3.0`后支持变量 |
+| max | `number \| string` | `100` | 最大, 支持变量值 | `3.3.0`后支持变量 |
+| disabled | `boolean` | `false` | 是否禁用 |
+| step | `number \| string` | `1` | 步长,支持变量 | `3.3.0`后支持变量 |
+| showSteps | `boolean` | `false` | 是否显示步长 |
+| parts | `number` or `number[]` | `1` | 分割的块数
主持数组传入分块的节点 |
| marks | { [number | string]: string | number | SchemaObject }
or { [number | string]: { style: CSSProperties, label: string } }
| | 刻度标记
- 支持自定义样式
- 设置百分比 |
| tooltipVisible | `boolean` | `false` | 是否显示滑块标签 |
| tooltipPlacement | `auto` or `bottom` or `left` or `right` | `top` | 滑块标签的位置,默认`auto`,方向自适应
前置条件:tooltipVisible 不为 false 时有效 |
@@ -336,6 +336,99 @@ order: 38
| blur | `[name]: number \| string \|{min: number, max: number}` 组件的值 | 当设置 showInput 为 true 时,输入框失去焦点时触发 |
| focus | `[name]: number \| string \|{min: number, max: number}` 组件的值 | 当设置 showInput 为 true 时,输入框获取焦点时触发 |
+### change
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "type": "input-range",
+ "label": "滑块",
+ "name": "range",
+ "value": 20,
+ "onEvent": {
+ "change": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
+### blur
+
+当设置 `showInput` 为 true 时,输入框失去焦点时触发。
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "type": "input-range",
+ "label": "滑块",
+ "name": "range",
+ "value": 20,
+ "showInput": true,
+ "onEvent": {
+ "blur": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
+### focus
+
+当设置 `showInput` 为 true 时,输入框获取焦点时触发。
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "type": "input-range",
+ "label": "滑块",
+ "name": "range",
+ "value": 20,
+ "showInput": true,
+ "onEvent": {
+ "focus": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
## 动作表
当前组件对外暴露以下特性动作,其他组件可以通过指定`actionType: 动作名称`、`componentId: 该组件id`来触发这些动作,动作配置可以通过`args: {动作配置项名称: xxx}`来配置具体的参数,详细请查看[事件动作](../../docs/concepts/event-action#触发其他组件的动作)。
diff --git a/docs/zh-CN/components/form/input-table.md b/docs/zh-CN/components/form/input-table.md
index a3a69ae7d14..e30973b9387 100755
--- a/docs/zh-CN/components/form/input-table.md
+++ b/docs/zh-CN/components/form/input-table.md
@@ -905,7 +905,7 @@ order: 54
| 事件名称 | 事件参数 | 说明 |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
-| add | `[name]: object[]` 列表记录 | 点击左下角添加按钮 或 某一行右侧操作栏添加按钮时触发 |
+| add | `index: number` 新增行记录索引
`[name]: object[]` 列表记录 | 点击左下角添加按钮 或 某一行右侧操作栏添加按钮时触发 |
| addConfirm | `index: number` 新增行记录索引
`item: object` 新增行记录
`[name]: object[]`列表记录 | 开启`needConfirm`,点击添加按钮,填入数据后点击“保存”按钮后触发 |
| addSuccess | `index: number` 新增行记录索引
`item: object` 新增行记录
`[name]: object[]`列表记录 | 开启`needConfirm`并且配置`addApi`,点击“保存”后调用接口成功时触发 |
| addFail | `index: number` 新增行记录索引
`item: object` 新增行记录
`[name]: object[]`列表记录
`error: object` `addApi`请求失败后返回的错误信息 | 开启`needConfirm`并且配置`addApi`,点击“保存”后调用接口失败时触发 |
diff --git a/docs/zh-CN/components/form/input-tag.md b/docs/zh-CN/components/form/input-tag.md
index 7174662d5f6..c4827469069 100755
--- a/docs/zh-CN/components/form/input-tag.md
+++ b/docs/zh-CN/components/form/input-tag.md
@@ -144,6 +144,111 @@ order: 55
| blur | `[name]: string` 组件的值
`selectedItems: Option[]` 选中的项
`items: Option[]` 所有选项 | 输入框失去焦点时触发 |
| focus | `[name]: string` 组件的值
`selectedItems: Option[]` 选中的项
`items: Option[]` 所有选项 | 输入框获取焦点时触发 |
+### change
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "type": "input-tag",
+ "name": "tag",
+ "label": "标签",
+ "placeholder": "请选择标签",
+ "options": [
+ "Aaron Rodgers",
+ "Tom Brady",
+ "Charlse Woodson",
+ "Aaron Jones"
+ ],
+ "onEvent": {
+ "change": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
+### blur
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "type": "input-tag",
+ "name": "tag",
+ "label": "标签",
+ "placeholder": "请选择标签",
+ "options": [
+ "Aaron Rodgers",
+ "Tom Brady",
+ "Charlse Woodson",
+ "Aaron Jones"
+ ],
+ "onEvent": {
+ "blur": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
+### focus
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "type": "input-tag",
+ "name": "tag",
+ "label": "标签",
+ "placeholder": "请选择标签",
+ "options": [
+ "Aaron Rodgers",
+ "Tom Brady",
+ "Charlse Woodson",
+ "Aaron Jones"
+ ],
+ "onEvent": {
+ "focus": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
## 动作表
当前组件对外暴露以下特性动作,其他组件可以通过指定`actionType: 动作名称`、`componentId: 该组件id`来触发这些动作,动作配置可以通过`args: {动作配置项名称: xxx}`来配置具体的参数,详细请查看[事件动作](../../docs/concepts/event-action#触发其他组件的动作)。
diff --git a/docs/zh-CN/components/form/input-text.md b/docs/zh-CN/components/form/input-text.md
index 84b1bf65593..37123841ce6 100755
--- a/docs/zh-CN/components/form/input-text.md
+++ b/docs/zh-CN/components/form/input-text.md
@@ -456,6 +456,165 @@ order: 56
| change | `[name]: string` 组件的值 | 值变化时触发 |
| clear | `[name]: string` 组件的值 | 点击清除按钮时触发 |
+### enter
+
+选择器模式下,回车时触发。
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "name": "text",
+ "type": "input-text",
+ "label": "text",
+ "options": [
+ {
+ "label": "aa",
+ "value": "aa"
+ },
+ {
+ "label": "bb",
+ "value": "bb"
+ }
+ ],
+ "onEvent": {
+ "enter": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
+### focus
+
+当设置 `showInput` 为 true 时,输入框获取焦点时触发。
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "name": "text",
+ "type": "input-text",
+ "label": "text",
+ "onEvent": {
+ "focus": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
+### blur
+
+当设置 `showInput` 为 true 时,输入框失去焦点时触发。
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "name": "text",
+ "type": "input-text",
+ "label": "text",
+ "onEvent": {
+ "blur": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
+### change
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "name": "text",
+ "type": "input-text",
+ "label": "text",
+ "onEvent": {
+ "change": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
+### clear
+
+配置`clearable`为 true,点击清除按钮时触发。
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "name": "text",
+ "type": "input-text",
+ "label": "text",
+ "clearable": true,
+ "onEvent": {
+ "clear": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
## 动作表
当前组件对外暴露以下特性动作,其他组件可以通过指定`actionType: 动作名称`、`componentId: 该组件id`来触发这些动作,动作配置可以通过`args: {动作配置项名称: xxx}`来配置具体的参数,详细请查看[事件动作](../../docs/concepts/event-action#触发其他组件的动作)。
diff --git a/docs/zh-CN/components/form/input-tree.md b/docs/zh-CN/components/form/input-tree.md
index 917f7924f29..a63418c5eef 100755
--- a/docs/zh-CN/components/form/input-tree.md
+++ b/docs/zh-CN/components/form/input-tree.md
@@ -684,6 +684,7 @@ order: 59
{
"type": "form",
"api": "/api/mock2/form/saveForm",
+ "debug": true,
"body": [
{
"type": "input-tree",
@@ -842,6 +843,7 @@ order: 59
{
"type": "form",
"api": "/api/mock2/form/saveForm",
+ "debug": true,
"body": [
{
"type": "input-tree",
@@ -1142,13 +1144,301 @@ true false false [{label: 'A/B/C', value: 'a/b/c'},{label: 'A
> `[name]`表示当前组件绑定的名称,即`name`属性,如果没有配置`name`属性,则通过`value`取值。
-| 事件名称 | 事件参数 | 说明 |
-| ------------ | ----------------------------------------------------------------------------------------------- | ---------------------------- |
-| change | `items: object[]`选项集合(< 3.6.0 及以下版本 不支持该参数)
`[name]: string` 组件的值 | 选中值变化时触发 |
-| add | `items: object[]`选项集合(< 2.3.2 及以下版本 为`options`)
`[name]: object` 新增的节点信息 | 新增节点提交时触发 |
-| edit | `items: object[]`选项集合(< 2.3.2 及以下版本 为`options`)
`[name]: object` 编辑的节点信息 | 编辑节点提交时触发 |
-| delete | `items: object[]`选项集合(< 2.3.2 及以下版本 为`options`)
`[name]: object` 删除的节点信息 | 删除节点提交时触发 |
-| loadFinished | `[name]: object` deferApi 懒加载远程请求成功后返回的数据 | 懒加载接口远程请求成功时触发 |
+| 事件名称 | 事件参数 | 说明 |
+| ------------------------------------ | --------------------------------------------------------------------------------------------------------------------- | ---------------------------- |
+| change | `items: object[]`选项集合(< 3.6.0 及以下版本 不支持该参数)
`[name]: string` 组件的值 | 选中值变化时触发 |
+| addConfirm (3.6.4 及以上版本) | `[name]: string` 组件的值
`item: object` 新增的节点信息
`items: object[]`选项集合 | 新增节点提交时触发 |
+| editConfirm (3.6.4 及以上版本) | `[name]: object` 组件的值
`item: object` 编辑的节点信息
`items: object[]`选项集合 | 编辑节点提交时触发 |
+| deleteConfirm (3.6.4 及以上版本) | `[name]: string` 组件的值
`item: object` 删除的节点信息
`items: object[]`选项集合 | 删除节点提交时触发 |
+| deferLoadFinished (3.6.4 及以上版本) | `[name]: object` 组件的值
`result: object` deferApi 懒加载远程请求成功后返回的数据
`items: object[]`选项集合 | 懒加载接口远程请求成功时触发 |
+| add(不推荐) | `[name]: object` 新增的节点信息
`items: object[]`选项集合(< 2.3.2 及以下版本 为`options`) | 新增节点提交时触发 |
+| edit(不推荐) | `[name]: object` 编辑的节点信息
`items: object[]`选项集合(< 2.3.2 及以下版本 为`options`) | 编辑节点提交时触发 |
+| delete(不推荐) | `[name]: object` 删除的节点信息
`items: object[]`选项集合(< 2.3.2 及以下版本 为`options`) | 删除节点提交时触发 |
+| loadFinished(不推荐) | `[name]: object` deferApi 懒加载远程请求成功后返回的数据 | 懒加载接口远程请求成功时触发 |
+
+### change
+
+```schema: scope="body"
+{
+ "type": "form",
+ "api": "/api/mock2/form/saveForm",
+ "debug": true,
+ "body": [
+ {
+ "type": "input-tree",
+ "name": "tree",
+ "label": "Tree",
+ "onEvent": {
+ "change": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.tree|json}"
+ }
+ }
+ ]
+ }
+ },
+ "options": [
+ {
+ "label": "Folder A",
+ "value": 1,
+ "children": [
+ {
+ "label": "file A",
+ "value": 2
+ },
+ {
+ "label": "file B",
+ "value": 3
+ }
+ ]
+ },
+ {
+ "label": "file C",
+ "value": 4
+ },
+ {
+ "label": "file D",
+ "value": 5
+ }
+ ]
+ }
+ ]
+}
+```
+
+### addConfirm
+
+配置 `creatable`后,可监听确认新增操作。
+
+```schema: scope="body"
+{
+ "type": "form",
+ "api": "/api/mock2/form/saveForm",
+ "debug": true,
+ "body": [
+ {
+ "type": "input-tree",
+ "name": "tree",
+ "label": "Tree",
+ "creatable": true,
+ "removable": true,
+ "editable": true,
+ "addApi": "/api/mock2/form/saveForm",
+ "onEvent": {
+ "addConfirm": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.item|json}"
+ }
+ }
+ ]
+ }
+ },
+ "options": [
+ {
+ "label": "Folder A",
+ "value": 1,
+ "children": [
+ {
+ "label": "file A",
+ "value": 2
+ },
+ {
+ "label": "file B",
+ "value": 3
+ }
+ ]
+ },
+ {
+ "label": "file C",
+ "value": 4
+ },
+ {
+ "label": "file D",
+ "value": 5
+ }
+ ]
+ }
+ ]
+}
+```
+
+### editConfirm
+
+配置 `editable`后,可监听确认编辑操作。
+
+```schema: scope="body"
+{
+ "type": "form",
+ "api": "/api/mock2/form/saveForm",
+ "debug": true,
+ "body": [
+ {
+ "type": "input-tree",
+ "name": "tree",
+ "label": "Tree",
+ "creatable": true,
+ "removable": true,
+ "editable": true,
+ "onEvent": {
+ "editConfirm": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.item|json}"
+ }
+ }
+ ]
+ }
+ },
+ "options": [
+ {
+ "label": "Folder A",
+ "value": 1,
+ "children": [
+ {
+ "label": "file A",
+ "value": 2
+ },
+ {
+ "label": "file B",
+ "value": 3
+ }
+ ]
+ },
+ {
+ "label": "file C",
+ "value": 4
+ },
+ {
+ "label": "file D",
+ "value": 5
+ }
+ ]
+ }
+ ]
+}
+```
+
+### deleteConfirm
+
+配置 `removable`后,可监听确认删除操作。
+
+```schema: scope="body"
+{
+ "type": "form",
+ "api": "/api/mock2/form/saveForm",
+ "debug": true,
+ "body": [
+ {
+ "type": "input-tree",
+ "name": "tree",
+ "label": "Tree",
+ "creatable": true,
+ "removable": true,
+ "editable": true,
+ "onEvent": {
+ "deleteConfirm": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.item|json}"
+ }
+ }
+ ]
+ }
+ },
+ "options": [
+ {
+ "label": "Folder A",
+ "value": 1,
+ "children": [
+ {
+ "label": "file A",
+ "value": 2
+ },
+ {
+ "label": "file B",
+ "value": 3
+ }
+ ]
+ },
+ {
+ "label": "file C",
+ "value": 4
+ },
+ {
+ "label": "file D",
+ "value": 5
+ }
+ ]
+ }
+ ]
+}
+```
+
+### deferLoadFinished
+
+```schema: scope="body"
+{
+ "type": "form",
+ "api": "/api/mock2/form/saveForm",
+ "debug": true,
+ "body": [
+ {
+ "type": "input-tree",
+ "name": "tree",
+ "label": "Tree",
+ "deferApi": "/api/mock2/form/deferOptions?label=${label}&waitSeconds=2",
+ "onEvent": {
+ "deferLoadFinished": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.result|json}"
+ }
+ }
+ ]
+ }
+ },
+ "options": [
+ {
+ "label": "Folder A",
+ "value": 1,
+ "collapsed": true,
+ "children": [
+ {
+ "label": "file A",
+ "value": 2
+ },
+ {
+ "label": "file B",
+ "value": 3
+ }
+ ]
+ },
+ {
+ "label": "这下面是懒加载的",
+ "value": 4,
+ "defer": true
+ },
+ {
+ "label": "file D",
+ "value": 5
+ }
+ ]
+ }
+ ]
+}
+```
## 动作表
diff --git a/docs/zh-CN/components/form/list-select.md b/docs/zh-CN/components/form/list-select.md
index a622f4c04d3..e3897c70818 100755
--- a/docs/zh-CN/components/form/list-select.md
+++ b/docs/zh-CN/components/form/list-select.md
@@ -101,6 +101,45 @@ ListSelect 一般用来实现选择,可以单选也可以多选,和 Radio/Ch
| -------- | ------------------------- | ---------------- |
| change | `[name]: string` 组件的值 | 选中值变化时触发 |
+### change
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "type": "list-select",
+ "name": "select",
+ "label": "单选",
+ "clearable": true,
+ "options": [
+ {
+ "label": "Option A",
+ "value": "a"
+ },
+ {
+ "label": "Option B",
+ "value": "b"
+ }
+ ],
+ "onEvent": {
+ "change": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
## 动作表
当前组件对外暴露以下特性动作,其他组件可以通过指定`actionType: 动作名称`、`componentId: 该组件id`来触发这些动作,动作配置可以通过`args: {动作配置项名称: xxx}`来配置具体的参数,详细请查看[事件动作](../../docs/concepts/event-action#触发其他组件的动作)。
diff --git a/docs/zh-CN/components/form/location-picker.md b/docs/zh-CN/components/form/location-picker.md
index 5566836da43..e9f26a257e3 100644
--- a/docs/zh-CN/components/form/location-picker.md
+++ b/docs/zh-CN/components/form/location-picker.md
@@ -57,16 +57,16 @@ order: 30
当做选择器表单项使用时,除了支持 [普通表单项属性表](./formitem#%E5%B1%9E%E6%80%A7%E8%A1%A8) 中的配置以外,还支持下面一些配置
-| 属性名 | 类型 | 默认值 | 说明 |
-| --------------- | ------------------ | ------------------------------------ | -------------------------------------------------------------------------------- |
-| value | `LocationData` | 参考 [`LocationData`](#LocationData) | |
-| vendor | 'baidu' \| 'gaode' | 'baidu' | 地图厂商,目前只实现了百度地图和高德地图 |
-| ak | `string` | 无 | 百度/高德地图的 ak |
-| clearable | `boolean` | false | 输入框是否可清空 |
-| placeholder | `string` | '请选择位置' | 默认提示 |
-| autoSelectCurrentLoc | `boolean` | false | 是否自动选中当前地理位置 |
-| onlySelectCurrentLoc | `boolean` | false | 是否限制只能选中当前地理位置,设置为true后,可用于充当定位组件 |
-| coordinatesType | 'bd09' \| 'gcj02' | 'bd09' | 坐标系类型,默认百度坐标,使用高德地图时应设置为'gcj02', 高德地图不支持坐标转换 |
+| 属性名 | 类型 | 默认值 | 说明 |
+| -------------------- | ------------------ | ------------------------------------ | -------------------------------------------------------------------------------- |
+| value | `LocationData` | 参考 [`LocationData`](#LocationData) | |
+| vendor | 'baidu' \| 'gaode' | 'baidu' | 地图厂商,目前只实现了百度地图和高德地图 |
+| ak | `string` | 无 | 百度/高德地图的 ak |
+| clearable | `boolean` | false | 输入框是否可清空 |
+| placeholder | `string` | '请选择位置' | 默认提示 |
+| autoSelectCurrentLoc | `boolean` | false | 是否自动选中当前地理位置 |
+| onlySelectCurrentLoc | `boolean` | false | 是否限制只能选中当前地理位置,设置为 true 后,可用于充当定位组件 |
+| coordinatesType | 'bd09' \| 'gcj02' | 'bd09' | 坐标系类型,默认百度坐标,使用高德地图时应设置为'gcj02', 高德地图不支持坐标转换 |
### 坐标系说明
@@ -90,6 +90,35 @@ order: 30
| -------- | ------------------------------- | ---------------- |
| change | `[name]: LocationData` 组件的值 | 选中值变化时触发 |
+### change
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "type": "location-picker",
+ "name": "location",
+ "ak": "LiZT5dVbGTsPI91tFGcOlSpe5FDehpf7",
+ "label": "地址",
+ "onEvent": {
+ "change": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
## 动作表
当前组件对外暴露以下特性动作,其他组件可以通过指定`actionType: 动作名称`、`componentId: 该组件id`来触发这些动作,动作配置可以通过`args: {动作配置项名称: xxx}`来配置具体的参数,详细请查看[事件动作](../../docs/concepts/event-action#触发其他组件的动作)。
diff --git a/docs/zh-CN/components/form/matrix-checkboxes.md b/docs/zh-CN/components/form/matrix-checkboxes.md
index a10564c599e..02394c6a471 100755
--- a/docs/zh-CN/components/form/matrix-checkboxes.md
+++ b/docs/zh-CN/components/form/matrix-checkboxes.md
@@ -331,6 +331,51 @@ row 模式,每行只能单选某个单元格
| -------- | ------------------------ | ---------------- |
| change | `[name]: Array` 组件的值 | 选中值变化时触发 |
+### change
+
+```schema: scope="body"
+{
+ "type": "form",
+ "debug": true,
+ "body": [
+ {
+ "type": "matrix-checkboxes",
+ "name": "matrix",
+ "label": "Matrix",
+ "rowLabel": "行标题说明",
+ "columns": [
+ {
+ "label": "列1"
+ },
+ {
+ "label": "列2"
+ }
+ ],
+ "rows": [
+ {
+ "label": "行1"
+ },
+ {
+ "label": "行2"
+ }
+ ],
+ "onEvent": {
+ "change": {
+ "actions": [
+ {
+ "actionType": "toast",
+ "args": {
+ "msg": "${event.data.value|json}"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+```
+
## 动作表
当前组件对外暴露以下特性动作,其他组件可以通过指定`actionType: 动作名称`、`componentId: 该组件id`来触发这些动作,动作配置可以通过`args: {动作配置项名称: xxx}`来配置具体的参数,详细请查看[事件动作](../../docs/concepts/event-action#触发其他组件的动作)。
diff --git a/docs/zh-CN/components/form/nestedselect.md b/docs/zh-CN/components/form/nestedselect.md
index 9e93c203931..b1a01a9d816 100755
--- a/docs/zh-CN/components/form/nestedselect.md
+++ b/docs/zh-CN/components/form/nestedselect.md
@@ -751,8 +751,8 @@ order: 31
当做选择器表单项使用时,除了支持 [普通表单项属性表](./formitem#%E5%B1%9E%E6%80%A7%E8%A1%A8) 中的配置以外,还支持下面一些配置
-| 属性名 | 类型 | 默认值 | 说明 | 版本 |
-| ------------------ | ----------------------------------------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | --- |
+| 属性名 | 类型 | 默认值 | 说明 | 版本 |
+| ------------------ | ----------------------------------------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------- |
| options | `Array