Appearance
formCard 卡片
基础用法

vue
<script setup lang="ts">
import type { BasicForm } from '@/types/form'
const formConfig = reactive<BasicForm>({
formItems: [
{
label: '卡片',
value: '',
name: '',
type: 'form-card',
props: {
// 支持el-card的props
}
children: [
{
label: '字段名',
value: '',
name: 'field1',
type: 'input',
},
{
label: '字段名',
value: '',
name: 'field2',
type: 'input',
},
],
},
],
})
</script>