@kmkf-fe-packages/basic-components 2.0.0-rc.1 → 2.0.0-rc.11
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/README.md +3 -1
- package/dist/index.esm.js +1979 -913
- package/dist/index.js +1978 -910
- package/dist/src/apaas/ApaasUploadAsync/index.d.ts +1 -0
- package/dist/src/bs/component/GoodItem/constants/bsE3ReissueGoodsColumns.d.ts +7 -0
- package/dist/src/bs/component/GoodItem/constants/wdtReissueGoodsColumns.d.ts +9 -0
- package/dist/src/bs/component/GoodItem/index.d.ts +9 -1
- package/dist/src/bs/component/model/BsE3GoodList.d.ts +4 -0
- package/dist/src/common/Goods/RichItem.d.ts +6 -1
- package/dist/src/constants/bs_e3.d.ts +3 -0
- package/dist/src/constants/columnsBaseInfoMap.d.ts +7 -0
- package/dist/src/constants/wdt.d.ts +3 -0
- package/dist/src/constants/wln.d.ts +3 -0
- package/dist/src/e3/Reissue/index.d.ts +3 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/km/common/index.d.ts +4 -0
- package/package.json +3 -3
- package/dist/src/basics/FormItem/index.d.ts +0 -3
|
@@ -12,6 +12,7 @@ export interface ApaasUploadProps extends Omit<UploadProps, 'onChange' | 'value'
|
|
|
12
12
|
uniqueKey?: string;
|
|
13
13
|
hostUrl?: string;
|
|
14
14
|
actionUrl?: string;
|
|
15
|
+
platform?: string;
|
|
15
16
|
}
|
|
16
17
|
declare const _default: React.ForwardRefExoticComponent<ApaasUploadProps & React.RefAttributes<any>>;
|
|
17
18
|
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const renderGiftType: (val: number) => React.JSX.Element;
|
|
3
|
+
type P = {
|
|
4
|
+
disabled: boolean | undefined;
|
|
5
|
+
updateHandle: (v: any, index: number, key: string) => void;
|
|
6
|
+
operate?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const getWdtReissueGoodColumns: ({ disabled, updateHandle, operate, }: P) => any[];
|
|
9
|
+
export {};
|
|
@@ -4,7 +4,11 @@ interface BsGoodsProps {
|
|
|
4
4
|
type: string;
|
|
5
5
|
options: any[];
|
|
6
6
|
disabled: boolean;
|
|
7
|
-
showHeader:
|
|
7
|
+
showHeader: {
|
|
8
|
+
title: string;
|
|
9
|
+
dataIndex: string;
|
|
10
|
+
show?: boolean;
|
|
11
|
+
}[] | string[];
|
|
8
12
|
width: number;
|
|
9
13
|
shopList: any[];
|
|
10
14
|
shopId: string | number;
|
|
@@ -22,6 +26,10 @@ interface BsGoodsProps {
|
|
|
22
26
|
onSelect: (val: any[]) => void;
|
|
23
27
|
onDelete: (val: any[]) => void;
|
|
24
28
|
onModeChange: (val: boolean) => void;
|
|
29
|
+
tradeGoods?: {
|
|
30
|
+
originDataSource: Array<any>;
|
|
31
|
+
selectedGoodsChange: (p: React.Key[]) => void;
|
|
32
|
+
};
|
|
25
33
|
}
|
|
26
34
|
declare const GoodItem: (props: Partial<BsGoodsProps>) => React.JSX.Element;
|
|
27
35
|
export default GoodItem;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './richItem.less';
|
|
3
|
+
type ShowHeaderObjType = {
|
|
4
|
+
title: string;
|
|
5
|
+
dataIndex: string;
|
|
6
|
+
show?: boolean;
|
|
7
|
+
};
|
|
3
8
|
export interface RichGoodProps {
|
|
4
9
|
isSingleRow: boolean;
|
|
5
10
|
value?: {
|
|
@@ -16,7 +21,7 @@ export interface RichGoodProps {
|
|
|
16
21
|
onChange?: (value: any) => void;
|
|
17
22
|
shopList: any[];
|
|
18
23
|
otherOperations?: React.JSX.Element;
|
|
19
|
-
showHeader?: string[];
|
|
24
|
+
showHeader?: ShowHeaderObjType[] | string[];
|
|
20
25
|
shopId?: string;
|
|
21
26
|
disabled?: boolean;
|
|
22
27
|
changeSku?: boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type ColumnsMapType = {
|
|
2
|
+
[key: string]: any[];
|
|
3
|
+
};
|
|
4
|
+
export type GetColumnsBaseInfoMapFnType = (...args: any[]) => ColumnsMapType;
|
|
5
|
+
export declare const getColumnsMap: GetColumnsBaseInfoMapFnType;
|
|
6
|
+
declare const _default: ColumnsMapType;
|
|
7
|
+
export default _default;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -58,4 +58,6 @@ export { default as ParseLogistics } from './common/ParseLogistics';
|
|
|
58
58
|
export { default as IdentifyAddress } from './common/IdentifyAddress';
|
|
59
59
|
export { default as CalculationInput } from './apaas/CalculationInput';
|
|
60
60
|
export { default as WdtGoodList } from './bs/component/model/WdtGoodList';
|
|
61
|
+
export { default as BsE3Reissue } from './e3/Reissue';
|
|
61
62
|
export type { WdtGoods } from './bs/component/model/WdtGoodList';
|
|
63
|
+
export { default as columnsBaseInfoMap } from './constants/columnsBaseInfoMap';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.11",
|
|
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.0.0-rc.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.0-rc.11",
|
|
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": "f635c0c06fe6aadfb4fadb6da890cfedb7c21aef"
|
|
69
69
|
}
|