广丰卷烟厂数采质量分析系统
zhuguifei
2026-03-02 974c7aa4010d77bb410b99931b4435d5442deb4b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<script lang="ts" setup>
import { computed } from 'vue';
import { $t } from '@/locales';
 
defineOptions({ name: 'PinToggler' });
 
interface Props {
  pin?: boolean;
}
 
const props = defineProps<Props>();
 
const icon = computed(() => (props.pin ? 'mdi-pin-off' : 'mdi-pin'));
</script>
 
<template>
  <ButtonIcon
    :tooltip-content="pin ? $t('icon.unpin') : $t('icon.pin')"
    tooltip-placement="bottom-start"
    :z-index="100"
  >
    <SvgIcon :icon="icon" />
  </ButtonIcon>
</template>
 
<style scoped></style>