@kmkf-fe-packages/basic-components 2.0.54-beta.4 → 2.0.54-beta.40
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 +1372 -484
- package/dist/index.js +1371 -481
- package/dist/src/bs/component/GoodItem/constants/bsE3ReissueGoodsColumns.d.ts +1 -1
- package/dist/src/bs/component/GoodItem/constants/index.d.ts +5 -0
- package/dist/src/bs/component/GoodItem/constants/wdtReissueGoodsColumns.d.ts +2 -2
- package/dist/src/bs/component/model/Columns/Erp/km.d.ts +27 -0
- package/dist/src/bs/component/model/Columns/useGetColumns.d.ts +2 -2
- package/dist/src/bs/component/model/JstGoodsModal/index.d.ts +2 -10
- package/dist/src/bs/component/model/KmGoodsModal/GoodsList.d.ts +25 -0
- package/dist/src/bs/component/model/KmGoodsModal/index.d.ts +5 -0
- package/dist/src/bs/component/model/type.d.ts +9 -0
- package/dist/src/common/AsyncSelect/index.d.ts +6 -0
- package/dist/src/constants/columnsBaseInfoMap.d.ts +1 -1
- package/dist/src/constants/index.d.ts +1 -0
- package/dist/src/constants/km.d.ts +3 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/jst/Goods/index.d.ts +2 -0
- package/package.json +3 -3
|
@@ -10,6 +10,6 @@ export declare const getBsE3ReissueGoodColumns: ({ disabled, updateHandle, opera
|
|
|
10
10
|
align: string;
|
|
11
11
|
ellipsis: boolean;
|
|
12
12
|
render?: ((val: any, record: any, index: number) => any) | undefined;
|
|
13
|
-
validator?: ((rule: any, value: any, callback
|
|
13
|
+
validator?: ((rule: any, value: any, callback?: any) => Promise<void> | undefined) | undefined;
|
|
14
14
|
}[];
|
|
15
15
|
export {};
|
|
@@ -12,7 +12,7 @@ export declare const getWdtReissueGoodColumns: ({ disabled, updateHandle, operat
|
|
|
12
12
|
align: string;
|
|
13
13
|
ellipsis: boolean;
|
|
14
14
|
render?: ((val: any, record: any, index: number) => any) | undefined;
|
|
15
|
-
validator?: ((rule: any, value: any, callback
|
|
15
|
+
validator?: ((rule: any, value: any, callback?: any) => Promise<void> | undefined) | undefined;
|
|
16
16
|
} | {
|
|
17
17
|
render: ((val: number) => React.JSX.Element) | ((val: any, record: any, index: number) => React.JSX.Element);
|
|
18
18
|
dataIndex: string;
|
|
@@ -20,6 +20,6 @@ export declare const getWdtReissueGoodColumns: ({ disabled, updateHandle, operat
|
|
|
20
20
|
width?: number | undefined;
|
|
21
21
|
align: string;
|
|
22
22
|
ellipsis: boolean;
|
|
23
|
-
validator?: ((rule: any, value: any, callback
|
|
23
|
+
validator?: ((rule: any, value: any, callback?: any) => Promise<void> | undefined) | undefined;
|
|
24
24
|
})[];
|
|
25
25
|
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: ({
|
|
3
|
+
dataIndex: string;
|
|
4
|
+
title: string;
|
|
5
|
+
width: number;
|
|
6
|
+
ellipsis: boolean;
|
|
7
|
+
render?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
dataIndex: string;
|
|
10
|
+
title: string;
|
|
11
|
+
width: number;
|
|
12
|
+
render: (val: string) => React.JSX.Element;
|
|
13
|
+
ellipsis?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
dataIndex: string;
|
|
16
|
+
title: string;
|
|
17
|
+
ellipsis: boolean;
|
|
18
|
+
width: number;
|
|
19
|
+
render: (val: string) => React.JSX.Element;
|
|
20
|
+
} | {
|
|
21
|
+
dataIndex: string;
|
|
22
|
+
title: string;
|
|
23
|
+
ellipsis: boolean;
|
|
24
|
+
width: number;
|
|
25
|
+
render: (val: boolean) => React.JSX.Element;
|
|
26
|
+
})[];
|
|
27
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ColumnType } from 'antd/es/table';
|
|
3
3
|
type ColumnItemType = {
|
|
4
4
|
dataIndex: string;
|
|
5
5
|
title: string;
|
|
@@ -7,5 +7,5 @@ type ColumnItemType = {
|
|
|
7
7
|
width?: number;
|
|
8
8
|
show?: boolean;
|
|
9
9
|
};
|
|
10
|
-
declare const _default: (type: string) => [
|
|
10
|
+
declare const _default: (type: string) => [ColumnType<ColumnItemType>[], string[], boolean];
|
|
11
11
|
export default _default;
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { JstGoods } from './GoodsList';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
maxLength: number;
|
|
6
|
-
shopList: any[];
|
|
7
|
-
width?: string | number;
|
|
8
|
-
shopCode?: string;
|
|
9
|
-
companyKey: string;
|
|
10
|
-
onSubmit: (goodsList: JstGoods.GoodsInfo[]) => any;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: React.ForwardRefExoticComponent<GoodModelProps & React.RefAttributes<unknown>>;
|
|
3
|
+
import type { ErpGoodModelProps } from '../type';
|
|
4
|
+
declare const _default: React.ForwardRefExoticComponent<ErpGoodModelProps<JstGoods.GoodsInfo[]> & React.RefAttributes<unknown>>;
|
|
13
5
|
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare namespace ErpGoods {
|
|
3
|
+
interface GoodsInfo {
|
|
4
|
+
brandName: string;
|
|
5
|
+
companyKey: string;
|
|
6
|
+
goodId: string;
|
|
7
|
+
goodName: string;
|
|
8
|
+
goodNo: string;
|
|
9
|
+
goodPicUrl: string;
|
|
10
|
+
id: number;
|
|
11
|
+
platform: 'KM_ERP';
|
|
12
|
+
propertiesValue: string;
|
|
13
|
+
skuType: string;
|
|
14
|
+
specId: string;
|
|
15
|
+
specImgUrl: string;
|
|
16
|
+
styleCode: string;
|
|
17
|
+
vcName: string;
|
|
18
|
+
retailPrice: string;
|
|
19
|
+
}
|
|
20
|
+
interface SelectDrawerRefObject {
|
|
21
|
+
getSelectGoodList: () => ErpGoods.GoodsInfo[];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<ErpGoods.SelectDrawerRefObject>>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ErpGoods } from './GoodsList';
|
|
3
|
+
import type { ErpGoodModelProps } from '../type';
|
|
4
|
+
declare const _default: React.ForwardRefExoticComponent<ErpGoodModelProps<ErpGoods.GoodsInfo[]> & React.RefAttributes<unknown>>;
|
|
5
|
+
export default _default;
|
|
@@ -5,7 +5,7 @@ type ColumnsItemType = {
|
|
|
5
5
|
align?: 'left' | 'center' | 'right';
|
|
6
6
|
ellipsis?: boolean;
|
|
7
7
|
render?: (val: any, record: any, index: number) => any;
|
|
8
|
-
validator?: (rule: any, value: any, callback
|
|
8
|
+
validator?: (rule: any, value: any, callback?: any) => Promise<void> | undefined;
|
|
9
9
|
};
|
|
10
10
|
type ColumnsMapType = Record<string, ColumnsItemType[]>;
|
|
11
11
|
export type GetColumnsBaseInfoMapFnType = (...args: any[]) => ColumnsMapType;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export { default as CommonStatus } from './common/CommonStatus';
|
|
|
57
57
|
export { default as CommonSystemOrder } from './common/CommonSystemOrder';
|
|
58
58
|
export { default as CommonMultiStatus } from './common/CommonMultiStatus';
|
|
59
59
|
export { default as MsgStatus } from './common/MsgStatus';
|
|
60
|
+
export { default as AsyncSelect } from './common/AsyncSelect';
|
|
60
61
|
export { default as ParseLogistics } from './common/ParseLogistics';
|
|
61
62
|
export { default as IdentifyAddress } from './common/IdentifyAddress';
|
|
62
63
|
export { default as CalculationInput } from './apaas/CalculationInput';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
2
3
|
interface JstGoodsProps {
|
|
3
4
|
value: any[];
|
|
4
5
|
type: number;
|
|
@@ -8,6 +9,7 @@ interface JstGoodsProps {
|
|
|
8
9
|
showField: string;
|
|
9
10
|
platformType?: string;
|
|
10
11
|
onlyShowFieldSelect: boolean;
|
|
12
|
+
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
11
13
|
}
|
|
12
14
|
declare const jstGoods: (props: Partial<JstGoodsProps>) => React.JSX.Element;
|
|
13
15
|
export default jstGoods;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.0.54-beta.
|
|
3
|
+
"version": "2.0.54-beta.40",
|
|
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.54-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.54-beta.39",
|
|
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": "a791d9451f88880b839f965d57f15faeed051766"
|
|
69
69
|
}
|