|
@@ -7,7 +7,8 @@ const props = withDefaults(
|
|
|
width?: number
|
|
width?: number
|
|
|
}>(),
|
|
}>(),
|
|
|
{
|
|
{
|
|
|
- placement: 'bottom'
|
|
|
|
|
|
|
+ placement: 'bottom',
|
|
|
|
|
+ width: 368
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
|
|
|
|
|
@@ -21,11 +22,11 @@ const visible = ref(false)
|
|
|
popper-class="v-tip-tooltip"
|
|
popper-class="v-tip-tooltip"
|
|
|
v-model="visible"
|
|
v-model="visible"
|
|
|
:placement="props.placement"
|
|
:placement="props.placement"
|
|
|
- trigger="hover"
|
|
|
|
|
|
|
+ trigger="click"
|
|
|
>
|
|
>
|
|
|
<span class="font_family icon-icon_info_b"></span>
|
|
<span class="font_family icon-icon_info_b"></span>
|
|
|
<template #content>
|
|
<template #content>
|
|
|
- <div class="label">{{ props.label }}</div>
|
|
|
|
|
|
|
+ <div class="label" :style="{ width: props.width + 'px' }">{{ props.label }}</div>
|
|
|
<div style="text-align: center">
|
|
<div style="text-align: center">
|
|
|
<img :style="{ width: props.width + 'px' }" class="photo" :src="props.img" alt="" />
|
|
<img :style="{ width: props.width + 'px' }" class="photo" :src="props.img" alt="" />
|
|
|
</div>
|
|
</div>
|
|
@@ -38,20 +39,15 @@ const visible = ref(false)
|
|
|
div.v-tip-tooltip {
|
|
div.v-tip-tooltip {
|
|
|
padding: 16px;
|
|
padding: 16px;
|
|
|
border-radius: 12px;
|
|
border-radius: 12px;
|
|
|
- // background-color: var(--color-tour-next-btn-color) !important;
|
|
|
|
|
border: 0 !important;
|
|
border: 0 !important;
|
|
|
box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.1) !important;
|
|
box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.1) !important;
|
|
|
- // .el-popper__arrow:before {
|
|
|
|
|
- // border: 2 !important;
|
|
|
|
|
- // background-color: var(--color-tour-next-btn-color) !important;
|
|
|
|
|
- // box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.1) !important;
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+
|
|
|
.label {
|
|
.label {
|
|
|
color: #f0f1f3;
|
|
color: #f0f1f3;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
|
|
+ white-space: wrap;
|
|
|
}
|
|
}
|
|
|
.photo {
|
|
.photo {
|
|
|
- width: 368px;
|
|
|
|
|
margin-top: 8px;
|
|
margin-top: 8px;
|
|
|
border-radius: 6px;
|
|
border-radius: 6px;
|
|
|
}
|
|
}
|