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( document.addEventListener(
"click", "click",
() => { () => {
if (instance.isDisposed()) {
return;
}
instance.dispatchAction({ instance.dispatchAction({
type: "hideTip", type: "hideTip",
}); });

View File

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

View File

@ -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 || "",
}; };