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" :options="Options"
@change="changeLegend" @change="changeLegend"
filterable filterable
collapseTags
collapseTagsTooltip
v-if="show" v-if="show"
/> />
</template> </template>

View File

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

View File

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