perf: export button text and arrow

This commit is contained in:
siyue
2025-02-01 11:58:48 +08:00
committed by qingchen
parent 1d170163a5
commit 4672e098d9
2 changed files with 15 additions and 8 deletions
@@ -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
+3 -3
View File
@@ -120,11 +120,11 @@
"pdfExport": {
"button": {
"export": "导出",
"exportPdf": "导出 PDF(服务端)",
"exportJson": "导出JSON配置",
"exportPdf": "PDF(服务端)",
"exportJson": "JSON配置",
"exporting": "导出中...",
"exportingJson": "导出中...",
"print": "浏览器打印"
"print": "PDF(浏览器打印)"
},
"toast": {
"success": "PDF导出成功",