mirror of
https://github.com/elk-zone/elk.git
synced 2024-12-24 21:48:16 +03:00
23 lines
469 B
Vue
23 lines
469 B
Vue
<script setup lang="ts">
|
|
defineProps<{
|
|
showLabel?: boolean
|
|
}>()
|
|
|
|
const { t } = useI18n()
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
flex="~ gap1" items-center
|
|
:class="{ 'border border-base rounded-md px-1': showLabel }"
|
|
text-secondary-light
|
|
>
|
|
<slot name="prepend" />
|
|
<CommonTooltip content="Lock" :disabled="showLabel">
|
|
<div i-ri:lock-line />
|
|
</CommonTooltip>
|
|
<div v-if="showLabel">
|
|
{{ t('account.lock') }}
|
|
</div>
|
|
</div>
|
|
</template>
|