feat: 新功能改进 #20
@@ -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>
|
||||
|
||||
@@ -377,7 +377,7 @@
|
||||
v-if="previewRecipeIndex !== null || previewRecipeData !== null"
|
||||
:recipeIndex="previewRecipeIndex"
|
||||
:recipeData="previewRecipeData"
|
||||
:isDiary="previewRecipeData !== null"
|
||||
:isDiary="true"
|
||||
@close="previewRecipeIndex = null; previewRecipeData = null"
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user