@airpower/web 1.4.5 → 1.5.1
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/README.md +1 -1
- package/dist/components/form/FormField.vue.d.ts +2 -2
- package/dist/components/input/Input.vue.d.ts +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/interface/ITree.d.ts +1 -2
- package/dist/main.js +2 -2
- package/dist/model/RootEntity.d.ts +1 -2
- package/dist/router/RouterUtil.d.ts +2 -1
- package/package.json +2 -2
- package/dist/interface/IEntity.d.ts +0 -11
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ declare const _default: <E extends RootEntity>(__VLS_props: NonNullable<Awaited<
|
|
|
17
17
|
};
|
|
18
18
|
readonly: boolean;
|
|
19
19
|
disabledValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
20
|
-
tree: ITree[];
|
|
20
|
+
tree: (ITree & E)[];
|
|
21
21
|
}> & Omit<{
|
|
22
22
|
readonly disabled: boolean;
|
|
23
23
|
readonly entity: ITransformerConstructor<E>;
|
|
@@ -32,7 +32,7 @@ declare const _default: <E extends RootEntity>(__VLS_props: NonNullable<Awaited<
|
|
|
32
32
|
readonly readonly: boolean;
|
|
33
33
|
readonly list?: IEnum<number>[] | undefined;
|
|
34
34
|
readonly disabledValue?: string | number | boolean | unknown[] | Record<string, any> | undefined;
|
|
35
|
-
readonly tree?: ITree[] | undefined;
|
|
35
|
+
readonly tree?: (ITree & E)[] | undefined;
|
|
36
36
|
readonly onClear?: (() => any) | undefined;
|
|
37
37
|
readonly onBlur?: (() => any) | undefined;
|
|
38
38
|
readonly onChanged?: ((value: E) => any) | undefined;
|
|
@@ -2,7 +2,7 @@ import { IEnum } from '@airpower/enum';
|
|
|
2
2
|
import { ITransformerConstructor } from '@airpower/transformer';
|
|
3
3
|
import { ITree } from '../../interface/ITree';
|
|
4
4
|
import { RootEntity } from '../../model/RootEntity';
|
|
5
|
-
declare const _default: <E extends RootEntity, T extends ITree, EM extends IEnum>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
+
declare const _default: <E extends RootEntity, T extends ITree & E, EM extends IEnum>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
7
7
|
disabled: boolean;
|
|
8
8
|
placeholder: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -52,7 +52,6 @@ export * from './http/Http';
|
|
|
52
52
|
export * from './http/HttpResponse';
|
|
53
53
|
export * from './http/type';
|
|
54
54
|
export * from './i18n/WebI18n';
|
|
55
|
-
export * from './interface/IEntity';
|
|
56
55
|
export * from './interface/IFile';
|
|
57
56
|
export * from './interface/IMenu';
|
|
58
57
|
export * from './interface/IPayload';
|
package/dist/main.js
CHANGED
|
@@ -10525,11 +10525,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10525
10525
|
}
|
|
10526
10526
|
function onChange() {
|
|
10527
10527
|
const val = formData.value[props.field];
|
|
10528
|
-
emits("update:modelValue", val);
|
|
10529
|
-
emits("changed", val);
|
|
10530
10528
|
if (injectFormData) {
|
|
10531
10529
|
injectFormData.value[props.field] = val;
|
|
10532
10530
|
}
|
|
10531
|
+
emits("update:modelValue", formData.value);
|
|
10532
|
+
emits("changed", val);
|
|
10533
10533
|
}
|
|
10534
10534
|
return (_ctx, _cache) => {
|
|
10535
10535
|
return openBlock(), createBlock(unref(ElFormItem), {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { IEntity } from '../interface/IEntity';
|
|
2
1
|
import { RootModel } from './RootModel';
|
|
3
2
|
/**
|
|
4
3
|
* ### 实体模型
|
|
5
4
|
*
|
|
6
5
|
* @author Hamm.cn
|
|
7
6
|
*/
|
|
8
|
-
export declare class RootEntity extends RootModel
|
|
7
|
+
export declare class RootEntity extends RootModel {
|
|
9
8
|
id: number;
|
|
10
9
|
/**
|
|
11
10
|
* ### 是否禁用
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Router, RouteRecordRaw } from 'vue-router';
|
|
2
2
|
import { IMenu } from '../interface/IMenu';
|
|
3
|
+
import { RootEntity } from '../model/RootEntity';
|
|
3
4
|
/**
|
|
4
5
|
* ### `Vue` 路由助手
|
|
5
6
|
* @author Hamm.cn
|
|
@@ -25,7 +26,7 @@ export declare class RouterUtil {
|
|
|
25
26
|
* @param parentRouter `可选` 父级路由 默认 `admin`
|
|
26
27
|
* @param menuCacheKey `可选` 缓存Key 默认 `AirPowerMenuList`
|
|
27
28
|
*/
|
|
28
|
-
static initVueRouter(menuList: IMenu
|
|
29
|
+
static initVueRouter(menuList: Array<IMenu & RootEntity>, components?: Record<string, () => Promise<unknown>>, componentsDirectory?: string, parentRouter?: string, menuCacheKey?: string): void;
|
|
29
30
|
/**
|
|
30
31
|
* ### 创建 `Vue` 路由实例
|
|
31
32
|
* @param routes 路由配置文件
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@airpower/web",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.1",
|
|
5
5
|
"description": "AirPower-Web",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Hamm",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@airpower/enum": "^1.3.3",
|
|
43
43
|
"@airpower/i18n": "^1.3.3",
|
|
44
44
|
"@airpower/transformer": "^1.3.3",
|
|
45
|
-
"@airpower/util": "^1.3.
|
|
45
|
+
"@airpower/util": "^1.3.4",
|
|
46
46
|
"@element-plus/icons-vue": "^2.3.1",
|
|
47
47
|
"axios": "1.11.0",
|
|
48
48
|
"element-plus": "^2.10.4",
|