@kmkf-fe-packages/basic-components 2.0.0-rc.1 → 2.0.0-rc.10

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.
@@ -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,7 @@
1
+ type P = {
2
+ disabled: boolean | undefined;
3
+ updateHandle: (v: any, index: number, key: string) => void;
4
+ operate?: boolean;
5
+ };
6
+ export declare const getBsE3ReissueGoodColumns: ({ disabled, updateHandle, operate, }: P) => any[];
7
+ export {};
@@ -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: string[];
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;
@@ -20,6 +20,10 @@ export declare namespace BsE3Goods {
20
20
  uuid: string;
21
21
  canDelete: boolean;
22
22
  num: number;
23
+ colorCode: string;
24
+ colorName: string;
25
+ sizeCode: string;
26
+ sizeName: string;
23
27
  orderPrice: number;
24
28
  sharePrice: number;
25
29
  canUpdateNumber: boolean;
@@ -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,3 @@
1
+ import { GetColumnsBaseInfoMapFnType } from './columnsBaseInfoMap';
2
+ declare const getColumns: GetColumnsBaseInfoMapFnType;
3
+ export default getColumns;
@@ -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;
@@ -0,0 +1,3 @@
1
+ import { GetColumnsBaseInfoMapFnType } from './columnsBaseInfoMap';
2
+ declare const getColumns: GetColumnsBaseInfoMapFnType;
3
+ export default getColumns;
@@ -0,0 +1,3 @@
1
+ import { GetColumnsBaseInfoMapFnType } from './columnsBaseInfoMap';
2
+ declare const getColumns: GetColumnsBaseInfoMapFnType;
3
+ export default getColumns;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const bsE3Reissue: (props: any) => React.JSX.Element;
3
+ export default bsE3Reissue;
@@ -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';
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ getOrderListSingleton: (orderNo: string) => Promise<any>;
3
+ };
4
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.0.0-rc.1",
3
+ "version": "2.0.0-rc.10",
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.1",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.0.0-rc.10",
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": "2d999c6e66d347c6a33cbe92d69fd9f9511445a7"
68
+ "gitHead": "f11ed21234fa598b32fb9c12b423a4a040df7511"
69
69
  }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const FormItem: (props: any) => React.JSX.Element;
3
- export default FormItem;