mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 17:05:10 +00:00
dispatch action
This commit is contained in:
parent
410333ab3b
commit
4217837421
@ -74,6 +74,9 @@ onMounted(async () => {
|
|||||||
document.addEventListener(
|
document.addEventListener(
|
||||||
"click",
|
"click",
|
||||||
() => {
|
() => {
|
||||||
|
if (instance.isDisposed()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
instance.dispatchAction({
|
instance.dispatchAction({
|
||||||
type: "hideTip",
|
type: "hideTip",
|
||||||
});
|
});
|
||||||
|
2
src/types/dashboard.d.ts
vendored
2
src/types/dashboard.d.ts
vendored
@ -38,7 +38,7 @@ export interface LayoutConfig {
|
|||||||
metricConfig?: MetricConfigOpt[];
|
metricConfig?: MetricConfigOpt[];
|
||||||
id?: string;
|
id?: string;
|
||||||
associate?: { widgetId: string }[];
|
associate?: { widgetId: string }[];
|
||||||
filters?: { value: number | string; dataIndex: number; sourceId: string };
|
filters?: { dataIndex: number; sourceId: string };
|
||||||
}
|
}
|
||||||
|
|
||||||
export type MetricConfigOpt = {
|
export type MetricConfigOpt = {
|
||||||
|
@ -172,7 +172,6 @@ export default defineComponent({
|
|||||||
);
|
);
|
||||||
if (widget) {
|
if (widget) {
|
||||||
widget.filters = {
|
widget.filters = {
|
||||||
value: params.value[0],
|
|
||||||
dataIndex: params.dataIndex,
|
dataIndex: params.dataIndex,
|
||||||
sourceId: props.data.id || "",
|
sourceId: props.data.id || "",
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user