@kmkf-fe-packages/basic-components 2.4.0-rc.0 → 2.7.0-rc.0
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/index.esm.js +850 -29
- package/dist/index.js +854 -30
- package/dist/src/apaas/OrderSubForm/components/customizeUpload.d.ts +15 -0
- package/dist/src/apaas/OrderSubForm/index.d.ts +27 -0
- package/dist/src/apaas/OrderSubForm/utils.d.ts +22 -0
- package/dist/src/bs/component/GoodItem/index.d.ts +14 -0
- package/dist/src/constants/index.d.ts +1 -0
- package/dist/src/constants/orderSubForm.d.ts +62 -0
- package/dist/src/index.d.ts +2 -0
- package/package.json +3 -3
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CustomizeUploadProps {
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (value: string) => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
maxCount?: number;
|
|
7
|
+
maxSize?: number;
|
|
8
|
+
uniqueKey?: string;
|
|
9
|
+
hostUrl?: string;
|
|
10
|
+
actionUrl?: string;
|
|
11
|
+
platform?: string;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const CustomizeUpload: React.FC<CustomizeUploadProps>;
|
|
15
|
+
export default CustomizeUpload;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentInterface } from '@kmkf-fe-packages/services-components/src/type';
|
|
3
|
+
type subConfigType = {
|
|
4
|
+
name: string;
|
|
5
|
+
key: string;
|
|
6
|
+
workOrderComponentType: string;
|
|
7
|
+
isShow: boolean;
|
|
8
|
+
isEdit: boolean;
|
|
9
|
+
isRequired: boolean;
|
|
10
|
+
width: number;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
settingName?: string;
|
|
13
|
+
};
|
|
14
|
+
type SubFormProps = {
|
|
15
|
+
value: any;
|
|
16
|
+
onChange: (val: any) => void;
|
|
17
|
+
tableHeader: subConfigType[];
|
|
18
|
+
subConfig: {
|
|
19
|
+
correlationList: subConfigType[];
|
|
20
|
+
};
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
manual?: boolean;
|
|
23
|
+
maxCount?: number;
|
|
24
|
+
effects: ComponentInterface['effects'];
|
|
25
|
+
};
|
|
26
|
+
declare const OrderSubForm: (props: SubFormProps) => React.JSX.Element;
|
|
27
|
+
export default OrderSubForm;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ChildItemType } from '../../constants/orderSubForm';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type Parmas = {
|
|
4
|
+
orderNo: string;
|
|
5
|
+
shopId: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: {
|
|
8
|
+
getOrderListSingleton: (parmas: Parmas) => Promise<any>;
|
|
9
|
+
renderEditItem: ({ item, val, disabled, index, type, updateHandle, }: {
|
|
10
|
+
item: ChildItemType;
|
|
11
|
+
val: any;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
index: number;
|
|
14
|
+
type: string;
|
|
15
|
+
updateHandle: (val: any, index: number, type: string) => void;
|
|
16
|
+
}) => React.ReactNode;
|
|
17
|
+
renderDetailItem: ({ item, val }: {
|
|
18
|
+
item: ChildItemType;
|
|
19
|
+
val: any;
|
|
20
|
+
}) => React.ReactNode;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -39,5 +39,19 @@ interface BsGoodsProps {
|
|
|
39
39
|
systemOrders?: any[];
|
|
40
40
|
selectedSystemOrders?: any[];
|
|
41
41
|
}
|
|
42
|
+
type SelectTradeGoodsProps = {
|
|
43
|
+
columns: Array<any>;
|
|
44
|
+
dataSource: Array<any>;
|
|
45
|
+
getDataSourceAsync?: () => Promise<any>;
|
|
46
|
+
uniqueKey?: string;
|
|
47
|
+
selectedRowKeys: Array<React.Key>;
|
|
48
|
+
onChangeSelectedKeys: (p: React.Key[]) => void;
|
|
49
|
+
isGoods?: boolean;
|
|
50
|
+
systemOrders?: any[];
|
|
51
|
+
selectedSystemOrders?: any[];
|
|
52
|
+
type?: string;
|
|
53
|
+
width?: number;
|
|
54
|
+
};
|
|
55
|
+
export declare const SelectTradeGoods: ({ columns, dataSource, getDataSourceAsync, selectedRowKeys, onChangeSelectedKeys, uniqueKey, isGoods, systemOrders, selectedSystemOrders, type, width, }: SelectTradeGoodsProps) => React.JSX.Element;
|
|
42
56
|
declare const GoodItem: (props: Partial<BsGoodsProps>) => React.JSX.Element;
|
|
43
57
|
export default GoodItem;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
3
|
+
export interface ChildItemType {
|
|
4
|
+
title: string;
|
|
5
|
+
dataIndex: string;
|
|
6
|
+
widget: string;
|
|
7
|
+
widgetProps?: Record<string, any>;
|
|
8
|
+
customizeComponent?: (config: any) => React.ReactNode;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
export declare const refundTypeMap: {
|
|
12
|
+
0: string;
|
|
13
|
+
1: string;
|
|
14
|
+
2: string;
|
|
15
|
+
3: string;
|
|
16
|
+
4: string;
|
|
17
|
+
5: string;
|
|
18
|
+
9: string;
|
|
19
|
+
10: string;
|
|
20
|
+
11: string;
|
|
21
|
+
12: string;
|
|
22
|
+
13: string;
|
|
23
|
+
14: string;
|
|
24
|
+
15: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const refundTypeOptions: {
|
|
27
|
+
label: string;
|
|
28
|
+
value: number;
|
|
29
|
+
}[];
|
|
30
|
+
export declare const onlineStatusMap: {
|
|
31
|
+
1: string;
|
|
32
|
+
2: string;
|
|
33
|
+
3: string;
|
|
34
|
+
4: string;
|
|
35
|
+
5: string;
|
|
36
|
+
6: string;
|
|
37
|
+
7: string;
|
|
38
|
+
8: string;
|
|
39
|
+
9: string;
|
|
40
|
+
10: string;
|
|
41
|
+
11: string;
|
|
42
|
+
};
|
|
43
|
+
export declare const onlineStatusOptions: {
|
|
44
|
+
label: string;
|
|
45
|
+
value: number;
|
|
46
|
+
}[];
|
|
47
|
+
export declare const consignTypeMap: {
|
|
48
|
+
1: string;
|
|
49
|
+
0: string;
|
|
50
|
+
};
|
|
51
|
+
export declare const consignTypeOptions: {
|
|
52
|
+
label: string;
|
|
53
|
+
value: number;
|
|
54
|
+
}[];
|
|
55
|
+
type ParmasData = {
|
|
56
|
+
expressData: any[];
|
|
57
|
+
};
|
|
58
|
+
declare const _default: {
|
|
59
|
+
getSelectWidgetMap: (expressDateInstance: ExpressData) => Record<string, any>;
|
|
60
|
+
getOrderSubformColumns: (parmas?: ParmasData | undefined) => ChildItemType[];
|
|
61
|
+
};
|
|
62
|
+
export default _default;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export { default as BsExchange } from './bs/Exchange';
|
|
|
46
46
|
export { default as BsReissue } from './bs/Reissue';
|
|
47
47
|
export { default as BsReturn } from './bs/Return';
|
|
48
48
|
export { default as BsSystemOrder } from './bs/SystemOrder';
|
|
49
|
+
export { default as OrderSubForm } from './apaas/OrderSubForm';
|
|
49
50
|
export { default as WlnGoods } from './wln/Goods';
|
|
50
51
|
export { default as CommonGoods } from './common/CommonGoods';
|
|
51
52
|
export { default as CommonReturnGoods } from './common/CommonReturnGoods';
|
|
@@ -68,6 +69,7 @@ export { default as GyReissue } from './gy/Reissue';
|
|
|
68
69
|
export * from './constants/index';
|
|
69
70
|
export { default as GyReturn } from './gy/Return';
|
|
70
71
|
export { default as KmVideo } from './km/KmVideo';
|
|
72
|
+
export { default as OrderSubFormUtils } from './apaas/OrderSubForm/utils';
|
|
71
73
|
export { default as SkxIdInputSelect } from './skx/IdInputSelect';
|
|
72
74
|
export { default as SkxGoods } from './skx/Goods';
|
|
73
75
|
export { skxUtils } from './skx/common';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0-rc.0",
|
|
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.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.5.0-rc.0",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"bignumber.js": "^9.1.2",
|
|
26
26
|
"kmkf-monitor": "^0.8.9",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "37a143fed0f8a760f5821f1609a2c86ab7d98286"
|
|
69
69
|
}
|