@epie/bi-crud 2.0.13 → 2.0.16
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 +5899 -12145
- package/lib/bi-crud.umd.js +13706 -19947
- package/lib/components/crud/helper.d.ts +1 -1
- package/lib/components/descriptions/descriptions.d.ts +100 -0
- package/lib/components/descriptions/index.d.ts +5 -70
- package/lib/components/dialog/index.d.ts +1 -1
- package/lib/components/duration/duration.d.ts +73 -0
- package/lib/components/duration/index.d.ts +5 -0
- package/lib/{types/base → components/form}/form.d.ts +1 -1
- package/lib/components/form/helper.d.ts +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/inline-search/helper.d.ts +3 -5
- package/lib/components/inline-search/index.d.ts +3 -41
- package/lib/components/inline-search/inlinesearch.d.ts +66 -0
- package/lib/components/search-key.d.ts +1 -1
- package/lib/components/upsert/index.d.ts +3 -3
- package/lib/hooks/crud.d.ts +2 -1
- package/lib/index.d.ts +1 -1
- package/lib/types/base/index.d.ts +1 -2
- package/lib/utils/test.d.ts +13 -0
- package/package.json +22 -17
- package/lib/types/base/descriptions.d.ts +0 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fun } from "../../types";
|
|
2
2
|
export declare function useHelper({ mitt, props, crud }: any): {
|
|
3
|
-
proxy: (name: string, data?: any[]
|
|
3
|
+
proxy: (name: string, data?: any[]) => void;
|
|
4
4
|
set: (key: string, value: any) => void;
|
|
5
5
|
on: (name: string, callback: fun) => void;
|
|
6
6
|
rowAdd: () => void;
|
|
@@ -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, Record<string, any>, 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
|
+
border: boolean;
|
|
94
|
+
column: number;
|
|
95
|
+
direction: "horizontal" | "vertical";
|
|
96
|
+
title: string;
|
|
97
|
+
extra: string;
|
|
98
|
+
columns: EpieColumn[];
|
|
99
|
+
}>;
|
|
100
|
+
export default _default;
|
|
@@ -1,70 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
show: import("vue").Ref<boolean>;
|
|
33
|
-
data: import("vue").Ref<any>;
|
|
34
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
-
border: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
column: {
|
|
40
|
-
type: NumberConstructor;
|
|
41
|
-
default: number;
|
|
42
|
-
};
|
|
43
|
-
direction: {
|
|
44
|
-
type: PropType<"horizontal" | "vertical">;
|
|
45
|
-
default: string;
|
|
46
|
-
};
|
|
47
|
-
size: {
|
|
48
|
-
type: PropType<"" | "default" | "small" | "large">;
|
|
49
|
-
};
|
|
50
|
-
title: {
|
|
51
|
-
type: StringConstructor;
|
|
52
|
-
default: string;
|
|
53
|
-
};
|
|
54
|
-
extra: {
|
|
55
|
-
type: StringConstructor;
|
|
56
|
-
default: string;
|
|
57
|
-
};
|
|
58
|
-
columns: {
|
|
59
|
-
type: PropType<EpieColumn[]>;
|
|
60
|
-
default: never[];
|
|
61
|
-
};
|
|
62
|
-
}>>, {
|
|
63
|
-
border: boolean;
|
|
64
|
-
column: number;
|
|
65
|
-
direction: "horizontal" | "vertical";
|
|
66
|
-
title: string;
|
|
67
|
-
extra: string;
|
|
68
|
-
columns: EpieColumn[];
|
|
69
|
-
}>;
|
|
70
|
-
export default _default;
|
|
1
|
+
import { EpieSchema } from "../../types/base/base";
|
|
2
|
+
export declare type EpieDescriptionsItemProps = EpieSchema<"descriptions"> & {};
|
|
3
|
+
export * from "./descriptions";
|
|
4
|
+
import EpieDescriptions from "./descriptions";
|
|
5
|
+
export { EpieDescriptions };
|
|
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
close: () => void;
|
|
36
36
|
onOpen: () => void;
|
|
37
37
|
onClose: () => void;
|
|
38
|
-
changeFullscreen: (val?: boolean
|
|
38
|
+
changeFullscreen: (val?: boolean) => void;
|
|
39
39
|
dblClickFullscreen: () => void;
|
|
40
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
41
|
modelValue: {
|
|
@@ -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;
|
|
@@ -5,7 +5,7 @@ export declare function useAction({ conf, form, Form }: any): {
|
|
|
5
5
|
setConfig: (path: string, value: any) => void;
|
|
6
6
|
setOptions: (prop: string, value: any[]) => void;
|
|
7
7
|
setProps: (prop: string, value: any) => void;
|
|
8
|
-
toggleItem: (prop: string, value?: boolean
|
|
8
|
+
toggleItem: (prop: string, value?: boolean) => void;
|
|
9
9
|
hideItem: (...props: string[]) => void;
|
|
10
10
|
showItem: (...props: string[]) => void;
|
|
11
11
|
setTitle: (value: string) => void;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}>;
|
|
5
|
-
renderOp: () => any;
|
|
1
|
+
import { EpieRenderCtx } from ".";
|
|
2
|
+
export declare function useRender(ctx: EpieRenderCtx & any): {
|
|
3
|
+
renderForm: () => JSX.Element;
|
|
6
4
|
};
|
|
@@ -1,41 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
data: {
|
|
5
|
-
type: ObjectConstructor;
|
|
6
|
-
default: () => {};
|
|
7
|
-
};
|
|
8
|
-
items: {
|
|
9
|
-
type: PropType<EpieForm.Item[]>;
|
|
10
|
-
default: () => never[];
|
|
11
|
-
};
|
|
12
|
-
op: {
|
|
13
|
-
type: ArrayConstructor;
|
|
14
|
-
default: () => string[];
|
|
15
|
-
};
|
|
16
|
-
onSearch: FunctionConstructor;
|
|
17
|
-
}, {
|
|
18
|
-
form: any;
|
|
19
|
-
reset: () => void;
|
|
20
|
-
loading: import("vue").Ref<boolean>;
|
|
21
|
-
search: () => void;
|
|
22
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, 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
|
-
op: {
|
|
32
|
-
type: ArrayConstructor;
|
|
33
|
-
default: () => string[];
|
|
34
|
-
};
|
|
35
|
-
onSearch: FunctionConstructor;
|
|
36
|
-
}>>, {
|
|
37
|
-
data: Record<string, any>;
|
|
38
|
-
items: EpieForm.Item[];
|
|
39
|
-
op: unknown[];
|
|
40
|
-
}>;
|
|
41
|
-
export default _default;
|
|
1
|
+
export * from "./inlinesearch";
|
|
2
|
+
import EpieInlineSearch from "./inlinesearch";
|
|
3
|
+
export { EpieInlineSearch };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { PropType, ExtractPropTypes } from "vue";
|
|
2
|
+
import { EpieForm } from "../form/form";
|
|
3
|
+
export interface EpieInlineSearchItem extends EpieForm.Item {
|
|
4
|
+
hide: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const epieInlineSearchProps: () => {
|
|
7
|
+
data: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default: () => void;
|
|
10
|
+
};
|
|
11
|
+
items: {
|
|
12
|
+
type: PropType<EpieInlineSearchItem[]>;
|
|
13
|
+
default: () => never[];
|
|
14
|
+
};
|
|
15
|
+
op: {
|
|
16
|
+
type: PropType<string[]>;
|
|
17
|
+
default: () => string[];
|
|
18
|
+
};
|
|
19
|
+
onSearch: FunctionConstructor;
|
|
20
|
+
};
|
|
21
|
+
export declare type EpieInlineSearchProps = Partial<ExtractPropTypes<ReturnType<typeof epieInlineSearchProps>>>;
|
|
22
|
+
export declare type EpieRenderCtx = EpieInlineSearchProps & {
|
|
23
|
+
form: any;
|
|
24
|
+
reset: any;
|
|
25
|
+
loading: any;
|
|
26
|
+
search: any;
|
|
27
|
+
};
|
|
28
|
+
declare const _default: import("vue").DefineComponent<{
|
|
29
|
+
data: {
|
|
30
|
+
type: ObjectConstructor;
|
|
31
|
+
default: () => void;
|
|
32
|
+
};
|
|
33
|
+
items: {
|
|
34
|
+
type: PropType<EpieInlineSearchItem[]>;
|
|
35
|
+
default: () => never[];
|
|
36
|
+
};
|
|
37
|
+
op: {
|
|
38
|
+
type: PropType<string[]>;
|
|
39
|
+
default: () => string[];
|
|
40
|
+
};
|
|
41
|
+
onSearch: FunctionConstructor;
|
|
42
|
+
}, {
|
|
43
|
+
form: any;
|
|
44
|
+
reset: () => void;
|
|
45
|
+
loading: import("vue").Ref<boolean>;
|
|
46
|
+
search: () => void;
|
|
47
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
48
|
+
data: {
|
|
49
|
+
type: ObjectConstructor;
|
|
50
|
+
default: () => void;
|
|
51
|
+
};
|
|
52
|
+
items: {
|
|
53
|
+
type: PropType<EpieInlineSearchItem[]>;
|
|
54
|
+
default: () => never[];
|
|
55
|
+
};
|
|
56
|
+
op: {
|
|
57
|
+
type: PropType<string[]>;
|
|
58
|
+
default: () => string[];
|
|
59
|
+
};
|
|
60
|
+
onSearch: FunctionConstructor;
|
|
61
|
+
}>>, {
|
|
62
|
+
data: Record<string, any>;
|
|
63
|
+
items: EpieInlineSearchItem[];
|
|
64
|
+
op: string[];
|
|
65
|
+
}>;
|
|
66
|
+
export default _default;
|
|
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
selectField: import("vue").Ref<string>;
|
|
17
17
|
search: () => void;
|
|
18
18
|
onKeydown: ({ keyCode }: any) => void;
|
|
19
|
-
onInput: (val?: string
|
|
19
|
+
onInput: (val?: string) => void;
|
|
20
20
|
onFieldChange: () => void;
|
|
21
21
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "field-change")[], "update:modelValue" | "change" | "field-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
22
|
modelValue: StringConstructor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType } from "vue";
|
|
2
|
-
import { EpieForm } from "
|
|
2
|
+
import { EpieForm } from "../form/form";
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
items: {
|
|
5
5
|
type: PropType<EpieForm.Item[]>;
|
|
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
hidden?: boolean | undefined;
|
|
15
15
|
saveButtonText?: string | undefined;
|
|
16
16
|
closeButtonText?: string | undefined;
|
|
17
|
-
buttons?: ("close" | "save" | import("
|
|
17
|
+
buttons?: ("close" | "save" | import("src/types").Render.OpButton)[] | undefined;
|
|
18
18
|
} | undefined>;
|
|
19
19
|
dialog: PropType<{
|
|
20
20
|
[key: string]: any;
|
|
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
41
|
hidden?: boolean | undefined;
|
|
42
42
|
saveButtonText?: string | undefined;
|
|
43
43
|
closeButtonText?: string | undefined;
|
|
44
|
-
buttons?: ("close" | "save" | import("
|
|
44
|
+
buttons?: ("close" | "save" | import("src/types").Render.OpButton)[] | undefined;
|
|
45
45
|
} | undefined>;
|
|
46
46
|
dialog: PropType<{
|
|
47
47
|
[key: string]: any;
|
package/lib/hooks/crud.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { EpieDescriptionsProps } from "../components/descriptions";
|
|
1
2
|
import { Ref } from "vue";
|
|
2
|
-
import { EpieAdvSearch, EpieCrud, EpieForm, EpieTable, EpieUpsert
|
|
3
|
+
import { EpieAdvSearch, EpieCrud, EpieForm, EpieTable, EpieUpsert } from "../types";
|
|
3
4
|
export declare function useCrud(options?: EpieCrud.Props, cb?: (app: EpieCrud.Ref) => void): Ref<EpieCrud.Ref | undefined>;
|
|
4
5
|
export declare function useUpsert(options?: EpieUpsert.Props): Ref<EpieUpsert.Ref | undefined>;
|
|
5
6
|
export declare function useTable(options?: EpieTable.Props): Ref<EpieTable.Ref | undefined>;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare type fun = () => void;
|
|
2
|
-
export * from "
|
|
2
|
+
export * from "../../components/form/form";
|
|
3
3
|
export * from "./crud";
|
|
4
4
|
export * from "./adv-search";
|
|
5
5
|
export * from "./browser";
|
|
@@ -9,4 +9,3 @@ export * from "./hook";
|
|
|
9
9
|
export * from "./render";
|
|
10
10
|
export * from "./table";
|
|
11
11
|
export * from "./upsert";
|
|
12
|
-
export * from "./descriptions";
|
package/lib/utils/test.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export declare const UserList: ({
|
|
|
4
4
|
createTime: string;
|
|
5
5
|
price: number;
|
|
6
6
|
status: number;
|
|
7
|
+
duration: number;
|
|
8
|
+
statusx: string;
|
|
7
9
|
hook: string;
|
|
8
10
|
} | {
|
|
9
11
|
id: number;
|
|
@@ -11,6 +13,17 @@ export declare const UserList: ({
|
|
|
11
13
|
createTime: string;
|
|
12
14
|
price: number;
|
|
13
15
|
status: number;
|
|
16
|
+
statusx: string;
|
|
17
|
+
duration?: undefined;
|
|
18
|
+
hook?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
id: number;
|
|
21
|
+
name: string;
|
|
22
|
+
createTime: string;
|
|
23
|
+
price: number;
|
|
24
|
+
status: number;
|
|
25
|
+
duration?: undefined;
|
|
26
|
+
statusx?: undefined;
|
|
14
27
|
hook?: undefined;
|
|
15
28
|
})[];
|
|
16
29
|
export declare const TestService: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epie/bi-crud",
|
|
3
3
|
"simpleName": "bi-crud",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.16",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "lib/bi-crud.umd.js",
|
|
7
7
|
"module": "lib/bi-crud.esm.js",
|
|
@@ -21,23 +21,10 @@
|
|
|
21
21
|
"require": "./lib/css/bi-crud.min.css"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"serve": "vue-cli-service serve",
|
|
26
|
-
"lint": "vue-cli-service lint",
|
|
27
|
-
"build:lib": "vue-cli-service build",
|
|
28
|
-
"crud": "tsc && yarn build:lib --target lib --name bi-crud ./src/index.ts",
|
|
29
|
-
"dev": "npm run clean && npm run lint && rollup -c config/rollup.config.js -w --environment NODE_ENV:development,IS_SERVE",
|
|
30
|
-
"build": "npm run clean && rollup -c config/rollup.config.js --environment NODE_ENV:production",
|
|
31
|
-
"build:components": "npm run clean:components && npm run lint && rollup -c config/rollup.config.js --environment NODE_ENV:production,BUILD:components",
|
|
32
|
-
"build:bundle": "npm run clean:bundle && npm run lint && rollup -c config/rollup.config.js --environment NODE_ENV:production,BUILD:bundle",
|
|
33
|
-
"clean": "rimraf ./lib ./dist ./coverage",
|
|
34
|
-
"clean:test": "rimraf ./coverage",
|
|
35
|
-
"clean:bundle": "rimraf ./lib/*.js ./lib/*.js.map",
|
|
36
|
-
"clean:components": "rimraf ./lib/components ",
|
|
37
|
-
"watch": "rollup -c config/rollup.config.js -w --environment NODE_ENV:production --watch.onEnd 'yalc push'"
|
|
38
|
-
},
|
|
39
24
|
"dependencies": {
|
|
25
|
+
"@element-plus/icons-vue": "^2.0.6",
|
|
40
26
|
"array.prototype.flat": "^1.2.4",
|
|
27
|
+
"clone-deep": "^4.0.1",
|
|
41
28
|
"core-js": "^3.21.1",
|
|
42
29
|
"element-plus": "^2.2.6",
|
|
43
30
|
"merge": "^2.1.1",
|
|
@@ -62,6 +49,7 @@
|
|
|
62
49
|
"@vue/cli-service": "^5.0.3",
|
|
63
50
|
"@vue/compiler-sfc": "^3.2.31",
|
|
64
51
|
"esbuild": "^0.14.48",
|
|
52
|
+
"lint": "^0.7.0",
|
|
65
53
|
"node-sass": "^7.0.1",
|
|
66
54
|
"nodemon": "^2.0.19",
|
|
67
55
|
"postcss": "^8.4.14",
|
|
@@ -85,5 +73,22 @@
|
|
|
85
73
|
"rollup-plugin-vue-jsx-compat": "^0.0.6",
|
|
86
74
|
"sass-loader": "^12.6.0",
|
|
87
75
|
"typescript": "^4.6.2"
|
|
76
|
+
},
|
|
77
|
+
"scripts": {
|
|
78
|
+
"serve": "vue-cli-service serve",
|
|
79
|
+
"lint": "vue-cli-service lint",
|
|
80
|
+
"build:lib": "vue-cli-service build",
|
|
81
|
+
"crud": "tsc && yarn build:lib --target lib --name bi-crud ./src/index.ts",
|
|
82
|
+
"devs": "rollup -c config/rollup.config.js -w --environment NODE_ENV:production",
|
|
83
|
+
"dev": "npm run clean && npm run lint && rollup -c config/rollup.config.js -w --environment NODE_ENV:development,IS_SERVE",
|
|
84
|
+
"build:local": "npm run clean && rollup -c config/rollup.config.js --environment NODE_ENV:production && yalc push",
|
|
85
|
+
"build": "npm run clean && rollup -c config/rollup.config.js --environment NODE_ENV:production",
|
|
86
|
+
"build:components": "npm run clean:components && npm run lint && rollup -c config/rollup.config.js --environment NODE_ENV:production,BUILD:components",
|
|
87
|
+
"build:bundle": "npm run clean:bundle && npm run lint && rollup -c config/rollup.config.js --environment NODE_ENV:production,BUILD:bundle",
|
|
88
|
+
"clean": "rimraf ./lib ./dist ./coverage",
|
|
89
|
+
"clean:test": "rimraf ./coverage",
|
|
90
|
+
"clean:bundle": "rimraf ./lib/*.js ./lib/*.js.map",
|
|
91
|
+
"clean:components": "rimraf ./lib/components ",
|
|
92
|
+
"watch": "rollup -c config/rollup.config.js -w --environment NODE_ENV:production --watch.onEnd 'yalc push'"
|
|
88
93
|
}
|
|
89
|
-
}
|
|
94
|
+
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { EpieSchema } from "./base";
|
|
2
|
-
export declare type EpieDescriptionsItemProps = EpieSchema<"descriptions"> & {};
|
|
3
|
-
export declare type EpieDescriptionsProps = {
|
|
4
|
-
border?: boolean;
|
|
5
|
-
column?: number;
|
|
6
|
-
direction?: "vertical" | "horizontal";
|
|
7
|
-
size?: "" | "default" | "small" | "large";
|
|
8
|
-
title?: string;
|
|
9
|
-
extra?: string;
|
|
10
|
-
columns?: EpieDescriptionsItemProps[];
|
|
11
|
-
};
|