@jctrans-materials/comps-vue3 1.0.34-beta.7 → 1.0.34
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/components/JcCarrierSearch/AirCarrierSearch.d.ts +31 -0
- package/dist/components/JcCarrierSearch/AirLineSearch.d.ts +31 -0
- package/dist/components/JcCarrierSearch/SeaCarrierSearch.d.ts +31 -0
- package/dist/components/JcCarrierSearch/SeaLineSearch.d.ts +31 -0
- package/dist/components/JcCarrierSearch/index.d.ts +7 -7
- package/dist/components/JcMSearch/common.d.ts +1 -1
- package/dist/components/JcMSearch/index.d.ts +1 -1
- package/dist/components/JcSearch/index.d.ts +1 -1
- package/dist/components/LineCascader/data.d.ts +129 -0
- package/dist/components/LineCascader/index.d.ts +58 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare function __VLS_template(): Partial<Record<NonNullable<string | number>, (_: any) => any>>;
|
|
2
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
modelValue: {
|
|
4
|
+
required: true;
|
|
5
|
+
type: import('vue').PropType<any>;
|
|
6
|
+
};
|
|
7
|
+
lang: StringConstructor;
|
|
8
|
+
placeholder: StringConstructor;
|
|
9
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
change: (...args: any[]) => void;
|
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
|
12
|
+
apply: (...args: any[]) => void;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
+
modelValue: {
|
|
15
|
+
required: true;
|
|
16
|
+
type: import('vue').PropType<any>;
|
|
17
|
+
};
|
|
18
|
+
lang: StringConstructor;
|
|
19
|
+
placeholder: StringConstructor;
|
|
20
|
+
}>> & Readonly<{
|
|
21
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
onApply?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare function __VLS_template(): Partial<Record<NonNullable<string | number>, (_: any) => any>>;
|
|
2
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
modelValue: {
|
|
4
|
+
required: true;
|
|
5
|
+
type: import('vue').PropType<any>;
|
|
6
|
+
};
|
|
7
|
+
lang: StringConstructor;
|
|
8
|
+
placeholder: StringConstructor;
|
|
9
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
change: (...args: any[]) => void;
|
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
|
12
|
+
apply: (...args: any[]) => void;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
+
modelValue: {
|
|
15
|
+
required: true;
|
|
16
|
+
type: import('vue').PropType<any>;
|
|
17
|
+
};
|
|
18
|
+
lang: StringConstructor;
|
|
19
|
+
placeholder: StringConstructor;
|
|
20
|
+
}>> & Readonly<{
|
|
21
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
onApply?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare function __VLS_template(): Partial<Record<NonNullable<string | number>, (_: any) => any>>;
|
|
2
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
modelValue: {
|
|
4
|
+
required: true;
|
|
5
|
+
type: import('vue').PropType<any>;
|
|
6
|
+
};
|
|
7
|
+
lang: StringConstructor;
|
|
8
|
+
placeholder: StringConstructor;
|
|
9
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
change: (...args: any[]) => void;
|
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
|
12
|
+
apply: (...args: any[]) => void;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
+
modelValue: {
|
|
15
|
+
required: true;
|
|
16
|
+
type: import('vue').PropType<any>;
|
|
17
|
+
};
|
|
18
|
+
lang: StringConstructor;
|
|
19
|
+
placeholder: StringConstructor;
|
|
20
|
+
}>> & Readonly<{
|
|
21
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
onApply?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare function __VLS_template(): Partial<Record<NonNullable<string | number>, (_: any) => any>>;
|
|
2
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
modelValue: {
|
|
4
|
+
required: true;
|
|
5
|
+
type: import('vue').PropType<any>;
|
|
6
|
+
};
|
|
7
|
+
lang: StringConstructor;
|
|
8
|
+
placeholder: StringConstructor;
|
|
9
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
change: (...args: any[]) => void;
|
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
|
12
|
+
apply: (...args: any[]) => void;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
+
modelValue: {
|
|
15
|
+
required: true;
|
|
16
|
+
type: import('vue').PropType<any>;
|
|
17
|
+
};
|
|
18
|
+
lang: StringConstructor;
|
|
19
|
+
placeholder: StringConstructor;
|
|
20
|
+
}>> & Readonly<{
|
|
21
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
onApply?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -30,9 +30,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
30
30
|
type: PropType<string | number | Array<any> | null | undefined>;
|
|
31
31
|
default: undefined;
|
|
32
32
|
};
|
|
33
|
-
|
|
34
|
-
type:
|
|
35
|
-
default:
|
|
33
|
+
lang: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
36
|
};
|
|
37
37
|
type: {
|
|
38
38
|
type: () => LocationType;
|
|
@@ -63,9 +63,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
63
63
|
type: PropType<string | number | Array<any> | null | undefined>;
|
|
64
64
|
default: undefined;
|
|
65
65
|
};
|
|
66
|
-
|
|
67
|
-
type:
|
|
68
|
-
default:
|
|
66
|
+
lang: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
69
|
};
|
|
70
70
|
type: {
|
|
71
71
|
type: () => LocationType;
|
|
@@ -94,7 +94,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
94
94
|
}>, {
|
|
95
95
|
modelValue: string | number | any[] | null | undefined;
|
|
96
96
|
placeholder: string;
|
|
97
|
-
|
|
97
|
+
lang: string;
|
|
98
98
|
lineType: "air" | "shipping";
|
|
99
99
|
multiple: boolean;
|
|
100
100
|
defaultOptions: LocationUnifiedItem[];
|
|
@@ -8,7 +8,7 @@ export declare function searchByNameApi(key: string, types?: LocationType[], oth
|
|
|
8
8
|
current: number;
|
|
9
9
|
size: number;
|
|
10
10
|
}>;
|
|
11
|
-
export declare const searchByIdWithTypeApi: (id: string | number
|
|
11
|
+
export declare const searchByIdWithTypeApi: (id: string | number | Array<number | string>, type: LocationType) => Promise<{
|
|
12
12
|
records: import('@jctrans-materials/shared').LocationUnifiedItem[];
|
|
13
13
|
total: number;
|
|
14
14
|
current: number;
|
|
@@ -18,8 +18,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
18
18
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
19
19
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
|
-
multiple: boolean;
|
|
22
21
|
lang: string;
|
|
22
|
+
multiple: boolean;
|
|
23
23
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
24
24
|
export default _default;
|
|
25
25
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -97,9 +97,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
97
97
|
}>, {
|
|
98
98
|
disabled: boolean;
|
|
99
99
|
modelValue: SearchItem | SearchItem[] | null;
|
|
100
|
+
lang: "" | "en" | "cn" | "en-US" | "zh-CN";
|
|
100
101
|
multiple: boolean;
|
|
101
102
|
collapseTags: boolean;
|
|
102
|
-
lang: "" | "en" | "cn" | "en-US" | "zh-CN";
|
|
103
103
|
historyKey: string;
|
|
104
104
|
parentId: number | string | null;
|
|
105
105
|
parentType: "Country" | "City" | null;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
export declare const lineList: ({
|
|
2
|
+
id: number;
|
|
3
|
+
type: string;
|
|
4
|
+
nameCn: string;
|
|
5
|
+
nameEn: string;
|
|
6
|
+
display: string;
|
|
7
|
+
displayEn: string;
|
|
8
|
+
displayCn: string;
|
|
9
|
+
raw: {
|
|
10
|
+
id: number;
|
|
11
|
+
lineType: string;
|
|
12
|
+
lineNameCn: string;
|
|
13
|
+
lineNameEn: string;
|
|
14
|
+
countryId: null;
|
|
15
|
+
countryNameCn: null;
|
|
16
|
+
countryNameEn: null;
|
|
17
|
+
countryList: ({
|
|
18
|
+
id: number;
|
|
19
|
+
continentId: number;
|
|
20
|
+
fileId: string;
|
|
21
|
+
fullnameCn: string;
|
|
22
|
+
fullnameEn: string;
|
|
23
|
+
nameCn: string;
|
|
24
|
+
nameEn: string;
|
|
25
|
+
nameEnShow: string;
|
|
26
|
+
sanctionFlag: string;
|
|
27
|
+
shortCode: string;
|
|
28
|
+
telCode: string;
|
|
29
|
+
pinyin: string;
|
|
30
|
+
capitalId: number;
|
|
31
|
+
threeCharCode: string;
|
|
32
|
+
developedType: string;
|
|
33
|
+
postCode: string;
|
|
34
|
+
isoShortCode: string;
|
|
35
|
+
} | {
|
|
36
|
+
id: number;
|
|
37
|
+
continentId: number;
|
|
38
|
+
fileId: string;
|
|
39
|
+
fullnameCn: string;
|
|
40
|
+
fullnameEn: string;
|
|
41
|
+
nameCn: string;
|
|
42
|
+
nameEn: string;
|
|
43
|
+
nameEnShow: string;
|
|
44
|
+
sanctionFlag: string;
|
|
45
|
+
shortCode: string;
|
|
46
|
+
telCode: string;
|
|
47
|
+
pinyin: string;
|
|
48
|
+
capitalId: number;
|
|
49
|
+
threeCharCode: string;
|
|
50
|
+
developedType: string;
|
|
51
|
+
isoShortCode: string;
|
|
52
|
+
postCode?: undefined;
|
|
53
|
+
} | {
|
|
54
|
+
id: number;
|
|
55
|
+
continentId: number;
|
|
56
|
+
fileId: string;
|
|
57
|
+
fullnameCn: string;
|
|
58
|
+
fullnameEn: string;
|
|
59
|
+
nameCn: string;
|
|
60
|
+
nameEn: string;
|
|
61
|
+
nameEnShow: string;
|
|
62
|
+
sanctionFlag: string;
|
|
63
|
+
shortCode: string;
|
|
64
|
+
telCode: string;
|
|
65
|
+
pinyin: string;
|
|
66
|
+
threeCharCode: string;
|
|
67
|
+
isoShortCode: string;
|
|
68
|
+
capitalId?: undefined;
|
|
69
|
+
developedType?: undefined;
|
|
70
|
+
postCode?: undefined;
|
|
71
|
+
})[];
|
|
72
|
+
};
|
|
73
|
+
lineType: string;
|
|
74
|
+
} | {
|
|
75
|
+
id: number;
|
|
76
|
+
type: string;
|
|
77
|
+
nameCn: string;
|
|
78
|
+
nameEn: string;
|
|
79
|
+
display: string;
|
|
80
|
+
displayEn: string;
|
|
81
|
+
displayCn: string;
|
|
82
|
+
raw: {
|
|
83
|
+
id: number;
|
|
84
|
+
lineType: string;
|
|
85
|
+
lineNameCn: string;
|
|
86
|
+
lineNameEn: string;
|
|
87
|
+
countryId: null;
|
|
88
|
+
countryNameCn: null;
|
|
89
|
+
countryNameEn: null;
|
|
90
|
+
countryList: ({
|
|
91
|
+
id: number;
|
|
92
|
+
continentId: number;
|
|
93
|
+
fileId: string;
|
|
94
|
+
fullnameCn: string;
|
|
95
|
+
fullnameEn: string;
|
|
96
|
+
nameCn: string;
|
|
97
|
+
nameEn: string;
|
|
98
|
+
nameEnShow: string;
|
|
99
|
+
sanctionFlag: string;
|
|
100
|
+
shortCode: string;
|
|
101
|
+
telCode: string;
|
|
102
|
+
pinyin: string;
|
|
103
|
+
capitalId: number;
|
|
104
|
+
threeCharCode: string;
|
|
105
|
+
developedType: string;
|
|
106
|
+
postCode: string;
|
|
107
|
+
isoShortCode: string;
|
|
108
|
+
} | {
|
|
109
|
+
id: number;
|
|
110
|
+
continentId: number;
|
|
111
|
+
fileId: string;
|
|
112
|
+
fullnameCn: string;
|
|
113
|
+
fullnameEn: string;
|
|
114
|
+
nameCn: string;
|
|
115
|
+
nameEn: string;
|
|
116
|
+
nameEnShow: string;
|
|
117
|
+
sanctionFlag: string;
|
|
118
|
+
shortCode: string;
|
|
119
|
+
telCode: string;
|
|
120
|
+
pinyin: string;
|
|
121
|
+
threeCharCode: string;
|
|
122
|
+
developedType: string;
|
|
123
|
+
isoShortCode: string;
|
|
124
|
+
capitalId?: undefined;
|
|
125
|
+
postCode?: undefined;
|
|
126
|
+
})[];
|
|
127
|
+
};
|
|
128
|
+
lineType: string;
|
|
129
|
+
})[];
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 组件 Props 定义
|
|
3
|
+
*/
|
|
4
|
+
interface Props {
|
|
5
|
+
modelValue?: any[];
|
|
6
|
+
lineId?: number | null;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
lang?: string;
|
|
9
|
+
lineType?: "air" | "shipping";
|
|
10
|
+
multiple?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
13
|
+
modelValue: () => never[];
|
|
14
|
+
placeholder: string;
|
|
15
|
+
lineId: null;
|
|
16
|
+
lineType: string;
|
|
17
|
+
multiple: boolean;
|
|
18
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
change: (...args: any[]) => void;
|
|
20
|
+
"update:modelValue": (...args: any[]) => void;
|
|
21
|
+
apply: (...args: any[]) => void;
|
|
22
|
+
"update:lineId": (...args: any[]) => void;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
24
|
+
modelValue: () => never[];
|
|
25
|
+
placeholder: string;
|
|
26
|
+
lineId: null;
|
|
27
|
+
lineType: string;
|
|
28
|
+
multiple: boolean;
|
|
29
|
+
}>>> & Readonly<{
|
|
30
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
onApply?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
"onUpdate:lineId"?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
modelValue: any[];
|
|
36
|
+
placeholder: string;
|
|
37
|
+
lineType: "air" | "shipping";
|
|
38
|
+
multiple: boolean;
|
|
39
|
+
lineId: number | null;
|
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
43
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
44
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
45
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
46
|
+
} : {
|
|
47
|
+
type: import('vue').PropType<T[K]>;
|
|
48
|
+
required: true;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
type __VLS_WithDefaults<P, D> = {
|
|
52
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
53
|
+
default: D[K];
|
|
54
|
+
}> : P[K];
|
|
55
|
+
};
|
|
56
|
+
type __VLS_Prettify<T> = {
|
|
57
|
+
[K in keyof T]: T[K];
|
|
58
|
+
} & {};
|