Skip to content

subForm 子表单+

基础用法

init
vue
<script setup lang="ts">
import type { BasicForm } from '@/types/form'

const formConfig = reactive<BasicForm>({
  formItems: [
    {
      label: '',
      value: [],
      name: 'test',
      type: 'sub-form',
      children: [
        {
          label: '字段名',
          value: '',
          name: 'field11',
          type: 'input',
        },
      ],
    },
  ],
})
</script>