mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2026-07-06 06:48:12 +00:00
update style with config
This commit is contained in:
@@ -17,6 +17,10 @@
|
||||
import { LegendOptions } from "@/types/dashboard";
|
||||
|
||||
export default function useLegendProcess(legend?: LegendOptions) {
|
||||
let isRight = false;
|
||||
if (legend && legend.toTheRight) {
|
||||
isRight = true;
|
||||
}
|
||||
function showEchartsLegend(keys: string[]) {
|
||||
if (legend && !legend.show === undefined) {
|
||||
return legend.show;
|
||||
@@ -29,11 +33,6 @@ export default function useLegendProcess(legend?: LegendOptions) {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function isRight() {
|
||||
if (legend && legend.toTheRight) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
return { showEchartsLegend, isRight };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user