mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 12:45: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") {
|
||||
newWidget.w = 2;
|
||||
newWidget.w = 4;
|
||||
newWidget.h = 6;
|
||||
newWidget.graph = {
|
||||
fontColor: "white",
|
||||
backgroundColor: "green",
|
||||
iconTheme: true,
|
||||
content: "Topology",
|
||||
fontSize: 18,
|
||||
};
|
||||
}
|
||||
this.layout = this.layout.map((d: LayoutConfig) => {
|
||||
d.y = d.y + newWidget.h;
|
||||
|
@ -116,7 +116,7 @@ export interface TopologyConfig {
|
||||
type?: string;
|
||||
backgroundColor?: string;
|
||||
fontColor?: string;
|
||||
iconTheme?: string;
|
||||
iconTheme?: boolean;
|
||||
content?: string;
|
||||
fontSize?: number;
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ const props = defineProps({
|
||||
});
|
||||
const { t } = useI18n();
|
||||
const dashboardStore = useDashboardStore();
|
||||
console.log(Colors[props.data.graph.backgroundColor]);
|
||||
|
||||
function editConfig() {
|
||||
dashboardStore.setConfigPanel(true);
|
||||
dashboardStore.selectWidget(props.data);
|
||||
|
Loading…
Reference in New Issue
Block a user