feat(filter): 검색 분류를 CategoryPicker(대분류→소분류)로, 추가 버튼만 숨김
Deploy / deploy (push) Failing after 12m11s

- CategoryPicker에 hideAdd prop 추가(+대분류/+소분류 숨김)
- 내역 검색 필터 분류: 평면 칩 → 트리거→시트(CategoryPicker hide-add) + '분류 전체'
- 타입은 구분 필터(기본 지출) 기준

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
sb
2026-07-09 23:44:19 +09:00
parent 2ee5cae6ea
commit cdaa7d09ac
2 changed files with 38 additions and 3 deletions
+3 -2
View File
@@ -10,6 +10,7 @@ const props = defineProps({
disabled: { type: Boolean, default: false },
admin: { type: Boolean, default: false },
reorderable: { type: Boolean, default: false },
hideAdd: { type: Boolean, default: false }, // 분류 추가(+대분류/+소분류) 버튼 숨김 (필터 등 선택 전용)
})
const emit = defineEmits(['update:modelValue', 'category-added', 'rename', 'delete', 'reorder'])
@@ -229,10 +230,10 @@ onBeforeUnmount(destroySortables)
:disabled="disabled"
@click="$emit('update:modelValue', s.name)"
>{{ s.name }}</button>
<button type="button" class="acc-chip add-chip sub-add" :disabled="disabled" @click="startAddSub">+ 소분류</button>
<button v-if="!hideAdd" type="button" class="acc-chip add-chip sub-add" :disabled="disabled" @click="startAddSub">+ 소분류</button>
</div>
</template>
<button type="button" class="acc-chip add-chip" :disabled="disabled" @click="startAddMajor">+ 대분류</button>
<button v-if="!hideAdd" type="button" class="acc-chip add-chip" :disabled="disabled" @click="startAddMajor">+ 대분류</button>
</div>
<div v-else class="cat-input">
<input