mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 19:17:54 +08:00
amis-saas-5744 [Feature] editor 表单项设置 preventEnterSubmit: true 可以禁止回车提交,的配置添加
Change-Id: If332bde32e3299669c51eec7e6f8c8ccde0e3545
This commit is contained in:
parent
1590a32fd9
commit
48df7c509d
@ -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',
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user