@kmkf-fe-packages/basic-components 2.0.53 → 2.0.54-beta.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.
@@ -3,5 +3,13 @@ type P = {
3
3
  updateHandle: (v: any, index: number, key: string) => void;
4
4
  operate?: boolean;
5
5
  };
6
- export declare const getBsE3ReissueGoodColumns: ({ disabled, updateHandle, operate, }: P) => any[];
6
+ export declare const getBsE3ReissueGoodColumns: ({ disabled, updateHandle, operate, }: P) => {
7
+ dataIndex: string;
8
+ title: string;
9
+ width?: number | undefined;
10
+ align: string;
11
+ ellipsis: boolean;
12
+ render?: ((val: any, record: any, index: number) => any) | undefined;
13
+ validator?: ((rule: any, value: any, callback: any) => any) | undefined;
14
+ }[];
7
15
  export {};
@@ -5,5 +5,21 @@ type P = {
5
5
  updateHandle: (v: any, index: number, key: string) => void;
6
6
  operate?: boolean;
7
7
  };
8
- export declare const getWdtReissueGoodColumns: ({ disabled, updateHandle, operate, }: P) => any[];
8
+ export declare const getWdtReissueGoodColumns: ({ disabled, updateHandle, operate, }: P) => ({
9
+ dataIndex: string;
10
+ title: string;
11
+ width?: number | undefined;
12
+ align: string;
13
+ ellipsis: boolean;
14
+ render?: ((val: any, record: any, index: number) => any) | undefined;
15
+ validator?: ((rule: any, value: any, callback: any) => any) | undefined;
16
+ } | {
17
+ render: ((val: number) => React.JSX.Element) | ((val: any, record: any, index: number) => React.JSX.Element);
18
+ dataIndex: string;
19
+ title: string;
20
+ width?: number | undefined;
21
+ align: string;
22
+ ellipsis: boolean;
23
+ validator?: ((rule: any, value: any, callback: any) => any) | undefined;
24
+ })[];
9
25
  export {};
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ dataIndex: string;
3
+ title: string;
4
+ ellipsis: boolean;
5
+ width: number;
6
+ }[];
7
+ export default _default;
@@ -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,5 @@
1
+ type ColumnsMapType = Record<string, any[]>;
2
+ export type GetColumnsBaseInfoMapFnType = (...args: any[]) => ColumnsMapType;
3
+ export declare const getColumnsMap: GetColumnsBaseInfoMapFnType;
4
+ declare const _default: ColumnsMapType;
5
+ 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;
@@ -8,7 +8,7 @@ export declare namespace JstGoods {
8
8
  goodNo: string;
9
9
  goodPicUrl: string;
10
10
  id: number;
11
- platform: "JST_ERP";
11
+ platform: 'JST_ERP';
12
12
  propertiesValue: string;
13
13
  skuType: string;
14
14
  specId: string;
@@ -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;
@@ -1,7 +1,15 @@
1
- type ColumnsMapType = {
2
- [key: string]: any[];
1
+ type ColumnsItemType = {
2
+ dataIndex: string;
3
+ title: string;
4
+ width?: number;
5
+ align?: 'left' | 'center' | 'right';
6
+ ellipsis?: boolean;
7
+ render?: (val: any, record: any, index: number) => any;
8
+ validator?: (rule: any, value: any, callback: any) => any;
3
9
  };
10
+ type ColumnsMapType = Record<string, ColumnsItemType[]>;
4
11
  export type GetColumnsBaseInfoMapFnType = (...args: any[]) => ColumnsMapType;
5
12
  export declare const getColumnsMap: GetColumnsBaseInfoMapFnType;
13
+ export declare const erpColumnsMap: ColumnsMapType;
6
14
  declare const _default: ColumnsMapType;
7
15
  export default _default;
@@ -1,2 +1,4 @@
1
1
  export { default as getJstColumns } from './jst';
2
2
  export { default as getWlnColumns } from './wln';
3
+ export { default as getGyColumns } from './gy';
4
+ export { default as getWdtColumns } from './wdt';
@@ -66,4 +66,5 @@ export type { WdtGoods } from './bs/component/model/WdtGoodList';
66
66
  export { default as GyReissue } from './gy/Reissue';
67
67
  export * from './constants/index';
68
68
  export { default as GyReturn } from './gy/Return';
69
- export { default as columnsBaseInfoMap } from './constants/columnsBaseInfoMap';
69
+ export { default as columnsBaseInfoMap, erpColumnsMap, } 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.53",
3
+ "version": "2.0.54-beta.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": "2.0.53",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.0.54-beta.1",
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": "86a3782c0be268ccf13b109778bd4751ddafc1a5"
68
+ "gitHead": "8a017f7ef5b96fcb7b4de05cdca949e0a7250623"
69
69
  }