Skip to content
On this page

GenerateAntdForm

Ant Design 风格的表单生成器组件,使用方法同 GenerateForm

代码演示

需要安装并引入 Ant Design Vue 3.x,详细请查看 Ant Design Vue 文档

js
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'

app.use(Antd)
vue
<template>
  <fm-generate-antd-form 
    :data="jsonData"
    ref="generateForm">
  </fm-generate-antd-form>
</template>

<script setup>
import { ref } from 'vue'

const generateForm = ref()

const jsonData = {} // 表单 JSON Schema
</script>

API

GenerateForm API