feat: form 表单赋值
This commit is contained in:
@@ -33,6 +33,7 @@ const [Form, formApi] = useVbenForm({
|
||||
{
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
class: 'w-full',
|
||||
options: [
|
||||
{ label: '选项1', value: '1' },
|
||||
{ label: '选项2', value: '2' },
|
||||
|
||||
@@ -108,7 +108,7 @@ function openFormModal() {
|
||||
formModalApi
|
||||
.setData({
|
||||
// 表单值
|
||||
values: { field1: 'abc', field2: '123' },
|
||||
values: { field1: 'abc', field2: '123', field3: '1' },
|
||||
})
|
||||
.open();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user