优化图例显示

This commit is contained in:
wzy-warehouse
2026-05-06 18:02:56 +08:00
parent c347bbea8b
commit 1636ad586d
5 changed files with 115 additions and 105 deletions
+9 -7
View File
@@ -5,12 +5,14 @@ import { ref, type Ref } from 'vue';
* 左侧图例信息
*/
export const useLeftLegendStore = defineStore('leftLegend', () => {
const legendListInfo: Ref<{
title: string;
list: { label: string; color: string }[];
}> = ref({
title: '',
list: [],
});
const legendListInfo: Ref<
Record<
string,
{
title: string;
list: { label: string; color: string }[];
}
>
> = ref({});
return { legendListInfo };
});
+4 -4
View File
@@ -29,8 +29,8 @@ export const useStatusStore = defineStore('status', () => {
loading: true,
},
leftLegend: {
show: false,
loading: false,
show: true,
loading: true,
},
rightButton: {
show: true,
@@ -215,8 +215,8 @@ export const useStatusStore = defineStore('status', () => {
loading: true,
};
uiComponents.leftLegend = {
show: false,
loading: false,
show: true,
loading: true,
};
uiComponents.rightButton = {
show: true,