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