zzz-pc-view 0.0.38 → 0.0.40
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/package.json +1 -1
- package/src/api/own +3 -3
- package/src/decorators/CurdKey/index.d.ts +3 -3
- package/src/decorators/FilterKey/index.d.ts +3 -3
- package/src/index.d.ts +4 -0
- package/src/index.es.js +338 -89
- package/src/index.umd.js +2 -2
- package/src/pcViews/components/layout/LayoutHeaderView.vue.d.ts +3 -0
- package/src/pcViews/components/layout/LayoutMainView.vue.d.ts +7 -1
- package/src/pcViews/components/layout/LayoutNavView.vue.d.ts +6 -0
- package/src/pcViews/components/layout/LayoutProfileView.vue.d.ts +6 -0
- package/src/pcViews/components/layout/LayoutViewDeclare.d.ts +24 -0
- package/src/pcViews/components/layout/index.d.ts +1 -0
- package/src/webUtils/index.d.ts +1 -0
- package/src/webUtils/useNavStore.d.ts +5 -36
- package/src/webUtils/utils.d.ts +39 -0
- package/src/zzz-frame.css +1 -1
- /package/src/pcViews/components/layout/{LayoutHeader.vue.d.ts → LayoutTabView.vue.d.ts} +0 -0
package/package.json
CHANGED
package/src/api/own
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"path": "/home",
|
|
11
11
|
"permission": null,
|
|
12
12
|
"title": "首页",
|
|
13
|
-
"icon": "
|
|
13
|
+
"icon": "IconCommunity",
|
|
14
14
|
"outLink": null,
|
|
15
15
|
"isHide": false,
|
|
16
16
|
"isKeepAlive": false,
|
|
@@ -3121,7 +3121,7 @@
|
|
|
3121
3121
|
"path": "/system/org",
|
|
3122
3122
|
"permission": null,
|
|
3123
3123
|
"title": "组织管理",
|
|
3124
|
-
"icon":
|
|
3124
|
+
"icon": "IconSupport",
|
|
3125
3125
|
"outLink": null,
|
|
3126
3126
|
"isHide": false,
|
|
3127
3127
|
"isKeepAlive": true,
|
|
@@ -3818,7 +3818,7 @@
|
|
|
3818
3818
|
"path": null,
|
|
3819
3819
|
"permission": null,
|
|
3820
3820
|
"title": "系统管理",
|
|
3821
|
-
"icon": "
|
|
3821
|
+
"icon": "IconEcosystem",
|
|
3822
3822
|
"outLink": null,
|
|
3823
3823
|
"isHide": false,
|
|
3824
3824
|
"isKeepAlive": true,
|
|
@@ -48,8 +48,8 @@ export interface ResponseParam {
|
|
|
48
48
|
* @param {CurdHandler<T>} this - CurdHandler 实例。
|
|
49
49
|
* @returns {ResponseParam} - 返回一个 ResponseParam 对象。
|
|
50
50
|
*/
|
|
51
|
-
export interface Param<T extends object = object> {
|
|
52
|
-
(this:
|
|
51
|
+
export interface Param<T extends object = object, H extends CurdHandler<T> = CurdHandler<T>> {
|
|
52
|
+
(this: H): ResponseParam;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* 定义一个配置接口,继承自 BasePropertyConfig。
|
|
@@ -758,7 +758,7 @@ export declare abstract class CurdHandler<T extends object = object, P extends P
|
|
|
758
758
|
* @param {Param<T>} param - 配置参数。
|
|
759
759
|
* @returns {(target: T, propertyKey: string | symbol) => void} - 装饰器函数。
|
|
760
760
|
*/
|
|
761
|
-
export declare const decorator: <T extends object>(param: Param<T>) => ((target: T, propertyKey: string | symbol) => void);
|
|
761
|
+
export declare const decorator: <T extends object, H extends CurdHandler<T> = CurdHandler<T, PaginationResponse<T>>>(param: Param<T, H>) => ((target: T, propertyKey: string | symbol) => void);
|
|
762
762
|
/**
|
|
763
763
|
* 根据对象的原型获取配置。
|
|
764
764
|
* 这个函数会调用 getConfigByPrototypeAndKey 函数来获取配置,并将结果转换为 Config<T>[] 类型。
|
|
@@ -110,13 +110,13 @@ export interface ResponseParam<Q extends object = object, T extends TypeWithProt
|
|
|
110
110
|
* @template Q - 查询对象的类型。
|
|
111
111
|
* @template T - 目标对象的类型。
|
|
112
112
|
*/
|
|
113
|
-
export interface Param<Q extends object = object, T extends TypeWithPrototype | void = void> {
|
|
113
|
+
export interface Param<Q extends object = object, T extends TypeWithPrototype | void = void, H extends FilterHandler<Q> = FilterHandler<Q>> {
|
|
114
114
|
/**
|
|
115
115
|
* 一个方法,返回一个 `ResponseParam` 类型的对象。
|
|
116
116
|
* 该方法没有参数。
|
|
117
117
|
* @returns 返回一个 `ResponseParam` 类型的对象。
|
|
118
118
|
*/
|
|
119
|
-
(this:
|
|
119
|
+
(this: H): ResponseParam<Q, T>;
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
122
|
* 定义一个接口,用于描述配置对象。
|
|
@@ -264,7 +264,7 @@ export declare abstract class FilterHandler<Q extends object> extends ConfigsCre
|
|
|
264
264
|
* @param {Param<Q, T>} param - 装饰器的参数对象,包含要装饰的类。
|
|
265
265
|
* @returns {PropertyDecorator} 返回一个属性装饰器函数。
|
|
266
266
|
*/
|
|
267
|
-
export declare const decorator: <Q extends object, T extends TypeWithPrototype | void>(param: Param<Q, T>) => ((target: Q, propertyKey: string | symbol) => void);
|
|
267
|
+
export declare const decorator: <Q extends object, T extends TypeWithPrototype | void, H extends FilterHandler<Q> = FilterHandler<Q>>(param: Param<Q, T, H>) => ((target: Q, propertyKey: string | symbol) => void);
|
|
268
268
|
/**
|
|
269
269
|
* 根据对象的原型获取所有配置。
|
|
270
270
|
* 该函数首先调用 `getConfigByPrototypeAndKey` 函数并传递对象的原型和键作为参数。
|
package/src/index.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
import { ZDecorators } from './index-decorators';
|
|
3
|
+
import { ComponentViewMap } from './webUtils';
|
|
4
|
+
import { Router } from 'vue-router';
|
|
3
5
|
export * from './index-decorators';
|
|
4
6
|
export * as PcViews from './pcViews';
|
|
5
7
|
declare const _default: {
|
|
6
8
|
install(app: App, param: {
|
|
9
|
+
router: Router;
|
|
7
10
|
api: Parameters<typeof ZDecorators.setApi>[0];
|
|
11
|
+
iconMap?: ComponentViewMap;
|
|
8
12
|
}): void;
|
|
9
13
|
};
|
|
10
14
|
export default _default;
|