@ahoo-wang/fetcher-viewer 2.15.3 → 2.15.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React, Key } from 'react';
|
|
1
|
+
import { default as React, Key, RefAttributes } from 'react';
|
|
2
2
|
import { TypedFilterProps } from '../TypedFilter';
|
|
3
3
|
import { Condition } from '@ahoo-wang/fetcher-wow';
|
|
4
4
|
import { ColProps, ButtonProps } from 'antd';
|
|
@@ -7,7 +7,19 @@ export interface ActiveFilter extends Omit<TypedFilterProps, 'onChange' | 'ref'>
|
|
|
7
7
|
key: Key;
|
|
8
8
|
onRemove?: () => void;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface FilterPanelRef {
|
|
11
|
+
/**
|
|
12
|
+
* Triggers the search action using the current filter values.
|
|
13
|
+
* Typically calls the `onSearch` callback with the composed filter condition.
|
|
14
|
+
*/
|
|
15
|
+
search(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Resets all filter values to their initial state.
|
|
18
|
+
* Typically clears the filters and triggers any associated reset logic.
|
|
19
|
+
*/
|
|
20
|
+
reset(): void;
|
|
21
|
+
}
|
|
22
|
+
export interface FilterPanelProps extends RefAttributes<FilterPanelRef> {
|
|
11
23
|
row?: RowProps;
|
|
12
24
|
col?: ColProps;
|
|
13
25
|
actionsCol?: ColProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterPanel.d.ts","sourceRoot":"","sources":["../../../src/filter/panel/FilterPanel.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FilterPanel.d.ts","sourceRoot":"","sources":["../../../src/filter/panel/FilterPanel.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,EAAE,GAAG,EAAE,aAAa,EAAuB,MAAM,OAAO,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