1 | import { VXETableComponent } from './component'
|
2 | import { ColumnInfo } from './column'
|
3 | import { TableRenderParams, RenderOptions, OptionProps, OptionGroupProps } from './v-x-e-table'
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export declare class Filter extends VXETableComponent {}
|
9 |
|
10 | export class FilterPanel {
|
11 | |
12 |
|
13 |
|
14 |
|
15 |
|
16 | changeAllOption(evnt: any, checked: boolean): any;
|
17 | |
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | changeOption(evnt: any, checked: boolean, option: ColumnFilterParams): any;
|
24 | |
25 |
|
26 |
|
27 | confirmFilter(): any;
|
28 | |
29 |
|
30 |
|
31 | resetFilter(): any;
|
32 | }
|
33 |
|
34 | export interface ColumnFilterOption {
|
35 | label?: string | number;
|
36 | value?: any;
|
37 | data?: any;
|
38 | resetValue?: any;
|
39 | checked?: boolean;
|
40 | }
|
41 |
|
42 | export interface ColumnFilterParams {
|
43 | label: string | number;
|
44 | value: any;
|
45 | data: any;
|
46 | resetValue: any;
|
47 | checked: boolean;
|
48 | }
|
49 |
|
50 |
|
51 |
|
52 |
|
53 | export interface ColumnFilterRenderParams extends TableRenderParams{
|
54 | $panel: FilterPanel;
|
55 | |
56 |
|
57 |
|
58 | column: ColumnInfo;
|
59 | |
60 |
|
61 |
|
62 | columnIndex: number;
|
63 | |
64 |
|
65 |
|
66 | $columnIndex: number;
|
67 | |
68 |
|
69 |
|
70 | $rowIndex: number;
|
71 | }
|
72 |
|
73 |
|
74 |
|
75 |
|
76 | export interface ColumnFilterMethodParams {
|
77 | |
78 |
|
79 |
|
80 | value: any;
|
81 | |
82 |
|
83 |
|
84 | option: ColumnFilterParams;
|
85 | |
86 |
|
87 |
|
88 | row: any;
|
89 | |
90 |
|
91 |
|
92 | column: ColumnInfo;
|
93 | }
|
94 |
|
95 | export interface ColumnFilterSlotParams extends ColumnFilterRenderParams {}
|
96 |
|
97 | export interface ColumnFilterResetParams extends TableRenderParams {
|
98 | options: ColumnFilterParams[];
|
99 | column: ColumnInfo;
|
100 | }
|
101 |
|
102 |
|
103 |
|
104 |
|
105 | export interface ColumnFilterRenderOptions extends RenderOptions {
|
106 | |
107 |
|
108 |
|
109 | options?: { [key: string]: any }[];
|
110 | |
111 |
|
112 |
|
113 | optionProps?: OptionProps;
|
114 | |
115 |
|
116 |
|
117 | optionGroups?: { [key: string]: any }[];
|
118 | |
119 |
|
120 |
|
121 | optionGroupProps?: OptionGroupProps;
|
122 | |
123 |
|
124 |
|
125 | content?: string;
|
126 | }
|