@kmkf-fe-packages/basic-components 2.0.0-rc.7 → 2.0.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/README.md +3 -1
- package/dist/index.esm.js +2290 -1144
- package/dist/index.js +2291 -1143
- package/dist/src/apaas/ApaasLogistics/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 +5 -1
- package/dist/src/bs/component/model/GyGoodsList.d.ts +36 -0
- package/dist/src/bs/component/model/GyGoodsModal.d.ts +12 -0
- package/dist/src/common/Goods/RichItem.d.ts +6 -1
- package/dist/src/constants/bs.d.ts +3 -0
- package/dist/src/constants/bs_e3.d.ts +3 -0
- package/dist/src/constants/columnsBaseInfoMap.d.ts +7 -0
- package/dist/src/constants/defaultColumns.d.ts +3 -0
- package/dist/src/constants/gy.d.ts +3 -0
- package/dist/src/constants/wdt.d.ts +3 -0
- package/dist/src/constants/wln.d.ts +3 -0
- package/dist/src/gy/Reissue/index.d.ts +3 -0
- package/dist/src/gy/common/index.d.ts +3 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/jst/Goods/index.d.ts +1 -0
- package/package.json +3 -3
- package/dist/src/bs/component/GoodItem/bsE3ReissueGoodsColumns.d.ts +0 -29
- package/dist/src/bs/component/GoodItem/wdtReissueGoodsColumns.d.ts +0 -22
|
@@ -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;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare namespace BsE3Goods {
|
|
3
|
+
interface GoodsInfo {
|
|
4
|
+
deleted: 0 | 1;
|
|
5
|
+
goodsSn: number;
|
|
6
|
+
goodsName: string;
|
|
7
|
+
goodNo: string;
|
|
8
|
+
imgKey: string;
|
|
9
|
+
imgUrl: string;
|
|
10
|
+
marketPrice: number;
|
|
11
|
+
memberPrice: number;
|
|
12
|
+
retailPrice: number;
|
|
13
|
+
specCode: string;
|
|
14
|
+
specId: string;
|
|
15
|
+
specName: string;
|
|
16
|
+
specNo: string;
|
|
17
|
+
unit: string;
|
|
18
|
+
unitName: string;
|
|
19
|
+
index: number;
|
|
20
|
+
uuid: string;
|
|
21
|
+
canDelete: boolean;
|
|
22
|
+
num: number;
|
|
23
|
+
colorCode: string;
|
|
24
|
+
colorName: string;
|
|
25
|
+
sizeCode: string;
|
|
26
|
+
sizeName: string;
|
|
27
|
+
orderPrice: number;
|
|
28
|
+
sharePrice: number;
|
|
29
|
+
canUpdateNumber: boolean;
|
|
30
|
+
}
|
|
31
|
+
interface SelectDrawerRefObject {
|
|
32
|
+
getSelectGoodList: () => BsE3Goods.GoodsInfo[];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<BsE3Goods.SelectDrawerRefObject>>;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface GoodModelProps {
|
|
3
|
+
shopId: number | string;
|
|
4
|
+
maxLength: number;
|
|
5
|
+
shopList: any[];
|
|
6
|
+
width?: string | number;
|
|
7
|
+
shopCode?: string;
|
|
8
|
+
companyKey: string;
|
|
9
|
+
onSubmit: (...args: any[]) => any;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: React.ForwardRefExoticComponent<GoodModelProps & React.RefAttributes<unknown>>;
|
|
12
|
+
export default _default;
|
|
@@ -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
|
@@ -60,3 +60,5 @@ export { default as CalculationInput } from './apaas/CalculationInput';
|
|
|
60
60
|
export { default as WdtGoodList } from './bs/component/model/WdtGoodList';
|
|
61
61
|
export { default as BsE3Reissue } from './e3/Reissue';
|
|
62
62
|
export type { WdtGoods } from './bs/component/model/WdtGoodList';
|
|
63
|
+
export { default as GyReissue } from './gy/Reissue';
|
|
64
|
+
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
|
|
3
|
+
"version": "2.0.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.0.0
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.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": "0049f4b4a0dd982362714e4e8bcbd662c82c99f4"
|
|
69
69
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type P = {
|
|
3
|
-
disabled: boolean | undefined;
|
|
4
|
-
updateHandle: (v: any, index: number, key: string) => void;
|
|
5
|
-
operate?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare const getBsE3ReissueGoodColumns: ({ disabled, updateHandle, operate }: P) => ({
|
|
8
|
-
dataIndex: string;
|
|
9
|
-
title: string;
|
|
10
|
-
width: number;
|
|
11
|
-
render?: undefined;
|
|
12
|
-
align: string;
|
|
13
|
-
ellipsis: boolean;
|
|
14
|
-
} | {
|
|
15
|
-
dataIndex: string;
|
|
16
|
-
title: string;
|
|
17
|
-
width: number;
|
|
18
|
-
render: (val: number) => React.JSX.Element;
|
|
19
|
-
align: string;
|
|
20
|
-
ellipsis: boolean;
|
|
21
|
-
} | {
|
|
22
|
-
render: (val: any, record: any, index: number) => React.JSX.Element;
|
|
23
|
-
dataIndex: string;
|
|
24
|
-
title: string;
|
|
25
|
-
width: number;
|
|
26
|
-
align: string;
|
|
27
|
-
ellipsis: boolean;
|
|
28
|
-
})[];
|
|
29
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type P = {
|
|
3
|
-
disabled: boolean | undefined;
|
|
4
|
-
updateHandle: (v: any, index: number, key: string) => void;
|
|
5
|
-
operate?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare const getWdtReissueGoodColumns: ({ disabled, updateHandle, operate }: P) => ({
|
|
8
|
-
dataIndex: string;
|
|
9
|
-
title: string;
|
|
10
|
-
width: number;
|
|
11
|
-
render?: undefined;
|
|
12
|
-
align: string;
|
|
13
|
-
ellipsis: boolean;
|
|
14
|
-
} | {
|
|
15
|
-
render: ((val: number) => React.JSX.Element) | ((val: any, record: any, index: number) => React.JSX.Element);
|
|
16
|
-
dataIndex: string;
|
|
17
|
-
title: string;
|
|
18
|
-
width: number;
|
|
19
|
-
align: string;
|
|
20
|
-
ellipsis: boolean;
|
|
21
|
-
})[];
|
|
22
|
-
export {};
|