@kmkf-fe-packages/services-components 0.5.2-alpha.10 → 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.
Files changed (2) hide show
  1. package/dist/esm/type.d.ts +17 -17
  2. package/package.json +2 -2
@@ -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;
@@ -110,12 +118,12 @@ export interface ComponentInterface {
110
118
  erpFlag?: boolean;
111
119
  };
112
120
  effects?: {
113
- queryWorkOrderDetail: (r: Record) => void;
114
- handleOpenRepeatList: (r: Record) => void;
115
- handleChangeSingleWorkOrderStatus: (r: Record) => void;
116
- templateList: any[];
117
- isEditing: boolean;
118
- form: FormInstance;
121
+ queryWorkOrderDetail?: (r: Record) => void;
122
+ handleOpenRepeatList?: (r: Record) => void;
123
+ handleChangeSingleWorkOrderStatus?: (r: Record) => void;
124
+ templateList?: any[];
125
+ isEditing?: boolean;
126
+ form?: FormInstance;
119
127
  shopList?: any[];
120
128
  shopId?: string;
121
129
  userList?: {
@@ -124,9 +132,9 @@ export interface ComponentInterface {
124
132
  }[];
125
133
  };
126
134
  /**
127
- *
135
+ * 端上的日志模块需要使用
128
136
  */
129
- render: (value: any) => JSX.Element | null | JSX.Element[];
137
+ render: (value: any, r?: Record) => JSX.Element | null | JSX.Element[];
130
138
  /**
131
139
  * 客户端卡片字段渲染,record的格式为下面这种,可以直接使用
132
140
  * {
@@ -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?: (p: ColumnConfig) => FilterConfigType | FilterConfigType[];
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.10",
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": "4fe67ae0bfdca5504a12fc04b67ccafbca5010c3"
38
+ "gitHead": "0471d8bddc23ed0612d497787b18de7a750dc6d4"
39
39
  }