feat: 从收藏中选择图片组件

This commit is contained in:
zhangyh
2025-09-22 15:30:26 +08:00
parent 9681b4fb8a
commit d314a228ce
5 changed files with 756 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ const emit = defineEmits([
"zoom-out",
"toggle-red-green-mode",
"undo-redo-status-changed",
"trigger-library"
]);
const {t} = useI18n()
const props = defineProps({
@@ -151,6 +152,13 @@ const normalToolsList = ref([
icon: { name: "CUpload", size: "26" },
class: "upload-btn",
},
{
id: "library",
title: t("LibraryPage.library"),
action: triggerLibrary,
icon: { name: "CLibrary", size: "26" },
class: "library-btn",
},
{
id: "addText",
title: t("Canvas.AddText"),
@@ -228,6 +236,10 @@ function triggerImageUpload() {
emit("trigger-image-upload");
}
function triggerLibrary() {
emit("trigger-library");
}
function addText() {
emit("add-text");
}