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({
|
const $props = defineProps({
|
||||||
label: { type: String, default: null },
|
label: { type: String, default: null },
|
||||||
toolTip: { type: String, default: null },
|
tooltip: { type: String, default: null },
|
||||||
value: {
|
value: {
|
||||||
type: [String, Boolean, Number],
|
type: [String, Boolean, Number],
|
||||||
default: null,
|
default: null,
|
||||||
|
@ -41,7 +41,7 @@ const val = computed(() => $props.value);
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div v-if="label || $slots.label" class="label">
|
<div v-if="label || $slots.label" class="label">
|
||||||
<slot name="label">
|
<slot name="label">
|
||||||
<QTooltip v-if="toolTip">{{ toolTip }}</QTooltip>
|
<QTooltip v-if="tooltip">{{ tooltip }}</QTooltip>
|
||||||
<span style="color: var(--vn-label-color)">
|
<span style="color: var(--vn-label-color)">
|
||||||
{{ label }}
|
{{ label }}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -208,7 +208,7 @@ const sumRisk = ({ clientRisks }) => {
|
||||||
:text="t('customer.summary.consignee')"
|
:text="t('customer.summary.consignee')"
|
||||||
/>
|
/>
|
||||||
<VnLv
|
<VnLv
|
||||||
:toolTip="t('customer.summary.addressName')"
|
:tooltip="t('customer.summary.addressName')"
|
||||||
:label="t('customer.summary.addressNameAbbr')"
|
:label="t('customer.summary.addressNameAbbr')"
|
||||||
:value="entity.defaultAddress.nickname"
|
:value="entity.defaultAddress.nickname"
|
||||||
/>
|
/>
|
||||||
|
@ -253,7 +253,7 @@ const sumRisk = ({ clientRisks }) => {
|
||||||
/>
|
/>
|
||||||
<VnLv
|
<VnLv
|
||||||
v-if="entity.claimsRatio"
|
v-if="entity.claimsRatio"
|
||||||
:toolTip="t('customer.summary.priceIncreasingRate')"
|
:tooltip="t('customer.summary.priceIncreasingRate')"
|
||||||
:label="t('customer.summary.priceIncreasingRateAbbr')"
|
:label="t('customer.summary.priceIncreasingRateAbbr')"
|
||||||
:value="toPercentage(priceIncreasingRate)"
|
:value="toPercentage(priceIncreasingRate)"
|
||||||
/>
|
/>
|
||||||
|
@ -264,7 +264,7 @@ const sumRisk = ({ clientRisks }) => {
|
||||||
<VnLv
|
<VnLv
|
||||||
v-if="entity.claimsRatio"
|
v-if="entity.claimsRatio"
|
||||||
:label="t('customer.summary.claimRateAbbr')"
|
:label="t('customer.summary.claimRateAbbr')"
|
||||||
:toolTip="t('customer.summary.claimRate')"
|
:tooltip="t('customer.summary.claimRate')"
|
||||||
:value="toPercentage(claimRate)"
|
:value="toPercentage(claimRate)"
|
||||||
/>
|
/>
|
||||||
</QCard>
|
</QCard>
|
||||||
|
@ -322,7 +322,7 @@ const sumRisk = ({ clientRisks }) => {
|
||||||
|
|
||||||
<VnLv
|
<VnLv
|
||||||
:label="t('customer.summary.recommendCreditAbbr')"
|
:label="t('customer.summary.recommendCreditAbbr')"
|
||||||
:toolTip="t('customer.summary.recommendCredit')"
|
:tooltip="t('customer.summary.recommendCredit')"
|
||||||
:value="entity.recommendedCredit"
|
:value="entity.recommendedCredit"
|
||||||
/>
|
/>
|
||||||
</QCard>
|
</QCard>
|
||||||
|
|
Loading…
Reference in New Issue