添加左侧图例组件

This commit is contained in:
wzy-warehouse
2026-05-06 17:44:30 +08:00
parent 7e7605ee97
commit c347bbea8b
6 changed files with 193 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { defineStore } from 'pinia';
import { ref, type Ref } from 'vue';
/**
* 左侧图例信息
*/
export const useLeftLegendStore = defineStore('leftLegend', () => {
const legendListInfo: Ref<{
title: string;
list: { label: string; color: string }[];
}> = ref({
title: '',
list: [],
});
return { legendListInfo };
});
+8
View File
@@ -28,6 +28,10 @@ export const useStatusStore = defineStore('status', () => {
show: true,
loading: true,
},
leftLegend: {
show: false,
loading: false,
},
rightButton: {
show: true,
loading: true,
@@ -210,6 +214,10 @@ export const useStatusStore = defineStore('status', () => {
show: true,
loading: true,
};
uiComponents.leftLegend = {
show: false,
loading: false,
};
uiComponents.rightButton = {
show: true,
loading: true,