@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,144 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
tips?(_: {}): any;
|
|
5
|
+
custom?(_: {}): any;
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
|
+
/**
|
|
14
|
+
* # 最低高度
|
|
15
|
+
*/
|
|
16
|
+
minHeight: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: undefined;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* # 隐藏标题
|
|
22
|
+
*/
|
|
23
|
+
hideTitle: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* # 分组标题
|
|
29
|
+
*/
|
|
30
|
+
title: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* # 分组列数
|
|
36
|
+
* 配置范围 `1~3`, 默认为 `1`
|
|
37
|
+
*/
|
|
38
|
+
column: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* # 自适应高度
|
|
44
|
+
*/
|
|
45
|
+
autoHeight: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* # 列数自适应
|
|
51
|
+
*/
|
|
52
|
+
autoCol: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* # 是否禁用展开收起
|
|
58
|
+
*/
|
|
59
|
+
disableCollapse: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* # 是否默认收起
|
|
65
|
+
*/
|
|
66
|
+
collapse: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
71
|
+
/**
|
|
72
|
+
* # 最低高度
|
|
73
|
+
*/
|
|
74
|
+
minHeight: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: undefined;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* # 隐藏标题
|
|
80
|
+
*/
|
|
81
|
+
hideTitle: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* # 分组标题
|
|
87
|
+
*/
|
|
88
|
+
title: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* # 分组列数
|
|
94
|
+
* 配置范围 `1~3`, 默认为 `1`
|
|
95
|
+
*/
|
|
96
|
+
column: {
|
|
97
|
+
type: NumberConstructor;
|
|
98
|
+
default: number;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* # 自适应高度
|
|
102
|
+
*/
|
|
103
|
+
autoHeight: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* # 列数自适应
|
|
109
|
+
*/
|
|
110
|
+
autoCol: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* # 是否禁用展开收起
|
|
116
|
+
*/
|
|
117
|
+
disableCollapse: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* # 是否默认收起
|
|
123
|
+
*/
|
|
124
|
+
collapse: {
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
128
|
+
}>> & Readonly<{}>, {
|
|
129
|
+
title: string;
|
|
130
|
+
minHeight: string;
|
|
131
|
+
hideTitle: boolean;
|
|
132
|
+
column: number;
|
|
133
|
+
autoHeight: boolean;
|
|
134
|
+
autoCol: boolean;
|
|
135
|
+
disableCollapse: boolean;
|
|
136
|
+
collapse: boolean;
|
|
137
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
138
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
139
|
+
export default _default;
|
|
140
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
141
|
+
new (): {
|
|
142
|
+
$slots: S;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { IJson, ITransformerConstructor } from '@airpower/transformer';
|
|
2
|
+
import { RootEntity } from '../../base';
|
|
3
|
+
import { IFile } from '../../util';
|
|
4
|
+
declare const _default: <F extends IFile & 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<{
|
|
5
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
6
|
+
data: IJson<any>;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
uploadUrl: string;
|
|
10
|
+
extensions: unknown[];
|
|
11
|
+
entity: ITransformerConstructor<F>;
|
|
12
|
+
headers: IJson<any>;
|
|
13
|
+
limit: number;
|
|
14
|
+
upload: boolean;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
clearable: boolean;
|
|
17
|
+
src: string;
|
|
18
|
+
showTips: boolean;
|
|
19
|
+
uploadFileName: string;
|
|
20
|
+
}> & Omit<{
|
|
21
|
+
readonly data: IJson<any>;
|
|
22
|
+
readonly width: number;
|
|
23
|
+
readonly height: number;
|
|
24
|
+
readonly uploadUrl: string;
|
|
25
|
+
readonly extensions: unknown[];
|
|
26
|
+
readonly headers: IJson<any>;
|
|
27
|
+
readonly limit: number;
|
|
28
|
+
readonly upload: boolean;
|
|
29
|
+
readonly clearable: boolean;
|
|
30
|
+
readonly showTips: boolean;
|
|
31
|
+
readonly uploadFileName: string;
|
|
32
|
+
readonly entity?: ITransformerConstructor<F> | undefined;
|
|
33
|
+
readonly placeholder?: string | undefined;
|
|
34
|
+
readonly src?: string | undefined;
|
|
35
|
+
readonly onOnRemove?: (() => any) | undefined;
|
|
36
|
+
readonly onOnUpload?: ((file: F) => any) | undefined;
|
|
37
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "data" | "width" | "height" | "uploadUrl" | "extensions" | "entity" | "headers" | "limit" | "upload" | "placeholder" | "clearable" | "src" | "showTips" | "uploadFileName">, "onOnRemove" | "onOnUpload" | ("data" | "width" | "height" | "uploadUrl" | "extensions" | "entity" | "headers" | "limit" | "upload" | "placeholder" | "clearable" | "src" | "showTips" | "uploadFileName")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
38
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
39
|
+
attrs: any;
|
|
40
|
+
slots: {};
|
|
41
|
+
emit: ((evt: "onRemove") => void) & ((evt: "onUpload", file: F) => void);
|
|
42
|
+
}>) => import('vue').VNode & {
|
|
43
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
44
|
+
};
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_PrettifyLocal<T> = {
|
|
47
|
+
[K in keyof T]: T[K];
|
|
48
|
+
} & {};
|
|
@@ -1,2 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
export * from './button';
|
|
2
|
+
export * from './copy';
|
|
3
|
+
export * from './datetime';
|
|
4
|
+
export * from './desensitize';
|
|
5
|
+
export * from './dialog';
|
|
6
|
+
export * from './empty';
|
|
7
|
+
export * from './form';
|
|
8
|
+
export * from './frame';
|
|
9
|
+
export * from './group';
|
|
10
|
+
export * from './image';
|
|
11
|
+
export * from './input';
|
|
12
|
+
export * from './menu';
|
|
13
|
+
export * from './money';
|
|
14
|
+
export * from './page';
|
|
15
|
+
export * from './panel';
|
|
16
|
+
export * from './payload';
|
|
17
|
+
export * from './phone';
|
|
18
|
+
export * from './qrcode';
|
|
19
|
+
export * from './select';
|
|
20
|
+
export * from './tab';
|
|
21
|
+
export * from './table';
|
|
22
|
+
export * from './tree';
|
|
23
|
+
export * from './upload';
|
|
24
|
+
export * from './user';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* # 日期时间类型
|
|
3
|
+
*
|
|
4
|
+
* @author Hamm.cn
|
|
5
|
+
*/
|
|
6
|
+
export declare enum DateTimeType {
|
|
7
|
+
/**
|
|
8
|
+
* ### 日期
|
|
9
|
+
*/
|
|
10
|
+
DATE = "date",
|
|
11
|
+
/**
|
|
12
|
+
* ### 星期
|
|
13
|
+
*/
|
|
14
|
+
WEEK = "week",
|
|
15
|
+
/**
|
|
16
|
+
* ### 月份
|
|
17
|
+
*/
|
|
18
|
+
MONTH = "month",
|
|
19
|
+
/**
|
|
20
|
+
* ### 年份
|
|
21
|
+
*/
|
|
22
|
+
YEAR = "year",
|
|
23
|
+
/**
|
|
24
|
+
* ### 日期时间
|
|
25
|
+
*/
|
|
26
|
+
DATETIME = "datetime"
|
|
27
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { IEnum } from '@airpower/enum';
|
|
2
|
+
import { ITransformerConstructor } from '@airpower/transformer';
|
|
3
|
+
import { RootEntity } from '../../base';
|
|
4
|
+
import { ITree } from '../../model';
|
|
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<{
|
|
6
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
entity: ITransformerConstructor<E>;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
tree: T[];
|
|
11
|
+
dateShowFormatter: string;
|
|
12
|
+
modelValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
13
|
+
readonly: boolean;
|
|
14
|
+
disabledValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
15
|
+
list: EM[];
|
|
16
|
+
modelModifiers: Record<string, any>;
|
|
17
|
+
modifier: string;
|
|
18
|
+
showClear: boolean;
|
|
19
|
+
onSearch: Function;
|
|
20
|
+
}> & Omit<{
|
|
21
|
+
readonly disabled: boolean;
|
|
22
|
+
readonly placeholder: string;
|
|
23
|
+
readonly readonly: boolean;
|
|
24
|
+
readonly modelModifiers: Record<string, any>;
|
|
25
|
+
readonly showClear: boolean;
|
|
26
|
+
readonly onSearch: Function;
|
|
27
|
+
readonly entity?: ITransformerConstructor<E> | undefined;
|
|
28
|
+
readonly tree?: T[] | undefined;
|
|
29
|
+
readonly dateShowFormatter?: string | undefined;
|
|
30
|
+
readonly modelValue?: string | number | boolean | unknown[] | Record<string, any> | undefined;
|
|
31
|
+
readonly disabledValue?: string | number | boolean | unknown[] | Record<string, any> | undefined;
|
|
32
|
+
readonly list?: EM[] | undefined;
|
|
33
|
+
readonly modifier?: string | undefined;
|
|
34
|
+
readonly onClear?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
readonly onBlur?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
readonly onFocus?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "entity" | "placeholder" | "tree" | "dateShowFormatter" | "modelValue" | "readonly" | "disabledValue" | "list" | "modelModifiers" | "modifier" | "showClear" | "onSearch">, "onFocus" | "onBlur" | "onChange" | "onClear" | "onUpdate:modelValue" | ("disabled" | "entity" | "placeholder" | "tree" | "dateShowFormatter" | "modelValue" | "readonly" | "disabledValue" | "list" | "modelModifiers" | "modifier" | "showClear" | "onSearch")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
40
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
41
|
+
attrs: any;
|
|
42
|
+
slots: Partial<Record<NonNullable<string | number | symbol>, (_: {}) => any>>;
|
|
43
|
+
emit: (event: "clear" | "change" | "update:modelValue" | "blur" | "focus", ...args: any[]) => void;
|
|
44
|
+
}>) => import('vue').VNode & {
|
|
45
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
46
|
+
};
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_PrettifyLocal<T> = {
|
|
49
|
+
[K in keyof T]: T[K];
|
|
50
|
+
} & {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RootEntity } from '../../base';
|
|
2
|
+
import { IMenu } from './IMenu';
|
|
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<{}> & Omit<{
|
|
5
|
+
readonly menuList: T[];
|
|
6
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "menuList"> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
7
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
8
|
+
attrs: any;
|
|
9
|
+
slots: {};
|
|
10
|
+
emit: {};
|
|
11
|
+
}>) => import('vue').VNode & {
|
|
12
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_PrettifyLocal<T> = {
|
|
16
|
+
[K in keyof T]: T[K];
|
|
17
|
+
} & {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ITree } from '../../model';
|
|
2
|
+
/**
|
|
3
|
+
* # 菜单接口
|
|
4
|
+
*
|
|
5
|
+
* @author Hamm.cn
|
|
6
|
+
*/
|
|
7
|
+
export interface IMenu extends ITree {
|
|
8
|
+
/**
|
|
9
|
+
* ### 菜单 `URL`
|
|
10
|
+
*/
|
|
11
|
+
path: string;
|
|
12
|
+
/**
|
|
13
|
+
* ### 菜单图标
|
|
14
|
+
*/
|
|
15
|
+
icon: string;
|
|
16
|
+
/**
|
|
17
|
+
* ### 菜单绑定组件路径
|
|
18
|
+
*/
|
|
19
|
+
component: string;
|
|
20
|
+
/**
|
|
21
|
+
* ### 菜单是否禁用
|
|
22
|
+
*/
|
|
23
|
+
isDisabled: boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RootEntity } from '../../base';
|
|
2
|
+
import { IMenu } from './';
|
|
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
|
+
uniqueOpened: boolean;
|
|
6
|
+
}> & Omit<{
|
|
7
|
+
readonly menuList: T[];
|
|
8
|
+
readonly uniqueOpened: boolean;
|
|
9
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "uniqueOpened">, "menuList" | "uniqueOpened"> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
10
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
11
|
+
attrs: any;
|
|
12
|
+
slots: {};
|
|
13
|
+
emit: {};
|
|
14
|
+
}>) => import('vue').VNode & {
|
|
15
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_PrettifyLocal<T> = {
|
|
19
|
+
[K in keyof T]: T[K];
|
|
20
|
+
} & {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { MoneyDirection } from './type';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
/**
|
|
5
|
+
* # 💰金额
|
|
6
|
+
*/
|
|
7
|
+
money: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
default: number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* # 💰金额的小数精度
|
|
13
|
+
* 默认为 `WebConfig.moneyPrecision`
|
|
14
|
+
*/
|
|
15
|
+
precision: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* # 💰金额的前缀
|
|
21
|
+
*/
|
|
22
|
+
prefix: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* # 💰金额的小数舍弃方式
|
|
28
|
+
* 默认为 `WebConfig.moneyDirection`
|
|
29
|
+
*/
|
|
30
|
+
direction: {
|
|
31
|
+
type: PropType<MoneyDirection>;
|
|
32
|
+
default: MoneyDirection;
|
|
33
|
+
};
|
|
34
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
35
|
+
/**
|
|
36
|
+
* # 💰金额
|
|
37
|
+
*/
|
|
38
|
+
money: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* # 💰金额的小数精度
|
|
44
|
+
* 默认为 `WebConfig.moneyPrecision`
|
|
45
|
+
*/
|
|
46
|
+
precision: {
|
|
47
|
+
type: NumberConstructor;
|
|
48
|
+
default: number;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* # 💰金额的前缀
|
|
52
|
+
*/
|
|
53
|
+
prefix: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* # 💰金额的小数舍弃方式
|
|
59
|
+
* 默认为 `WebConfig.moneyDirection`
|
|
60
|
+
*/
|
|
61
|
+
direction: {
|
|
62
|
+
type: PropType<MoneyDirection>;
|
|
63
|
+
default: MoneyDirection;
|
|
64
|
+
};
|
|
65
|
+
}>> & Readonly<{}>, {
|
|
66
|
+
precision: number;
|
|
67
|
+
money: number;
|
|
68
|
+
prefix: string;
|
|
69
|
+
direction: MoneyDirection;
|
|
70
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
71
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type MoneyDirection = 'up' | 'down' | 'round';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RootEntity } from '../../base';
|
|
2
|
+
import { QueryPage, QueryResponsePage } from '../../model';
|
|
3
|
+
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<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
|
+
readonly response: QueryResponsePage<E>;
|
|
6
|
+
readonly onChange?: ((page: QueryPage) => any) | undefined;
|
|
7
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "response"> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
8
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: {};
|
|
11
|
+
emit: (evt: "change", page: QueryPage) => void;
|
|
12
|
+
}>) => import('vue').VNode & {
|
|
13
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_PrettifyLocal<T> = {
|
|
17
|
+
[K in keyof T]: T[K];
|
|
18
|
+
} & {};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
icon?(_: {}): any;
|
|
5
|
+
headerRight?(_: {}): any;
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
footerLeft?(_: {}): any;
|
|
8
|
+
footerRight?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
15
|
+
/**
|
|
16
|
+
* # 卡片的标题
|
|
17
|
+
* 默认读取当前路由元数据里的 `name` 属性
|
|
18
|
+
*/
|
|
19
|
+
title: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* # 描述
|
|
25
|
+
*/
|
|
26
|
+
description: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* # 是否显示标题
|
|
32
|
+
*/
|
|
33
|
+
showTitle: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* # 是否隐藏底部
|
|
39
|
+
*/
|
|
40
|
+
hideFooter: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* # 是否显示图标
|
|
46
|
+
*/
|
|
47
|
+
hideIcon: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* # 是否允许全屏
|
|
53
|
+
*/
|
|
54
|
+
allowFullscreen: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
59
|
+
/**
|
|
60
|
+
* # 卡片的标题
|
|
61
|
+
* 默认读取当前路由元数据里的 `name` 属性
|
|
62
|
+
*/
|
|
63
|
+
title: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* # 描述
|
|
69
|
+
*/
|
|
70
|
+
description: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* # 是否显示标题
|
|
76
|
+
*/
|
|
77
|
+
showTitle: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* # 是否隐藏底部
|
|
83
|
+
*/
|
|
84
|
+
hideFooter: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* # 是否显示图标
|
|
90
|
+
*/
|
|
91
|
+
hideIcon: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* # 是否允许全屏
|
|
97
|
+
*/
|
|
98
|
+
allowFullscreen: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
}>> & Readonly<{}>, {
|
|
103
|
+
hideIcon: boolean;
|
|
104
|
+
hideFooter: boolean;
|
|
105
|
+
allowFullscreen: boolean;
|
|
106
|
+
description: string;
|
|
107
|
+
showTitle: boolean;
|
|
108
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
109
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
110
|
+
export default _default;
|
|
111
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
112
|
+
new (): {
|
|
113
|
+
$slots: S;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Component, PropType } from 'vue';
|
|
2
|
+
import { RootEntity } from '../../base';
|
|
3
|
+
import { IPayload } from './IPayload';
|
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
/**
|
|
6
|
+
* # 负载对象
|
|
7
|
+
*/
|
|
8
|
+
payload: {
|
|
9
|
+
type: PropType<IPayload & RootEntity>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* # 视图文件
|
|
14
|
+
*/
|
|
15
|
+
view: {
|
|
16
|
+
type: PropType<Component>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
20
|
+
/**
|
|
21
|
+
* # 负载对象
|
|
22
|
+
*/
|
|
23
|
+
payload: {
|
|
24
|
+
type: PropType<IPayload & RootEntity>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* # 视图文件
|
|
29
|
+
*/
|
|
30
|
+
view: {
|
|
31
|
+
type: PropType<Component>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
35
|
+
export default _default;
|