@jctrans-materials/comps-vue2 1.0.41-beta.5 → 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.
- package/dist/components/JcSearch/hooks/useSearchLogic.d.ts +6 -1
- package/dist/components/JcSearch/index.d.ts +23 -3
- package/dist/index.cjs.js +19 -19
- package/dist/index.css +1 -1
- package/dist/index.esm.js +3509 -3467
- package/package.json +2 -2
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { Ref } from 'vue-demi';
|
|
2
2
|
import { SearchItem } from '../type';
|
|
3
3
|
|
|
4
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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;
|