feat:新增 form 组件
This commit is contained in:
13
resources/admin/components/catchForm/FormRender.vue
Normal file
13
resources/admin/components/catchForm/FormRender.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<!-- eslint-disable vue/no-multiple-template-root -->
|
||||
<template>
|
||||
<form-item v-for="item in formItems" :key="item.name" v-bind="item" />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { formItemsType } from '/admin/components/catchForm/config/commonType'
|
||||
import FormItem from './FormItem.vue'
|
||||
|
||||
const props = defineProps<{
|
||||
formItems: formItemsType
|
||||
}>()
|
||||
</script>
|
Reference in New Issue
Block a user