From 4d2dcb96ea5ea22ad747708726b07302aee03d13 Mon Sep 17 00:00:00 2001 From: ranqirong <274544338@qq.com> Date: Mon, 1 Apr 2024 15:04:57 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20crud=E5=8D=B3=E6=97=B6=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E6=96=87=E6=A1=A3=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/zh-CN/components/crud.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/zh-CN/components/crud.md b/docs/zh-CN/components/crud.md index 5923d07a3..1150c88d0 100755 --- a/docs/zh-CN/components/crud.md +++ b/docs/zh-CN/components/crud.md @@ -1390,7 +1390,8 @@ amis 只负责生成下拉选择器组件,并将搜索参数传递给接口, "type": "switch", "onText": "开启", "offText": "关闭", - "saveImmediately": true + "saveImmediately": true, + "resetOnFailed": true } } ] @@ -3899,6 +3900,7 @@ itemAction 里的 onClick 还能通过 `data` 参数拿到当前行的数据, | mode | `'inline' \| 'popOver'` | `'popOver'` | 编辑模式,inline 为行内编辑,popOver 为浮层编辑 | | | icon | `string` | - | 自定义快速编辑按钮的图标 | `6.1.0` | | saveImmediately | `boolean` 或 `{api: Api}` | `false` | 是否修改后即时保存,一般需要配合`quickSaveItemApi`接口使用,也可以直接配置[`Api`](../../docs/types/api) | | +| resetOnFailed | `boolean` | - | 接口请求失败时,是否重置数据 | | ### columns-toggler 属性表