Skip to content

custom 自定义

基础用法

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

const formConfig = reactive<BasicForm>({
  formItems: [
    {
      label: '',
      value: '',
      name: '',
      type: 'custom',
      slots: [
        {
          name: 'default',
          alias: 'customDefault',
        },
      ],
    },
  ],
})
</script>

<template>
  <pro-table :crud="CRUD" :formConfig="formConfig">
    <template #customDefault> 自定义内容 </template>
  </pro-table>
</template>