2023-07-03 02:55:18 +09:00
|
|
|
<script setup lang="ts">
|
|
|
|
defineProps<{
|
|
|
|
showLabel?: boolean
|
|
|
|
}>()
|
2024-01-25 00:48:24 +09:00
|
|
|
|
|
|
|
const { t } = useI18n()
|
2023-07-03 02:55:18 +09:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div
|
|
|
|
flex="~ gap1" items-center
|
|
|
|
:class="{ 'border border-base rounded-md px-1': showLabel }"
|
|
|
|
text-secondary-light
|
|
|
|
>
|
|
|
|
<slot name="prepend" />
|
2024-04-06 12:58:50 +09:00
|
|
|
<CommonTooltip content="Lock" :disabled="showLabel">
|
2023-07-03 02:55:18 +09:00
|
|
|
<div i-ri:lock-line />
|
|
|
|
</CommonTooltip>
|
|
|
|
<div v-if="showLabel">
|
2024-01-25 00:48:24 +09:00
|
|
|
{{ t('account.lock') }}
|
2023-07-03 02:55:18 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|