import { ProFormSelect, type RequestOptionsType, } from "@ant-design/pro-components"; import { useIntl } from "react-intl"; import { get } from "../../request"; import type { IUserListResponse } from "../../api/Auth"; interface IWidget { name?: string; width?: number | "md" | "sm" | "xl" | "xs" | "lg"; multiple?: boolean; hidden?: boolean; hiddenTitle?: boolean; required?: boolean; initialValue?: string | string[] | null; options?: RequestOptionsType[]; } const UserSelectWidget = ({ name = "user", multiple = false, width = "md", hidden = false, hiddenTitle = false, required = true, options = [], initialValue, }: IWidget) => { const intl = useIntl(); console.log("UserSelect options", options); return (