fix: improve the scroll bar flashing when the modal box is opened (#4438)
This commit is contained in:
@@ -13,12 +13,11 @@ const [Form, formApi] = useVbenForm({
|
||||
class: 'w-full',
|
||||
},
|
||||
},
|
||||
// 使用 tailwindcss grid布局
|
||||
// 提交函数
|
||||
handleSubmit: onSubmit,
|
||||
// 垂直布局,label和input在不同行,值为vertical
|
||||
layout: 'horizontal',
|
||||
// 水平布局,label和input在同一行
|
||||
layout: 'horizontal',
|
||||
schema: [
|
||||
{
|
||||
// 组件需要在 #/adapter.ts内注册,并加上类型
|
||||
@@ -80,7 +79,6 @@ const [Form, formApi] = useVbenForm({
|
||||
},
|
||||
fieldName: 'number',
|
||||
label: '数字',
|
||||
// 预处理函数,将空字符串或null转换为undefined
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user