style: run linter
This commit is contained in:
parent
bb724f581b
commit
b57c5a9be8
7 changed files with 94 additions and 99 deletions
|
@ -1,43 +1,42 @@
|
|||
<script setup lang="ts">
|
||||
import { computed } from "vue";
|
||||
import CircleCheckIcon from "@/assets/icons/CircleCheckIcon.vue";
|
||||
import CircleIcon from "@/assets/icons/CircleIcon.vue";
|
||||
import { computed } from 'vue'
|
||||
import CircleCheckIcon from '@/assets/icons/CircleCheckIcon.vue'
|
||||
import CircleIcon from '@/assets/icons/CircleIcon.vue'
|
||||
|
||||
interface LocaleOption {
|
||||
code: string;
|
||||
name: string;
|
||||
flag: string;
|
||||
code: string
|
||||
name: string
|
||||
flag: string
|
||||
}
|
||||
|
||||
interface Props {
|
||||
modelValue: string;
|
||||
id: string;
|
||||
locales: LocaleOption[];
|
||||
modelValue: string
|
||||
id: string
|
||||
locales: LocaleOption[]
|
||||
}
|
||||
|
||||
const props = defineProps<Props>();
|
||||
const emit = defineEmits(["update:modelValue"]);
|
||||
const props = defineProps<Props>()
|
||||
const emit = defineEmits(['update:modelValue'])
|
||||
|
||||
const selectModel = computed({
|
||||
get() {
|
||||
return props.modelValue;
|
||||
return props.modelValue
|
||||
},
|
||||
set(value) {
|
||||
emit("update:modelValue", value);
|
||||
},
|
||||
});
|
||||
emit('update:modelValue', value)
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="localeselect">
|
||||
<div v-for="locale in locales" class="localeselect__locale">
|
||||
<div v-for="locale in locales" class="localeselect__locale" :key="`locale-${locale.code}`">
|
||||
<input
|
||||
type="radio"
|
||||
name="lang"
|
||||
class="localeselect__input"
|
||||
:id="`lang-${locale.code}`"
|
||||
:value="locale.code"
|
||||
:key="`locale-${locale.code}`"
|
||||
v-model="selectModel"
|
||||
/>
|
||||
<label class="localeselect__label" :for="`lang-${locale.code}`">
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
<script setup lang="ts">
|
||||
import router from "@/router";
|
||||
import { RouterLink } from "vue-router";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<nav class="navigation">
|
||||
<div class="navigation__list">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue