@airpower/web 0.1.2 → 0.2.0
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 +14 -13
- package/dist/base/AbstractService.d.ts +30 -0
- package/dist/base/IEntity.d.ts +11 -0
- package/dist/base/RootEntity.d.ts +24 -0
- package/dist/base/RootModel.d.ts +8 -0
- package/dist/base/index.d.ts +4 -0
- package/dist/components/button/Button.vue.d.ts +114 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/type.d.ts +1 -0
- package/dist/components/copy/Copy.vue.d.ts +49 -0
- package/dist/components/copy/index.d.ts +2 -0
- package/dist/components/datetime/DateTime.vue.d.ts +68 -0
- package/dist/components/datetime/index.d.ts +2 -0
- package/dist/components/desensitize/Desensitize.vue.d.ts +84 -0
- package/dist/components/desensitize/index.d.ts +2 -0
- package/dist/components/dialog/Dialog.vue.d.ts +342 -0
- package/dist/components/dialog/DialogProps.d.ts +191 -0
- package/dist/components/dialog/DialogUtil.d.ts +48 -0
- package/dist/components/dialog/index.d.ts +3 -0
- package/dist/components/empty/Empty.vue.d.ts +18 -0
- package/dist/components/empty/index.d.ts +2 -0
- package/dist/components/form/FormField.vue.d.ts +54 -0
- package/dist/components/form/index.d.ts +2 -0
- package/dist/components/frame/Frame.vue.d.ts +32 -0
- package/dist/components/frame/index.d.ts +2 -0
- package/dist/components/group/Group.vue.d.ts +144 -0
- package/dist/components/group/index.d.ts +2 -0
- package/dist/components/image/Image.vue.d.ts +48 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/index.d.ts +24 -2
- package/dist/components/input/DateTimeType.d.ts +27 -0
- package/dist/components/input/Input.vue.d.ts +50 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/menu/ChildMenu.vue.d.ts +17 -0
- package/dist/components/menu/IMenu.d.ts +24 -0
- package/dist/components/menu/Menu.vue.d.ts +20 -0
- package/dist/components/menu/index.d.ts +3 -0
- package/dist/components/money/Money.vue.d.ts +71 -0
- package/dist/components/money/index.d.ts +3 -0
- package/dist/components/money/type.d.ts +1 -0
- package/dist/components/page/Page.vue.d.ts +18 -0
- package/dist/components/page/index.d.ts +2 -0
- package/dist/components/panel/Panel.vue.d.ts +115 -0
- package/dist/components/panel/index.d.ts +2 -0
- package/dist/components/payload/IPayload.d.ts +11 -0
- package/dist/components/payload/Payload.vue.d.ts +35 -0
- package/dist/components/payload/index.d.ts +3 -0
- package/dist/components/phone/Call.vue.d.ts +56 -0
- package/dist/components/phone/Phone.vue.d.ts +69 -0
- package/dist/components/phone/index.d.ts +3 -0
- package/dist/components/qrcode/Qrcode.vue.d.ts +34 -0
- package/dist/components/qrcode/index.d.ts +2 -0
- package/dist/components/select/Select.vue.d.ts +47 -0
- package/dist/components/select/Selector.vue.d.ts +107 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/tab/Tab.vue.d.ts +35 -0
- package/dist/components/tab/Tabs.vue.d.ts +17 -0
- package/dist/components/tab/index.d.ts +3 -0
- package/dist/components/table/Table.vue.d.ts +157 -0
- package/dist/components/table/component/ColumnSelector.vue.d.ts +20 -0
- package/dist/components/table/component/CopyColumn.vue.d.ts +18 -0
- package/dist/components/table/component/EnumColumn.vue.d.ts +20 -0
- package/dist/components/table/component/Export.vue.d.ts +44 -0
- package/dist/components/table/component/index.d.ts +5 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/useTableButton.d.ts +74 -0
- package/dist/components/table/useTableColumn.d.ts +36 -0
- package/dist/components/table/useTableSelect.d.ts +24 -0
- package/dist/components/tree/TreeBox.vue.d.ts +43 -0
- package/dist/components/tree/index.d.ts +2 -0
- package/dist/components/upload/IUploadProps.d.ts +62 -0
- package/dist/components/upload/Upload.vue.d.ts +47 -0
- package/dist/components/upload/index.d.ts +3 -0
- package/dist/components/user/IUser.d.ts +14 -0
- package/dist/components/user/User.vue.d.ts +67 -0
- package/dist/components/user/index.d.ts +3 -0
- package/dist/config/WebConfig.d.ts +306 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/curd/AbstractCurdService.d.ts +138 -0
- package/dist/curd/index.d.ts +2 -0
- package/dist/curd/type.d.ts +8 -0
- package/dist/decorator/@Field/Field.d.ts +28 -0
- package/dist/decorator/@Field/IFieldConfig.d.ts +18 -0
- package/dist/decorator/@Field/index.d.ts +2 -0
- package/dist/decorator/@Form/Form.d.ts +24 -0
- package/dist/decorator/@Form/FormTrim.d.ts +19 -0
- package/dist/decorator/@Form/IFormField.d.ts +224 -0
- package/dist/decorator/@Form/index.d.ts +3 -0
- package/dist/decorator/@Model/IModelConfig.d.ts +69 -0
- package/dist/decorator/@Model/Model.d.ts +12 -0
- package/dist/decorator/@Model/index.d.ts +2 -0
- package/dist/decorator/@Search/ISearchField.d.ts +29 -0
- package/dist/decorator/@Search/Search.d.ts +24 -0
- package/dist/decorator/@Search/index.d.ts +2 -0
- package/dist/decorator/{@table → @Table}/IElementTableColumn.d.ts +1 -1
- package/dist/decorator/@Table/ITableColumn.d.ts +63 -0
- package/dist/decorator/{@table → @Table}/Table.d.ts +5 -5
- package/dist/decorator/{@table → @Table}/index.d.ts +1 -1
- package/dist/decorator/common/IBaseField.d.ts +12 -0
- package/dist/decorator/common/index.d.ts +1 -0
- package/dist/decorator/index.d.ts +6 -1
- package/dist/enum/DisableEnum.d.ts +10 -0
- package/dist/enum/IWebEnum.d.ts +13 -0
- package/dist/enum/WebColor.d.ts +23 -0
- package/dist/enum/WebEnum.d.ts +20 -0
- package/dist/enum/index.d.ts +5 -0
- package/dist/enum/type.d.ts +8 -0
- package/dist/{controller/interface/IDetailControllerOption.d.ts → hooks/detail/IDetailOption.d.ts} +3 -4
- package/dist/hooks/detail/IDetailResult.d.ts +30 -0
- package/dist/hooks/detail/index.d.ts +3 -0
- package/dist/hooks/detail/useDetail.d.ts +13 -0
- package/dist/{controller/interface/IUseEditorOption.d.ts → hooks/editor/IEditorOption.d.ts} +13 -5
- package/dist/hooks/editor/IEditorResult.d.ts +29 -0
- package/dist/hooks/editor/index.d.ts +3 -0
- package/dist/hooks/editor/useEditor.d.ts +13 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/{controller/interface/ITableControllerOption.d.ts → hooks/table/base/IBaseTableOption.d.ts} +5 -5
- package/dist/hooks/table/base/IBaseTableResult.d.ts +81 -0
- package/dist/hooks/table/base/index.d.ts +3 -0
- package/dist/hooks/table/base/useBaseTable.d.ts +11 -0
- package/dist/hooks/table/index.d.ts +4 -0
- package/dist/hooks/table/list/ITableOption.d.ts +8 -0
- package/dist/hooks/table/list/ITableResult.d.ts +33 -0
- package/dist/hooks/table/list/index.d.ts +3 -0
- package/dist/hooks/table/list/useTable.d.ts +11 -0
- package/dist/hooks/table/selector/ISelectorOption.d.ts +8 -0
- package/dist/hooks/table/selector/ISelectorResult.d.ts +19 -0
- package/dist/hooks/table/selector/index.d.ts +3 -0
- package/dist/hooks/table/selector/useSelector.d.ts +13 -0
- package/dist/{controller/interface/ITableTreeControllerOption.d.ts → hooks/table/tree/ITableTreeOption.d.ts} +5 -5
- package/dist/hooks/table/tree/ITableTreeResult.d.ts +13 -0
- package/dist/hooks/table/tree/index.d.ts +3 -0
- package/dist/hooks/table/tree/useTableTree.d.ts +12 -0
- package/dist/i18n/WebI18n.d.ts +52 -3
- package/dist/index.d.ts +7 -4
- package/dist/main.js +9229 -0
- package/dist/model/export/ExportModel.d.ts +24 -0
- package/dist/model/export/index.d.ts +1 -0
- package/dist/model/index.d.ts +3 -0
- package/dist/model/query/QueryPage.d.ts +15 -0
- package/dist/model/query/QueryRequest.d.ts +27 -0
- package/dist/model/query/QueryRequestPage.d.ts +13 -0
- package/dist/model/query/QueryResponsePage.d.ts +30 -0
- package/dist/model/query/QuerySort.d.ts +26 -0
- package/dist/model/query/index.d.ts +6 -0
- package/dist/model/query/type.d.ts +4 -0
- package/dist/model/tree/ITree.d.ts +21 -0
- package/dist/model/tree/index.d.ts +1 -0
- package/dist/type/index.d.ts +1 -0
- package/dist/util/feedback/FeedbackUtil.d.ts +97 -0
- package/dist/util/feedback/index.d.ts +2 -0
- package/dist/util/feedback/type.d.ts +1 -0
- package/dist/util/file/IFile.d.ts +10 -0
- package/dist/util/file/WebFileUtil.d.ts +11 -0
- package/dist/util/file/index.d.ts +1 -0
- package/dist/util/http/Http.d.ts +121 -0
- package/dist/util/http/HttpResponse.d.ts +19 -0
- package/dist/util/http/enum/HttpContentType.d.ts +27 -0
- package/dist/util/http/enum/HttpHeader.d.ts +15 -0
- package/dist/util/http/enum/HttpMethod.d.ts +12 -0
- package/dist/util/http/enum/HttpStatus.d.ts +31 -0
- package/dist/util/http/enum/index.d.ts +4 -0
- package/dist/util/http/index.d.ts +4 -0
- package/dist/util/http/type.d.ts +13 -0
- package/dist/util/index.d.ts +5 -1
- package/dist/util/permission/PermissionAction.d.ts +42 -0
- package/dist/util/permission/PermissionUtil.d.ts +50 -0
- package/dist/util/permission/index.d.ts +2 -0
- package/dist/util/validator/WebValidator.d.ts +198 -0
- package/dist/util/validator/index.d.ts +2 -0
- package/dist/util/validator/type.d.ts +24 -0
- package/dist/web.css +1531 -0
- package/package.json +15 -12
- package/dist/airpower.web.js +0 -490
- package/dist/components/WebTable.vue.d.ts +0 -22
- package/dist/controller/DetailController.d.ts +0 -29
- package/dist/controller/EditorController.d.ts +0 -11
- package/dist/controller/index.d.ts +0 -4
- package/dist/controller/interface/index.d.ts +0 -4
- package/dist/controller/table/BaseTableController.d.ts +0 -68
- package/dist/controller/table/TableController.d.ts +0 -36
- package/dist/controller/table/TableTreeController.d.ts +0 -16
- package/dist/controller/table/index.d.ts +0 -3
- package/dist/decorator/@table/ITableFieldConfig.d.ts +0 -23
- package/dist/http/WebHttp.d.ts +0 -18
- package/dist/http/index.d.ts +0 -1
- package/dist/service/AbstractWebService.d.ts +0 -27
- package/dist/service/index.d.ts +0 -1
- package/dist/shared/index.d.ts +0 -1
- package/dist/util/WebAccessTokenUtil.d.ts +0 -20
- /package/dist/decorator/{@table → @Table}/TableType.d.ts +0 -0
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import { FormInstance } from 'element-plus';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
status?(_: {}): any;
|
|
8
|
+
leftCtrl?(_: {}): any;
|
|
9
|
+
middleButton?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: any;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
16
|
+
/**
|
|
17
|
+
* # 弹窗标题
|
|
18
|
+
*/
|
|
19
|
+
title: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* # 确定按钮文字
|
|
25
|
+
*/
|
|
26
|
+
confirmText: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* # 取消按钮文字
|
|
32
|
+
*/
|
|
33
|
+
cancelText: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* # 宽度
|
|
39
|
+
* 支持像素和百分比
|
|
40
|
+
*/
|
|
41
|
+
width: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* # 高度
|
|
47
|
+
* 支持像素和百分比
|
|
48
|
+
*/
|
|
49
|
+
height: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* # 最小宽度
|
|
55
|
+
* 支持像素和百分比
|
|
56
|
+
*/
|
|
57
|
+
minWidth: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* # 最小高度
|
|
63
|
+
* 支持像素和百分比
|
|
64
|
+
*/
|
|
65
|
+
minHeight: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* # 隐藏底部按钮
|
|
71
|
+
*/
|
|
72
|
+
hideButtons: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* # 隐藏 `Footer`
|
|
78
|
+
*/
|
|
79
|
+
hideFooter: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* # 隐藏确认按钮
|
|
85
|
+
*/
|
|
86
|
+
hideConfirm: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* # 是否禁用确认按钮
|
|
92
|
+
*/
|
|
93
|
+
disableConfirm: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* # 显示取消按钮
|
|
99
|
+
*/
|
|
100
|
+
showCancel: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* # 隐藏右上角关闭
|
|
106
|
+
*/
|
|
107
|
+
hideClose: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* # 是否正在 `Loading`
|
|
113
|
+
*/
|
|
114
|
+
loading: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* # 隐藏全屏按钮
|
|
120
|
+
*/
|
|
121
|
+
hideFullscreen: {
|
|
122
|
+
type: BooleanConstructor;
|
|
123
|
+
default: boolean;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* # 是否全屏
|
|
127
|
+
*/
|
|
128
|
+
fullScreen: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
default: boolean;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* # 允许移动
|
|
134
|
+
*/
|
|
135
|
+
movable: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: boolean;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* # Form的Ref实例
|
|
141
|
+
* 如传入此参数,则自动校验,否则请自行校验
|
|
142
|
+
*/
|
|
143
|
+
formRef: {
|
|
144
|
+
type: PropType<FormInstance>;
|
|
145
|
+
default: undefined;
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* # 是否是选择器
|
|
149
|
+
*/
|
|
150
|
+
isSelector: {
|
|
151
|
+
type: BooleanConstructor;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* # 是否支持点击遮罩层关闭
|
|
156
|
+
*/
|
|
157
|
+
hoverClose: {
|
|
158
|
+
type: BooleanConstructor;
|
|
159
|
+
default: boolean;
|
|
160
|
+
};
|
|
161
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
162
|
+
confirm: () => any;
|
|
163
|
+
cancel: () => any;
|
|
164
|
+
fullscreenChange: (isFullScreen: boolean) => any;
|
|
165
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
166
|
+
/**
|
|
167
|
+
* # 弹窗标题
|
|
168
|
+
*/
|
|
169
|
+
title: {
|
|
170
|
+
type: StringConstructor;
|
|
171
|
+
required: true;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* # 确定按钮文字
|
|
175
|
+
*/
|
|
176
|
+
confirmText: {
|
|
177
|
+
type: StringConstructor;
|
|
178
|
+
default: string;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* # 取消按钮文字
|
|
182
|
+
*/
|
|
183
|
+
cancelText: {
|
|
184
|
+
type: StringConstructor;
|
|
185
|
+
default: string;
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* # 宽度
|
|
189
|
+
* 支持像素和百分比
|
|
190
|
+
*/
|
|
191
|
+
width: {
|
|
192
|
+
type: StringConstructor;
|
|
193
|
+
default: string;
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* # 高度
|
|
197
|
+
* 支持像素和百分比
|
|
198
|
+
*/
|
|
199
|
+
height: {
|
|
200
|
+
type: StringConstructor;
|
|
201
|
+
default: string;
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* # 最小宽度
|
|
205
|
+
* 支持像素和百分比
|
|
206
|
+
*/
|
|
207
|
+
minWidth: {
|
|
208
|
+
type: StringConstructor;
|
|
209
|
+
default: string;
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* # 最小高度
|
|
213
|
+
* 支持像素和百分比
|
|
214
|
+
*/
|
|
215
|
+
minHeight: {
|
|
216
|
+
type: StringConstructor;
|
|
217
|
+
default: string;
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* # 隐藏底部按钮
|
|
221
|
+
*/
|
|
222
|
+
hideButtons: {
|
|
223
|
+
type: BooleanConstructor;
|
|
224
|
+
default: boolean;
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* # 隐藏 `Footer`
|
|
228
|
+
*/
|
|
229
|
+
hideFooter: {
|
|
230
|
+
type: BooleanConstructor;
|
|
231
|
+
default: boolean;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* # 隐藏确认按钮
|
|
235
|
+
*/
|
|
236
|
+
hideConfirm: {
|
|
237
|
+
type: BooleanConstructor;
|
|
238
|
+
default: boolean;
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* # 是否禁用确认按钮
|
|
242
|
+
*/
|
|
243
|
+
disableConfirm: {
|
|
244
|
+
type: BooleanConstructor;
|
|
245
|
+
default: boolean;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* # 显示取消按钮
|
|
249
|
+
*/
|
|
250
|
+
showCancel: {
|
|
251
|
+
type: BooleanConstructor;
|
|
252
|
+
default: boolean;
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* # 隐藏右上角关闭
|
|
256
|
+
*/
|
|
257
|
+
hideClose: {
|
|
258
|
+
type: BooleanConstructor;
|
|
259
|
+
default: boolean;
|
|
260
|
+
};
|
|
261
|
+
/**
|
|
262
|
+
* # 是否正在 `Loading`
|
|
263
|
+
*/
|
|
264
|
+
loading: {
|
|
265
|
+
type: BooleanConstructor;
|
|
266
|
+
default: boolean;
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* # 隐藏全屏按钮
|
|
270
|
+
*/
|
|
271
|
+
hideFullscreen: {
|
|
272
|
+
type: BooleanConstructor;
|
|
273
|
+
default: boolean;
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* # 是否全屏
|
|
277
|
+
*/
|
|
278
|
+
fullScreen: {
|
|
279
|
+
type: BooleanConstructor;
|
|
280
|
+
default: boolean;
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* # 允许移动
|
|
284
|
+
*/
|
|
285
|
+
movable: {
|
|
286
|
+
type: BooleanConstructor;
|
|
287
|
+
default: boolean;
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* # Form的Ref实例
|
|
291
|
+
* 如传入此参数,则自动校验,否则请自行校验
|
|
292
|
+
*/
|
|
293
|
+
formRef: {
|
|
294
|
+
type: PropType<FormInstance>;
|
|
295
|
+
default: undefined;
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* # 是否是选择器
|
|
299
|
+
*/
|
|
300
|
+
isSelector: {
|
|
301
|
+
type: BooleanConstructor;
|
|
302
|
+
default: boolean;
|
|
303
|
+
};
|
|
304
|
+
/**
|
|
305
|
+
* # 是否支持点击遮罩层关闭
|
|
306
|
+
*/
|
|
307
|
+
hoverClose: {
|
|
308
|
+
type: BooleanConstructor;
|
|
309
|
+
default: boolean;
|
|
310
|
+
};
|
|
311
|
+
}>> & Readonly<{
|
|
312
|
+
onConfirm?: (() => any) | undefined;
|
|
313
|
+
onCancel?: (() => any) | undefined;
|
|
314
|
+
onFullscreenChange?: ((isFullScreen: boolean) => any) | undefined;
|
|
315
|
+
}>, {
|
|
316
|
+
loading: boolean;
|
|
317
|
+
confirmText: string;
|
|
318
|
+
cancelText: string;
|
|
319
|
+
width: string;
|
|
320
|
+
height: string;
|
|
321
|
+
minWidth: string;
|
|
322
|
+
minHeight: string;
|
|
323
|
+
hideButtons: boolean;
|
|
324
|
+
hideFooter: boolean;
|
|
325
|
+
hideConfirm: boolean;
|
|
326
|
+
disableConfirm: boolean;
|
|
327
|
+
showCancel: boolean;
|
|
328
|
+
hideClose: boolean;
|
|
329
|
+
hideFullscreen: boolean;
|
|
330
|
+
fullScreen: boolean;
|
|
331
|
+
movable: boolean;
|
|
332
|
+
formRef: FormInstance;
|
|
333
|
+
isSelector: boolean;
|
|
334
|
+
hoverClose: boolean;
|
|
335
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
336
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
337
|
+
export default _default;
|
|
338
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
339
|
+
new (): {
|
|
340
|
+
$slots: S;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { RootEntity } from '../../base';
|
|
3
|
+
/**
|
|
4
|
+
* # 弹窗的配置
|
|
5
|
+
*
|
|
6
|
+
* @author Hamm.cn
|
|
7
|
+
*/
|
|
8
|
+
export declare class DialogProps {
|
|
9
|
+
/**
|
|
10
|
+
* ### 使用无参 `DialogProps` 配置
|
|
11
|
+
*/
|
|
12
|
+
static create(): {
|
|
13
|
+
/**
|
|
14
|
+
* ### 弹窗的确认按钮被点击事件
|
|
15
|
+
* 如果给 `ADialog` 传入了 `form` 表单的 `ref` 实体对象, 则校验通过之后才会回调此方法
|
|
16
|
+
*/
|
|
17
|
+
onConfirm: {
|
|
18
|
+
type: PropType<(data?: unknown) => void>;
|
|
19
|
+
default: () => () => void;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* ### 弹窗的取消或关闭按钮被点击事件
|
|
23
|
+
*/
|
|
24
|
+
onCancel: {
|
|
25
|
+
type: PropType<() => void>;
|
|
26
|
+
default: () => () => void;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* ### 弹窗的回调事件,不关闭弹窗
|
|
30
|
+
*/
|
|
31
|
+
onCallback: {
|
|
32
|
+
type: PropType<() => void>;
|
|
33
|
+
default: () => () => void;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* ### 使用实体的 `DialogProps` 配置
|
|
38
|
+
* - `P` Param的类型
|
|
39
|
+
* @param value `可选` 默认参数
|
|
40
|
+
*/
|
|
41
|
+
static withParam<P>(value?: P | null): {
|
|
42
|
+
/**
|
|
43
|
+
* ### 弹窗的确认按钮被点击事件
|
|
44
|
+
* 如果给 `ADialog` 传入了 `form` 表单的 `ref` 实体对象, 则校验通过之后才会回调此方法
|
|
45
|
+
*/
|
|
46
|
+
onConfirm: {
|
|
47
|
+
type: PropType<(data?: unknown) => void>;
|
|
48
|
+
default: () => () => void;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* ### 弹窗的取消或关闭按钮被点击事件
|
|
52
|
+
*/
|
|
53
|
+
onCancel: {
|
|
54
|
+
type: PropType<() => void>;
|
|
55
|
+
default: () => () => void;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* ### 弹窗的回调事件,不关闭弹窗
|
|
59
|
+
*/
|
|
60
|
+
onCallback: {
|
|
61
|
+
type: PropType<() => void>;
|
|
62
|
+
default: () => () => void;
|
|
63
|
+
};
|
|
64
|
+
} & {
|
|
65
|
+
/**
|
|
66
|
+
* ### 父窗体弹出当前窗体时传入的参数
|
|
67
|
+
*/
|
|
68
|
+
param: {
|
|
69
|
+
type: PropType<P>;
|
|
70
|
+
default: P | null;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* ### 使用 `ID` 的 `DialogProps` 配置
|
|
75
|
+
* 传入的 `param` 参数为 `Number` 类型的 `ID`
|
|
76
|
+
*/
|
|
77
|
+
static withId(): {
|
|
78
|
+
/**
|
|
79
|
+
* ### 弹窗的确认按钮被点击事件
|
|
80
|
+
* 如果给 `ADialog` 传入了 `form` 表单的 `ref` 实体对象, 则校验通过之后才会回调此方法
|
|
81
|
+
*/
|
|
82
|
+
onConfirm: {
|
|
83
|
+
type: PropType<(data?: unknown) => void>;
|
|
84
|
+
default: () => () => void;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* ### 弹窗的取消或关闭按钮被点击事件
|
|
88
|
+
*/
|
|
89
|
+
onCancel: {
|
|
90
|
+
type: PropType<() => void>;
|
|
91
|
+
default: () => () => void;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* ### 弹窗的回调事件,不关闭弹窗
|
|
95
|
+
*/
|
|
96
|
+
onCallback: {
|
|
97
|
+
type: PropType<() => void>;
|
|
98
|
+
default: () => () => void;
|
|
99
|
+
};
|
|
100
|
+
} & {
|
|
101
|
+
/**
|
|
102
|
+
* ### 父窗体弹出当前窗体时传入的参数
|
|
103
|
+
*/
|
|
104
|
+
param: {
|
|
105
|
+
type: PropType<number>;
|
|
106
|
+
default: number | null;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* ### 使用选择器的 `DialogProps` 配置
|
|
111
|
+
* - `S`: `selectList` 参数的类型
|
|
112
|
+
* - `P`: `param` 参数的类型(默认同 `selectList` 类型一致)
|
|
113
|
+
*
|
|
114
|
+
* @param param 选择器的参数
|
|
115
|
+
*/
|
|
116
|
+
static withSelector<S extends RootEntity, P extends RootEntity = S>(param?: P | null): {
|
|
117
|
+
/**
|
|
118
|
+
* ### 弹窗的确认按钮被点击事件
|
|
119
|
+
* 如果给 `ADialog` 传入了 `form` 表单的 `ref` 实体对象, 则校验通过之后才会回调此方法
|
|
120
|
+
*/
|
|
121
|
+
onConfirm: {
|
|
122
|
+
type: PropType<(data?: unknown) => void>;
|
|
123
|
+
default: () => () => void;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* ### 弹窗的取消或关闭按钮被点击事件
|
|
127
|
+
*/
|
|
128
|
+
onCancel: {
|
|
129
|
+
type: PropType<() => void>;
|
|
130
|
+
default: () => () => void;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* ### 弹窗的回调事件,不关闭弹窗
|
|
134
|
+
*/
|
|
135
|
+
onCallback: {
|
|
136
|
+
type: PropType<() => void>;
|
|
137
|
+
default: () => () => void;
|
|
138
|
+
};
|
|
139
|
+
} & {
|
|
140
|
+
/**
|
|
141
|
+
* ### 父窗体弹出当前窗体时传入的参数
|
|
142
|
+
*/
|
|
143
|
+
param: {
|
|
144
|
+
type: PropType<P>;
|
|
145
|
+
default: P | null;
|
|
146
|
+
};
|
|
147
|
+
} & {
|
|
148
|
+
/**
|
|
149
|
+
* ### 是否使用多选
|
|
150
|
+
*/
|
|
151
|
+
isMultiple: {
|
|
152
|
+
type: BooleanConstructor;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* ### 已经选择了的实体列表数组
|
|
157
|
+
* ! 仅在 `isMultiple` 为true时会有值
|
|
158
|
+
* 请放心使用ID属性, 其他的属性不一定有
|
|
159
|
+
*/
|
|
160
|
+
selectList: {
|
|
161
|
+
type: {
|
|
162
|
+
(arrayLength: number): S[];
|
|
163
|
+
(...items: S[]): S[];
|
|
164
|
+
new (arrayLength: number): S[];
|
|
165
|
+
new (...items: S[]): S[];
|
|
166
|
+
isArray(arg: any): arg is any[];
|
|
167
|
+
readonly prototype: any[];
|
|
168
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
169
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
170
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
171
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
172
|
+
of<T>(...items: T[]): T[];
|
|
173
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
174
|
+
};
|
|
175
|
+
default: () => never[];
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* ### 传入参数为一个实体
|
|
179
|
+
*
|
|
180
|
+
* 能保证的是, 确实是一个实体的基类, 可以调用一些 `AirModel` 的方法
|
|
181
|
+
*
|
|
182
|
+
* ```typescript
|
|
183
|
+
* AirClassTransformer.parse(props.param.toSourceObject(), UserEntity)
|
|
184
|
+
* ```
|
|
185
|
+
*/
|
|
186
|
+
param: {
|
|
187
|
+
type: PropType<P>;
|
|
188
|
+
default: P | null;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { IJson } from '@airpower/transformer';
|
|
2
|
+
import { Component } from 'vue';
|
|
3
|
+
import { RootEntity } from '../../base';
|
|
4
|
+
import { ExportModel } from '../../model';
|
|
5
|
+
import { IFile } from '../../util';
|
|
6
|
+
import { IUploadProps } from '../upload';
|
|
7
|
+
/**
|
|
8
|
+
* # 弹窗工具类
|
|
9
|
+
* @author Hamm.cn
|
|
10
|
+
*/
|
|
11
|
+
export declare class DialogUtil {
|
|
12
|
+
/**
|
|
13
|
+
* ### 弹出对话框的内部方法
|
|
14
|
+
* @param view 使用的视图组件 传入一个 `import` 的 `vue`
|
|
15
|
+
* @param param 弹窗参数 将传入到合并到 `props` 上
|
|
16
|
+
*/
|
|
17
|
+
static build<T>(view: Component, param: IJson): Promise<T>;
|
|
18
|
+
/**
|
|
19
|
+
* ### 弹出一个弹窗
|
|
20
|
+
* @param view 使用的视图组件 传入一个 `import` 的 `vue`
|
|
21
|
+
* @param param `可选` 参数 将传入到目标对象的 `props.param` 参数上
|
|
22
|
+
*/
|
|
23
|
+
static show<T>(view: Component, param?: unknown): Promise<T>;
|
|
24
|
+
/**
|
|
25
|
+
* ### 弹出上传文件对话框
|
|
26
|
+
* @param config `可选` 上传自定义配置
|
|
27
|
+
* @param customConfirm `可选` 自定义确认按钮回调方法
|
|
28
|
+
*/
|
|
29
|
+
static showUpload<F extends IFile & RootEntity>(config?: IUploadProps<F>, customConfirm?: () => void): Promise<F>;
|
|
30
|
+
/**
|
|
31
|
+
* ### 弹出一个单选选择器
|
|
32
|
+
* @param view 使用的视图组件 传入一个 `import` 的 `vue`
|
|
33
|
+
* @param param `可选` 普通参数 将传入到目标对象的 `props.param` 参数上
|
|
34
|
+
*/
|
|
35
|
+
static select<E extends RootEntity>(view: Component, param?: E | undefined): Promise<E>;
|
|
36
|
+
/**
|
|
37
|
+
* ### 弹出一个多选选择器
|
|
38
|
+
* @param view 使用的视图组件 传入一个 `import` 的 `vue`
|
|
39
|
+
* @param selectList `可选` 已选列表 将传入到目标对象的 `props.selectList` 参数上
|
|
40
|
+
* @param param `可选` 普通参数 将传入到目标对象的 `props.param` 参数上
|
|
41
|
+
*/
|
|
42
|
+
static selectList<E extends RootEntity>(view: Component, selectList?: E[], param?: E | undefined): Promise<E[]>;
|
|
43
|
+
/**
|
|
44
|
+
* ### 创建一个导出任务
|
|
45
|
+
* @param exportModel `可选` 导出参数对象
|
|
46
|
+
*/
|
|
47
|
+
static createExportTask(exportModel: ExportModel): Promise<unknown>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
footer?(_: {}): any;
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { IEnum } from '@airpower/enum';
|
|
2
|
+
import { ITransformerConstructor } from '@airpower/transformer';
|
|
3
|
+
import { PropType } from 'vue';
|
|
4
|
+
import { RootEntity } from '../../base';
|
|
5
|
+
import { ITree } from '../../model';
|
|
6
|
+
declare const _default: <E extends RootEntity>(__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<{
|
|
7
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
entity: ITransformerConstructor<E>;
|
|
10
|
+
tree: ITree[];
|
|
11
|
+
modelValue: [{
|
|
12
|
+
type: PropType<E>;
|
|
13
|
+
default: null;
|
|
14
|
+
}] extends [import('vue').Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? import('@vue/shared').IfAny<V, V, D> : V : V : {
|
|
15
|
+
type: PropType<E>;
|
|
16
|
+
default: null;
|
|
17
|
+
};
|
|
18
|
+
readonly: boolean;
|
|
19
|
+
disabledValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
20
|
+
list: IEnum<number>[];
|
|
21
|
+
}> & Omit<{
|
|
22
|
+
readonly disabled: boolean;
|
|
23
|
+
readonly entity: ITransformerConstructor<E>;
|
|
24
|
+
readonly field: string;
|
|
25
|
+
readonly modelValue: [{
|
|
26
|
+
type: PropType<E>;
|
|
27
|
+
default: null;
|
|
28
|
+
}] extends [import('vue').Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? import('@vue/shared').IfAny<V, V, D> : V : V : {
|
|
29
|
+
type: PropType<E>;
|
|
30
|
+
default: null;
|
|
31
|
+
};
|
|
32
|
+
readonly readonly: boolean;
|
|
33
|
+
readonly tree?: ITree[] | undefined;
|
|
34
|
+
readonly disabledValue?: string | number | boolean | unknown[] | Record<string, any> | undefined;
|
|
35
|
+
readonly list?: IEnum<number>[] | undefined;
|
|
36
|
+
readonly onClear?: (() => any) | undefined;
|
|
37
|
+
readonly onChange?: ((value: E) => any) | undefined;
|
|
38
|
+
readonly "onUpdate:modelValue"?: ((value: E) => any) | undefined;
|
|
39
|
+
readonly onBlur?: (() => any) | undefined;
|
|
40
|
+
readonly onFocus?: (() => any) | undefined;
|
|
41
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "entity" | "tree" | "modelValue" | "readonly" | "disabledValue" | "list">, "onFocus" | "onBlur" | "onChange" | "field" | "onClear" | "onUpdate:modelValue" | ("disabled" | "entity" | "tree" | "modelValue" | "readonly" | "disabledValue" | "list")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
42
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
43
|
+
attrs: any;
|
|
44
|
+
slots: {
|
|
45
|
+
default?(_: {}): any;
|
|
46
|
+
};
|
|
47
|
+
emit: ((evt: "clear") => void) & ((evt: "change", value: E) => void) & ((evt: "update:modelValue", value: E) => void) & ((evt: "blur") => void) & ((evt: "focus") => void);
|
|
48
|
+
}>) => import('vue').VNode & {
|
|
49
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
50
|
+
};
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_PrettifyLocal<T> = {
|
|
53
|
+
[K in keyof T]: T[K];
|
|
54
|
+
} & {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { RootEntity } from '../../base';
|
|
2
|
+
import { IMenu } from '../menu';
|
|
3
|
+
declare const _default: <T extends IMenu & RootEntity>(__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<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
5
|
+
menuList: T[];
|
|
6
|
+
uniqueOpened: boolean;
|
|
7
|
+
menuWidth: number;
|
|
8
|
+
hideMenu: boolean;
|
|
9
|
+
headerHeight: number;
|
|
10
|
+
}> & Omit<{
|
|
11
|
+
readonly menuList: T[];
|
|
12
|
+
readonly uniqueOpened: boolean;
|
|
13
|
+
readonly menuWidth: number;
|
|
14
|
+
readonly hideMenu: boolean;
|
|
15
|
+
readonly headerHeight: number;
|
|
16
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "menuList" | "uniqueOpened" | "menuWidth" | "hideMenu" | "headerHeight">, "menuList" | "uniqueOpened" | "menuWidth" | "hideMenu" | "headerHeight"> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
17
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
18
|
+
attrs: any;
|
|
19
|
+
slots: {
|
|
20
|
+
logo?(_: {}): any;
|
|
21
|
+
navigator?(_: {}): any;
|
|
22
|
+
user?(_: {}): any;
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
emit: {};
|
|
26
|
+
}>) => import('vue').VNode & {
|
|
27
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
|
+
};
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_PrettifyLocal<T> = {
|
|
31
|
+
[K in keyof T]: T[K];
|
|
32
|
+
} & {};
|