Skip to content

Commit

Permalink
Merge branch 'filter-app' into fix/filter-control
Browse files Browse the repository at this point in the history
  • Loading branch information
lvisei committed Dec 26, 2023
2 parents 2cd1d8e + afb2f62 commit 6306ecb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -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<DateItemProps> = (props) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -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<NumberItemProps> = (props) => {
Expand All @@ -29,7 +29,7 @@ const NumberItem: React.FC<NumberItemProps> = (props) => {
};

const onSubmit = () => {
const numberNode = { ...defaluValue, ...valAndOperator } as NumberConfig;
const numberNode = { ...defaluValue, ...valAndOperator } as FilterNumberConfigType;
onChange(numberNode);
setOpen(false);
};
Expand Down
Original file line number Diff line number Diff line change
@@ -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<string, any>[];
onChange: (value: StringConfig) => void;
onChange: (value: FilterStringConfigType) => void;
}

const StringItem: React.FC<StringItemProps> = (props) => {
Expand Down

0 comments on commit 6306ecb

Please sign in to comment.