"use client"; import { Download, Loader2, X } from "lucide-react"; import { useEffect, useRef, useState } from "react"; import type { ImageExportOptions } from "@/lib/flow-board/image-export"; export function XmindImageExport({ busy, onExport, onClose, }: { busy: boolean; onExport: ( options: Pick ) => void; onClose: () => void; }) { const dialog = useRef(null); const [scale, setScale] = useState<1 | 2 | 3>(2); const [transparent, setTransparent] = useState(false); useEffect(() => { const node = dialog.current; node?.showModal(); return () => node?.close(); }, []); return ( event.stopPropagation()} onCancel={(event) => { event.preventDefault(); if (!busy) onClose(); }} >

导出图片

导出当前工作表的完整内容为 PNG 图片。

); }