Merge branch 'dev_vite' of ssh://18.167.251.121:10002/aidlab/aida_front into dev_vite
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user