diff --git a/packages/li-analysis-assets/src/widgets/FilterControl/Component/DateItem.tsx b/packages/li-analysis-assets/src/widgets/FilterControl/Component/DateItem.tsx index 842734f0..d8578a7c 100644 --- a/packages/li-analysis-assets/src/widgets/FilterControl/Component/DateItem.tsx +++ b/packages/li-analysis-assets/src/widgets/FilterControl/Component/DateItem.tsx @@ -1,10 +1,10 @@ -import type { DateConfig } from '@antv/li-p2'; +import type { FilterDateConfigType } from '@antv/li-p2'; import React from 'react'; import { FilterDateConfig } from '@antv/li-p2'; export interface DateItemProps { - value: DateConfig; - onChange: (value: DateConfig) => void; + value: FilterDateConfigType; + onChange: (value: FilterDateConfigType) => void; } const DateItem: React.FC = (props) => { diff --git a/packages/li-analysis-assets/src/widgets/FilterControl/Component/NumberItem.tsx b/packages/li-analysis-assets/src/widgets/FilterControl/Component/NumberItem.tsx index 763b7199..1d29f0d4 100644 --- a/packages/li-analysis-assets/src/widgets/FilterControl/Component/NumberItem.tsx +++ b/packages/li-analysis-assets/src/widgets/FilterControl/Component/NumberItem.tsx @@ -1,13 +1,13 @@ import { DownOutlined } from '@ant-design/icons'; -import type { NumberConfig } from '@antv/li-p2'; +import type { FilterNumberConfigType } from '@antv/li-p2'; import { FilterNumberConfig } from '@antv/li-p2'; import { Button, Popover } from 'antd'; import React, { useState } from 'react'; import useStyle from './style'; export interface NumberItemProps { - value: NumberConfig; - onChange: (value: NumberConfig) => void; + value: FilterNumberConfigType; + onChange: (value: FilterNumberConfigType) => void; } const NumberItem: React.FC = (props) => { @@ -29,7 +29,7 @@ const NumberItem: React.FC = (props) => { }; const onSubmit = () => { - const numberNode = { ...defaluValue, ...valAndOperator } as NumberConfig; + const numberNode = { ...defaluValue, ...valAndOperator } as FilterNumberConfigType; onChange(numberNode); setOpen(false); }; diff --git a/packages/li-analysis-assets/src/widgets/FilterControl/Component/StringItem.tsx b/packages/li-analysis-assets/src/widgets/FilterControl/Component/StringItem.tsx index 14c1093f..22632868 100644 --- a/packages/li-analysis-assets/src/widgets/FilterControl/Component/StringItem.tsx +++ b/packages/li-analysis-assets/src/widgets/FilterControl/Component/StringItem.tsx @@ -1,13 +1,13 @@ -import type { StringConfig } from '@antv/li-p2'; +import type { FilterStringConfigType } from '@antv/li-p2'; import { FilterStringConfig } from '@antv/li-p2'; import { uniq } from 'lodash-es'; import React, { useMemo } from 'react'; export interface StringItemProps { - value: StringConfig; + value: FilterStringConfigType; field: string; data: Record[]; - onChange: (value: StringConfig) => void; + onChange: (value: FilterStringConfigType) => void; } const StringItem: React.FC = (props) => {