@kmkf-fe-packages/services-components 0.6.3-alpha.36 → 0.6.3-alpha.38
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/esm/commonComponents/ItemView/index.d.ts +2 -2
- package/dist/esm/commonComponents/OperationLog/index.d.ts +1 -2
- package/dist/esm/commonComponents/PlatBuyer/index.d.ts +2 -2
- package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +2 -2
- package/dist/esm/commonComponents/ShopList/index.d.ts +2 -2
- package/dist/esm/commonComponents/Wangwang/index.d.ts +2 -2
- package/dist/esm/components/ActualPayment/index.d.ts +5 -5
- package/dist/esm/components/Address/index.d.ts +5 -5
- package/dist/esm/components/Alipay/index.d.ts +4 -5
- package/dist/esm/components/AlipayAccount/index.d.ts +5 -5
- package/dist/esm/components/AlipayName/index.d.ts +5 -5
- package/dist/esm/components/BuyerNick/index.d.ts +5 -5
- package/dist/esm/components/Cascader/index.d.ts +5 -5
- package/dist/esm/components/Checkbox/index.d.ts +4 -4
- package/dist/esm/components/Common/index.d.ts +5 -5
- package/dist/esm/components/CommonDataTime/index.d.ts +4 -4
- package/dist/esm/components/CompletedUser/index.d.ts +2 -2
- package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
- package/dist/esm/components/DataTime/index.d.ts +6 -6
- package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
- package/dist/esm/components/EItemEnCode/index.d.ts +5 -5
- package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
- package/dist/esm/components/EItemId/index.d.ts +5 -5
- package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
- package/dist/esm/components/EItemSelect/index.d.ts +5 -5
- package/dist/esm/components/ErpTradeId/index.d.ts +5 -5
- package/dist/esm/components/Express/index.d.ts +5 -5
- package/dist/esm/components/ExpressCode/index.d.ts +5 -5
- package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
- package/dist/esm/components/FlowStatusSelect/index.d.ts +5 -5
- package/dist/esm/components/GetFormItem/index.d.ts +2 -2
- package/dist/esm/components/Grade/index.d.ts +5 -5
- package/dist/esm/components/Handler/index.d.ts +2 -2
- package/dist/esm/components/Input/index.d.ts +5 -5
- package/dist/esm/components/JstItemSelect/index.d.ts +5 -5
- package/dist/esm/components/JstLogistics/index.d.ts +5 -5
- package/dist/esm/components/JstSendGood/index.d.ts +5 -5
- package/dist/esm/components/JstSupply/index.d.ts +5 -5
- package/dist/esm/components/Logistics/index.d.ts +4 -4
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +5 -5
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +2 -2
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +7 -7
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +2 -2
- package/dist/esm/components/LogisticsInterception/index.d.ts +6 -6
- package/dist/esm/components/LogisticsInterception/index.js +11 -12
- package/dist/esm/components/MultSelect/index.d.ts +5 -5
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +3 -3
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +3 -3
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +3 -3
- package/dist/esm/components/Ordinary/index.d.ts +4 -4
- package/dist/esm/components/OrdinaryHeader/index.d.ts +2 -2
- package/dist/esm/components/Payment/AlipayNick.d.ts +5 -5
- package/dist/esm/components/Payment/AlipayNo.d.ts +5 -5
- package/dist/esm/components/Payment/AlipayTime.d.ts +5 -5
- package/dist/esm/components/Payment/BuyerNick.d.ts +5 -5
- package/dist/esm/components/Payment/PaymentAmount.d.ts +5 -5
- package/dist/esm/components/Payment/PaymentStatus.d.ts +2 -2
- package/dist/esm/components/Payment/PaymentTid.d.ts +5 -5
- package/dist/esm/components/Payment/index.d.ts +4 -7
- package/dist/esm/components/Picture/index.d.ts +6 -6
- package/dist/esm/components/PlatForm/index.d.ts +3 -3
- package/dist/esm/components/Popover/index.d.ts +2 -2
- package/dist/esm/components/Radio/index.d.ts +6 -6
- package/dist/esm/components/Rate/index.d.ts +6 -6
- package/dist/esm/components/ReceiverAddress/index.d.ts +6 -6
- package/dist/esm/components/ReceiverMobile/index.d.ts +5 -5
- package/dist/esm/components/ReceiverName/index.d.ts +5 -5
- package/dist/esm/components/Remark/index.d.ts +6 -6
- package/dist/esm/components/ReturnLogistics/index.d.ts +4 -4
- package/dist/esm/components/Select/index.d.ts +5 -5
- package/dist/esm/components/ShopInput/index.d.ts +2 -2
- package/dist/esm/components/ShopName/index.d.ts +5 -5
- package/dist/esm/components/Submitter/index.d.ts +2 -2
- package/dist/esm/components/SystemOrderNo/index.d.ts +5 -5
- package/dist/esm/components/TemplateSelect/index.d.ts +3 -3
- package/dist/esm/components/TextArea/index.d.ts +5 -5
- package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
- package/dist/esm/components/ThirdItemSelect/index.d.ts +5 -5
- package/dist/esm/components/TradeDateTime/index.d.ts +6 -6
- package/dist/esm/components/TradeId/index.d.ts +5 -5
- package/dist/esm/components/WorkOrderId/index.d.ts +4 -4
- package/dist/esm/type.d.ts +11 -14
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
declare class PaymentTid implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -11,12 +11,12 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
13
|
constructor(options: PickOption);
|
|
14
|
-
renderClient: (record: any) =>
|
|
15
|
-
renderPc: (value: unknown, record: any) =>
|
|
16
|
-
renderLog: (r: Record) =>
|
|
14
|
+
renderClient: (record: any) => JSX.Element | null;
|
|
15
|
+
renderPc: (value: unknown, record: any) => JSX.Element;
|
|
16
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
17
17
|
getComponentValue: (r: Record) => any;
|
|
18
18
|
renderExport: (value: string) => string;
|
|
19
|
-
editRender: () =>
|
|
19
|
+
editRender: () => JSX.Element;
|
|
20
20
|
filterConfig: (item: ColumnConfig) => {
|
|
21
21
|
type: string;
|
|
22
22
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
import AlipayNick from './AlipayNick';
|
|
4
4
|
import AlipayNo from './AlipayNo';
|
|
5
5
|
import AlipayTime from './AlipayTime';
|
|
@@ -23,9 +23,9 @@ declare class Logistics implements ComponentInterface {
|
|
|
23
23
|
isCombinationComponent: boolean;
|
|
24
24
|
children: ComponentInterface[];
|
|
25
25
|
constructor(options: PickOption);
|
|
26
|
-
renderClient: (record: any) =>
|
|
26
|
+
renderClient: (record: any) => JSX.Element;
|
|
27
27
|
renderPc: () => null;
|
|
28
|
-
renderLog: (record: Record) =>
|
|
28
|
+
renderLog: (record: Record) => JSX.Element;
|
|
29
29
|
getComponentValue: (r: Record) => {
|
|
30
30
|
enterprisePaymentAlipayNick: any;
|
|
31
31
|
enterprisePaymentAlipayNo: any;
|
|
@@ -36,15 +36,13 @@ declare class Logistics implements ComponentInterface {
|
|
|
36
36
|
enterprisePaymentTime: any;
|
|
37
37
|
};
|
|
38
38
|
renderExport: () => null;
|
|
39
|
-
editRender: (value: any) =>
|
|
39
|
+
editRender: (value: any) => JSX.Element;
|
|
40
40
|
filterConfig: (item: ColumnConfig) => ({
|
|
41
|
-
type: string;
|
|
42
41
|
id: string;
|
|
43
42
|
name: string;
|
|
44
43
|
filterComponentType: "Input";
|
|
45
44
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
46
45
|
} | {
|
|
47
|
-
type: string;
|
|
48
46
|
id: string;
|
|
49
47
|
name: string;
|
|
50
48
|
filterComponentType: "MultipleSelect";
|
|
@@ -54,7 +52,6 @@ declare class Logistics implements ComponentInterface {
|
|
|
54
52
|
}[];
|
|
55
53
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
56
54
|
} | {
|
|
57
|
-
type: string;
|
|
58
55
|
id: string;
|
|
59
56
|
name: string;
|
|
60
57
|
filterComponentType: "Input";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
declare type Value = string[] | undefined;
|
|
4
4
|
declare class BasicPicture implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
@@ -11,12 +11,12 @@ declare class BasicPicture implements ComponentInterface {
|
|
|
11
11
|
children: ComponentInterface[];
|
|
12
12
|
constructor(options: PickOption);
|
|
13
13
|
formatPictures: (pictures: string) => string[];
|
|
14
|
-
render: (value: Value) =>
|
|
15
|
-
renderPc: (value: any, record: Record) =>
|
|
16
|
-
renderLog: (r: Record) =>
|
|
14
|
+
render: (value: Value) => JSX.Element | null;
|
|
15
|
+
renderPc: (value: any, record: Record) => JSX.Element | JSX.Element[];
|
|
16
|
+
renderLog: (r: Record) => JSX.Element | JSX.Element[] | null;
|
|
17
17
|
getComponentValue: (r: Record) => any;
|
|
18
|
-
renderClient: (record: any) =>
|
|
19
|
-
editRender: () =>
|
|
18
|
+
renderClient: (record: any) => JSX.Element | null;
|
|
19
|
+
editRender: () => JSX.Element;
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
22
|
* @returns 图片类型的导出需要在导出时单独处理
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ComponentInterface, ColumnConfig, Record } from '../../type';
|
|
3
3
|
import { PlatData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare class PlatForm implements ComponentInterface {
|
|
@@ -10,9 +10,9 @@ declare class PlatForm implements ComponentInterface {
|
|
|
10
10
|
children: ComponentInterface[];
|
|
11
11
|
platInstance: PlatData;
|
|
12
12
|
constructor();
|
|
13
|
-
renderPc: (value: any, record: Record) =>
|
|
13
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
14
14
|
renderExport: (value: any, record: Record) => string;
|
|
15
|
-
renderLog: (r: Record) =>
|
|
15
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
16
16
|
getComponentValue: (r: Record) => any;
|
|
17
17
|
renderClient: () => null;
|
|
18
18
|
editRender: () => null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const Popover: ({ Overlay, ShowComponent }: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Popover: ({ Overlay, ShowComponent }: any) => JSX.Element;
|
|
3
3
|
export default Popover;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
declare type Value = {
|
|
4
4
|
value?: string;
|
|
5
5
|
other?: string;
|
|
@@ -13,16 +13,16 @@ declare class BasicRadio implements ComponentInterface {
|
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
constructor(options: PickOption);
|
|
16
|
-
render: (value: Value) =>
|
|
17
|
-
renderPc: (value: any, record: Record) =>
|
|
18
|
-
renderLog: (r: Record) =>
|
|
16
|
+
render: (value: Value) => JSX.Element;
|
|
17
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
18
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
19
19
|
getComponentValue: (r: Record) => {
|
|
20
20
|
value: any;
|
|
21
21
|
other: any;
|
|
22
22
|
};
|
|
23
23
|
renderExport: (value: any, record: Record) => string;
|
|
24
|
-
renderClient: (record: Record) =>
|
|
25
|
-
editRender: () =>
|
|
24
|
+
renderClient: (record: Record) => JSX.Element | null;
|
|
25
|
+
editRender: () => JSX.Element;
|
|
26
26
|
filterConfig: (item: ColumnConfig) => {
|
|
27
27
|
type: string;
|
|
28
28
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
declare type Value = {
|
|
4
4
|
name: string;
|
|
5
5
|
value: number;
|
|
@@ -17,13 +17,13 @@ declare class BasicRate implements ComponentInterface {
|
|
|
17
17
|
isCombinationComponent: boolean;
|
|
18
18
|
children: ComponentInterface[];
|
|
19
19
|
constructor(options: PickOption);
|
|
20
|
-
render: (value: Value) =>
|
|
21
|
-
renderClient: (record: Record) =>
|
|
22
|
-
renderPc: (value: any, record: Record) =>
|
|
23
|
-
renderLog: (r: Record) =>
|
|
20
|
+
render: (value: Value) => JSX.Element;
|
|
21
|
+
renderClient: (record: Record) => JSX.Element | null;
|
|
22
|
+
renderPc: (value: any, record: Record) => JSX.Element | null;
|
|
23
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
24
24
|
getComponentValue: (r: Record) => any;
|
|
25
25
|
renderExport: (value: any, record: any) => any;
|
|
26
|
-
editRender: () =>
|
|
26
|
+
editRender: () => JSX.Element;
|
|
27
27
|
filterConfig: () => never[];
|
|
28
28
|
}
|
|
29
29
|
export default BasicRate;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare type Value = {
|
|
5
5
|
address?: (string | number)[];
|
|
@@ -16,17 +16,17 @@ declare class BasicInput implements ComponentInterface {
|
|
|
16
16
|
children: ComponentInterface[];
|
|
17
17
|
addressDateInstance: AddressData;
|
|
18
18
|
constructor(options: PickOption);
|
|
19
|
-
render: (value: Value) =>
|
|
19
|
+
render: (value: Value) => JSX.Element;
|
|
20
20
|
transTextToNumber: (value?: string) => string | number | undefined;
|
|
21
|
-
renderPc: (value: any, record: Record) =>
|
|
22
|
-
renderLog: (r: Record) =>
|
|
21
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
22
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
23
23
|
getComponentValue: (r: Record) => {
|
|
24
24
|
address: any[];
|
|
25
25
|
detail: any;
|
|
26
26
|
};
|
|
27
27
|
renderExport: (value: any, record: any) => string;
|
|
28
|
-
renderClient: (record: any) =>
|
|
29
|
-
editRender: () =>
|
|
28
|
+
renderClient: (record: any) => JSX.Element | null;
|
|
29
|
+
editRender: () => JSX.Element;
|
|
30
30
|
filterConfig: () => never[];
|
|
31
31
|
}
|
|
32
32
|
export default BasicInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
declare class ReceiverMobile implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -10,12 +10,12 @@ declare class ReceiverMobile implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
children: ComponentInterface[];
|
|
12
12
|
constructor(options: PickOption);
|
|
13
|
-
renderClient: (record: Record) =>
|
|
14
|
-
renderPc: (value: any, record: Record) =>
|
|
15
|
-
renderLog: (r: Record) =>
|
|
13
|
+
renderClient: (record: Record) => JSX.Element | null;
|
|
14
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
16
16
|
getComponentValue: (r: Record) => any;
|
|
17
17
|
renderExport: (value: any, record: Record) => any;
|
|
18
|
-
editRender: (value: any) =>
|
|
18
|
+
editRender: (value: any) => JSX.Element;
|
|
19
19
|
filterConfig: (item: ColumnConfig) => {
|
|
20
20
|
type: string;
|
|
21
21
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
declare class ReceiverName implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -10,12 +10,12 @@ declare class ReceiverName implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
children: ComponentInterface[];
|
|
12
12
|
constructor(options: PickOption);
|
|
13
|
-
renderClient: (record: any) =>
|
|
14
|
-
renderPc: (value: any, record: Record) =>
|
|
15
|
-
renderLog: (r: Record) =>
|
|
13
|
+
renderClient: (record: any) => JSX.Element | null;
|
|
14
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
16
16
|
getComponentValue: (r: Record) => any;
|
|
17
17
|
renderExport: (value: any, record: Record) => any;
|
|
18
|
-
editRender: () =>
|
|
18
|
+
editRender: () => JSX.Element;
|
|
19
19
|
filterConfig: (item: ColumnConfig) => {
|
|
20
20
|
type: string;
|
|
21
21
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
declare type Value = {
|
|
4
4
|
flag?: number | string;
|
|
5
5
|
remark?: string;
|
|
@@ -15,16 +15,16 @@ declare class ERemark implements ComponentInterface {
|
|
|
15
15
|
isCombinationComponent: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
17
|
constructor(options: PickOption);
|
|
18
|
-
render: (value: Value) =>
|
|
19
|
-
renderClient: (record: Record) =>
|
|
20
|
-
renderPc: (value: unknown, record: Record) =>
|
|
21
|
-
renderLog: (r: Record) =>
|
|
18
|
+
render: (value: Value) => JSX.Element;
|
|
19
|
+
renderClient: (record: Record) => JSX.Element | null;
|
|
20
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
21
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
22
22
|
getComponentValue: (r: Record) => {
|
|
23
23
|
remark: any;
|
|
24
24
|
flag: any;
|
|
25
25
|
};
|
|
26
26
|
renderExport: (value: unknown, record: Record) => any;
|
|
27
|
-
editRender: () =>
|
|
27
|
+
editRender: () => JSX.Element;
|
|
28
28
|
filterConfig: (item: ColumnConfig) => {
|
|
29
29
|
type: string;
|
|
30
30
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, DataType, Record, ColumnConfig } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
import Express from '../Express';
|
|
5
5
|
import ExpressCode from '../ExpressCode';
|
|
@@ -20,15 +20,15 @@ declare class ReturnLogistics implements ComponentInterface {
|
|
|
20
20
|
isCombinationComponent: boolean;
|
|
21
21
|
children: ComponentInterface[];
|
|
22
22
|
constructor(options: PickOption);
|
|
23
|
-
renderClient: (record: any) =>
|
|
23
|
+
renderClient: (record: any) => JSX.Element;
|
|
24
24
|
renderPc: () => null;
|
|
25
|
-
renderLog: (r: Record) =>
|
|
25
|
+
renderLog: (r: Record) => JSX.Element;
|
|
26
26
|
getComponentValue: (r: Record) => {
|
|
27
27
|
company: any;
|
|
28
28
|
order: any;
|
|
29
29
|
};
|
|
30
30
|
renderExport: () => null;
|
|
31
|
-
editRender: (value: any) =>
|
|
31
|
+
editRender: (value: any) => JSX.Element;
|
|
32
32
|
filterConfig: (item: ColumnConfig) => ({
|
|
33
33
|
type: string;
|
|
34
34
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
declare class BasicSelect implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -9,10 +9,10 @@ declare class BasicSelect implements ComponentInterface {
|
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
10
|
children: ComponentInterface[];
|
|
11
11
|
constructor(options: PickOption);
|
|
12
|
-
editRender: () =>
|
|
13
|
-
renderClient: (record: any) =>
|
|
14
|
-
renderPc: (value: any, record: Record) =>
|
|
15
|
-
renderLog: (r: Record) =>
|
|
12
|
+
editRender: () => JSX.Element;
|
|
13
|
+
renderClient: (record: any) => JSX.Element | null;
|
|
14
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
16
16
|
getComponentValue: (r: Record) => any;
|
|
17
17
|
renderExport: (value: any, record: Record) => any;
|
|
18
18
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ComponentInterface, ColumnConfig, Record, PickOption } from '../../type';
|
|
3
3
|
declare class ShopInput implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
@@ -9,7 +9,7 @@ declare class ShopInput implements ComponentInterface {
|
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
10
|
children: ComponentInterface[];
|
|
11
11
|
constructor(options: PickOption);
|
|
12
|
-
renderPc: (shopName: unknown, record: any) =>
|
|
12
|
+
renderPc: (shopName: unknown, record: any) => JSX.Element;
|
|
13
13
|
renderLog: (record: Record) => any;
|
|
14
14
|
getComponentValue: (r: Record) => any;
|
|
15
15
|
renderExport: (value: any, record: Record) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
declare class BasicInput implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -9,12 +9,12 @@ declare class BasicInput implements ComponentInterface {
|
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
10
|
children: ComponentInterface[];
|
|
11
11
|
constructor(options: PickOption);
|
|
12
|
-
renderClient: (record: any) =>
|
|
13
|
-
renderPc: (value: any, record: Record) =>
|
|
14
|
-
renderLog: (r: Record) =>
|
|
12
|
+
renderClient: (record: any) => JSX.Element | null;
|
|
13
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
14
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
15
15
|
getComponentValue: (r: Record) => any;
|
|
16
16
|
renderExport: (value: any, record: Record) => any;
|
|
17
|
-
editRender: () =>
|
|
17
|
+
editRender: () => JSX.Element;
|
|
18
18
|
filterConfig: (item: ColumnConfig) => {
|
|
19
19
|
type: string;
|
|
20
20
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ComponentInterface, ColumnConfig, Record, PickOption } from '../../type';
|
|
3
3
|
declare class Submitter implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
@@ -9,7 +9,7 @@ declare class Submitter implements ComponentInterface {
|
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
10
|
children: ComponentInterface[];
|
|
11
11
|
constructor(options: PickOption);
|
|
12
|
-
renderPc: (value: unknown, record: Record) =>
|
|
12
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
13
13
|
renderLog: () => null;
|
|
14
14
|
getComponentValue: (r: Record) => any;
|
|
15
15
|
renderExport: (value: any, record: Record) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
declare class SystemOrderNo implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -10,12 +10,12 @@ declare class SystemOrderNo implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
children: ComponentInterface[];
|
|
12
12
|
constructor(options: PickOption);
|
|
13
|
-
renderClient: (record: Record) =>
|
|
14
|
-
renderPc: (value: unknown, record: Record) =>
|
|
15
|
-
renderLog: (r: Record) =>
|
|
13
|
+
renderClient: (record: Record) => JSX.Element | null;
|
|
14
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
16
16
|
getComponentValue: (r: Record) => any;
|
|
17
17
|
renderExport: (value: string, record: Record) => any;
|
|
18
|
-
editRender: () =>
|
|
18
|
+
editRender: () => JSX.Element;
|
|
19
19
|
filterConfig: (item: ColumnConfig) => {
|
|
20
20
|
type: string;
|
|
21
21
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
declare class TemplateSelect implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -10,8 +10,8 @@ declare class TemplateSelect implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
children: ComponentInterface[];
|
|
12
12
|
constructor(options: PickOption);
|
|
13
|
-
renderPc: (value: any, record: Record) =>
|
|
14
|
-
renderLog: (r: Record) =>
|
|
13
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
14
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
15
15
|
getComponentValue: (r: Record) => any;
|
|
16
16
|
renderExport: (value: any, record: Record) => string;
|
|
17
17
|
renderClient: () => null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
declare class BasicInput implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -9,12 +9,12 @@ declare class BasicInput implements ComponentInterface {
|
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
10
|
children: ComponentInterface[];
|
|
11
11
|
constructor(options: PickOption);
|
|
12
|
-
renderPc: (value: any, record: Record) =>
|
|
13
|
-
renderLog: (r: Record) =>
|
|
12
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
13
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
14
14
|
getComponentValue: (r: Record) => any;
|
|
15
15
|
renderExport: (value: any, record: Record) => any;
|
|
16
|
-
renderClient: (record: Record) =>
|
|
17
|
-
editRender: () =>
|
|
16
|
+
renderClient: (record: Record) => JSX.Element | null;
|
|
17
|
+
editRender: () => JSX.Element;
|
|
18
18
|
filterConfig: (item: ColumnConfig) => {
|
|
19
19
|
type: string;
|
|
20
20
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
|
|
3
|
-
declare const ItemEncode: (props: JSX.IntrinsicAttributes & GoodsProps) =>
|
|
3
|
+
declare const ItemEncode: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
|
|
4
4
|
export default ItemEncode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
declare class ThirdItemSelect implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -10,12 +10,12 @@ declare class ThirdItemSelect implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
children: ComponentInterface[];
|
|
12
12
|
constructor(options: PickOption);
|
|
13
|
-
renderClient: (record: Record) =>
|
|
14
|
-
renderPc: (value: any, record: Record) =>
|
|
15
|
-
renderLog: (r: Record) =>
|
|
13
|
+
renderClient: (record: Record) => JSX.Element | null;
|
|
14
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
16
16
|
getComponentValue: (r: Record) => any;
|
|
17
17
|
renderExport: (value: any, record: Record) => any;
|
|
18
|
-
editRender: () =>
|
|
18
|
+
editRender: () => JSX.Element;
|
|
19
19
|
filterConfig: (item: ColumnConfig) => {
|
|
20
20
|
type: string;
|
|
21
21
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, DataType, Record, ColumnConfig } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
declare type Value = string | string[] | undefined;
|
|
4
4
|
declare class BasicDataTime implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
@@ -16,13 +16,13 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
16
16
|
children: ComponentInterface[];
|
|
17
17
|
dataMap: Record;
|
|
18
18
|
constructor(options: PickOption);
|
|
19
|
-
render: (value: Value) =>
|
|
20
|
-
renderClient: (record: any) =>
|
|
21
|
-
renderPc: (value: unknown, record: Record) =>
|
|
22
|
-
renderLog: (r: Record) =>
|
|
19
|
+
render: (value: Value) => JSX.Element;
|
|
20
|
+
renderClient: (record: any) => JSX.Element | null;
|
|
21
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
22
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
23
23
|
getComponentValue: (r: Record) => any;
|
|
24
24
|
renderExport: (value: unknown, record: Record) => any;
|
|
25
|
-
editRender: () =>
|
|
25
|
+
editRender: () => JSX.Element;
|
|
26
26
|
getKeyByComponentType: (type: string) => "tradeCreateDateTime" | "tradePaymentDateTime" | "tradeDeliveryDateTime" | "tradeClosingDateTime" | undefined;
|
|
27
27
|
filterConfig: (item: ColumnConfig) => {
|
|
28
28
|
type: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, DataType, Record, ColumnConfig } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
declare class ETradeId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -16,12 +16,12 @@ declare class ETradeId implements ComponentInterface {
|
|
|
16
16
|
isCombinationComponent: boolean;
|
|
17
17
|
children: ComponentInterface[];
|
|
18
18
|
constructor(options: PickOption);
|
|
19
|
-
renderClient: (record: any) =>
|
|
20
|
-
renderPc: (value: unknown, record: Record) =>
|
|
21
|
-
renderLog: (r: Record) =>
|
|
19
|
+
renderClient: (record: any) => JSX.Element | null;
|
|
20
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
21
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
22
22
|
getComponentValue: (r: Record) => any;
|
|
23
23
|
renderExport: (value: unknown, record: Record) => any;
|
|
24
|
-
editRender: (value: any) =>
|
|
24
|
+
editRender: (value: any) => JSX.Element;
|
|
25
25
|
filterConfig: (item: ColumnConfig) => {
|
|
26
26
|
type: string;
|
|
27
27
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
declare class WorkOrderId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -11,12 +11,12 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
11
11
|
children: ComponentInterface[];
|
|
12
12
|
constructor(options: PickOption);
|
|
13
13
|
copyHandle: (text: string) => void;
|
|
14
|
-
renderPc: (value: any, record: any) =>
|
|
15
|
-
renderLog: (r: Record) =>
|
|
14
|
+
renderPc: (value: any, record: any) => JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
16
16
|
getComponentValue: (r: Record) => any;
|
|
17
17
|
renderExport: (value: any, record: any) => any;
|
|
18
18
|
renderClient: () => null;
|
|
19
|
-
editRender: () =>
|
|
19
|
+
editRender: () => JSX.Element;
|
|
20
20
|
filterConfig: (item: ColumnConfig) => {
|
|
21
21
|
type: string;
|
|
22
22
|
id: string;
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FormInstance } from
|
|
3
|
-
export declare type DataType =
|
|
4
|
-
export declare type ALignType =
|
|
2
|
+
import type { FormInstance } from "antd";
|
|
3
|
+
export declare type DataType = "string" | "number" | "array" | "dateArray" | "date" | "tradeId";
|
|
4
|
+
export declare type ALignType = "left" | "right" | "center";
|
|
5
5
|
export declare type Record = {
|
|
6
6
|
[props in string]: any;
|
|
7
7
|
};
|
|
@@ -13,7 +13,7 @@ export declare type FilterConfigType = {
|
|
|
13
13
|
filterComponentType: FilterComponentType;
|
|
14
14
|
filterFn?: (p: any) => (r: Record) => unknown;
|
|
15
15
|
};
|
|
16
|
-
export declare type FilterComponentType =
|
|
16
|
+
export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList";
|
|
17
17
|
export interface ComponentInterface {
|
|
18
18
|
id: string;
|
|
19
19
|
name: string;
|
|
@@ -26,7 +26,7 @@ export interface ComponentInterface {
|
|
|
26
26
|
/**
|
|
27
27
|
* @description 组件下标
|
|
28
28
|
* @deprecated 已弃用字段,后续版本不在使用
|
|
29
|
-
|
|
29
|
+
*/
|
|
30
30
|
formItemIndex?: number;
|
|
31
31
|
componentConfig?: {
|
|
32
32
|
/**
|
|
@@ -44,7 +44,7 @@ export interface ComponentInterface {
|
|
|
44
44
|
/**
|
|
45
45
|
* @description 显示字段名称
|
|
46
46
|
*/
|
|
47
|
-
showField?:
|
|
47
|
+
showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "all";
|
|
48
48
|
/**
|
|
49
49
|
* @description 是否选择SKU
|
|
50
50
|
*/
|
|
@@ -64,7 +64,7 @@ export interface ComponentInterface {
|
|
|
64
64
|
/**
|
|
65
65
|
* @description 备注状态
|
|
66
66
|
*/
|
|
67
|
-
associatedType?:
|
|
67
|
+
associatedType?: "APPEND";
|
|
68
68
|
isAssociated?: boolean;
|
|
69
69
|
isShowFlag?: boolean;
|
|
70
70
|
/**
|
|
@@ -97,7 +97,7 @@ export interface ComponentInterface {
|
|
|
97
97
|
* @description 时间初始值
|
|
98
98
|
*/
|
|
99
99
|
dateTime?: string;
|
|
100
|
-
dateType?:
|
|
100
|
+
dateType?: "DATE" | "DATE_TIME" | "DATE_RANGE" | "DATE_TIME_RANGE";
|
|
101
101
|
maxSize?: number;
|
|
102
102
|
basicGrade?: number;
|
|
103
103
|
range?: number;
|
|
@@ -131,9 +131,6 @@ export interface ComponentInterface {
|
|
|
131
131
|
label: string;
|
|
132
132
|
value: string;
|
|
133
133
|
}[];
|
|
134
|
-
workOrderDetail?: {
|
|
135
|
-
logisticsInterceptHandleStatus: string;
|
|
136
|
-
};
|
|
137
134
|
};
|
|
138
135
|
/**
|
|
139
136
|
* 日志渲染
|
|
@@ -174,12 +171,12 @@ export interface ComponentInterface {
|
|
|
174
171
|
filterConfig: (p: ColumnConfig) => FilterConfigType | FilterConfigType[];
|
|
175
172
|
getComponentValue: (r: Record) => any;
|
|
176
173
|
}
|
|
177
|
-
export declare type PickOption = Pick<ComponentInterface,
|
|
174
|
+
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects">;
|
|
178
175
|
export declare type ColumnConfig = {
|
|
179
176
|
id: string;
|
|
180
177
|
name: string;
|
|
181
178
|
type: string;
|
|
182
179
|
subKey?: string;
|
|
183
|
-
mode?:
|
|
184
|
-
config?: ComponentInterface[
|
|
180
|
+
mode?: "multiple";
|
|
181
|
+
config?: ComponentInterface["componentConfig"];
|
|
185
182
|
};
|