@epie/bi-crud 2.0.26 → 2.0.28
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/lib/bi-crud.esm.js +14481 -0
- package/lib/bi-crud.umd.js +14512 -0
- package/lib/components/add-btn.d.ts +2 -0
- package/lib/components/adv-btn.d.ts +2 -0
- package/lib/components/adv-search.d.ts +48 -0
- package/lib/components/context-menu/index.d.ts +54 -0
- package/lib/components/crud/helper.d.ts +16 -0
- package/lib/components/crud/index.d.ts +96 -0
- package/lib/components/descriptions/descriptions.d.ts +100 -0
- package/lib/components/descriptions/helper.d.ts +3 -0
- package/lib/components/descriptions/index.d.ts +5 -0
- package/lib/components/dialog/index.d.ts +79 -0
- package/lib/components/duration/duration.d.ts +73 -0
- package/lib/components/duration/index.d.ts +5 -0
- package/lib/components/error-message.d.ts +6 -0
- package/lib/components/export-btn.d.ts +15 -0
- package/lib/components/filter-group.d.ts +41 -0
- package/lib/components/filter.d.ts +6 -0
- package/lib/components/flex1.d.ts +2 -0
- package/lib/components/form/form.d.ts +102 -0
- package/lib/components/form/helper.d.ts +28 -0
- package/lib/components/form/index.d.ts +11 -0
- package/lib/components/form-tabs.d.ts +44 -0
- package/lib/components/index.d.ts +4 -0
- package/lib/components/inline-search/helper.d.ts +4 -0
- package/lib/components/inline-search/index.d.ts +3 -0
- package/lib/components/inline-search/inlinesearch.d.ts +66 -0
- package/lib/components/multi-delete-btn.d.ts +2 -0
- package/lib/components/pagination.d.ts +9 -0
- package/lib/components/query.d.ts +35 -0
- package/lib/components/refresh-btn.d.ts +2 -0
- package/lib/components/search-key.d.ts +41 -0
- package/lib/components/table/helper.d.ts +23 -0
- package/lib/components/table/index.d.ts +59 -0
- package/lib/components/upsert/index.d.ts +64 -0
- package/lib/css/bi-crud.min.css +1 -0
- package/lib/emitter.d.ts +3 -0
- package/lib/hooks/browser.d.ts +4 -0
- package/lib/hooks/core.d.ts +16 -0
- package/lib/hooks/crud.d.ts +15 -0
- package/lib/hooks/form.d.ts +6 -0
- package/lib/hooks/i18n.d.ts +1 -0
- package/lib/hooks/index.d.ts +4 -0
- package/lib/hooks/proxy.d.ts +1 -0
- package/lib/index.d.ts +12 -0
- package/lib/locales/en-US.d.ts +73 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/zh-CN.d.ts +73 -0
- package/lib/types/base/adv-search.d.ts +15 -0
- package/lib/types/base/base.d.ts +14 -0
- package/lib/types/base/browser.d.ts +4 -0
- package/lib/types/base/context-menu.d.ts +31 -0
- package/lib/types/base/crud.d.ts +133 -0
- package/lib/types/base/element-plus.d.ts +15 -0
- package/lib/types/base/emitter.d.ts +14 -0
- package/lib/types/base/hook.d.ts +8 -0
- package/lib/types/base/index.d.ts +11 -0
- package/lib/types/base/render.d.ts +15 -0
- package/lib/types/base/table.d.ts +76 -0
- package/lib/types/base/test.d.ts +3 -0
- package/lib/types/base/upsert.d.ts +25 -0
- package/lib/types/emitter.d.ts +3 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/utils/form.d.ts +7 -0
- package/lib/utils/index.d.ts +18 -0
- package/lib/utils/mitt.d.ts +9 -0
- package/lib/utils/parse.d.ts +8 -0
- package/lib/utils/test.d.ts +43 -0
- package/lib/utils/vnode.d.ts +16 -0
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => false | JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
import { EpieForm } from "../types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
items: {
|
|
5
|
+
type: PropType<EpieForm.Item[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
title: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
size: {
|
|
13
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
op: {
|
|
17
|
+
type: ArrayConstructor;
|
|
18
|
+
default: () => string[];
|
|
19
|
+
};
|
|
20
|
+
onSearch: FunctionConstructor;
|
|
21
|
+
}, any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("reset" | "clear")[], "reset" | "clear", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
items: {
|
|
23
|
+
type: PropType<EpieForm.Item[]>;
|
|
24
|
+
default: () => never[];
|
|
25
|
+
};
|
|
26
|
+
title: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
size: {
|
|
31
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
op: {
|
|
35
|
+
type: ArrayConstructor;
|
|
36
|
+
default: () => string[];
|
|
37
|
+
};
|
|
38
|
+
onSearch: FunctionConstructor;
|
|
39
|
+
}>> & {
|
|
40
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
size: string | number;
|
|
44
|
+
title: string;
|
|
45
|
+
items: EpieForm.Item[];
|
|
46
|
+
op: unknown[];
|
|
47
|
+
}>;
|
|
48
|
+
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { NSEpieContextMenu } from "../../types";
|
|
2
|
+
declare const EpieContextMenu: import("vue").DefineComponent<{
|
|
3
|
+
show: BooleanConstructor;
|
|
4
|
+
options: {
|
|
5
|
+
type: ObjectConstructor;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
event: {
|
|
9
|
+
type: ObjectConstructor;
|
|
10
|
+
default: () => {};
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
refs: any;
|
|
14
|
+
visible: import("vue").Ref<boolean>;
|
|
15
|
+
ids: import("vue").Ref<string>;
|
|
16
|
+
style: any;
|
|
17
|
+
list: import("vue").Ref<{
|
|
18
|
+
label: string;
|
|
19
|
+
icon?: string | undefined;
|
|
20
|
+
prefixIcon?: string | undefined;
|
|
21
|
+
suffixIcon?: string | undefined;
|
|
22
|
+
ellipsis?: boolean | undefined;
|
|
23
|
+
disabled?: boolean | undefined;
|
|
24
|
+
hidden?: boolean | undefined;
|
|
25
|
+
children?: any[] | undefined;
|
|
26
|
+
showChildren?: boolean | undefined;
|
|
27
|
+
callback?: ((done: import("../../types").fun) => void) | undefined;
|
|
28
|
+
}[]>;
|
|
29
|
+
setRefs: (index: number) => (el: HTMLElement) => void;
|
|
30
|
+
open: (event: any, options?: any) => {
|
|
31
|
+
close: () => void;
|
|
32
|
+
};
|
|
33
|
+
close: () => void;
|
|
34
|
+
rowClick: (e: any, item: any, id: string) => any;
|
|
35
|
+
stopDefault: (e: any) => void;
|
|
36
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
show: BooleanConstructor;
|
|
38
|
+
options: {
|
|
39
|
+
type: ObjectConstructor;
|
|
40
|
+
default: () => {};
|
|
41
|
+
};
|
|
42
|
+
event: {
|
|
43
|
+
type: ObjectConstructor;
|
|
44
|
+
default: () => {};
|
|
45
|
+
};
|
|
46
|
+
}>>, {
|
|
47
|
+
show: boolean;
|
|
48
|
+
options: Record<string, any>;
|
|
49
|
+
event: Record<string, any>;
|
|
50
|
+
}>;
|
|
51
|
+
export declare const ContextMenu: {
|
|
52
|
+
open(event: any, options: NSEpieContextMenu.Options): void;
|
|
53
|
+
};
|
|
54
|
+
export default EpieContextMenu;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { fun } from "../../types";
|
|
2
|
+
export declare function useHelper({ mitt, props, crud }: any): {
|
|
3
|
+
proxy: (name: string, data?: any[]) => void;
|
|
4
|
+
set: (key: string, value: any) => void;
|
|
5
|
+
on: (name: string, callback: fun) => void;
|
|
6
|
+
rowAdd: () => void;
|
|
7
|
+
rowEdit: (data: any) => void;
|
|
8
|
+
rowAppend: (data: any) => void;
|
|
9
|
+
rowDelete: (...selection: any[]) => void;
|
|
10
|
+
rowClose: () => void;
|
|
11
|
+
refresh: (params?: any) => Promise<unknown>;
|
|
12
|
+
rowDescription: (data: any) => void;
|
|
13
|
+
getPermission: (key: "page" | "list" | "info" | "update" | "add" | "delete") => boolean;
|
|
14
|
+
paramsReplace: (params: any) => any;
|
|
15
|
+
getParams: () => Object;
|
|
16
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
name: StringConstructor;
|
|
3
|
+
border: BooleanConstructor;
|
|
4
|
+
padding: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
onDelete: FunctionConstructor;
|
|
9
|
+
onRefresh: FunctionConstructor;
|
|
10
|
+
}, {
|
|
11
|
+
[x: string]: any;
|
|
12
|
+
name: string;
|
|
13
|
+
routePath: string;
|
|
14
|
+
permission: {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
page?: boolean | undefined;
|
|
17
|
+
list?: boolean | undefined;
|
|
18
|
+
add?: boolean | undefined;
|
|
19
|
+
delete?: boolean | undefined;
|
|
20
|
+
update?: boolean | undefined;
|
|
21
|
+
info?: boolean | undefined;
|
|
22
|
+
};
|
|
23
|
+
dict: {
|
|
24
|
+
api?: {
|
|
25
|
+
list?: string | undefined;
|
|
26
|
+
add?: string | undefined;
|
|
27
|
+
update?: string | undefined;
|
|
28
|
+
delete?: string | undefined;
|
|
29
|
+
info?: string | undefined;
|
|
30
|
+
page?: string | undefined;
|
|
31
|
+
export?: string | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
pagination?: {
|
|
34
|
+
page?: string | undefined;
|
|
35
|
+
size?: string | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
search?: {
|
|
38
|
+
keyWord?: string | undefined;
|
|
39
|
+
query?: string | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
sort?: {
|
|
42
|
+
order?: string | undefined;
|
|
43
|
+
prop?: string | undefined;
|
|
44
|
+
} | undefined;
|
|
45
|
+
};
|
|
46
|
+
service: {
|
|
47
|
+
[x: string]: any;
|
|
48
|
+
page?: ((params?: any) => Promise<any>) | undefined;
|
|
49
|
+
list?: ((params?: any) => Promise<any>) | undefined;
|
|
50
|
+
add?: ((params?: any) => Promise<any>) | undefined;
|
|
51
|
+
update?: ((params?: any) => Promise<any>) | undefined;
|
|
52
|
+
info?: ((params?: any) => Promise<any>) | undefined;
|
|
53
|
+
delete?: ((params?: any) => Promise<any>) | undefined;
|
|
54
|
+
export?: ((params?: any) => Promise<any>) | undefined;
|
|
55
|
+
};
|
|
56
|
+
loading: boolean;
|
|
57
|
+
params: any;
|
|
58
|
+
selection: any[];
|
|
59
|
+
set: (key: "permission" | "dict" | "service" | "style", value: any) => void;
|
|
60
|
+
done: () => void;
|
|
61
|
+
getParams: () => any;
|
|
62
|
+
getPermission: (key?: string | undefined) => boolean;
|
|
63
|
+
rowAdd: () => any;
|
|
64
|
+
rowEdit: (data: any) => any;
|
|
65
|
+
rowAppend: (data?: any) => any;
|
|
66
|
+
rowClose: () => any;
|
|
67
|
+
rowDelete: (...selection: any[]) => void;
|
|
68
|
+
rowDescription: (row?: any) => void;
|
|
69
|
+
refresh: (params?: {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
page?: number | undefined;
|
|
72
|
+
pageSize?: number | undefined;
|
|
73
|
+
keyWord?: string | undefined;
|
|
74
|
+
} | undefined) => Promise<{
|
|
75
|
+
[key: string]: any;
|
|
76
|
+
list: any[];
|
|
77
|
+
pagination?: {
|
|
78
|
+
total?: number | undefined;
|
|
79
|
+
page?: number | undefined;
|
|
80
|
+
size?: number | undefined;
|
|
81
|
+
} | undefined;
|
|
82
|
+
}>;
|
|
83
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
|
+
name: StringConstructor;
|
|
85
|
+
border: BooleanConstructor;
|
|
86
|
+
padding: {
|
|
87
|
+
type: StringConstructor;
|
|
88
|
+
default: string;
|
|
89
|
+
};
|
|
90
|
+
onDelete: FunctionConstructor;
|
|
91
|
+
onRefresh: FunctionConstructor;
|
|
92
|
+
}>>, {
|
|
93
|
+
border: boolean;
|
|
94
|
+
padding: string;
|
|
95
|
+
}>;
|
|
96
|
+
export default _default;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from "vue";
|
|
2
|
+
import { EpieColumn } from "../..";
|
|
3
|
+
export declare const epieDescriptionsProps: () => {
|
|
4
|
+
border: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
column: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
direction: {
|
|
13
|
+
type: PropType<"horizontal" | "vertical">;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
18
|
+
};
|
|
19
|
+
title: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
extra: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
columns: {
|
|
28
|
+
type: PropType<EpieColumn[]>;
|
|
29
|
+
default: never[];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare type EpieDescriptionsProps = Partial<ExtractPropTypes<ReturnType<typeof epieDescriptionsProps>>>;
|
|
33
|
+
declare const _default: import("vue").DefineComponent<{
|
|
34
|
+
border: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
column: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
direction: {
|
|
43
|
+
type: PropType<"horizontal" | "vertical">;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
size: {
|
|
47
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
48
|
+
};
|
|
49
|
+
title: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
extra: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
columns: {
|
|
58
|
+
type: PropType<EpieColumn[]>;
|
|
59
|
+
default: never[];
|
|
60
|
+
};
|
|
61
|
+
}, {
|
|
62
|
+
show: import("vue").Ref<boolean>;
|
|
63
|
+
data: import("vue").Ref<any>;
|
|
64
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
65
|
+
border: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
column: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
default: number;
|
|
72
|
+
};
|
|
73
|
+
direction: {
|
|
74
|
+
type: PropType<"horizontal" | "vertical">;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
size: {
|
|
78
|
+
type: PropType<"" | "default" | "small" | "large">;
|
|
79
|
+
};
|
|
80
|
+
title: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
extra: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
columns: {
|
|
89
|
+
type: PropType<EpieColumn[]>;
|
|
90
|
+
default: never[];
|
|
91
|
+
};
|
|
92
|
+
}>>, {
|
|
93
|
+
title: string;
|
|
94
|
+
border: boolean;
|
|
95
|
+
column: number;
|
|
96
|
+
direction: "horizontal" | "vertical";
|
|
97
|
+
extra: string;
|
|
98
|
+
columns: EpieColumn[];
|
|
99
|
+
}>;
|
|
100
|
+
export default _default;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
props: ObjectConstructor;
|
|
7
|
+
title: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
height: StringConstructor;
|
|
12
|
+
width: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
keepAlive: BooleanConstructor;
|
|
17
|
+
fullscreen: BooleanConstructor;
|
|
18
|
+
controls: {
|
|
19
|
+
type: ArrayConstructor;
|
|
20
|
+
default: () => string[];
|
|
21
|
+
};
|
|
22
|
+
hideHeader: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
beforeClose: FunctionConstructor;
|
|
27
|
+
customClass: StringConstructor;
|
|
28
|
+
}, {
|
|
29
|
+
Dialog: import("vue").Ref<any>;
|
|
30
|
+
browser: any;
|
|
31
|
+
visible: import("vue").Ref<boolean>;
|
|
32
|
+
fullscreen: import("vue").Ref<boolean>;
|
|
33
|
+
isFullscreen: import("vue").ComputedRef<boolean>;
|
|
34
|
+
cacheKey: import("vue").Ref<number>;
|
|
35
|
+
close: () => void;
|
|
36
|
+
onOpen: () => void;
|
|
37
|
+
onClose: () => void;
|
|
38
|
+
changeFullscreen: (val?: boolean) => void;
|
|
39
|
+
dblClickFullscreen: () => void;
|
|
40
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "fullscreen-change")[], "update:modelValue" | "fullscreen-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
|
+
modelValue: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
props: ObjectConstructor;
|
|
46
|
+
title: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
height: StringConstructor;
|
|
51
|
+
width: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
keepAlive: BooleanConstructor;
|
|
56
|
+
fullscreen: BooleanConstructor;
|
|
57
|
+
controls: {
|
|
58
|
+
type: ArrayConstructor;
|
|
59
|
+
default: () => string[];
|
|
60
|
+
};
|
|
61
|
+
hideHeader: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
beforeClose: FunctionConstructor;
|
|
66
|
+
customClass: StringConstructor;
|
|
67
|
+
}>> & {
|
|
68
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
"onFullscreen-change"?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
modelValue: boolean;
|
|
72
|
+
title: string;
|
|
73
|
+
width: string;
|
|
74
|
+
keepAlive: boolean;
|
|
75
|
+
fullscreen: boolean;
|
|
76
|
+
controls: unknown[];
|
|
77
|
+
hideHeader: boolean;
|
|
78
|
+
}>;
|
|
79
|
+
export default _default;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from "vue";
|
|
2
|
+
export declare const epieDurationProps: () => {
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
default: number;
|
|
6
|
+
};
|
|
7
|
+
unit: {
|
|
8
|
+
type: PropType<"day" | "hour" | "minute" | "second">;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
max: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
min: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare type EpieDurationProps = Partial<ExtractPropTypes<ReturnType<typeof epieDurationProps>>>;
|
|
21
|
+
declare enum Unit {
|
|
22
|
+
Second = 1,
|
|
23
|
+
Minute = 2,
|
|
24
|
+
Hour = 3,
|
|
25
|
+
Day = 4
|
|
26
|
+
}
|
|
27
|
+
declare const _default: import("vue").DefineComponent<{
|
|
28
|
+
modelValue: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
unit: {
|
|
33
|
+
type: PropType<"day" | "hour" | "minute" | "second">;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
max: {
|
|
37
|
+
type: NumberConstructor;
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
min: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
}, {
|
|
45
|
+
unitValue: import("vue").Ref<Unit>;
|
|
46
|
+
displayValue: import("vue").Ref<number>;
|
|
47
|
+
realValue: import("vue").ComputedRef<number>;
|
|
48
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
49
|
+
modelValue: {
|
|
50
|
+
type: NumberConstructor;
|
|
51
|
+
default: number;
|
|
52
|
+
};
|
|
53
|
+
unit: {
|
|
54
|
+
type: PropType<"day" | "hour" | "minute" | "second">;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
max: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
default: number;
|
|
60
|
+
};
|
|
61
|
+
min: {
|
|
62
|
+
type: NumberConstructor;
|
|
63
|
+
default: number;
|
|
64
|
+
};
|
|
65
|
+
}>> & {
|
|
66
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
modelValue: number;
|
|
69
|
+
unit: "day" | "hour" | "minute" | "second";
|
|
70
|
+
max: number;
|
|
71
|
+
min: number;
|
|
72
|
+
}>;
|
|
73
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
title: StringConstructor;
|
|
3
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
+
title: StringConstructor;
|
|
5
|
+
}>>, {}>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
onExport: FunctionConstructor;
|
|
3
|
+
}, {
|
|
4
|
+
hasPermission: import("vue").ComputedRef<boolean>;
|
|
5
|
+
exportVisible: import("vue").Ref<boolean>;
|
|
6
|
+
exportLoading: import("vue").Ref<boolean>;
|
|
7
|
+
onExport: () => Promise<unknown>;
|
|
8
|
+
label: string;
|
|
9
|
+
slots: Readonly<{
|
|
10
|
+
[name: string]: import("vue").Slot | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
onExport: FunctionConstructor;
|
|
14
|
+
}>>, {}>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { EpieForm } from "../types";
|
|
2
|
+
import { PropType } from "vue";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
data: {
|
|
5
|
+
type: ObjectConstructor;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
items: {
|
|
9
|
+
type: PropType<EpieForm.Item[]>;
|
|
10
|
+
default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
resetBtn: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
onSearch: FunctionConstructor;
|
|
17
|
+
}, {
|
|
18
|
+
Form: import("vue").Ref<EpieForm.Ref | undefined>;
|
|
19
|
+
loading: import("vue").Ref<boolean>;
|
|
20
|
+
search: () => void;
|
|
21
|
+
reset: () => void;
|
|
22
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
data: {
|
|
24
|
+
type: ObjectConstructor;
|
|
25
|
+
default: () => {};
|
|
26
|
+
};
|
|
27
|
+
items: {
|
|
28
|
+
type: PropType<EpieForm.Item[]>;
|
|
29
|
+
default: () => never[];
|
|
30
|
+
};
|
|
31
|
+
resetBtn: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
onSearch: FunctionConstructor;
|
|
36
|
+
}>>, {
|
|
37
|
+
data: Record<string, any>;
|
|
38
|
+
items: EpieForm.Item[];
|
|
39
|
+
resetBtn: boolean;
|
|
40
|
+
}>;
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
label: StringConstructor;
|
|
3
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
+
label: StringConstructor;
|
|
5
|
+
}>>, {}>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { fun, Hook, Render } from "../../types/base";
|
|
2
|
+
export declare namespace EpieForm {
|
|
3
|
+
interface Item {
|
|
4
|
+
type?: "tabs" | "divider";
|
|
5
|
+
prop?: string;
|
|
6
|
+
props?: {
|
|
7
|
+
labels?: Array<{
|
|
8
|
+
label: string;
|
|
9
|
+
value: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
}>;
|
|
12
|
+
justify?: "left" | "center" | "right";
|
|
13
|
+
color?: string;
|
|
14
|
+
mergeProp?: boolean;
|
|
15
|
+
labelWidth?: string;
|
|
16
|
+
error?: string;
|
|
17
|
+
showMessage?: boolean;
|
|
18
|
+
inlineMessage?: boolean;
|
|
19
|
+
size?: "medium" | "default" | "small";
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
};
|
|
22
|
+
hook?: Hook.Form;
|
|
23
|
+
group?: string;
|
|
24
|
+
collapse?: boolean;
|
|
25
|
+
value?: any;
|
|
26
|
+
label?: string | {
|
|
27
|
+
text?: string;
|
|
28
|
+
icon?: string | JSX.Element;
|
|
29
|
+
tip?: string;
|
|
30
|
+
};
|
|
31
|
+
span?: number;
|
|
32
|
+
flex?: boolean;
|
|
33
|
+
hidden?: boolean | ((data: {
|
|
34
|
+
scope: any;
|
|
35
|
+
isEdit: boolean;
|
|
36
|
+
}) => boolean) | ":isEdit" | `@${string}`;
|
|
37
|
+
prepend?: Render.Options;
|
|
38
|
+
component?: Render.Options;
|
|
39
|
+
append?: Render.Options;
|
|
40
|
+
rules?: any;
|
|
41
|
+
required?: boolean;
|
|
42
|
+
}
|
|
43
|
+
interface Options {
|
|
44
|
+
title?: string;
|
|
45
|
+
width?: string;
|
|
46
|
+
props?: ElementPlus.FormProps;
|
|
47
|
+
items: Item[];
|
|
48
|
+
form?: any;
|
|
49
|
+
baseSpan?: number;
|
|
50
|
+
on?: {
|
|
51
|
+
open?(form: any): void;
|
|
52
|
+
close?(done: fun): void;
|
|
53
|
+
submit?(data: any, event: {
|
|
54
|
+
close: fun;
|
|
55
|
+
done: fun;
|
|
56
|
+
}): void;
|
|
57
|
+
};
|
|
58
|
+
op?: {
|
|
59
|
+
hidden?: boolean;
|
|
60
|
+
saveButtonText?: string;
|
|
61
|
+
closeButtonText?: string;
|
|
62
|
+
buttons?: Array<"close" | "save" | Render.OpButton>;
|
|
63
|
+
};
|
|
64
|
+
dialog?: {
|
|
65
|
+
title?: string;
|
|
66
|
+
width?: string;
|
|
67
|
+
hideHeader?: boolean;
|
|
68
|
+
controls?: Array<"fullscreen" | "close">;
|
|
69
|
+
[key: string]: any;
|
|
70
|
+
};
|
|
71
|
+
[key: string]: any;
|
|
72
|
+
}
|
|
73
|
+
interface Ref {
|
|
74
|
+
form: any;
|
|
75
|
+
open(options: Options): void;
|
|
76
|
+
close(): void;
|
|
77
|
+
done(): void;
|
|
78
|
+
clear(): void;
|
|
79
|
+
reset(): void;
|
|
80
|
+
showLoading(): void;
|
|
81
|
+
hideLoading(): void;
|
|
82
|
+
bindForm(data: any): void;
|
|
83
|
+
setData(prop: string, value: any): void;
|
|
84
|
+
setOptions(prop: string, list: Array<{
|
|
85
|
+
label: string;
|
|
86
|
+
value?: any;
|
|
87
|
+
}>): void;
|
|
88
|
+
setProps(prop: string, value: any): void;
|
|
89
|
+
getForm(prop?: string): any;
|
|
90
|
+
setForm(prop: string, value: any): void;
|
|
91
|
+
showItem(props: string[]): void;
|
|
92
|
+
hideItem(props: string[]): void;
|
|
93
|
+
toggleItem(prop: string, flag?: boolean): void;
|
|
94
|
+
resetFields(): void;
|
|
95
|
+
clearValidate(props?: string[] | string): void;
|
|
96
|
+
validateField(props: string[] | string, callback: (isValid: boolean, invalidFields: any[]) => void): Promise<void>;
|
|
97
|
+
validate(callback: (isValid: boolean, invalidFields: any[]) => void): Promise<void>;
|
|
98
|
+
changeTab(value: any, valid?: boolean): Promise<any>;
|
|
99
|
+
setTitle(value: string): void;
|
|
100
|
+
submit(callback?: (data: any) => void): void;
|
|
101
|
+
}
|
|
102
|
+
}
|