refactor: change the form button field from text to content to prevent conflicts with the frame (#4586)

* refactor: change the form button field from text to content to prevent conflicts with the frame
This commit is contained in:
Vben
2024-10-07 16:30:41 +08:00
committed by GitHub
parent ab44926ec8
commit 2d019b3c8a
7 changed files with 13 additions and 17 deletions

View File

@@ -46,7 +46,7 @@ const [FirstForm, firstFormApi] = useVbenForm({
},
],
submitButtonOptions: {
text: '下一步',
content: '下一步',
},
wrapperClass: 'grid-cols-1 md:grid-cols-1 lg:grid-cols-1',
});
@@ -60,7 +60,7 @@ const [SecondForm, secondFormApi] = useVbenForm({
handleSubmit: onSecondSubmit,
layout: 'horizontal',
resetButtonOptions: {
text: '上一步',
content: '上一步',
},
schema: [
{

View File

@@ -80,7 +80,7 @@ const [QueryForm] = useVbenForm({
// 是否可展开
showCollapseButton: true,
submitButtonOptions: {
text: '查询',
content: '查询',
},
// 大屏一行显示3个中屏一行显示2个小屏一行显示1个
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3',
@@ -119,7 +119,7 @@ const [QueryForm1] = useVbenForm({
// 是否可展开
showCollapseButton: true,
submitButtonOptions: {
text: '查询',
content: '查询',
},
// 大屏一行显示3个中屏一行显示2个小屏一行显示1个
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3',