@oneclick.dev/cms-kit 0.0.60 → 0.0.62
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/cms-kit.cjs +1 -1
- package/dist/cms-kit.js +8 -8
- package/dist/index.d.ts +41 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,13 @@ export declare interface CheckboxSetting extends BaseSetting<boolean> {
|
|
|
30
30
|
type: 'checkbox';
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
export declare type CmsRouterLocation = string | {
|
|
34
|
+
name?: string;
|
|
35
|
+
path?: string;
|
|
36
|
+
params?: Record<string, any>;
|
|
37
|
+
query?: Record<string, any>;
|
|
38
|
+
};
|
|
39
|
+
|
|
33
40
|
export declare const components: {};
|
|
34
41
|
|
|
35
42
|
declare interface CustomDialogState {
|
|
@@ -348,6 +355,40 @@ export declare type UseQueryBuilder = () => {};
|
|
|
348
355
|
|
|
349
356
|
export declare const useQueryBuilder: () => {};
|
|
350
357
|
|
|
358
|
+
export declare type UseRoute = () => {
|
|
359
|
+
path: string;
|
|
360
|
+
fullPath: string;
|
|
361
|
+
name?: string | null;
|
|
362
|
+
params: Record<string, any>;
|
|
363
|
+
query: Record<string, any>;
|
|
364
|
+
hash: string;
|
|
365
|
+
meta?: Record<string, any>;
|
|
366
|
+
matched?: any[];
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
export declare const useRoute: () => {
|
|
370
|
+
path: string;
|
|
371
|
+
fullPath: string;
|
|
372
|
+
name?: string | null;
|
|
373
|
+
params: Record<string, any>;
|
|
374
|
+
query: Record<string, any>;
|
|
375
|
+
hash: string;
|
|
376
|
+
meta?: Record<string, any>;
|
|
377
|
+
matched?: any[];
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
export declare type UseRouter = () => {
|
|
381
|
+
push: (to: CmsRouterLocation) => Promise<any> | void;
|
|
382
|
+
replace: (to: CmsRouterLocation) => Promise<any> | void;
|
|
383
|
+
back: () => void;
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
export declare const useRouter: () => {
|
|
387
|
+
push: (to: CmsRouterLocation) => Promise<any> | void;
|
|
388
|
+
replace: (to: CmsRouterLocation) => Promise<any> | void;
|
|
389
|
+
back: () => void;
|
|
390
|
+
};
|
|
391
|
+
|
|
351
392
|
export { useRunProcess }
|
|
352
393
|
|
|
353
394
|
export declare type UseUtilsService = () => {
|