@airpower/web 0.3.1 → 0.3.2
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.
|
@@ -4,8 +4,6 @@ declare function __VLS_template(): {
|
|
|
4
4
|
icon?(_: {}): any;
|
|
5
5
|
headerRight?(_: {}): any;
|
|
6
6
|
default?(_: {}): any;
|
|
7
|
-
footerLeft?(_: {}): any;
|
|
8
|
-
footerRight?(_: {}): any;
|
|
9
7
|
};
|
|
10
8
|
refs: {};
|
|
11
9
|
rootEl: HTMLDivElement;
|
|
@@ -34,13 +32,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
34
32
|
type: BooleanConstructor;
|
|
35
33
|
default: boolean;
|
|
36
34
|
};
|
|
37
|
-
/**
|
|
38
|
-
* # 是否隐藏底部
|
|
39
|
-
*/
|
|
40
|
-
hideFooter: {
|
|
41
|
-
type: BooleanConstructor;
|
|
42
|
-
default: boolean;
|
|
43
|
-
};
|
|
44
35
|
/**
|
|
45
36
|
* # 是否显示图标
|
|
46
37
|
*/
|
|
@@ -78,13 +69,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
78
69
|
type: BooleanConstructor;
|
|
79
70
|
default: boolean;
|
|
80
71
|
};
|
|
81
|
-
/**
|
|
82
|
-
* # 是否隐藏底部
|
|
83
|
-
*/
|
|
84
|
-
hideFooter: {
|
|
85
|
-
type: BooleanConstructor;
|
|
86
|
-
default: boolean;
|
|
87
|
-
};
|
|
88
72
|
/**
|
|
89
73
|
* # 是否显示图标
|
|
90
74
|
*/
|
|
@@ -102,7 +86,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
102
86
|
}>> & Readonly<{}>, {
|
|
103
87
|
title: string;
|
|
104
88
|
hideIcon: boolean;
|
|
105
|
-
hideFooter: boolean;
|
|
106
89
|
description: string;
|
|
107
90
|
showTitle: boolean;
|
|
108
91
|
allowFullscreen: boolean;
|
|
@@ -2,6 +2,7 @@ import { ITransformerConstructor } from '@airpower/transformer';
|
|
|
2
2
|
import { PropType, Ref } from 'vue';
|
|
3
3
|
import { ISearchField } from '../../decorator/@Search/ISearchField';
|
|
4
4
|
import { ITableColumn } from '../../decorator/@Table/ITableColumn';
|
|
5
|
+
import { ITableResult } from '../../hooks/table/list/ITableResult';
|
|
5
6
|
import { IFile } from '../../interface/IFile';
|
|
6
7
|
import { QueryRequest } from '../../model/query/QueryRequest';
|
|
7
8
|
import { RootEntity } from '../../model/RootEntity';
|
|
@@ -11,11 +12,15 @@ import { QueryRequestPage } from '../../model/query/QueryRequestPage';
|
|
|
11
12
|
import { QuerySort } from '../../model/query/QuerySort';
|
|
12
13
|
declare const _default: <E extends RootEntity, S extends AbstractCurdService<E>>(__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<{
|
|
13
14
|
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
15
|
+
loading: boolean;
|
|
16
|
+
entity: ITransformerConstructor<E>;
|
|
14
17
|
autoHeight: boolean;
|
|
15
18
|
selectList: E[];
|
|
16
19
|
emptyText: string;
|
|
17
20
|
addPermission: string;
|
|
18
21
|
searchParams: ISearchField[];
|
|
22
|
+
useHook: ITableResult<E, S>;
|
|
23
|
+
disablePage: boolean;
|
|
19
24
|
hideAdd: boolean;
|
|
20
25
|
editPermission: string;
|
|
21
26
|
disablePermission: string;
|
|
@@ -25,6 +30,7 @@ declare const _default: <E extends RootEntity, S extends AbstractCurdService<E>>
|
|
|
25
30
|
addRowPermission: string;
|
|
26
31
|
exportPermission: string;
|
|
27
32
|
importPermission: string;
|
|
33
|
+
dataList: E[];
|
|
28
34
|
columnList: ITableColumn[];
|
|
29
35
|
hideEdit: boolean;
|
|
30
36
|
disableEdit: (row: E) => boolean;
|
|
@@ -62,9 +68,10 @@ declare const _default: <E extends RootEntity, S extends AbstractCurdService<E>>
|
|
|
62
68
|
importTemplateUrl: string;
|
|
63
69
|
fileEntity: ITransformerConstructor<IFile & RootEntity>;
|
|
64
70
|
}> & Omit<{
|
|
65
|
-
readonly
|
|
71
|
+
readonly loading: boolean;
|
|
66
72
|
readonly autoHeight: boolean;
|
|
67
73
|
readonly selectList: E[];
|
|
74
|
+
readonly disablePage: boolean;
|
|
68
75
|
readonly dataList: E[];
|
|
69
76
|
readonly columnList: ITableColumn[];
|
|
70
77
|
readonly hideEdit: boolean;
|
|
@@ -89,10 +96,12 @@ declare const _default: <E extends RootEntity, S extends AbstractCurdService<E>>
|
|
|
89
96
|
readonly deleteContent: string;
|
|
90
97
|
readonly showImport: boolean;
|
|
91
98
|
readonly showExport: boolean;
|
|
99
|
+
readonly entity?: ITransformerConstructor<E> | undefined;
|
|
92
100
|
readonly emptyText?: string | undefined;
|
|
93
101
|
readonly service?: CurdServiceConstructor<E, S> | undefined;
|
|
94
102
|
readonly addPermission?: string | undefined;
|
|
95
103
|
readonly searchParams?: ISearchField[] | undefined;
|
|
104
|
+
readonly useHook?: ITableResult<E, S> | undefined;
|
|
96
105
|
readonly hideAdd?: boolean | undefined;
|
|
97
106
|
readonly editPermission?: string | undefined;
|
|
98
107
|
readonly disablePermission?: string | undefined;
|
|
@@ -125,7 +134,7 @@ declare const _default: <E extends RootEntity, S extends AbstractCurdService<E>>
|
|
|
125
134
|
readonly onSelectChanged?: ((list: E[]) => any) | undefined;
|
|
126
135
|
readonly onAddRow?: ((row: E) => any) | undefined;
|
|
127
136
|
readonly onSortChanged?: ((sort?: QuerySort | undefined) => any) | undefined;
|
|
128
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "autoHeight" | "selectList" | "emptyText" | "addPermission" | "searchParams" | "hideAdd" | "editPermission" | "disablePermission" | "enablePermission" | "detailPermission" | "deletePermission" | "addRowPermission" | "exportPermission" | "importPermission" | "columnList" | "hideEdit" | "disableEdit" | "disableAddRow" | "disableChangeStatus" | "disableDetail" | "disableDelete" | "disableRow" | "hideDelete" | "selectable" | "showSelect" | "showEnableAndDisable" | "hideIndex" | "fieldCacheKey" | "hideColumnSelector" | "ctrlWidth" | "hideCtrl" | "showDetail" | "showAddRow" | "customDelete" | "deleteTitle" | "deleteContent" | "showImport" | "importTitle" | "exportParam" | "showExport" | "defaultFilter" | "importUrl" | "importTemplateUrl" | "fileEntity">, "
|
|
137
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "loading" | "entity" | "autoHeight" | "selectList" | "emptyText" | "addPermission" | "searchParams" | "useHook" | "disablePage" | "hideAdd" | "editPermission" | "disablePermission" | "enablePermission" | "detailPermission" | "deletePermission" | "addRowPermission" | "exportPermission" | "importPermission" | "dataList" | "columnList" | "hideEdit" | "disableEdit" | "disableAddRow" | "disableChangeStatus" | "disableDetail" | "disableDelete" | "disableRow" | "hideDelete" | "selectable" | "showSelect" | "showEnableAndDisable" | "hideIndex" | "fieldCacheKey" | "hideColumnSelector" | "ctrlWidth" | "hideCtrl" | "showDetail" | "showAddRow" | "customDelete" | "deleteTitle" | "deleteContent" | "showImport" | "importTitle" | "exportParam" | "showExport" | "defaultFilter" | "importUrl" | "importTemplateUrl" | "fileEntity">, "onSearch" | "service" | "onAdd" | "onDelete" | "onDisable" | "onEnable" | "onDetail" | "onEdit" | "onSelectChanged" | "onAddRow" | "onSortChanged" | ("loading" | "entity" | "autoHeight" | "selectList" | "emptyText" | "addPermission" | "searchParams" | "useHook" | "disablePage" | "hideAdd" | "editPermission" | "disablePermission" | "enablePermission" | "detailPermission" | "deletePermission" | "addRowPermission" | "exportPermission" | "importPermission" | "dataList" | "columnList" | "hideEdit" | "disableEdit" | "disableAddRow" | "disableChangeStatus" | "disableDetail" | "disableDelete" | "disableRow" | "hideDelete" | "selectable" | "showSelect" | "showEnableAndDisable" | "hideIndex" | "fieldCacheKey" | "hideColumnSelector" | "ctrlWidth" | "hideCtrl" | "showDetail" | "showAddRow" | "customDelete" | "deleteTitle" | "deleteContent" | "showImport" | "importTitle" | "exportParam" | "showExport" | "defaultFilter" | "importUrl" | "importTemplateUrl" | "fileEntity")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
129
138
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
130
139
|
resetSearch: () => void;
|
|
131
140
|
search: () => void;
|
|
@@ -151,6 +160,9 @@ declare const _default: <E extends RootEntity, S extends AbstractCurdService<E>>
|
|
|
151
160
|
data: E;
|
|
152
161
|
index: number;
|
|
153
162
|
}): any;
|
|
163
|
+
beforePage?(_: {}): any;
|
|
164
|
+
afterPage?(_: {}): any;
|
|
165
|
+
footerRight?(_: {}): any;
|
|
154
166
|
};
|
|
155
167
|
emit: ((evt: "add") => void) & ((evt: "delete", row: E) => void) & ((evt: "disable", row: E) => void) & ((evt: "enable", row: E) => void) & ((evt: "search", request: QueryRequestPage<E>) => void) & ((evt: "detail", row: E) => void) & ((evt: "edit", row: E) => void) & ((evt: "selectChanged", list: E[]) => void) & ((evt: "addRow", row: E) => void) & ((evt: "sortChanged", sort?: QuerySort | undefined) => void);
|
|
156
168
|
}>) => import('vue').VNode & {
|
|
@@ -5,6 +5,7 @@ import { QueryResponsePage } from '../../../model/query/QueryResponsePage';
|
|
|
5
5
|
import { QuerySort } from '../../../model/query/QuerySort';
|
|
6
6
|
import { RootEntity } from '../../../model/RootEntity';
|
|
7
7
|
import { AbstractCurdService } from '../../../service/AbstractCurdService';
|
|
8
|
+
import { CurdServiceConstructor } from '../../../service/type';
|
|
8
9
|
/**
|
|
9
10
|
* # `TableHook` 的基础返回结构
|
|
10
11
|
* @author Hamm.cn
|
|
@@ -39,6 +40,10 @@ export interface IBaseTableResult<E extends RootEntity, S extends AbstractCurdSe
|
|
|
39
40
|
* ### `Service`的实例
|
|
40
41
|
*/
|
|
41
42
|
service: S;
|
|
43
|
+
/**
|
|
44
|
+
* ### 服务类
|
|
45
|
+
*/
|
|
46
|
+
serviceClass: CurdServiceConstructor<E, S>;
|
|
42
47
|
/**
|
|
43
48
|
* ### 刷新数据 返回第一页
|
|
44
49
|
*/
|