dispatch action

This commit is contained in:
Qiuxia Fan 2022-07-07 15:03:06 +08:00
parent 410333ab3b
commit 4217837421
3 changed files with 4 additions and 2 deletions

View File

@ -74,6 +74,9 @@ onMounted(async () => {
document.addEventListener(
"click",
() => {
if (instance.isDisposed()) {
return;
}
instance.dispatchAction({
type: "hideTip",
});

View File

@ -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 = {

View File

@ -172,7 +172,6 @@ export default defineComponent({
);
if (widget) {
widget.filters = {
value: params.value[0],
dataIndex: params.dataIndex,
sourceId: props.data.id || "",
};