mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-29 13:58:54 +03:00
23 lines
498 B
Vue
23 lines
498 B
Vue
<script lang="ts" setup>
|
|
import type { FontSize } from '~/composables/fontSize'
|
|
|
|
const sizes = ['xs', 'sm', 'md', 'lg', 'xl'] as FontSize[]
|
|
const fontSize = getFontSize()
|
|
</script>
|
|
|
|
<template>
|
|
<CommonDropdown>
|
|
<slot />
|
|
|
|
<template #popper>
|
|
<CommonDropdownItem
|
|
v-for="size in sizes"
|
|
:key="size"
|
|
:checked="size === fontSize"
|
|
@click="fontSize = size"
|
|
>
|
|
{{ size }}
|
|
</CommonDropdownItem>
|
|
</template>
|
|
</CommonDropdown>
|
|
</template>
|