@jctrans-materials/comps-vue3 1.0.41-beta.0 → 1.0.41-beta.10

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.
@@ -0,0 +1,89 @@
1
+ interface CompanyOptionItem {
2
+ value: string;
3
+ code: string;
4
+ kqId: string;
5
+ nameCn: string;
6
+ [key: string]: any;
7
+ }
8
+ interface Props {
9
+ lang?: string;
10
+ companyName?: string;
11
+ countryId: string | number | null;
12
+ useKq?: boolean;
13
+ kqCode?: string | number;
14
+ kqInfo?: Record<string, any>;
15
+ city?: Record<string, any>;
16
+ disabled?: boolean;
17
+ defaultFirstOption?: boolean;
18
+ allowCreate?: boolean;
19
+ }
20
+ declare function __VLS_template(): {
21
+ prefix?(_: {}): any;
22
+ };
23
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
24
+ lang: string;
25
+ companyName: string;
26
+ useKq: boolean;
27
+ kqCode: string;
28
+ kqInfo: () => {};
29
+ city: () => {};
30
+ disabled: boolean;
31
+ defaultFirstOption: boolean;
32
+ allowCreate: boolean;
33
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
+ "update:companyName": (val: string) => void;
35
+ "update:useKq": (val: boolean) => void;
36
+ "update:kqCode": (val: string) => void;
37
+ "update:kqInfo": (val: Record<string, any>) => void;
38
+ change: (val: string | CompanyOptionItem | undefined) => void;
39
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
40
+ lang: string;
41
+ companyName: string;
42
+ useKq: boolean;
43
+ kqCode: string;
44
+ kqInfo: () => {};
45
+ city: () => {};
46
+ disabled: boolean;
47
+ defaultFirstOption: boolean;
48
+ allowCreate: boolean;
49
+ }>>> & Readonly<{
50
+ onChange?: ((val: string | CompanyOptionItem | undefined) => any) | undefined;
51
+ "onUpdate:companyName"?: ((val: string) => any) | undefined;
52
+ "onUpdate:useKq"?: ((val: boolean) => any) | undefined;
53
+ "onUpdate:kqCode"?: ((val: string) => any) | undefined;
54
+ "onUpdate:kqInfo"?: ((val: Record<string, any>) => any) | undefined;
55
+ }>, {
56
+ disabled: boolean;
57
+ city: Record<string, any>;
58
+ lang: string;
59
+ companyName: string;
60
+ useKq: boolean;
61
+ kqCode: string | number;
62
+ kqInfo: Record<string, any>;
63
+ defaultFirstOption: boolean;
64
+ allowCreate: boolean;
65
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
66
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
67
+ export default _default;
68
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
69
+ type __VLS_TypePropsToRuntimeProps<T> = {
70
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
71
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
72
+ } : {
73
+ type: import('vue').PropType<T[K]>;
74
+ required: true;
75
+ };
76
+ };
77
+ type __VLS_WithDefaults<P, D> = {
78
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
79
+ default: D[K];
80
+ }> : P[K];
81
+ };
82
+ type __VLS_Prettify<T> = {
83
+ [K in keyof T]: T[K];
84
+ } & {};
85
+ type __VLS_WithTemplateSlots<T, S> = T & {
86
+ new (): {
87
+ $slots: S;
88
+ };
89
+ };
@@ -1,43 +1,5 @@
1
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<string | number>;
6
- };
7
- lang: StringConstructor;
8
- placeholder: StringConstructor;
9
- showApplyData: {
10
- type: BooleanConstructor;
11
- default: boolean;
12
- };
13
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- blur: (...args: any[]) => void;
15
- change: (...args: any[]) => void;
16
- focus: (...args: any[]) => void;
17
- "update:modelValue": (...args: any[]) => void;
18
- apply: (...args: any[]) => void;
19
- "remove-tag": (...args: any[]) => void;
20
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
- modelValue: {
22
- required: true;
23
- type: import('vue').PropType<string | number>;
24
- };
25
- lang: StringConstructor;
26
- placeholder: StringConstructor;
27
- showApplyData: {
28
- type: BooleanConstructor;
29
- default: boolean;
30
- };
31
- }>> & Readonly<{
32
- onBlur?: ((...args: any[]) => any) | undefined;
33
- onChange?: ((...args: any[]) => any) | undefined;
34
- onFocus?: ((...args: any[]) => any) | undefined;
35
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
36
- onApply?: ((...args: any[]) => any) | undefined;
37
- "onRemove-tag"?: ((...args: any[]) => any) | undefined;
38
- }>, {
39
- showApplyData: boolean;
40
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
41
3
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
42
4
  export default _default;
43
5
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,43 +1,5 @@
1
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<string | number>;
6
- };
7
- lang: StringConstructor;
8
- placeholder: StringConstructor;
9
- showApplyData: {
10
- type: BooleanConstructor;
11
- default: boolean;
12
- };
13
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- blur: (...args: any[]) => void;
15
- change: (...args: any[]) => void;
16
- focus: (...args: any[]) => void;
17
- "update:modelValue": (...args: any[]) => void;
18
- apply: (...args: any[]) => void;
19
- "remove-tag": (...args: any[]) => void;
20
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
- modelValue: {
22
- required: true;
23
- type: import('vue').PropType<string | number>;
24
- };
25
- lang: StringConstructor;
26
- placeholder: StringConstructor;
27
- showApplyData: {
28
- type: BooleanConstructor;
29
- default: boolean;
30
- };
31
- }>> & Readonly<{
32
- onBlur?: ((...args: any[]) => any) | undefined;
33
- onChange?: ((...args: any[]) => any) | undefined;
34
- onFocus?: ((...args: any[]) => any) | undefined;
35
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
36
- onApply?: ((...args: any[]) => any) | undefined;
37
- "onRemove-tag"?: ((...args: any[]) => any) | undefined;
38
- }>, {
39
- showApplyData: boolean;
40
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
41
3
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
42
4
  export default _default;
43
5
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,43 +1,5 @@
1
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<string | number>;
6
- };
7
- lang: StringConstructor;
8
- placeholder: StringConstructor;
9
- showApplyData: {
10
- type: BooleanConstructor;
11
- default: boolean;
12
- };
13
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- blur: (...args: any[]) => void;
15
- change: (...args: any[]) => void;
16
- focus: (...args: any[]) => void;
17
- "update:modelValue": (...args: any[]) => void;
18
- apply: (...args: any[]) => void;
19
- "remove-tag": (...args: any[]) => void;
20
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
- modelValue: {
22
- required: true;
23
- type: import('vue').PropType<string | number>;
24
- };
25
- lang: StringConstructor;
26
- placeholder: StringConstructor;
27
- showApplyData: {
28
- type: BooleanConstructor;
29
- default: boolean;
30
- };
31
- }>> & Readonly<{
32
- onBlur?: ((...args: any[]) => any) | undefined;
33
- onChange?: ((...args: any[]) => any) | undefined;
34
- onFocus?: ((...args: any[]) => any) | undefined;
35
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
36
- onApply?: ((...args: any[]) => any) | undefined;
37
- "onRemove-tag"?: ((...args: any[]) => any) | undefined;
38
- }>, {
39
- showApplyData: boolean;
40
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
41
3
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
42
4
  export default _default;
43
5
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,43 +1,5 @@
1
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<string | number>;
6
- };
7
- lang: StringConstructor;
8
- placeholder: StringConstructor;
9
- showApplyData: {
10
- type: BooleanConstructor;
11
- default: boolean;
12
- };
13
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- blur: (...args: any[]) => void;
15
- change: (...args: any[]) => void;
16
- focus: (...args: any[]) => void;
17
- "update:modelValue": (...args: any[]) => void;
18
- apply: (...args: any[]) => void;
19
- "remove-tag": (...args: any[]) => void;
20
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
- modelValue: {
22
- required: true;
23
- type: import('vue').PropType<string | number>;
24
- };
25
- lang: StringConstructor;
26
- placeholder: StringConstructor;
27
- showApplyData: {
28
- type: BooleanConstructor;
29
- default: boolean;
30
- };
31
- }>> & Readonly<{
32
- onBlur?: ((...args: any[]) => any) | undefined;
33
- onChange?: ((...args: any[]) => any) | undefined;
34
- onFocus?: ((...args: any[]) => any) | undefined;
35
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
36
- onApply?: ((...args: any[]) => any) | undefined;
37
- "onRemove-tag"?: ((...args: any[]) => any) | undefined;
38
- }>, {
39
- showApplyData: boolean;
40
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
41
3
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
42
4
  export default _default;
43
5
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,10 +1,12 @@
1
1
  import { LocationUnifiedItem, LocationType } from '@jctrans-materials/shared';
2
2
  import { PropType } from 'vue';
3
3
 
4
+ export type CarrierSearchVariant = "air-carrier" | "sea-carrier" | "air-line" | "sea-line";
4
5
  declare function __VLS_template(): {
5
6
  prefix?(_: {}): any;
6
7
  option?(_: {
7
8
  item: {
9
+ [x: string]: unknown;
8
10
  id: number | string;
9
11
  type: LocationType;
10
12
  nameCn?: string | undefined;
@@ -34,14 +36,22 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
34
36
  type: StringConstructor;
35
37
  default: string;
36
38
  };
39
+ variant: {
40
+ type: () => CarrierSearchVariant;
41
+ default: string;
42
+ };
37
43
  type: {
38
44
  type: () => LocationType;
39
- required: true;
45
+ default: string;
40
46
  };
41
47
  lineType: {
42
48
  type: () => "air" | "shipping";
43
49
  default: string;
44
50
  };
51
+ reportType: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
45
55
  placeholder: {
46
56
  type: StringConstructor;
47
57
  default: string;
@@ -63,8 +73,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
63
73
  change: (...args: any[]) => void;
64
74
  focus: (...args: any[]) => void;
65
75
  "update:modelValue": (...args: any[]) => void;
66
- apply: (...args: any[]) => void;
67
76
  "remove-tag": (...args: any[]) => void;
77
+ apply: (...args: any[]) => void;
68
78
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
69
79
  modelValue: {
70
80
  type: PropType<string | number | Array<any> | null | undefined>;
@@ -74,14 +84,22 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
74
84
  type: StringConstructor;
75
85
  default: string;
76
86
  };
87
+ variant: {
88
+ type: () => CarrierSearchVariant;
89
+ default: string;
90
+ };
77
91
  type: {
78
92
  type: () => LocationType;
79
- required: true;
93
+ default: string;
80
94
  };
81
95
  lineType: {
82
96
  type: () => "air" | "shipping";
83
97
  default: string;
84
98
  };
99
+ reportType: {
100
+ type: StringConstructor;
101
+ default: string;
102
+ };
85
103
  placeholder: {
86
104
  type: StringConstructor;
87
105
  default: string;
@@ -103,15 +121,18 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
103
121
  onChange?: ((...args: any[]) => any) | undefined;
104
122
  onFocus?: ((...args: any[]) => any) | undefined;
105
123
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
106
- onApply?: ((...args: any[]) => any) | undefined;
107
124
  "onRemove-tag"?: ((...args: any[]) => any) | undefined;
125
+ onApply?: ((...args: any[]) => any) | undefined;
108
126
  }>, {
127
+ type: LocationType;
109
128
  modelValue: string | number | any[] | null | undefined;
110
129
  placeholder: string;
111
130
  lang: string;
112
- showApplyData: boolean;
113
- lineType: "air" | "shipping";
114
131
  multiple: boolean;
132
+ variant: CarrierSearchVariant;
133
+ lineType: "air" | "shipping";
134
+ reportType: string;
135
+ showApplyData: boolean;
115
136
  defaultOptions: LocationUnifiedItem[];
116
137
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
117
138
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
@@ -0,0 +1,69 @@
1
+ interface Domains {
2
+ origin?: string;
3
+ thumbnail?: string;
4
+ webp?: string;
5
+ }
6
+ interface Props {
7
+ /**
8
+ * 原始图片地址(Origin图片)
9
+ */
10
+ src: string | undefined | null;
11
+ /**
12
+ * 降级等级
13
+ * 1 origin
14
+ * 2 thumbnail -> origin
15
+ * 3 webp -> thumbnail -> origin
16
+ */
17
+ level?: 1 | 2 | 3;
18
+ /**
19
+ * 是否启用CDN转换
20
+ */
21
+ transform?: boolean;
22
+ /**
23
+ * CDN域名配置
24
+ */
25
+ domains?: Domains;
26
+ /**
27
+ * alt
28
+ */
29
+ alt?: string;
30
+ }
31
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
32
+ level: number;
33
+ transform: boolean;
34
+ domains: () => {
35
+ origin: string;
36
+ thumbnail: string;
37
+ webp: string;
38
+ };
39
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
40
+ level: number;
41
+ transform: boolean;
42
+ domains: () => {
43
+ origin: string;
44
+ thumbnail: string;
45
+ webp: string;
46
+ };
47
+ }>>> & Readonly<{}>, {
48
+ transform: boolean;
49
+ level: 1 | 2 | 3;
50
+ domains: Domains;
51
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
52
+ export default _default;
53
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
54
+ type __VLS_TypePropsToRuntimeProps<T> = {
55
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
56
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
57
+ } : {
58
+ type: import('vue').PropType<T[K]>;
59
+ required: true;
60
+ };
61
+ };
62
+ type __VLS_WithDefaults<P, D> = {
63
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
64
+ default: D[K];
65
+ }> : P[K];
66
+ };
67
+ type __VLS_Prettify<T> = {
68
+ [K in keyof T]: T[K];
69
+ } & {};
@@ -1,16 +1,6 @@
1
1
  import { LocationType } from '@jctrans-materials/shared';
2
2
 
3
- export declare function getCountryApi(key: string): Promise<import('@jctrans-materials/shared').BaseResponse<import('@jctrans-materials/shared').UnifiedItem>>;
4
- export declare function searchAllApi(key: string, types: LocationType[]): Promise<import('@jctrans-materials/shared').BaseResponse<import('@jctrans-materials/shared').UnifiedItem>>;
5
- export declare function searchByNameApi(key: string, types?: LocationType[], other?: {}): Promise<{
6
- records: import('@jctrans-materials/shared').LocationUnifiedItem[];
7
- total: number;
8
- current: number;
9
- size: number;
10
- }>;
11
- export declare const searchByIdWithTypeApi: (id: string | number | Array<number | string>, type: LocationType) => Promise<{
12
- records: import('@jctrans-materials/shared').LocationUnifiedItem[];
13
- total: number;
14
- current: number;
15
- size: number;
16
- }>;
3
+ export declare function getCountryApi(key: string): Promise<import('@jctrans-materials/shared').BaseResponse<import('@jctrans-materials/shared').LocationUnifiedItem>>;
4
+ export declare function searchAllApi(key: string, types: LocationType[]): Promise<import('@jctrans-materials/shared').BaseResponse<import('@jctrans-materials/shared').LocationUnifiedItem>>;
5
+ export declare function searchByNameApi(key: string, types?: LocationType[], other?: {}): Promise<import('@jctrans-materials/shared').BaseResponse<import('@jctrans-materials/shared').LocationUnifiedItem>>;
6
+ export declare const searchByIdWithTypeApi: (id: string | number | Array<number | string>, type: LocationType) => any;
@@ -1,16 +1,6 @@
1
1
  import { LocationType } from '@jctrans-materials/shared';
2
2
 
3
- export declare function getCountryApi(key: string): Promise<import('@jctrans-materials/shared').BaseResponse<import('@jctrans-materials/shared').UnifiedItem>>;
4
- export declare function searchAllApi(key: string, types: LocationType[]): Promise<import('@jctrans-materials/shared').BaseResponse<import('@jctrans-materials/shared').UnifiedItem>>;
5
- export declare function searchByNameApi(key: string, types?: LocationType[], other?: {}): Promise<{
6
- records: import('@jctrans-materials/shared').LocationUnifiedItem[];
7
- total: number;
8
- current: number;
9
- size: number;
10
- }>;
11
- export declare const searchByIdWithTypeApi: (id: string | number | Array<number | string>, type: LocationType) => Promise<{
12
- records: import('@jctrans-materials/shared').LocationUnifiedItem[];
13
- total: number;
14
- current: number;
15
- size: number;
16
- }>;
3
+ export declare function getCountryApi(key: string): Promise<import('@jctrans-materials/shared').BaseResponse<import('@jctrans-materials/shared').LocationUnifiedItem>>;
4
+ export declare function searchAllApi(key: string, types: LocationType[]): Promise<import('@jctrans-materials/shared').BaseResponse<import('@jctrans-materials/shared').LocationUnifiedItem>>;
5
+ export declare function searchByNameApi(key: string, types?: LocationType[], other?: {}): Promise<import('@jctrans-materials/shared').BaseResponse<import('@jctrans-materials/shared').LocationUnifiedItem>>;
6
+ export declare const searchByIdWithTypeApi: (id: string | number | Array<number | string>, type: LocationType) => any;
@@ -3,7 +3,7 @@ import { SearchItem } from '../type';
3
3
 
4
4
  export declare function useSearchHistory(historyKey: Ref<string | undefined>): {
5
5
  searchHistory: Ref<{
6
- [x: string]: any;
6
+ [x: string]: unknown;
7
7
  id?: string | number | undefined;
8
8
  type: string;
9
9
  display?: string | undefined;
@@ -13,7 +13,7 @@ export declare function useSearchHistory(historyKey: Ref<string | undefined>): {
13
13
  nameEn?: string | undefined;
14
14
  nameCn?: string | undefined;
15
15
  }[], SearchItem[] | {
16
- [x: string]: any;
16
+ [x: string]: unknown;
17
17
  id?: string | number | undefined;
18
18
  type: string;
19
19
  display?: string | undefined;
@@ -7,7 +7,7 @@ interface SearchContext {
7
7
  }
8
8
  export declare function useSearchLogic(query: Ref<string>, searchTypeList: Ref<string[]>, context?: SearchContext): {
9
9
  searchResults: Ref<{
10
- [x: string]: any;
10
+ [x: string]: unknown;
11
11
  id?: string | number | undefined;
12
12
  type: string;
13
13
  display?: string | undefined;
@@ -17,7 +17,7 @@ export declare function useSearchLogic(query: Ref<string>, searchTypeList: Ref<s
17
17
  nameEn?: string | undefined;
18
18
  nameCn?: string | undefined;
19
19
  }[], SearchItem[] | {
20
- [x: string]: any;
20
+ [x: string]: unknown;
21
21
  id?: string | number | undefined;
22
22
  type: string;
23
23
  display?: string | undefined;
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
2
 
3
- export declare function useSelectBehavior(multiple: boolean, inputRef: Ref<HTMLInputElement | null>, query: Ref<string>, emits: any): {
3
+ export declare function useSelectBehavior(multiple: boolean, inputRef: Ref<HTMLInputElement | null>, query: Ref<string>, emits: (event: "blur") => void): {
4
4
  isDropdownVisible: Ref<boolean, boolean>;
5
5
  openDropdown: () => boolean;
6
6
  closeDropdown: () => boolean;
@@ -20,7 +20,7 @@ declare function __VLS_template(): {
20
20
  suffix?(_: {}): any;
21
21
  history?(_: {
22
22
  searchHistory: {
23
- [x: string]: any;
23
+ [x: string]: unknown;
24
24
  id?: string | number | undefined;
25
25
  type: string;
26
26
  display?: string | undefined;
@@ -33,7 +33,7 @@ declare function __VLS_template(): {
33
33
  }): any;
34
34
  results?(_: {
35
35
  searchResults: {
36
- [x: string]: any;
36
+ [x: string]: unknown;
37
37
  id?: string | number | undefined;
38
38
  type: string;
39
39
  display?: string | undefined;
@@ -98,9 +98,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
98
98
  disabled: boolean;
99
99
  modelValue: SearchItem | SearchItem[] | null;
100
100
  lang: "" | "en" | "cn" | "en-US" | "zh-CN";
101
- showApplyData: boolean;
102
101
  multiple: boolean;
103
102
  collapseTags: boolean;
103
+ showApplyData: boolean;
104
104
  historyKey: string;
105
105
  parentId: number | string | null;
106
106
  parentType: "Country" | "City" | null;
@@ -34,8 +34,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
34
34
  }>, {
35
35
  modelValue: any[];
36
36
  placeholder: string;
37
- lineType: "air" | "shipping";
38
37
  multiple: boolean;
38
+ lineType: "air" | "shipping";
39
39
  lineId: number | null;
40
40
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
41
41
  export default _default;
package/dist/gio.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { App } from 'vue';
2
2
 
3
- export type TrackAttrs = Record<string, string | number | Array<string | number>>;
3
+ export type TrackAttrs = Record<string, string | number | Array<string | number> | null | undefined>;
4
4
  export type TrackDirectiveValue = string | {
5
5
  event?: string;
6
6
  name?: string;
@@ -39,6 +39,13 @@ export type TrackConfig = {
39
39
  idMapping?: boolean;
40
40
  hashtag?: boolean;
41
41
  serverUrl?: string;
42
+ performance?: {
43
+ monitor?: boolean;
44
+ exception?: boolean;
45
+ network?: boolean | {
46
+ exclude?: string | RegExp | Array<string | RegExp>;
47
+ };
48
+ };
42
49
  };
43
50
  };
44
51
  export type GioPublicApi = {