import React from 'react'; import { CSSObject } from '@emotion/react'; interface FormFieldItem { resource_id: string; resource_name: string; link?: string; } type DisplayType = 'default' | 'vertical' | 'horizontal'; interface ExpandableListProps { /** 表单标题 */ title: string; /** 展示类型 */ displayType?: DisplayType; /** 自定义内容 (当 displayType 为 'default' 时使用) */ children?: React.ReactNode; /** 数据列表 (当 displayType 为 'vertical' 或 'horizontal' 时使用) */ data?: FormFieldItem[]; /** 左侧Title的行高,默认32px */ titleLineHeight?: string | number; /** 最大显示数量,超过此数量会显示展开按钮 (仅对 vertical 模式有效) */ maxVisibleCount?: number; /** 自定义样式 */ style?: React.CSSProperties | CSSObject; } export declare const FormField: React.FC; export default FormField;