@kmkf-fe-packages/basic-components 0.6.3 → 0.7.1-alpha.0
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/README.md +1 -1
- package/dist/index.esm.js +473 -154
- package/dist/index.js +475 -153
- package/dist/jest.config.d.ts +17 -0
- package/dist/{apaas → src/apaas}/ApaasAddress/index.d.ts +2 -1
- package/dist/src/apaas/ApaasCascader/index.d.ts +3 -0
- package/dist/{apaas → src/apaas}/ApaasCheckbox/index.d.ts +2 -1
- package/dist/{apaas → src/apaas}/ApaasDate/index.d.ts +2 -1
- package/dist/{apaas → src/apaas}/ApaasInput/index.d.ts +2 -1
- package/dist/src/apaas/ApaasInputNumber/index.d.ts +4 -0
- package/dist/src/apaas/ApaasMultipleSelect/index.d.ts +4 -0
- package/dist/src/apaas/ApaasRadio/test/props.test.d.ts +1 -0
- package/dist/{apaas → src/apaas}/ApaasSelect/index.d.ts +2 -1
- package/dist/{apaas → src/apaas}/ApaasTextArea/index.d.ts +2 -1
- package/dist/{apaas → src/apaas}/ApaasUpload/index.d.ts +2 -1
- package/dist/{apaas → src/apaas}/ApaasUploadAsync/index.d.ts +2 -1
- package/dist/{apaas → src/apaas}/hoc/withFormItem.d.ts +1 -1
- package/dist/src/basics/FormItem/index.d.ts +3 -0
- package/dist/{business → src/business}/AliPay/index.d.ts +2 -1
- package/dist/{business → src/business}/BuyerNick/index.d.ts +2 -1
- package/dist/src/business/ChooseBaby/index.d.ts +4 -0
- package/dist/{business → src/business}/ExpressLogistics/index.d.ts +2 -1
- package/dist/{business → src/business}/Invoice/index.d.ts +2 -1
- package/dist/src/business/LogisticsInterception/index.d.ts +25 -0
- package/dist/{business → src/business}/Payment/index.d.ts +2 -1
- package/dist/{business → src/business}/Remark/index.d.ts +2 -1
- package/dist/{business → src/business}/ShopName/index.d.ts +2 -1
- package/dist/src/business/Status/index.d.ts +25 -0
- package/dist/src/business/Supplier/index.d.ts +4 -0
- package/dist/src/business/TBGoodId/index.d.ts +4 -0
- package/dist/src/business/TBGoodSerial/index.d.ts +4 -0
- package/dist/{business → src/business}/TradeId/index.d.ts +2 -1
- package/dist/{common → src/common}/ExpressCompany/index.d.ts +2 -1
- package/dist/{common → src/common}/Goods/goodModel.d.ts +2 -1
- package/dist/{common → src/common}/Goods/index.d.ts +2 -1
- package/dist/{common → src/common}/GoodsTable/goodModel.d.ts +2 -1
- package/dist/src/common/IdentifyAddress/index.d.ts +13 -0
- package/dist/src/common/Logistics/index.d.ts +4 -0
- package/dist/src/common/ParseLogistics/index.d.ts +6 -0
- package/dist/{config → src/config}/utils.d.ts +0 -1
- package/dist/{index.d.ts → src/index.d.ts} +3 -0
- package/dist/{jst → src/jst}/Goods/index.d.ts +2 -1
- package/dist/{jst → src/jst}/ItemList/index.d.ts +2 -1
- package/package.json +21 -4
- package/dist/apaas/ApaasCascader/index.d.ts +0 -2
- package/dist/apaas/ApaasInputNumber/index.d.ts +0 -3
- package/dist/apaas/ApaasMultipleSelect/index.d.ts +0 -3
- package/dist/basics/FormItem/index.d.ts +0 -2
- package/dist/business/ChooseBaby/index.d.ts +0 -3
- package/dist/business/Status/index.d.ts +0 -16
- package/dist/business/Supplier/index.d.ts +0 -3
- package/dist/business/TBGoodId/index.d.ts +0 -3
- package/dist/business/TBGoodSerial/index.d.ts +0 -3
- package/dist/common/Logistics/index.d.ts +0 -3
- /package/dist/{apaas → src/apaas}/ApaasRadio/index.d.ts +0 -0
- /package/dist/{apaas → src/apaas}/ApaasRate/index.d.ts +0 -0
- /package/dist/{apaas → src/apaas}/ApaasSlider/index.d.ts +0 -0
- /package/dist/{business → src/business}/Address/index.d.ts +0 -0
- /package/dist/{common → src/common}/GoodsTable/index.d.ts +0 -0
- /package/dist/{common → src/common}/Sku/index.d.ts +0 -0
- /package/dist/{common → src/common}/request.d.ts +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
clearMocks: boolean;
|
|
3
|
+
collectCoverage: boolean;
|
|
4
|
+
coverageDirectory: string;
|
|
5
|
+
coverageProvider: string;
|
|
6
|
+
moduleFileExtensions: string[];
|
|
7
|
+
moduleNameMapper: {
|
|
8
|
+
'\\.(css|less|jpg|jpeg|png|gif)$': string;
|
|
9
|
+
};
|
|
10
|
+
preset: string;
|
|
11
|
+
roots: string[];
|
|
12
|
+
testEnvironment: string;
|
|
13
|
+
transform: {
|
|
14
|
+
'^.+\\.ts?$': string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface Option {
|
|
2
3
|
value: string | number;
|
|
3
4
|
label: string;
|
|
@@ -9,5 +10,5 @@ interface ProvinceType {
|
|
|
9
10
|
disabled: boolean;
|
|
10
11
|
onChange: (value: any, selectedOptions: any) => void;
|
|
11
12
|
}
|
|
12
|
-
declare const Province: (props: Partial<ProvinceType>) => JSX.Element;
|
|
13
|
+
declare const Province: (props: Partial<ProvinceType>) => React.JSX.Element;
|
|
13
14
|
export default Province;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { CheckboxGroupProps, CheckboxValueType } from 'antd/es/checkbox/Group';
|
|
2
3
|
type OptionsType = {
|
|
3
4
|
label: string;
|
|
@@ -17,5 +18,5 @@ export interface ApaasCheckboxProps extends Omit<CheckboxGroupProps, 'onChange'
|
|
|
17
18
|
value?: CheckboxValue;
|
|
18
19
|
[key: string]: any;
|
|
19
20
|
}
|
|
20
|
-
declare function ApaasCheckbox(props: ApaasCheckboxProps): JSX.Element;
|
|
21
|
+
declare function ApaasCheckbox(props: ApaasCheckboxProps): React.JSX.Element;
|
|
21
22
|
export default ApaasCheckbox;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
declare const DateType: ["DATE", "DATE_TIME", "DATE_RANGE", "DATE_TIME_RANGE"];
|
|
2
3
|
export declare type ButtonType = typeof DateType[number];
|
|
3
4
|
export interface ApaasDate {
|
|
4
5
|
dateType?: ButtonType;
|
|
5
6
|
[propName: string]: any;
|
|
6
7
|
}
|
|
7
|
-
declare const ApaasDate: (props: ApaasDate) => JSX.Element;
|
|
8
|
+
declare const ApaasDate: (props: ApaasDate) => React.JSX.Element;
|
|
8
9
|
export default ApaasDate;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { InputProps } from 'antd';
|
|
2
3
|
export interface ApaasInputProps extends InputProps {
|
|
3
4
|
isNumber?: boolean;
|
|
4
5
|
replaceWarn?: boolean;
|
|
5
6
|
}
|
|
6
|
-
declare function ApaasInput(props: ApaasInputProps): JSX.Element;
|
|
7
|
+
declare function ApaasInput(props: ApaasInputProps): React.JSX.Element;
|
|
7
8
|
export default ApaasInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { SelectProps } from 'antd';
|
|
2
3
|
type OptionsType = {
|
|
3
4
|
label: string;
|
|
@@ -8,5 +9,5 @@ export interface ApaasSelectProps extends SelectProps<string[]> {
|
|
|
8
9
|
options?: OptionsType[];
|
|
9
10
|
[propName: string]: any;
|
|
10
11
|
}
|
|
11
|
-
declare function ApaasSelect(props: ApaasSelectProps): JSX.Element;
|
|
12
|
+
declare function ApaasSelect(props: ApaasSelectProps): React.JSX.Element;
|
|
12
13
|
export default ApaasSelect;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { TextAreaProps } from 'antd/es/input';
|
|
2
3
|
export interface ITextAreaProps {
|
|
3
4
|
minRows?: number;
|
|
4
5
|
maxRows?: number;
|
|
5
6
|
}
|
|
6
|
-
declare function ApaasTextArea(props: TextAreaProps & ITextAreaProps): JSX.Element;
|
|
7
|
+
declare function ApaasTextArea(props: TextAreaProps & ITextAreaProps): React.JSX.Element;
|
|
7
8
|
export default ApaasTextArea;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { UploadProps } from 'antd';
|
|
2
3
|
declare type UploadValue = string[];
|
|
3
4
|
export interface ApaasUploadProps extends Omit<UploadProps, 'onChange' | 'value'> {
|
|
@@ -9,5 +10,5 @@ export interface ApaasUploadProps extends Omit<UploadProps, 'onChange' | 'value'
|
|
|
9
10
|
onChange?: (value: UploadValue) => void;
|
|
10
11
|
value?: UploadValue;
|
|
11
12
|
}
|
|
12
|
-
declare const ApaasUpload: ({ maxCount, maxSize, uploadText, onChange, value, accept, canPreview, disabled, ...resetProps }: ApaasUploadProps) => JSX.Element;
|
|
13
|
+
declare const ApaasUpload: ({ maxCount, maxSize, uploadText, onChange, value, accept, canPreview, disabled, ...resetProps }: ApaasUploadProps) => React.JSX.Element;
|
|
13
14
|
export default ApaasUpload;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { UploadProps } from 'antd';
|
|
2
3
|
declare type UploadValue = string[];
|
|
3
4
|
export interface ApaasUploadProps extends Omit<UploadProps, 'onChange' | 'value'> {
|
|
@@ -12,5 +13,5 @@ export interface ApaasUploadProps extends Omit<UploadProps, 'onChange' | 'value'
|
|
|
12
13
|
hostUrl?: string;
|
|
13
14
|
actionUrl?: string;
|
|
14
15
|
}
|
|
15
|
-
declare const ApaasUploadAsync: ({ maxCount, maxSize, uploadText, onChange, value, accept, canPreview, disabled, uniqueKey, hostUrl, actionUrl, ...resetProps }: ApaasUploadProps) => JSX.Element;
|
|
16
|
+
declare const ApaasUploadAsync: ({ maxCount, maxSize, uploadText, onChange, value, accept, canPreview, disabled, uniqueKey, hostUrl, actionUrl, ...resetProps }: ApaasUploadProps) => React.JSX.Element;
|
|
16
17
|
export default ApaasUploadAsync;
|
|
@@ -9,4 +9,4 @@ export interface WithFormItemProps {
|
|
|
9
9
|
initialValue?: string;
|
|
10
10
|
[prop: string]: any;
|
|
11
11
|
}
|
|
12
|
-
export default function withFormItem(WrappedComponent: React.ComponentType<WithFormItemProps>): (props: WithFormItemProps) => JSX.Element;
|
|
12
|
+
export default function withFormItem(WrappedComponent: React.ComponentType<WithFormItemProps>): (props: WithFormItemProps) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface AliPayValueType {
|
|
2
3
|
name?: string;
|
|
3
4
|
user?: string;
|
|
@@ -9,5 +10,5 @@ interface AliPayProps {
|
|
|
9
10
|
onChange: (value: AliPayValueType) => void;
|
|
10
11
|
onBlur?: (value: string, type: string) => void;
|
|
11
12
|
}
|
|
12
|
-
declare const AliPay: (props: Partial<AliPayProps>) => JSX.Element;
|
|
13
|
+
declare const AliPay: (props: Partial<AliPayProps>) => React.JSX.Element;
|
|
13
14
|
export default AliPay;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface BuyerNickValueType {
|
|
2
3
|
buyerNick?: string;
|
|
3
4
|
buyerOpenUid?: string;
|
|
@@ -10,5 +11,5 @@ interface BuyerNickProps {
|
|
|
10
11
|
onChange: (value: BuyerNickValueType) => void;
|
|
11
12
|
onBlur: (value: string, type: string) => void;
|
|
12
13
|
}
|
|
13
|
-
declare const BuyerNick: (props: Partial<BuyerNickProps>) => JSX.Element;
|
|
14
|
+
declare const BuyerNick: (props: Partial<BuyerNickProps>) => React.JSX.Element;
|
|
14
15
|
export default BuyerNick;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { LogisticsType } from '../../common/Logistics/index.d';
|
|
2
|
-
declare const ExpressLogistics: (props: Partial<LogisticsType>) => JSX.Element;
|
|
3
|
+
declare const ExpressLogistics: (props: Partial<LogisticsType>) => React.JSX.Element;
|
|
3
4
|
export default ExpressLogistics;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './index.less';
|
|
2
3
|
export interface InvoiceValueType {
|
|
3
4
|
ordinaryTaitou: string;
|
|
@@ -10,5 +11,5 @@ export interface InvoiceProps {
|
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
onChange: (value: InvoiceValueType) => void;
|
|
12
13
|
}
|
|
13
|
-
declare const Invoice: (props: Partial<InvoiceProps>) => JSX.Element;
|
|
14
|
+
declare const Invoice: (props: Partial<InvoiceProps>) => React.JSX.Element;
|
|
14
15
|
export default Invoice;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface LogisticsInterceptionValueType {
|
|
3
|
+
interceptCompany: string;
|
|
4
|
+
interceptCode: string;
|
|
5
|
+
interceptType: string;
|
|
6
|
+
interceptSenderMobile: string;
|
|
7
|
+
interceptAddress: any[];
|
|
8
|
+
interceptDetail: string;
|
|
9
|
+
interceptReceiverName: string;
|
|
10
|
+
interceptReceiverMobile: string;
|
|
11
|
+
interceptLogisticsStatus: string | number;
|
|
12
|
+
interceptLogisticsStatusOther: string;
|
|
13
|
+
}
|
|
14
|
+
interface LogisticsInterceptionProps {
|
|
15
|
+
value: Partial<LogisticsInterceptionValueType>;
|
|
16
|
+
logisticsOptions: any[];
|
|
17
|
+
expressInterceptData: any[];
|
|
18
|
+
logisticsAddressData: any[];
|
|
19
|
+
required: boolean;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
isEditing: boolean;
|
|
22
|
+
onChange: (value: Partial<LogisticsInterceptionValueType>) => void;
|
|
23
|
+
}
|
|
24
|
+
declare const LogisticsInterception: (props: Partial<LogisticsInterceptionProps>) => React.JSX.Element;
|
|
25
|
+
export default LogisticsInterception;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export interface PaymentProps {
|
|
2
3
|
value: any;
|
|
3
4
|
zhiFubaoRequired: boolean;
|
|
@@ -10,5 +11,5 @@ export interface PaymentProps {
|
|
|
10
11
|
onSearch: (value: any) => void;
|
|
11
12
|
onBlur: (value: any, type: string) => void;
|
|
12
13
|
}
|
|
13
|
-
declare const Payment: (props: Partial<PaymentProps>) => JSX.Element;
|
|
14
|
+
declare const Payment: (props: Partial<PaymentProps>) => React.JSX.Element;
|
|
14
15
|
export default Payment;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface ValueType {
|
|
2
3
|
remark?: string;
|
|
3
4
|
flag?: number;
|
|
@@ -8,5 +9,5 @@ interface RemarkType {
|
|
|
8
9
|
value: ValueType;
|
|
9
10
|
onChange: (value: ValueType) => void;
|
|
10
11
|
}
|
|
11
|
-
declare const RemarkInput: (props: Partial<RemarkType>) => JSX.Element;
|
|
12
|
+
declare const RemarkInput: (props: Partial<RemarkType>) => React.JSX.Element;
|
|
12
13
|
export default RemarkInput;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface ShopNameType {
|
|
2
3
|
value: number;
|
|
3
4
|
onChange: (value: number) => void;
|
|
4
5
|
disabled: boolean;
|
|
5
6
|
style: any;
|
|
6
7
|
}
|
|
7
|
-
declare const ShopNameSelect: (props: Partial<ShopNameType>) => JSX.Element;
|
|
8
|
+
declare const ShopNameSelect: (props: Partial<ShopNameType>) => React.JSX.Element;
|
|
8
9
|
export default ShopNameSelect;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* props
|
|
3
|
+
* isUseCustomStatus true/false 是否自定义文案
|
|
4
|
+
* customStatusText 自定义文案内容
|
|
5
|
+
* isSelectStyle true/false 是否为下拉框
|
|
6
|
+
* require true/false 是否必填
|
|
7
|
+
* originCustomer和isEditing 当状态组件处于编辑状态下,工单状态从未处理切换到已处理时候,我们需要将客服重置为初始值
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
export interface StatusProps {
|
|
11
|
+
shopId: string;
|
|
12
|
+
customStatusText: string;
|
|
13
|
+
customerService: any[];
|
|
14
|
+
isEditing: boolean;
|
|
15
|
+
isSelectStyle: boolean;
|
|
16
|
+
isUseCustomStatus: boolean;
|
|
17
|
+
status?: string;
|
|
18
|
+
originCustomer?: string[];
|
|
19
|
+
value: any;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
required: boolean;
|
|
22
|
+
onChange: (value: any) => void;
|
|
23
|
+
}
|
|
24
|
+
declare const Status: (props: StatusProps) => React.JSX.Element;
|
|
25
|
+
export default Status;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { InputProps } from 'antd';
|
|
2
3
|
interface TradeIdProps extends InputProps {
|
|
3
4
|
value: string;
|
|
@@ -6,5 +7,5 @@ interface TradeIdProps extends InputProps {
|
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
onSearch: (value: any) => void;
|
|
8
9
|
}
|
|
9
|
-
declare function TradeId(props: Partial<TradeIdProps>): JSX.Element;
|
|
10
|
+
declare function TradeId(props: Partial<TradeIdProps>): React.JSX.Element;
|
|
10
11
|
export default TradeId;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
type ExpressCompanyProps = {
|
|
2
3
|
options: any[];
|
|
3
4
|
value: string;
|
|
4
5
|
onChange: (v: string) => void;
|
|
5
6
|
};
|
|
6
|
-
declare const ExpressCompany: (props: ExpressCompanyProps) => JSX.Element;
|
|
7
|
+
declare const ExpressCompany: (props: ExpressCompanyProps) => React.JSX.Element;
|
|
7
8
|
export default ExpressCompany;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './index.less';
|
|
2
3
|
interface GoodModelProps {
|
|
3
4
|
visible: boolean;
|
|
@@ -11,5 +12,5 @@ interface GoodModelProps {
|
|
|
11
12
|
onSubmit: (...args: any[]) => any;
|
|
12
13
|
onCancel: (...args: any[]) => any;
|
|
13
14
|
}
|
|
14
|
-
declare const GoodsModal: (props: GoodModelProps) => JSX.Element;
|
|
15
|
+
declare const GoodsModal: (props: GoodModelProps) => React.JSX.Element;
|
|
15
16
|
export default GoodsModal;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './index.less';
|
|
2
3
|
export interface GoodsProps {
|
|
3
4
|
value?: GoodsValues;
|
|
@@ -33,5 +34,5 @@ export interface IEditState {
|
|
|
33
34
|
itemId?: string | null;
|
|
34
35
|
supplierName: string | null;
|
|
35
36
|
}
|
|
36
|
-
declare const Goods: (props: Partial<GoodsProps>) => JSX.Element;
|
|
37
|
+
declare const Goods: (props: Partial<GoodsProps>) => React.JSX.Element;
|
|
37
38
|
export default Goods;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './index.less';
|
|
2
3
|
interface GoodModelProps {
|
|
3
4
|
visible: boolean;
|
|
@@ -9,5 +10,5 @@ interface GoodModelProps {
|
|
|
9
10
|
onSubmit: (...args: any[]) => any;
|
|
10
11
|
onCancel: (...args: any[]) => any;
|
|
11
12
|
}
|
|
12
|
-
declare const GoodsModal: (props: GoodModelProps) => JSX.Element;
|
|
13
|
+
declare const GoodsModal: (props: GoodModelProps) => React.JSX.Element;
|
|
13
14
|
export default GoodsModal;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IdentifyAddressProps {
|
|
3
|
+
value: {
|
|
4
|
+
address: any[];
|
|
5
|
+
detail: string;
|
|
6
|
+
receiverName: string;
|
|
7
|
+
receiverMobile: string;
|
|
8
|
+
};
|
|
9
|
+
onChange: (value: any, type?: string) => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const IdentifyAddress: (props: IdentifyAddressProps) => React.JSX.Element;
|
|
13
|
+
export default IdentifyAddress;
|
|
@@ -28,7 +28,10 @@ export { default as Supplier } from './business/Supplier';
|
|
|
28
28
|
export { default as Invoice } from './business/Invoice';
|
|
29
29
|
export { default as Status } from './business/Status';
|
|
30
30
|
export { default as Payment } from './business/Payment';
|
|
31
|
+
export { default as LogisticsInterception } from './business/LogisticsInterception';
|
|
31
32
|
export { default as Goods } from './common/Goods';
|
|
32
33
|
export { default as JstGoods } from './jst/Goods';
|
|
33
34
|
export { default as JstItemList } from './jst/ItemList';
|
|
34
35
|
export { default as GoodsTable } from './common/GoodsTable';
|
|
36
|
+
export { default as ParseLogistics } from './common/ParseLogistics';
|
|
37
|
+
export { default as IdentifyAddress } from './common/IdentifyAddress';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface JstGoodsProps {
|
|
2
3
|
value: any[];
|
|
3
4
|
type: number;
|
|
@@ -6,5 +7,5 @@ interface JstGoodsProps {
|
|
|
6
7
|
onChange: (val: any[]) => void;
|
|
7
8
|
showField: string;
|
|
8
9
|
}
|
|
9
|
-
declare const jstGoods: (props: Partial<JstGoodsProps>) => JSX.Element;
|
|
10
|
+
declare const jstGoods: (props: Partial<JstGoodsProps>) => React.JSX.Element;
|
|
10
11
|
export default jstGoods;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './index.less';
|
|
2
3
|
export interface GoodsProps {
|
|
3
4
|
value: any[];
|
|
@@ -15,5 +16,5 @@ export interface GoodsItem {
|
|
|
15
16
|
price: string;
|
|
16
17
|
[key: string]: any;
|
|
17
18
|
}
|
|
18
|
-
declare const ItemList: (props: Partial<GoodsProps>) => JSX.Element;
|
|
19
|
+
declare const ItemList: (props: Partial<GoodsProps>) => React.JSX.Element;
|
|
19
20
|
export default ItemList;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1-alpha.0",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -12,21 +12,38 @@
|
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
14
|
"async": "yarn build && yalc push",
|
|
15
|
-
"build": "father-build",
|
|
15
|
+
"build": "yarn lint && father-build",
|
|
16
|
+
"lint": "eslint '**/*.{ts,tsx}'",
|
|
17
|
+
"lint:fix": "eslint --fix '**/*.{ts,tsx}'",
|
|
16
18
|
"start": "dumi dev",
|
|
19
|
+
"test": "jest",
|
|
17
20
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
|
|
18
21
|
},
|
|
19
22
|
"dependencies": {
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.7.1-alpha.0",
|
|
20
24
|
"umi-request": "^1.4.0"
|
|
21
25
|
},
|
|
22
26
|
"devDependencies": {
|
|
23
|
-
"@
|
|
27
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
28
|
+
"@testing-library/react": "12.1.5",
|
|
29
|
+
"@types/jest": "^29.5.1",
|
|
30
|
+
"@types/node": "^20.1.4",
|
|
31
|
+
"@types/react-test-renderer": "^18.0.0",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
33
|
+
"@typescript-eslint/parser": "^5.59.2",
|
|
24
34
|
"babel-plugin-import": "^1.13.5",
|
|
25
35
|
"dumi": "^1.0.16",
|
|
36
|
+
"eslint": "^8.40.0",
|
|
26
37
|
"father-build": "^1.17.2",
|
|
27
38
|
"gh-pages": "^3.0.0",
|
|
39
|
+
"identity-obj-proxy": "^3.0.0",
|
|
40
|
+
"jest": "^29.5.0",
|
|
41
|
+
"jest-environment-jsdom": "^29.5.0",
|
|
28
42
|
"lint-staged": "^10.0.7",
|
|
29
43
|
"prettier": "^2.2.1",
|
|
44
|
+
"react-test-renderer": "17.0.2",
|
|
45
|
+
"ts-jest": "^29.1.0",
|
|
46
|
+
"ts-node": "^10.9.1",
|
|
30
47
|
"yorkie": "^2.0.0"
|
|
31
48
|
},
|
|
32
49
|
"peerDependencies": {
|
|
@@ -37,5 +54,5 @@
|
|
|
37
54
|
"publishConfig": {
|
|
38
55
|
"access": "public"
|
|
39
56
|
},
|
|
40
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "7ad1a590f1f169f979d75636f52a0456343ceeee"
|
|
41
58
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface StatusProps {
|
|
2
|
-
shopId: string;
|
|
3
|
-
customStatusText: string;
|
|
4
|
-
customerService: any[];
|
|
5
|
-
isEditing: boolean;
|
|
6
|
-
isSelectStyle: boolean;
|
|
7
|
-
isUseCustomStatus: boolean;
|
|
8
|
-
status?: string;
|
|
9
|
-
originCustomer?: string[];
|
|
10
|
-
value: any;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
required: boolean;
|
|
13
|
-
onChange: (value: any) => void;
|
|
14
|
-
}
|
|
15
|
-
declare const Status: (props: StatusProps) => JSX.Element;
|
|
16
|
-
export default Status;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|