@kmkf-fe-packages/basic-components 1.22.6 → 1.23.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.
- package/dist/index.esm.js +1210 -1015
- package/dist/index.js +1210 -1014
- 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 copy.d.ts +36 -0
- package/dist/src/bs/component/GoodItem/index.d.ts +5 -1
- package/dist/src/common/Goods/RichItem copy.d.ts +26 -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/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 {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface BsGoodsProps {
|
|
3
|
+
value: any[];
|
|
4
|
+
type: string;
|
|
5
|
+
options: any[];
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
showHeader: string[];
|
|
8
|
+
columnsSetting: {
|
|
9
|
+
title: string;
|
|
10
|
+
dataIndex: string;
|
|
11
|
+
show?: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
width: number;
|
|
14
|
+
shopList: any[];
|
|
15
|
+
shopId: string | number;
|
|
16
|
+
maxLength: number;
|
|
17
|
+
showChangeBtn: boolean;
|
|
18
|
+
showModeBtn: boolean;
|
|
19
|
+
isStrict: boolean;
|
|
20
|
+
tableSelect?: boolean;
|
|
21
|
+
selectType?: string;
|
|
22
|
+
otherOperations: any;
|
|
23
|
+
canUpdateNumber: boolean;
|
|
24
|
+
shopCode: string;
|
|
25
|
+
companyKey: string;
|
|
26
|
+
onChange: (val: any[]) => void;
|
|
27
|
+
onSelect: (val: any[]) => void;
|
|
28
|
+
onDelete: (val: any[]) => void;
|
|
29
|
+
onModeChange: (val: boolean) => void;
|
|
30
|
+
tradeGoods?: {
|
|
31
|
+
originDataSource: Array<any>;
|
|
32
|
+
selectedGoodsChange: (p: React.Key[]) => void;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
declare const GoodItem: (props: Partial<BsGoodsProps>) => React.JSX.Element;
|
|
36
|
+
export default GoodItem;
|
|
@@ -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,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './richItem.less';
|
|
3
|
+
export interface RichGoodProps {
|
|
4
|
+
isSingleRow: boolean;
|
|
5
|
+
value?: {
|
|
6
|
+
shopId: string;
|
|
7
|
+
imgList: any[];
|
|
8
|
+
};
|
|
9
|
+
showChangeBtn?: boolean;
|
|
10
|
+
type?: number;
|
|
11
|
+
enableItemId?: boolean;
|
|
12
|
+
enableSupplierName?: boolean;
|
|
13
|
+
userNick?: string;
|
|
14
|
+
maxLength: number;
|
|
15
|
+
canUpdateNumber?: boolean;
|
|
16
|
+
onChange?: (value: any) => void;
|
|
17
|
+
shopList: any[];
|
|
18
|
+
otherOperations?: React.JSX.Element;
|
|
19
|
+
showHeader?: string[];
|
|
20
|
+
shopId?: string;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
changeSku?: boolean;
|
|
23
|
+
width?: string | number;
|
|
24
|
+
}
|
|
25
|
+
declare const GoodItem: (props: Partial<RichGoodProps>) => React.JSX.Element;
|
|
26
|
+
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
|
@@ -60,3 +60,4 @@ 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 columnsBaseInfoMap } from './constants/columnsBaseInfoMap';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.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": "1.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "1.23.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": "194a57251ac83b99ad01b9bd215e94527aa740fa"
|
|
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 {};
|