// 设备选择项接口 export interface DeviceSelectionItem { id: string; name: string; imei: string; wechatId: string; status: "online" | "offline"; wxid?: string; nickname?: string; usedInPlans?: number; } // 组件属性接口 export interface DeviceSelectionProps { selectedDevices: string[]; onSelect: (devices: string[]) => void; placeholder?: string; className?: string; mode?: "input" | "dialog"; // 新增,默认input open?: boolean; // 仅mode=dialog时生效 onOpenChange?: (open: boolean) => void; // 仅mode=dialog时生效 selectedListMaxHeight?: number; // 新增,已选列表最大高度,默认500 showInput?: boolean; // 新增 showSelectedList?: boolean; // 新增 readonly?: boolean; // 新增 }