perf: tooltip
gitea/salix-front/pipeline/pr-master Build queued... Details

This commit is contained in:
Jon Elias 2025-04-10 14:57:46 +02:00
parent 2be108c897
commit db1f5e3083
2 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ import { computed } from 'vue';
const $props = defineProps({
label: { type: String, default: null },
toolTip: { type: String, default: null },
tooltip: { type: String, default: null },
value: {
type: [String, Boolean, Number],
default: null,
@ -41,7 +41,7 @@ const val = computed(() => $props.value);
<template v-else>
<div v-if="label || $slots.label" class="label">
<slot name="label">
<QTooltip v-if="toolTip">{{ toolTip }}</QTooltip>
<QTooltip v-if="tooltip">{{ tooltip }}</QTooltip>
<span style="color: var(--vn-label-color)">
{{ label }}
</span>

View File

@ -208,7 +208,7 @@ const sumRisk = ({ clientRisks }) => {
:text="t('customer.summary.consignee')"
/>
<VnLv
:toolTip="t('customer.summary.addressName')"
:tooltip="t('customer.summary.addressName')"
:label="t('customer.summary.addressNameAbbr')"
:value="entity.defaultAddress.nickname"
/>
@ -253,7 +253,7 @@ const sumRisk = ({ clientRisks }) => {
/>
<VnLv
v-if="entity.claimsRatio"
:toolTip="t('customer.summary.priceIncreasingRate')"
:tooltip="t('customer.summary.priceIncreasingRate')"
:label="t('customer.summary.priceIncreasingRateAbbr')"
:value="toPercentage(priceIncreasingRate)"
/>
@ -264,7 +264,7 @@ const sumRisk = ({ clientRisks }) => {
<VnLv
v-if="entity.claimsRatio"
:label="t('customer.summary.claimRateAbbr')"
:toolTip="t('customer.summary.claimRate')"
:tooltip="t('customer.summary.claimRate')"
:value="toPercentage(claimRate)"
/>
</QCard>
@ -322,7 +322,7 @@ const sumRisk = ({ clientRisks }) => {
<VnLv
:label="t('customer.summary.recommendCreditAbbr')"
:toolTip="t('customer.summary.recommendCredit')"
:tooltip="t('customer.summary.recommendCredit')"
:value="entity.recommendedCredit"
/>
</QCard>