mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 06:23:34 -07:00
remove unused component
This commit is contained in:
parent
616e04bf17
commit
4bf2bae25d
1 changed files with 0 additions and 54 deletions
|
@ -1,54 +0,0 @@
|
||||||
<template>
|
|
||||||
<div class="d-flex justify-center align-center">
|
|
||||||
<v-btn-toggle v-model="selected" tile group color="primary accent-3" mandatory="force" @change="emitMulti">
|
|
||||||
<v-btn size="small" :value="false">
|
|
||||||
{{ $t("search.include") }}
|
|
||||||
</v-btn>
|
|
||||||
<v-btn size="small" :value="true">
|
|
||||||
{{ $t("search.exclude") }}
|
|
||||||
</v-btn>
|
|
||||||
</v-btn-toggle>
|
|
||||||
<v-btn-toggle v-model="match" tile group color="primary accent-3" mandatory="force" @change="emitMulti">
|
|
||||||
<v-btn size="small" :value="false" class="text-uppercase">
|
|
||||||
{{ $t("search.and") }}
|
|
||||||
</v-btn>
|
|
||||||
<v-btn size="small" :value="true" class="text-uppercase">
|
|
||||||
{{ $t("search.or") }}
|
|
||||||
</v-btn>
|
|
||||||
</v-btn-toggle>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script lang="ts">
|
|
||||||
type SelectionValue = "include" | "exclude" | "any";
|
|
||||||
|
|
||||||
export default defineNuxtComponent({
|
|
||||||
props: {
|
|
||||||
modelValue: {
|
|
||||||
type: String as () => SelectionValue,
|
|
||||||
default: "include",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
emits: ["update:modelValue", "update"],
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
selected: false,
|
|
||||||
match: false,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
emitChange() {
|
|
||||||
this.$emit("update:modelValue", this.selected);
|
|
||||||
},
|
|
||||||
emitMulti() {
|
|
||||||
const updateData = {
|
|
||||||
exclude: this.selected,
|
|
||||||
matchAny: this.match,
|
|
||||||
};
|
|
||||||
this.$emit("update", updateData);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped></style>
|
|
Loading…
Add table
Add a link
Reference in a new issue