Appearance
formGroup 组
基础用法
vue
<script setup lang="ts">
import type { BasicForm } from '@/types/form'
const formConfig = reactive<BasicForm>({
formItems: [
{
label: '',
value: '',
name: '',
type: 'form-group',
children: [
{
label: '字段名',
value: '',
name: 'field1',
type: 'input',
},
{
label: '字段名',
value: '',
name: 'field2',
type: 'input',
},
],
},
],
})
</script>