mirror of
https://github.com/JOYCEQL/magic-resume.git
synced 2026-07-03 14:07:11 +02:00
perf: export button text and arrow
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
"use client";
|
||||
import React, { useState, useRef } from "react";
|
||||
import { useTranslations } from "next-intl";
|
||||
import { Download, Loader2, FileJson, Printer } from "lucide-react";
|
||||
import {
|
||||
Download,
|
||||
Loader2,
|
||||
FileJson,
|
||||
Printer,
|
||||
ChevronDown,
|
||||
} from "lucide-react";
|
||||
import { toast } from "sonner";
|
||||
import { useResumeStore } from "@/store/useResumeStore";
|
||||
import { Button } from "@/components/ui/button";
|
||||
@@ -317,6 +323,7 @@ const PdfExport = () => {
|
||||
<>
|
||||
<Download className="w-4 h-4" />
|
||||
<span>{t("button.export")}</span>
|
||||
<ChevronDown className="w-4 h-4 ml-1" />
|
||||
</>
|
||||
)}
|
||||
</Button>
|
||||
@@ -326,14 +333,14 @@ const PdfExport = () => {
|
||||
<Download className="w-4 h-4 mr-2" />
|
||||
{t("button.exportPdf")}
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem onClick={handleJsonExport} disabled={isLoading}>
|
||||
<FileJson className="w-4 h-4 mr-2" />
|
||||
{t("button.exportJson")}
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem onClick={handlePrint} disabled={isLoading}>
|
||||
<Printer className="w-4 h-4 mr-2" />
|
||||
{t("button.print")}
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuItem onClick={handleJsonExport} disabled={isLoading}>
|
||||
<FileJson className="w-4 h-4 mr-2" />
|
||||
{t("button.exportJson")}
|
||||
</DropdownMenuItem>
|
||||
</DropdownMenuContent>
|
||||
</DropdownMenu>
|
||||
<iframe
|
||||
|
||||
@@ -120,11 +120,11 @@
|
||||
"pdfExport": {
|
||||
"button": {
|
||||
"export": "导出",
|
||||
"exportPdf": "导出 PDF(服务端)",
|
||||
"exportJson": "导出JSON配置",
|
||||
"exportPdf": "PDF(服务端)",
|
||||
"exportJson": "JSON配置",
|
||||
"exporting": "导出中...",
|
||||
"exportingJson": "导出中...",
|
||||
"print": "浏览器打印"
|
||||
"print": "PDF(浏览器打印)"
|
||||
},
|
||||
"toast": {
|
||||
"success": "PDF导出成功",
|
||||
|
||||
Reference in New Issue
Block a user