From 8a79f3b697bc194155dbc04d19e24a41c1b313e4 Mon Sep 17 00:00:00 2001 From: Aresn Date: Thu, 30 May 2024 10:37:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E8=97=8F=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/i/library/select.vue | 6 ++++++ components/i/library/thread.vue | 12 +++++++++++- pages/library.vue | 3 ++- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/components/i/library/select.vue b/components/i/library/select.vue index 541540d..e363c18 100644 --- a/components/i/library/select.vue +++ b/components/i/library/select.vue @@ -17,6 +17,7 @@ leading-icon="i-heroicons-plus-20-solid" label="创建新集合" color="gray" + @click="handleOpenCreate" />
@@ -36,6 +37,7 @@ diff --git a/components/i/library/thread.vue b/components/i/library/thread.vue index a5ff7e7..14d30d6 100644 --- a/components/i/library/thread.vue +++ b/components/i/library/thread.vue @@ -60,9 +60,19 @@ const Library = inject('Library') const textColor = 'text-gray-500 dark:text-gray-400' const actionItems = [ [ + { + label: '添加到收藏', + icon: 'i-heroicons-plus', + click: () => { + handleOpenSelect() + } + }, { label: '更改集合', - icon: 'i-heroicons-squares-plus' + icon: 'i-heroicons-squares-plus', + click: () => { + handleOpenSelect() + } }, { label: '从收藏中移除', diff --git a/pages/library.vue b/pages/library.vue index 52ec1dd..4cd5c86 100644 --- a/pages/library.vue +++ b/pages/library.vue @@ -66,6 +66,7 @@ function handleOpenSelect (id) { refSelect.value.handleOpen(id) } provide('Library', { - handleOpenSelect + handleOpenSelect, + handleOpenCreateLibrary }) -- GitLab