amis-saas-5744 [Feature] editor 表单项设置 preventEnterSubmit: true 可以禁止回车提交,的配置添加

Change-Id: If332bde32e3299669c51eec7e6f8c8ccde0e3545
This commit is contained in:
jiatianqi 2022-08-03 19:38:03 +08:00
parent 1590a32fd9
commit 48df7c509d
2 changed files with 18 additions and 0 deletions

View File

@ -418,6 +418,18 @@ export class FormPlugin extends BasePlugin {
getSchemaTpl('submitOnChange'),
getSchemaTpl('switch', {
label: '禁用回车提交表单',
name: 'preventEnterSubmit',
labelRemark: {
className: 'm-l-xs',
trigger: 'click',
rootClose: true,
content: '设置后无法通过键盘"回车"按进行表单提交',
placement: 'left'
}
}),
getSchemaTpl('switch', {
label: '提交完后重置表单',
name: 'resetAfterSubmit',

View File

@ -503,6 +503,12 @@ setSchemaTpl('submitOnChange', {
type: 'switch',
label: '修改即提交',
name: 'submitOnChange',
mode: 'horizontal',
horizontal: {
justify: true,
left: 8
},
inputClassName: 'is-inline ',
labelRemark: {
trigger: 'click',
className: 'm-l-xs',