add collapseTags

This commit is contained in:
Fine 2025-02-19 10:40:27 +08:00
parent 465d8139ea
commit e1869840df
3 changed files with 4 additions and 2 deletions

View File

@ -21,6 +21,8 @@ limitations under the License. -->
:options="Options"
@change="changeLegend"
filterable
collapseTags
collapseTagsTooltip
v-if="show"
/>
</template>

View File

@ -119,7 +119,7 @@ limitations under the License. -->
...legend,
},
grid: {
top: keys.length === 1 ? 15 : 40,
top: showEchartsLegend(keys) ? 35 : 10,
left: 0,
right: 10,
bottom: 5,

View File

@ -157,7 +157,7 @@ limitations under the License. -->
...legend,
},
grid: {
top: showEchartsLegend(keys) || props.config?.legend?.asSelector ? 35 : 10,
top: showEchartsLegend(keys) ? 35 : 10,
left: 0,
right: 10,
bottom: 5,