perf: tooltip
gitea/salix-front/pipeline/pr-master Build queued...
Details
gitea/salix-front/pipeline/pr-master Build queued...
Details
This commit is contained in:
parent
2be108c897
commit
db1f5e3083
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue