<!-- eslint-disable @typescript-eslint/no-explicit-any -->
<script lang="ts" name="rc-select" setup>
import type { FormCreateProps } from '@form-create/element-ui'
import RcCreateOption from '../rc-options/create-option.vue'

defineProps<{
  formCreateInject: FormCreateProps & {
    field: string
  }
}>()
</script>
<template>
  <RcCreateOption :formCreateInject="formCreateInject" v-slot="{ options }">
    <el-select v-bind="$attrs">
      <el-option v-for="item in options" :key="item.key" :label="item.label" :value="item.label" />
    </el-select>
  </RcCreateOption>
</template>
