@kmkf-fe-packages/basic-components 2.2.12 → 2.3.0-rc.1

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,5 @@
1
1
  import React from 'react';
2
+ import { renderMap } from './render';
2
3
  type subConfigType = {
3
4
  name: string;
4
5
  key: string;
@@ -30,3 +31,4 @@ type SubFormProps = {
30
31
  };
31
32
  declare const SubForm: (props: SubFormProps) => React.JSX.Element;
32
33
  export default SubForm;
34
+ export { renderMap };
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ declare const hostUrl = "https://kefu.kuaimai.com";
3
+ export declare const FileRender: ({ fileList, canDownload, id }: any) => React.JSX.Element;
4
+ export declare const PictureRender: ({ value, width, }: {
5
+ value: any;
6
+ hostUrl?: string | undefined;
7
+ width?: number | undefined;
8
+ }) => React.JSX.Element;
9
+ export declare const RadioRender: ({ value }: {
10
+ value: any;
11
+ }) => React.JSX.Element;
12
+ export declare const CheckboxRender: ({ value }: {
13
+ value: any;
14
+ }) => any;
15
+ export declare const MultipleSelectRender: ({ value }: {
16
+ value: any;
17
+ }) => any;
18
+ export declare const renderMap: Record<string, (props: any, platform?: string) => React.ReactNode>;
19
+ export declare const EditPictureRender: ({ val, index, t, updateHandle, disabled, hostUrl, platform, }: any) => React.JSX.Element;
20
+ export declare const EditFileRender: ({ val, index, t, updateHandle, disabled, hostUrl, platform, }: any) => React.JSX.Element;
21
+ export declare const EditRenderMap: Record<string, (props: any) => React.ReactNode>;
22
+ export {};
@@ -0,0 +1,15 @@
1
+ export declare const updateWorkTypeKeys: any;
2
+ export declare const systemOrderMap: any;
3
+ export declare const processSingleFieldTypeMapping: {
4
+ SKX_OUTBOUND_NOTICE_NO: string;
5
+ SKX_SHOP_NAME: string;
6
+ SKX_WAREHOUSE: string;
7
+ SKX_ORDER_TYPE: string;
8
+ SKX_ORDER_STATUS: string;
9
+ SKX_CREATE_TIME: string;
10
+ };
11
+ export declare const jsonParseSecurity: (value: string, securityValue: any) => any;
12
+ export declare const transTextToNumber: (value: string | number) => string | number;
13
+ export declare const formatPictures: (pictures: any) => any;
14
+ declare const transformWorkOrderData: (templateColumns: any[], type?: string) => (item: any) => any;
15
+ export default transformWorkOrderData;
@@ -17,7 +17,7 @@ export { default as ApaasAddress } from './apaas/ApaasAddress';
17
17
  export { default as ApaasPosting } from './apaas/ApaasPosting';
18
18
  export { default as ApaasLogistics } from './apaas/ApaasLogistics';
19
19
  export { default as ApaasHoc } from './apaas/hoc/withFormItem';
20
- export { default as SubForm } from './apaas/SubForm';
20
+ export { default as SubForm, renderMap } from './apaas/SubForm';
21
21
  export { default as CopyTextIcon } from './apaas/CopyTextIcon';
22
22
  export { default as BuyerNick } from './business/BuyerNick';
23
23
  export { default as TradeId } from './business/TradeId';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.2.12",
3
+ "version": "2.3.0-rc.1",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -20,7 +20,7 @@
20
20
  "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/kmkf-utils": "2.2.11",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.3.0-rc.1",
24
24
  "ahooks": "^3.7.4",
25
25
  "ali-react-table": "2.6.1",
26
26
  "bignumber.js": "^9.1.2",
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "gitHead": "5cd274e95ebaeba0c49da41667f1df8222873017"
69
+ "gitHead": "cefb61a2220d807338d9e0741f6e4470dc775ddf"
70
70
  }