@kmkf-fe-packages/basic-components 2.0.19-beta.7 → 2.0.19-beta.70
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 +1488 -970
- package/dist/index.js +1489 -967
- package/dist/src/apaas/ApaasUploadProAsync/index.d.ts +20 -0
- package/dist/src/apaas/CopyTextIcon/index.d.ts +5 -0
- package/dist/src/apaas/HoverTableRowDeleteIcon/index.d.ts +8 -0
- package/dist/src/bs/component/model/Columns/Erp/bse3.d.ts +7 -0
- package/dist/src/bs/component/model/Columns/Erp/gy.d.ts +15 -0
- package/dist/src/bs/component/model/Columns/Erp/jst.d.ts +21 -0
- package/dist/src/bs/component/model/Columns/Erp/wdt.d.ts +21 -0
- package/dist/src/bs/component/model/Columns/index.d.ts +5 -0
- package/dist/src/bs/component/model/Columns/useGetColumns.d.ts +11 -0
- package/dist/src/bs/component/model/JstGoodsModal/GoodsList.d.ts +1 -1
- package/dist/src/bs/component/model/components/SearchForm/index.d.ts +18 -0
- package/dist/src/constants/index.d.ts +1 -0
- package/dist/src/index.d.ts +3 -0
- package/package.json +3 -3
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UploadProps } from 'antd';
|
|
3
|
+
declare type UploadValue = {
|
|
4
|
+
url: string;
|
|
5
|
+
name: string;
|
|
6
|
+
}[];
|
|
7
|
+
export interface ApaasUploadProProps extends Omit<UploadProps, 'onChange' | 'value'> {
|
|
8
|
+
maxCount?: number;
|
|
9
|
+
maxSize?: number;
|
|
10
|
+
uploadText?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
onChange?: (value: UploadValue) => void;
|
|
13
|
+
value?: UploadValue;
|
|
14
|
+
uniqueKey?: string;
|
|
15
|
+
hostUrl?: string;
|
|
16
|
+
actionUrl?: string;
|
|
17
|
+
platform?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const _default: React.ForwardRefExoticComponent<ApaasUploadProProps & React.RefAttributes<any>>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface HoverTableRowDeleteIconProps {
|
|
3
|
+
index: number;
|
|
4
|
+
hoveredRowIndex: number | null;
|
|
5
|
+
handleClick: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare function HoverTableRowDeleteIcon({ index, hoveredRowIndex, handleClick, }: HoverTableRowDeleteIconProps): React.JSX.Element;
|
|
8
|
+
export default HoverTableRowDeleteIcon;
|
|
@@ -0,0 +1,15 @@
|
|
|
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: (picUrl: string) => React.JSX.Element;
|
|
13
|
+
ellipsis?: undefined;
|
|
14
|
+
})[];
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
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: (picUrl: string) => React.JSX.Element;
|
|
13
|
+
ellipsis?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
dataIndex: string;
|
|
16
|
+
title: string;
|
|
17
|
+
ellipsis: boolean;
|
|
18
|
+
width: number;
|
|
19
|
+
render: (type?: 'normal' | 'combine') => string;
|
|
20
|
+
})[];
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
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: (picUrl: string) => React.JSX.Element;
|
|
13
|
+
ellipsis?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
dataIndex: string;
|
|
16
|
+
title: string;
|
|
17
|
+
width: number;
|
|
18
|
+
render: (price: string) => string;
|
|
19
|
+
ellipsis?: undefined;
|
|
20
|
+
})[];
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ColumnsType } from 'antd/es/table';
|
|
3
|
+
type ColumnItemType = {
|
|
4
|
+
dataIndex: string;
|
|
5
|
+
title: string;
|
|
6
|
+
render?: (val: any, record: any, index: number) => React.ReactNode;
|
|
7
|
+
width?: number;
|
|
8
|
+
show?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: (type: string) => [ColumnsType<ColumnItemType>, string[], boolean];
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FormInstance } from 'antd';
|
|
3
|
+
type Props = {
|
|
4
|
+
searchFormData: SearchFormData;
|
|
5
|
+
form: FormInstance;
|
|
6
|
+
showColumnsDataIndexList: string[];
|
|
7
|
+
submit: () => void;
|
|
8
|
+
reset: () => void;
|
|
9
|
+
};
|
|
10
|
+
export type SearchFormData = {
|
|
11
|
+
label: string;
|
|
12
|
+
name: string;
|
|
13
|
+
dataIndex?: string;
|
|
14
|
+
type?: undefined | 'input' | 'select';
|
|
15
|
+
formItemProps?: Record<string, any>;
|
|
16
|
+
}[];
|
|
17
|
+
declare function SearchForm({ searchFormData, form, showColumnsDataIndexList, submit, reset, }: Props): React.JSX.Element;
|
|
18
|
+
export default SearchForm;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { default as ApaasTextArea } from './apaas/ApaasTextArea';
|
|
|
8
8
|
export { default as ApaasUpload } from './apaas/ApaasUpload';
|
|
9
9
|
export { default as ApaasRadio } from './apaas/ApaasRadio';
|
|
10
10
|
export { default as ApaasUploadAsync } from './apaas/ApaasUploadAsync';
|
|
11
|
+
export { default as ApaasUploadProAsync } from './apaas/ApaasUploadProAsync';
|
|
11
12
|
export { default as ApaasUploadFile } from './apaas/ApaasUploadFile';
|
|
12
13
|
export { default as ApaasCheckbox } from './apaas/ApaasCheckbox';
|
|
13
14
|
export { default as ApaasSlider } from './apaas/ApaasSlider';
|
|
@@ -17,6 +18,7 @@ export { default as ApaasPosting } from './apaas/ApaasPosting';
|
|
|
17
18
|
export { default as ApaasLogistics } from './apaas/ApaasLogistics';
|
|
18
19
|
export { default as ApaasHoc } from './apaas/hoc/withFormItem';
|
|
19
20
|
export { default as SubForm } from './apaas/SubForm';
|
|
21
|
+
export { default as CopyTextIcon } from './apaas/CopyTextIcon';
|
|
20
22
|
export { default as BuyerNick } from './business/BuyerNick';
|
|
21
23
|
export { default as TradeId } from './business/TradeId';
|
|
22
24
|
export { default as ShopName } from './business/ShopName';
|
|
@@ -65,3 +67,4 @@ export { default as GyReissue } from './gy/Reissue';
|
|
|
65
67
|
export * from './constants/index';
|
|
66
68
|
export { default as GyReturn } from './gy/Return';
|
|
67
69
|
export { default as columnsBaseInfoMap } from './constants/columnsBaseInfoMap';
|
|
70
|
+
export { default as erpModalColumnsMap } from './bs/component/model/Columns';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.0.19-beta.
|
|
3
|
+
"version": "2.0.19-beta.70",
|
|
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.19-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.19-beta.70",
|
|
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": "a3986226dc345c807023e51b5216bf752162b664"
|
|
69
69
|
}
|