forked from github/dataease
Merge pull request #10671 from dataease/pr@dev-v2@chart-symbolic-style
style(图表-符号地图): 符号地图气泡大小字段添加解释图标
This commit is contained in:
commit
157eb34790
@ -373,7 +373,7 @@ onMounted(() => {
|
|||||||
<el-form-item v-if="showProperty('customContent')" :class="'form-item-' + themes">
|
<el-form-item v-if="showProperty('customContent')" :class="'form-item-' + themes">
|
||||||
<template #label>
|
<template #label>
|
||||||
<span class="data-area-label">
|
<span class="data-area-label">
|
||||||
<span>
|
<span style="margin-right: 4px">
|
||||||
{{ t('chart.content_formatter') }}
|
{{ t('chart.content_formatter') }}
|
||||||
</span>
|
</span>
|
||||||
<el-tooltip class="item" :effect="toolTip" placement="bottom">
|
<el-tooltip class="item" :effect="toolTip" placement="bottom">
|
||||||
@ -996,4 +996,12 @@ onMounted(() => {
|
|||||||
border-color: rgba(255, 255, 255, 0.15);
|
border-color: rgba(255, 255, 255, 0.15);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.data-area-label {
|
||||||
|
text-align: left;
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -487,7 +487,7 @@ onMounted(() => {
|
|||||||
<el-form-item v-if="showProperty('customContent')" :class="'form-item-' + themes">
|
<el-form-item v-if="showProperty('customContent')" :class="'form-item-' + themes">
|
||||||
<template #label>
|
<template #label>
|
||||||
<span class="data-area-label">
|
<span class="data-area-label">
|
||||||
<span>
|
<span style="margin-right: 4px">
|
||||||
{{ t('chart.content_formatter') }}
|
{{ t('chart.content_formatter') }}
|
||||||
</span>
|
</span>
|
||||||
<el-tooltip class="item" :effect="toolTip" placement="bottom">
|
<el-tooltip class="item" :effect="toolTip" placement="bottom">
|
||||||
@ -828,4 +828,12 @@ onMounted(() => {
|
|||||||
.form-item-checkbox {
|
.form-item-checkbox {
|
||||||
margin-bottom: 8px !important;
|
margin-bottom: 8px !important;
|
||||||
}
|
}
|
||||||
|
.data-area-label {
|
||||||
|
text-align: left;
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -2210,8 +2210,26 @@ onMounted(() => {
|
|||||||
<!-- extBubble -->
|
<!-- extBubble -->
|
||||||
<el-row class="padding-lr drag-data" v-if="showAxis('extBubble')">
|
<el-row class="padding-lr drag-data" v-if="showAxis('extBubble')">
|
||||||
<div class="form-draggable-title">
|
<div class="form-draggable-title">
|
||||||
<span>
|
<span class="data-area-label">
|
||||||
{{ chartViewInstance.axisConfig.extBubble.name }}
|
<span style="margin-right: 4px">
|
||||||
|
{{ chartViewInstance.axisConfig.extBubble.name }}
|
||||||
|
</span>
|
||||||
|
<el-tooltip
|
||||||
|
v-if="chartViewInstance.axisConfig.extBubble.tooltip"
|
||||||
|
class="item"
|
||||||
|
:effect="toolTip"
|
||||||
|
placement="top"
|
||||||
|
>
|
||||||
|
<template #content>
|
||||||
|
<span> {{ chartViewInstance.axisConfig.extBubble.tooltip }}</span>
|
||||||
|
</template>
|
||||||
|
<el-icon
|
||||||
|
class="hint-icon"
|
||||||
|
:class="{ 'hint-icon--dark': themes === 'dark' }"
|
||||||
|
>
|
||||||
|
<Icon name="icon_info_outlined" />
|
||||||
|
</el-icon>
|
||||||
|
</el-tooltip>
|
||||||
</span>
|
</span>
|
||||||
<el-tooltip :effect="toolTip" placement="top" :content="t('common.delete')">
|
<el-tooltip :effect="toolTip" placement="top" :content="t('common.delete')">
|
||||||
<el-icon
|
<el-icon
|
||||||
|
@ -55,7 +55,8 @@ export class SymbolicMap extends L7ChartView<Scene, L7Config> {
|
|||||||
extBubble: {
|
extBubble: {
|
||||||
name: `${t('chart.bubble_size')} / ${t('chart.quota')}`,
|
name: `${t('chart.bubble_size')} / ${t('chart.quota')}`,
|
||||||
type: 'q',
|
type: 'q',
|
||||||
limit: 1
|
limit: 1,
|
||||||
|
tooltip: '该指标生效时,样式基础样式中的大小属性将失效'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
constructor() {
|
constructor() {
|
||||||
|
Loading…
Reference in New Issue
Block a user