@jctrans-materials/comps-vue2 1.0.41-beta.4 → 1.0.41-beta.6

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.
@@ -1,7 +1,11 @@
1
1
  import { Ref } from 'vue-demi';
2
2
  import { SearchItem } from '../type';
3
3
 
4
- export declare function useSearchLogic(query: Ref<string>, searchTypeList: Ref<string[]>): {
4
+ interface SearchContext {
5
+ parentId?: Ref<number | string | null>;
6
+ parentType?: Ref<"Country" | "City" | null>;
7
+ }
8
+ export declare function useSearchLogic(query: Ref<string>, searchTypeList: Ref<string[]>, context?: SearchContext): {
5
9
  searchResults: Ref<{
6
10
  [x: string]: any;
7
11
  id?: string | number | undefined;
@@ -21,3 +25,4 @@ export declare function useSearchLogic(query: Ref<string>, searchTypeList: Ref<s
21
25
  fetchData: (page?: number, appendMode?: boolean) => Promise<void>;
22
26
  filterByTypes: (data: SearchItem[]) => SearchItem[];
23
27
  };
28
+ export {};
@@ -17,7 +17,7 @@ declare const _default: import('../../../vue-demi').DefineComponent<{
17
17
  };
18
18
  historyKey: {
19
19
  type: StringConstructor;
20
- default: string;
20
+ default: undefined;
21
21
  };
22
22
  lang: {
23
23
  type: StringConstructor;
@@ -39,6 +39,14 @@ declare const _default: import('../../../vue-demi').DefineComponent<{
39
39
  type: BooleanConstructor;
40
40
  default: boolean;
41
41
  };
42
+ parentId: {
43
+ type: (StringConstructor | NumberConstructor)[];
44
+ default: null;
45
+ };
46
+ parentType: {
47
+ type: StringConstructor;
48
+ default: null;
49
+ };
42
50
  disabled: {
43
51
  type: BooleanConstructor;
44
52
  default: boolean;
@@ -90,7 +98,9 @@ declare const _default: import('../../../vue-demi').DefineComponent<{
90
98
  handleBlur: () => void;
91
99
  onInput: (e: any) => void;
92
100
  handleDelete: () => void;
93
- handleConfirmApplyData: (e: any) => void;
101
+ handleConfirmApplyData: (e: unknown) => void;
102
+ handleApplyDataOpen: () => void;
103
+ handleApplyDataClose: () => void;
94
104
  handleAfterSelect: () => void;
95
105
  openDropdown: () => boolean;
96
106
  SearchIcon: string;
@@ -132,7 +142,7 @@ declare const _default: import('../../../vue-demi').DefineComponent<{
132
142
  };
133
143
  historyKey: {
134
144
  type: StringConstructor;
135
- default: string;
145
+ default: undefined;
136
146
  };
137
147
  lang: {
138
148
  type: StringConstructor;
@@ -154,6 +164,14 @@ declare const _default: import('../../../vue-demi').DefineComponent<{
154
164
  type: BooleanConstructor;
155
165
  default: boolean;
156
166
  };
167
+ parentId: {
168
+ type: (StringConstructor | NumberConstructor)[];
169
+ default: null;
170
+ };
171
+ parentType: {
172
+ type: StringConstructor;
173
+ default: null;
174
+ };
157
175
  disabled: {
158
176
  type: BooleanConstructor;
159
177
  default: boolean;
@@ -166,6 +184,8 @@ declare const _default: import('../../../vue-demi').DefineComponent<{
166
184
  showApplyData: boolean;
167
185
  disabled: boolean;
168
186
  historyKey: string;
187
+ parentId: string | number;
188
+ parentType: string;
169
189
  collapseTags: boolean;
170
190
  searchTypeList: unknown[];
171
191
  showSearchIcon: boolean;