feat: 新功能改进 #20

Merged
hera merged 57 commits from feat/next-improvements into main 2026-04-10 20:30:37 +00:00
2 changed files with 9 additions and 7 deletions
Showing only changes of commit 3f99bbdc39 - Show all commits

View File

@@ -6,12 +6,14 @@
<!-- Top bar with close + edit -->
<div class="card-header">
<div class="card-top-actions">
<button class="action-btn action-btn-fav action-btn-sm" @click="handleToggleFavorite">
{{ isFav ? ' 已收藏' : ' 收藏' }}
</button>
<button v-if="!props.isDiary" class="action-btn action-btn-diary action-btn-sm" @click="saveToDiary">
📔 存为我的
</button>
<template v-if="!props.isDiary">
<button class="action-btn action-btn-fav action-btn-sm" @click="handleToggleFavorite">
{{ isFav ? ' 已收藏' : ' 收藏' }}
</button>
<button class="action-btn action-btn-diary action-btn-sm" @click="saveToDiary">
📔 存为我的
</button>
</template>
</div>
<div style="flex:1"></div>
<button class="detail-close-btn" @click="handleClose"></button>

View File

@@ -377,7 +377,7 @@
v-if="previewRecipeIndex !== null || previewRecipeData !== null"
:recipeIndex="previewRecipeIndex"
:recipeData="previewRecipeData"
:isDiary="previewRecipeData !== null"
:isDiary="true"
@close="previewRecipeIndex = null; previewRecipeData = null"
/>