@kmkf-fe-packages/services-components 0.5.2-alpha.11 → 0.5.2-alpha.12
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.
- package/dist/esm/type.d.ts +9 -9
- package/package.json +2 -2
package/dist/esm/type.d.ts
CHANGED
|
@@ -5,6 +5,14 @@ export declare type ALignType = 'left' | 'right' | 'center';
|
|
|
5
5
|
export declare type Record = {
|
|
6
6
|
[props in string]: any;
|
|
7
7
|
};
|
|
8
|
+
export declare type FilterConfigType = {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
options?: any[];
|
|
12
|
+
filterComponentType: FilterComponentType;
|
|
13
|
+
filterFn?: (p: any) => (r: Record) => unknown;
|
|
14
|
+
};
|
|
15
|
+
export declare type FilterComponentType = 'MultipleSelect' | 'Input' | 'Date' | 'Cascader' | 'ShopList';
|
|
8
16
|
export interface ComponentInterface {
|
|
9
17
|
id: string;
|
|
10
18
|
name: string;
|
|
@@ -156,7 +164,7 @@ export interface ComponentInterface {
|
|
|
156
164
|
formItemIndex?: number;
|
|
157
165
|
onBlur?: (p1: any, p2: any) => void;
|
|
158
166
|
}) => JSX.Element | null;
|
|
159
|
-
filterConfig
|
|
167
|
+
filterConfig: (p: ColumnConfig) => FilterConfigType | FilterConfigType[];
|
|
160
168
|
}
|
|
161
169
|
export declare type PickOption = Pick<ComponentInterface, 'name' | 'id' | 'type' | 'componentConfig' | 'effects'>;
|
|
162
170
|
export declare type ColumnConfig = {
|
|
@@ -167,11 +175,3 @@ export declare type ColumnConfig = {
|
|
|
167
175
|
mode?: 'multiple';
|
|
168
176
|
config?: ComponentInterface['componentConfig'];
|
|
169
177
|
};
|
|
170
|
-
export declare type FilterConfigType = {
|
|
171
|
-
id: string;
|
|
172
|
-
name: string;
|
|
173
|
-
options?: any[];
|
|
174
|
-
filterComponentType: FilterComponentType;
|
|
175
|
-
filterFn?: (p: any) => (r: Record) => unknown;
|
|
176
|
-
};
|
|
177
|
-
export declare type FilterComponentType = 'MultipleSelect' | 'Input' | 'Date' | 'Cascader' | 'ShopList';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.5.2-alpha.
|
|
3
|
+
"version": "0.5.2-alpha.12",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"gitHooks": {
|
|
36
36
|
"pre-commit": "lint-staged"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "0471d8bddc23ed0612d497787b18de7a750dc6d4"
|
|
39
39
|
}
|