Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<v-expansion-panels
v-model="value"
v-model="panelOpen"
>
<v-expansion-panel
eager
Expand Down Expand Up @@ -53,15 +53,15 @@ import { ref, watch } from "vue";

const props = defineProps({
title: { type: String, required: true },
panel: { type: Boolean, default: false }
panelActive: { type: Boolean, default: false }
});

const emit = defineEmits([ "clear" ]);

const value = ref(null);
const panelOpen = ref(undefined);

watch(() => props.panel, newPanel => {
value.value = newPanel ? 0 : null;
watch(() => props.panelActive, active => {
panelOpen.value = active ? 0 : undefined;
}, { immediate: true });
</script>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<FilterToolbar
:title="title"
:panel="panel"
:panel-active="panel"
@clear="emit('clear')"
>
<template v-slot:append-toolbar-title>
Expand Down
Loading