mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 13:25:25 +00:00
fix: update param
This commit is contained in:
parent
3c79e45f4a
commit
1ebf0ba261
@ -84,8 +84,15 @@ export const dashboardStore = defineStore({
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
if (type === "Topology") {
|
if (type === "Topology") {
|
||||||
newWidget.w = 2;
|
newWidget.w = 4;
|
||||||
newWidget.h = 6;
|
newWidget.h = 6;
|
||||||
|
newWidget.graph = {
|
||||||
|
fontColor: "white",
|
||||||
|
backgroundColor: "green",
|
||||||
|
iconTheme: true,
|
||||||
|
content: "Topology",
|
||||||
|
fontSize: 18,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
this.layout = this.layout.map((d: LayoutConfig) => {
|
this.layout = this.layout.map((d: LayoutConfig) => {
|
||||||
d.y = d.y + newWidget.h;
|
d.y = d.y + newWidget.h;
|
||||||
|
@ -116,7 +116,7 @@ export interface TopologyConfig {
|
|||||||
type?: string;
|
type?: string;
|
||||||
backgroundColor?: string;
|
backgroundColor?: string;
|
||||||
fontColor?: string;
|
fontColor?: string;
|
||||||
iconTheme?: string;
|
iconTheme?: boolean;
|
||||||
content?: string;
|
content?: string;
|
||||||
fontSize?: number;
|
fontSize?: number;
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ const props = defineProps({
|
|||||||
});
|
});
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const dashboardStore = useDashboardStore();
|
const dashboardStore = useDashboardStore();
|
||||||
console.log(Colors[props.data.graph.backgroundColor]);
|
|
||||||
function editConfig() {
|
function editConfig() {
|
||||||
dashboardStore.setConfigPanel(true);
|
dashboardStore.setConfigPanel(true);
|
||||||
dashboardStore.selectWidget(props.data);
|
dashboardStore.selectWidget(props.data);
|
||||||
|
Loading…
Reference in New Issue
Block a user