@homecode/ui 4.27.7 → 4.27.8
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.
|
@@ -30,7 +30,7 @@ const STORE = createStore('router', {
|
|
|
30
30
|
history[action]({}, '', pathStr);
|
|
31
31
|
onRouteChange(pathStr);
|
|
32
32
|
},
|
|
33
|
-
|
|
33
|
+
setQuery(queryParams) {
|
|
34
34
|
this.query = queryParams;
|
|
35
35
|
this.queryString = applyQueryParams(this.path, queryParams);
|
|
36
36
|
onRouteChange();
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { RouterStore as RouterStoreType } from './store';
|
|
2
1
|
import * as T from './Router.types';
|
|
3
2
|
export declare const Router: {
|
|
4
3
|
(props: T.Props): JSX.Element;
|
|
@@ -7,6 +6,7 @@ export declare const Router: {
|
|
|
7
6
|
export * from './Route';
|
|
8
7
|
export * from './Redirect';
|
|
9
8
|
export * from './Link/Link';
|
|
9
|
+
export { type RouterStore as RouterStoreType } from './store';
|
|
10
10
|
export declare const RouterStore: import("justorm/dist/esm/proxy").ProxyStore<{
|
|
11
11
|
path: string;
|
|
12
12
|
params: {};
|
|
@@ -17,11 +17,12 @@ export declare const RouterStore: import("justorm/dist/esm/proxy").ProxyStore<{
|
|
|
17
17
|
go(path?: any, query?: string | Record<string, any>, params?: {
|
|
18
18
|
replace?: boolean;
|
|
19
19
|
}): void;
|
|
20
|
-
|
|
20
|
+
setQuery(queryParams: Record<string, any>): void;
|
|
21
|
+
addQuery(query: Record<string, any>): void;
|
|
22
|
+
removeQuery(fields: string[]): void;
|
|
21
23
|
back(): void;
|
|
22
24
|
replaceState(href: string, params?: {
|
|
23
25
|
quiet?: boolean;
|
|
24
26
|
}): void;
|
|
25
27
|
}>;
|
|
26
28
|
export declare const RouterContext: import("react").Context<import("./context").ContextType>;
|
|
27
|
-
export type RouterStore = RouterStoreType;
|
|
@@ -12,7 +12,7 @@ declare const STORE: import("justorm/dist/esm/proxy").ProxyStore<{
|
|
|
12
12
|
on(cb: any): void;
|
|
13
13
|
un(cb: any): void;
|
|
14
14
|
go(path?: any, query?: Record<string, any> | string, params?: GoParams): void;
|
|
15
|
-
|
|
15
|
+
setQuery(queryParams: Record<string, any>): void;
|
|
16
16
|
addQuery(query: Record<string, any>): void;
|
|
17
17
|
removeQuery(fields: string[]): void;
|
|
18
18
|
back(): void;
|
|
@@ -27,7 +27,7 @@ declare const _default: import("justorm/dist/esm/proxy").ProxyStore<{
|
|
|
27
27
|
on(cb: any): void;
|
|
28
28
|
un(cb: any): void;
|
|
29
29
|
go(path?: any, query?: string | Record<string, any>, params?: GoParams): void;
|
|
30
|
-
|
|
30
|
+
setQuery(queryParams: Record<string, any>): void;
|
|
31
31
|
addQuery(query: Record<string, any>): void;
|
|
32
32
|
removeQuery(fields: string[]): void;
|
|
33
33
|
back(): void;
|