@oneclick.dev/cms-kit 0.0.61 → 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 +19 -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 {
|
|
@@ -370,6 +377,18 @@ export declare const useRoute: () => {
|
|
|
370
377
|
matched?: any[];
|
|
371
378
|
};
|
|
372
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
|
+
|
|
373
392
|
export { useRunProcess }
|
|
374
393
|
|
|
375
394
|
export declare type UseUtilsService = () => {
|