feat: 新功能改进 #20

Merged
hera merged 57 commits from feat/next-improvements into main 2026-04-10 20:30:37 +00:00
Showing only changes of commit 168be922ca - Show all commits

View File

@@ -215,12 +215,9 @@
</div>
<div class="ratio-row">
<span class="ratio-label">参考比例 1:</span>
<div class="ratio-options">
<button v-for="n in [3,4,5,6,7,8,9,10,12,15,20]" :key="n"
class="ratio-btn" :class="{ active: formDilution === n }"
@click="formDilution = n"
>{{ n }}</button>
</div>
<select v-model.number="formDilution" class="select-sm">
<option v-for="n in [3,4,5,6,7,8,9,10,12,15,20]" :key="n" :value="n">{{ n }}</option>
</select>
<span class="ratio-hint">纯精油约 {{ suggestedEoDrops }} </span>
</div>
</div>
@@ -519,10 +516,8 @@ function onBatchSelect() {
}
function toggleSelectAllDiary() {
const allMySelected = myFilteredRecipes.value.length > 0 && selectedDiaryIds.size === myFilteredRecipes.value.length
const allPubSelected = auth.canEdit && publicFilteredRecipes.value.length > 0 && selectedIds.size === publicFilteredRecipes.value.length
if (allMySelected && (!auth.canEdit || allPubSelected)) {
// All selected → deselect all
if (selectedDiaryIds.size > 0 || selectedIds.size > 0) {
// Any selected → deselect all
selectedDiaryIds.clear()
selectedIds.clear()
} else {