@okiss/oms 0.0.15 → 0.0.18
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/dist/types/App.d.ts +124 -0
- package/dist/types/admin.d.ts +12 -0
- package/dist/types/components/PageLoad.d.ts +29 -0
- package/dist/types/components/RightMenu.d.ts +43 -0
- package/dist/types/components/VLoading.d.ts +0 -0
- package/dist/types/components/VTree.d.ts +129 -0
- package/dist/types/components/report/NumberPanel.d.ts +14 -0
- package/dist/types/components/report/option.d.ts +1 -0
- package/dist/types/components/report/part.d.ts +66 -0
- package/dist/types/default.d.ts +4 -0
- package/dist/types/directive/devtool.d.ts +3 -0
- package/dist/types/directive/index.d.ts +4 -0
- package/dist/types/directive/outClick.d.ts +3 -0
- package/dist/types/directive/resize.d.ts +3 -0
- package/dist/types/directive/rightClick.d.ts +3 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/init.d.ts +3 -0
- package/dist/types/mock/apis/index.d.ts +3 -0
- package/dist/types/mock/apis/user.d.ts +3 -0
- package/dist/types/mock/data/example.d.ts +897 -0
- package/dist/types/mock/data/menu.d.ts +104 -0
- package/dist/types/mock/data/role.d.ts +68 -0
- package/dist/types/mock/index.d.ts +3 -0
- package/dist/types/mock/types.d.ts +21 -0
- package/dist/types/plugins/element-plus.d.ts +6 -0
- package/dist/types/plugins/eventBus.d.ts +5 -0
- package/dist/types/router/guard/func.d.ts +3 -0
- package/dist/types/router/guard/index.d.ts +2 -0
- package/dist/types/router/guard/nprogress.d.ts +3 -0
- package/dist/types/router/guard/permission.d.ts +2 -0
- package/dist/types/router/guard/remote-routes.d.ts +2 -0
- package/dist/types/router/guard/set-page-title.d.ts +2 -0
- package/dist/types/router/index.d.ts +2 -0
- package/dist/types/router/remote.d.ts +3 -0
- package/dist/types/router/router.d.ts +2 -0
- package/dist/types/router/types.d.ts +5 -0
- package/dist/types/scaffold/404.d.ts +4 -0
- package/dist/types/scaffold/container.d.ts +10 -0
- package/dist/types/scaffold/dashboard.d.ts +2 -0
- package/dist/types/scaffold/devtool/DevLayout.d.ts +0 -0
- package/dist/types/scaffold/devtool/base.d.ts +5 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/checkbox.d.ts +32 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/code.d.ts +17 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/icon-select.d.ts +17 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/input.d.ts +38 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/json.d.ts +17 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/number-range.d.ts +32 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/number.d.ts +32 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/radio.d.ts +31 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/select.d.ts +90 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/sub-form.d.ts +57 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/switch.d.ts +32 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/template.d.ts +17 -0
- package/dist/types/scaffold/devtool/formBuilder/ctrls/upload.d.ts +17 -0
- package/dist/types/scaffold/devtool/formBuilder/form.d.ts +76 -0
- package/dist/types/scaffold/devtool/formBuilder/index.d.ts +47 -0
- package/dist/types/scaffold/devtool/tableBuilder/btn/api.d.ts +57 -0
- package/dist/types/scaffold/devtool/tableBuilder/btn/form.d.ts +50 -0
- package/dist/types/scaffold/devtool/tableBuilder/index.d.ts +51 -0
- package/dist/types/scaffold/devtool/tableBuilder/table.d.ts +18 -0
- package/dist/types/scaffold/form.d.ts +22 -0
- package/dist/types/scaffold/index.d.ts +5 -0
- package/dist/types/scaffold/login.d.ts +14 -0
- package/dist/types/scaffold/report.d.ts +11 -0
- package/dist/types/scaffold/table.d.ts +17 -0
- package/dist/types/scaffold/tree.d.ts +10 -0
- package/dist/types/types.d.ts +109 -0
- package/package.json +2 -17
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export const type: string;
|
|
3
|
+
export const name: string;
|
|
4
|
+
namespace _default {
|
|
5
|
+
const type_1: string;
|
|
6
|
+
export { type_1 as type };
|
|
7
|
+
export const label: string;
|
|
8
|
+
export const field: string;
|
|
9
|
+
}
|
|
10
|
+
export { _default as default };
|
|
11
|
+
export const builder: ({
|
|
12
|
+
type: string;
|
|
13
|
+
field: string;
|
|
14
|
+
label: string;
|
|
15
|
+
props?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
type: string;
|
|
18
|
+
field: string;
|
|
19
|
+
props: {
|
|
20
|
+
options: {
|
|
21
|
+
labelPosition: string;
|
|
22
|
+
};
|
|
23
|
+
formItems: {
|
|
24
|
+
type: string;
|
|
25
|
+
field: string;
|
|
26
|
+
label: string;
|
|
27
|
+
}[];
|
|
28
|
+
};
|
|
29
|
+
label?: undefined;
|
|
30
|
+
})[];
|
|
31
|
+
}
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export const type: string;
|
|
3
|
+
export const name: string;
|
|
4
|
+
namespace _default {
|
|
5
|
+
const type_1: string;
|
|
6
|
+
export { type_1 as type };
|
|
7
|
+
export const label: string;
|
|
8
|
+
export const field: string;
|
|
9
|
+
}
|
|
10
|
+
export { _default as default };
|
|
11
|
+
export const builder: {
|
|
12
|
+
type: string;
|
|
13
|
+
field: string;
|
|
14
|
+
label: string;
|
|
15
|
+
}[];
|
|
16
|
+
}
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export const type: string;
|
|
3
|
+
export const name: string;
|
|
4
|
+
namespace _default {
|
|
5
|
+
const type_1: string;
|
|
6
|
+
export { type_1 as type };
|
|
7
|
+
export const label: string;
|
|
8
|
+
export const field: string;
|
|
9
|
+
}
|
|
10
|
+
export { _default as default };
|
|
11
|
+
export const builder: {
|
|
12
|
+
type: string;
|
|
13
|
+
field: string;
|
|
14
|
+
label: string;
|
|
15
|
+
}[];
|
|
16
|
+
}
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export function regCtrl(options: any): void;
|
|
2
|
+
export const ctrls: {};
|
|
3
|
+
export namespace baseSchema {
|
|
4
|
+
namespace options {
|
|
5
|
+
const labelPosition: string;
|
|
6
|
+
const submitButton: boolean;
|
|
7
|
+
const cancelButton: boolean;
|
|
8
|
+
}
|
|
9
|
+
const formItems: ({
|
|
10
|
+
type: string;
|
|
11
|
+
field: string;
|
|
12
|
+
label: string;
|
|
13
|
+
options?: undefined;
|
|
14
|
+
value?: undefined;
|
|
15
|
+
props?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
type: string;
|
|
18
|
+
field: string;
|
|
19
|
+
label: string;
|
|
20
|
+
options: {
|
|
21
|
+
value: string;
|
|
22
|
+
label: string;
|
|
23
|
+
}[];
|
|
24
|
+
value?: undefined;
|
|
25
|
+
props?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
type: string;
|
|
28
|
+
field: string;
|
|
29
|
+
label: string;
|
|
30
|
+
value: string;
|
|
31
|
+
options?: undefined;
|
|
32
|
+
props?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
type: string;
|
|
35
|
+
field: string;
|
|
36
|
+
label: string;
|
|
37
|
+
value: boolean;
|
|
38
|
+
options?: undefined;
|
|
39
|
+
props?: undefined;
|
|
40
|
+
} | {
|
|
41
|
+
type: string;
|
|
42
|
+
field: string;
|
|
43
|
+
label: string;
|
|
44
|
+
props: {
|
|
45
|
+
options: {
|
|
46
|
+
labelPosition: string;
|
|
47
|
+
};
|
|
48
|
+
formItems: ({
|
|
49
|
+
type: string;
|
|
50
|
+
field: string;
|
|
51
|
+
label: string;
|
|
52
|
+
value: string;
|
|
53
|
+
options?: undefined;
|
|
54
|
+
} | {
|
|
55
|
+
type: string;
|
|
56
|
+
field: string;
|
|
57
|
+
label: string;
|
|
58
|
+
options: {
|
|
59
|
+
value: string;
|
|
60
|
+
label: string;
|
|
61
|
+
}[];
|
|
62
|
+
value?: undefined;
|
|
63
|
+
})[];
|
|
64
|
+
};
|
|
65
|
+
options?: undefined;
|
|
66
|
+
value?: undefined;
|
|
67
|
+
})[];
|
|
68
|
+
}
|
|
69
|
+
export namespace ctrlFormDefaultOptions {
|
|
70
|
+
const labelPosition_1: string;
|
|
71
|
+
export { labelPosition_1 as labelPosition };
|
|
72
|
+
const submitButton_1: boolean;
|
|
73
|
+
export { submitButton_1 as submitButton };
|
|
74
|
+
const cancelButton_1: boolean;
|
|
75
|
+
export { cancelButton_1 as cancelButton };
|
|
76
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const ctrlFormDefaultOptions: {
|
|
2
|
+
labelPosition: string;
|
|
3
|
+
submitButton: boolean;
|
|
4
|
+
cancelButton: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: {
|
|
7
|
+
components: {
|
|
8
|
+
DevLayout: any;
|
|
9
|
+
VForm: any;
|
|
10
|
+
VButton: any;
|
|
11
|
+
JsonView: any;
|
|
12
|
+
};
|
|
13
|
+
props: {
|
|
14
|
+
schema: {
|
|
15
|
+
type: ObjectConstructor;
|
|
16
|
+
default: (_: any) => void;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
data(): any;
|
|
20
|
+
computed: {
|
|
21
|
+
getSaveSchema(): any;
|
|
22
|
+
};
|
|
23
|
+
watch: {
|
|
24
|
+
baseOptions: {
|
|
25
|
+
deep: boolean;
|
|
26
|
+
immediate: boolean;
|
|
27
|
+
handler(val: any): void;
|
|
28
|
+
};
|
|
29
|
+
ctrlOptions: {
|
|
30
|
+
deep: boolean;
|
|
31
|
+
handler(val: any): void;
|
|
32
|
+
};
|
|
33
|
+
currentCtrlType: {
|
|
34
|
+
handler(val: any): void;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
beforeCreate(): void;
|
|
38
|
+
unmounted(): void;
|
|
39
|
+
methods: {
|
|
40
|
+
onDevAction(btnType: any, path: any): void;
|
|
41
|
+
push(name: any): void;
|
|
42
|
+
removeOne(): void;
|
|
43
|
+
clicklabel(): void;
|
|
44
|
+
saveSchema(): void;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export default _default;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export const type: string;
|
|
3
|
+
export const name: string;
|
|
4
|
+
namespace _default {
|
|
5
|
+
const type_1: string;
|
|
6
|
+
export { type_1 as type };
|
|
7
|
+
export const target: string;
|
|
8
|
+
export const text: string;
|
|
9
|
+
}
|
|
10
|
+
export { _default as default };
|
|
11
|
+
export const builder: ({
|
|
12
|
+
type: string;
|
|
13
|
+
field: string;
|
|
14
|
+
label: string;
|
|
15
|
+
info: string;
|
|
16
|
+
props?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
type: string;
|
|
19
|
+
field: string;
|
|
20
|
+
label: string;
|
|
21
|
+
info?: undefined;
|
|
22
|
+
props?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
type: string;
|
|
25
|
+
field: string;
|
|
26
|
+
label: string;
|
|
27
|
+
props: {
|
|
28
|
+
options: {
|
|
29
|
+
labelPosition: string;
|
|
30
|
+
};
|
|
31
|
+
formItems: ({
|
|
32
|
+
type: string;
|
|
33
|
+
field: string;
|
|
34
|
+
label: string;
|
|
35
|
+
options?: undefined;
|
|
36
|
+
info?: undefined;
|
|
37
|
+
} | {
|
|
38
|
+
type: string;
|
|
39
|
+
field: string;
|
|
40
|
+
label: string;
|
|
41
|
+
options: {
|
|
42
|
+
value: string;
|
|
43
|
+
label: string;
|
|
44
|
+
}[];
|
|
45
|
+
info?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
type: string;
|
|
48
|
+
field: string;
|
|
49
|
+
label: string;
|
|
50
|
+
info: string;
|
|
51
|
+
options?: undefined;
|
|
52
|
+
})[];
|
|
53
|
+
};
|
|
54
|
+
info?: undefined;
|
|
55
|
+
})[];
|
|
56
|
+
}
|
|
57
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export const type: string;
|
|
3
|
+
export const name: string;
|
|
4
|
+
namespace _default {
|
|
5
|
+
const type_1: string;
|
|
6
|
+
export { type_1 as type };
|
|
7
|
+
export const target: string;
|
|
8
|
+
export const text: string;
|
|
9
|
+
}
|
|
10
|
+
export { _default as default };
|
|
11
|
+
export const builder: ({
|
|
12
|
+
type: string;
|
|
13
|
+
field: string;
|
|
14
|
+
label: string;
|
|
15
|
+
options?: undefined;
|
|
16
|
+
value?: undefined;
|
|
17
|
+
depend?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
type: string;
|
|
20
|
+
field: string;
|
|
21
|
+
label: string;
|
|
22
|
+
options: {
|
|
23
|
+
value: string;
|
|
24
|
+
label: string;
|
|
25
|
+
}[];
|
|
26
|
+
value: string;
|
|
27
|
+
depend?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
type: string;
|
|
30
|
+
field: string;
|
|
31
|
+
label: string;
|
|
32
|
+
options: {
|
|
33
|
+
value: number;
|
|
34
|
+
label: string;
|
|
35
|
+
}[];
|
|
36
|
+
value: number;
|
|
37
|
+
depend?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
type: string;
|
|
40
|
+
field: string;
|
|
41
|
+
label: string;
|
|
42
|
+
depend: {
|
|
43
|
+
field: string;
|
|
44
|
+
value: number;
|
|
45
|
+
};
|
|
46
|
+
options?: undefined;
|
|
47
|
+
value?: undefined;
|
|
48
|
+
})[];
|
|
49
|
+
}
|
|
50
|
+
export default _default;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
components: {
|
|
3
|
+
JsonView: any;
|
|
4
|
+
DevLayout: any;
|
|
5
|
+
VTable: any;
|
|
6
|
+
VForm: any;
|
|
7
|
+
VButton: any;
|
|
8
|
+
};
|
|
9
|
+
props: {
|
|
10
|
+
schema: {
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
default: (_: any) => void;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
data(): any;
|
|
16
|
+
computed: {
|
|
17
|
+
types(): any[];
|
|
18
|
+
getSaveSchema(): any;
|
|
19
|
+
currentBuilderSchema(): any;
|
|
20
|
+
};
|
|
21
|
+
watch: {
|
|
22
|
+
baseOptions: {
|
|
23
|
+
deep: boolean;
|
|
24
|
+
immediate: boolean;
|
|
25
|
+
handler(val: any): void;
|
|
26
|
+
};
|
|
27
|
+
ctrlOptions: {
|
|
28
|
+
deep: boolean;
|
|
29
|
+
handler(val: any): void;
|
|
30
|
+
};
|
|
31
|
+
currentCtrlType: {
|
|
32
|
+
handler(val: any): void;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
beforeCreate(): void;
|
|
36
|
+
unmounted(): void;
|
|
37
|
+
methods: {
|
|
38
|
+
updateBuilderSchema(): void;
|
|
39
|
+
onDevAction(btnType: any, path: any): void;
|
|
40
|
+
pushFilter(name: any): void;
|
|
41
|
+
pushHeaders(name: any): void;
|
|
42
|
+
pushNormalButton(name: any): void;
|
|
43
|
+
pushBatchButton(name: any): void;
|
|
44
|
+
pushRowButton(name: any): void;
|
|
45
|
+
push(name: any, target: any, ctrlMapName: any, brick: any): void;
|
|
46
|
+
removeOne(): void;
|
|
47
|
+
clicklabel(): void;
|
|
48
|
+
saveSchema(): void;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export namespace baseSchema {
|
|
2
|
+
namespace options {
|
|
3
|
+
const labelPosition: string;
|
|
4
|
+
const submitButton: boolean;
|
|
5
|
+
const cancelButton: boolean;
|
|
6
|
+
}
|
|
7
|
+
const formItems: ({
|
|
8
|
+
type: string;
|
|
9
|
+
field: string;
|
|
10
|
+
label: string;
|
|
11
|
+
value: boolean;
|
|
12
|
+
} | {
|
|
13
|
+
type: string;
|
|
14
|
+
field: string;
|
|
15
|
+
label: string;
|
|
16
|
+
value?: undefined;
|
|
17
|
+
})[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { strVarReplace } from "@okiss/utils'";
|
|
2
|
+
import { useRoute } from "vue-router'";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
setup(__props: any, { expose }: {
|
|
5
|
+
expose: any;
|
|
6
|
+
}): {
|
|
7
|
+
route: import("vue-router").RouteLocationNormalizedLoaded;
|
|
8
|
+
schemaHandler: (schema: any, project: any) => any;
|
|
9
|
+
VForm: any;
|
|
10
|
+
PageLoad: any;
|
|
11
|
+
strVarReplace: typeof strVarReplace;
|
|
12
|
+
merge: {
|
|
13
|
+
<TObject, TSource>(object: TObject, source: TSource): TObject & TSource;
|
|
14
|
+
<TObject_1, TSource1, TSource2>(object: TObject_1, source1: TSource1, source2: TSource2): TObject_1 & TSource1 & TSource2;
|
|
15
|
+
<TObject_2, TSource1_1, TSource2_1, TSource3>(object: TObject_2, source1: TSource1_1, source2: TSource2_1, source3: TSource3): TObject_2 & TSource1_1 & TSource2_1 & TSource3;
|
|
16
|
+
<TObject_3, TSource1_2, TSource2_2, TSource3_1, TSource4>(object: TObject_3, source1: TSource1_2, source2: TSource2_2, source3: TSource3_1, source4: TSource4): TObject_3 & TSource1_2 & TSource2_2 & TSource3_1 & TSource4;
|
|
17
|
+
(object: any, ...otherArgs: any[]): any;
|
|
18
|
+
};
|
|
19
|
+
useRoute: typeof useRoute;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
router: import("vue-router").Router;
|
|
3
|
+
route: import("vue-router").RouteLocationNormalizedLoaded;
|
|
4
|
+
tips: import("vue").ComputedRef<string | undefined>;
|
|
5
|
+
allsso: () => Record<string, import("..").newSso>;
|
|
6
|
+
data: import("vue").Ref<{
|
|
7
|
+
username: string;
|
|
8
|
+
password: string;
|
|
9
|
+
}>;
|
|
10
|
+
login: () => void;
|
|
11
|
+
loginType: import("vue").Ref<any>;
|
|
12
|
+
changLoginChannel: () => void;
|
|
13
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
setup(__props: any, { expose }: {
|
|
3
|
+
expose: any;
|
|
4
|
+
}): {
|
|
5
|
+
schemaHandler: (schema: any, project: any) => any;
|
|
6
|
+
VTable: any;
|
|
7
|
+
PageLoad: any;
|
|
8
|
+
merge: {
|
|
9
|
+
<TObject, TSource>(object: TObject, source: TSource): TObject & TSource;
|
|
10
|
+
<TObject_1, TSource1, TSource2>(object: TObject_1, source1: TSource1, source2: TSource2): TObject_1 & TSource1 & TSource2;
|
|
11
|
+
<TObject_2, TSource1_1, TSource2_1, TSource3>(object: TObject_2, source1: TSource1_1, source2: TSource2_1, source3: TSource3): TObject_2 & TSource1_1 & TSource2_1 & TSource3;
|
|
12
|
+
<TObject_3, TSource1_2, TSource2_2, TSource3_1, TSource4>(object: TObject_3, source1: TSource1_2, source2: TSource2_2, source3: TSource3_1, source4: TSource4): TObject_3 & TSource1_2 & TSource2_2 & TSource3_1 & TSource4;
|
|
13
|
+
(object: any, ...otherArgs: any[]): any;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "./utils/request'";
|
|
2
|
+
import type { RouteRecordRaw } from "vue-router'";
|
|
3
|
+
import { Component, Directive, Plugin } from "vue'";
|
|
4
|
+
import { Module } from "vuex'";
|
|
5
|
+
import { MockApi } from "./mock/types'";
|
|
6
|
+
import { Sso } from "./utils/sso'";
|
|
7
|
+
export interface Nav {
|
|
8
|
+
}
|
|
9
|
+
export declare type newSso = (params: Record<string, any>) => Sso;
|
|
10
|
+
export interface Settings {
|
|
11
|
+
title?: string;
|
|
12
|
+
fixedHeader?: boolean;
|
|
13
|
+
sidebarLogo?: boolean;
|
|
14
|
+
logo?: string;
|
|
15
|
+
closeNavNotice?: boolean;
|
|
16
|
+
navBarNotice?: string;
|
|
17
|
+
hasNewMessage?: boolean;
|
|
18
|
+
showPageJsonSchema?: boolean;
|
|
19
|
+
loginTips?: string;
|
|
20
|
+
sso?: Record<string, newSso>;
|
|
21
|
+
activeSsoKey?: string;
|
|
22
|
+
ElementPlus?: Object;
|
|
23
|
+
nav?: Nav[];
|
|
24
|
+
whiteRoutes?: Array<string | RegExp>;
|
|
25
|
+
tokenExpire?: number;
|
|
26
|
+
defaultAvatar?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare type UsePlugin = Plugin | [Plugin, any];
|
|
29
|
+
export interface OmsPlugin {
|
|
30
|
+
use?: UsePlugin[];
|
|
31
|
+
components?: Record<string, Component>;
|
|
32
|
+
directives?: Record<string, Directive>;
|
|
33
|
+
mockApis?: MockApi[];
|
|
34
|
+
routes?: RouteRecordRaw[];
|
|
35
|
+
storeModules?: Record<string, Module<any, any>>;
|
|
36
|
+
}
|
|
37
|
+
export interface OmsOptions {
|
|
38
|
+
axios?: AxiosRequestConfig;
|
|
39
|
+
settings?: Settings;
|
|
40
|
+
plugins?: OmsPlugin[];
|
|
41
|
+
mock?: boolean;
|
|
42
|
+
form?: FormOptions;
|
|
43
|
+
}
|
|
44
|
+
export interface FormOptions {
|
|
45
|
+
vsPath: string;
|
|
46
|
+
}
|
|
47
|
+
export interface LoginForm {
|
|
48
|
+
username: string;
|
|
49
|
+
password: string;
|
|
50
|
+
}
|
|
51
|
+
export interface LoginTicket {
|
|
52
|
+
ticket: string;
|
|
53
|
+
}
|
|
54
|
+
export declare type ResourceIds = Array<Array<string>>;
|
|
55
|
+
export interface UserInfo {
|
|
56
|
+
id: number;
|
|
57
|
+
name: string;
|
|
58
|
+
token: string;
|
|
59
|
+
avatar: string;
|
|
60
|
+
nickname: string;
|
|
61
|
+
role_ids: Array<string>;
|
|
62
|
+
resource: ResourceIds;
|
|
63
|
+
}
|
|
64
|
+
export declare type Resource = Record<string, boolean | Record<string, boolean>>;
|
|
65
|
+
export declare enum PageType {
|
|
66
|
+
custom = 0,
|
|
67
|
+
list = 1,
|
|
68
|
+
form = 2,
|
|
69
|
+
customSchema = 3,
|
|
70
|
+
localComp = 4,
|
|
71
|
+
tree = 5,
|
|
72
|
+
report = 6,
|
|
73
|
+
entity = 7
|
|
74
|
+
}
|
|
75
|
+
export declare enum MenuType {
|
|
76
|
+
hidden = 0,
|
|
77
|
+
dir = 1,
|
|
78
|
+
menu = 2,
|
|
79
|
+
page = 3
|
|
80
|
+
}
|
|
81
|
+
export interface PageInfo {
|
|
82
|
+
module_id: number;
|
|
83
|
+
module_name?: string;
|
|
84
|
+
id: number;
|
|
85
|
+
pid: number;
|
|
86
|
+
name: string;
|
|
87
|
+
path: string;
|
|
88
|
+
icon?: string;
|
|
89
|
+
view?: string;
|
|
90
|
+
is_show: number;
|
|
91
|
+
type: number;
|
|
92
|
+
page_type: PageType;
|
|
93
|
+
children?: PageInfo[];
|
|
94
|
+
code: string;
|
|
95
|
+
}
|
|
96
|
+
export interface RemoteModule {
|
|
97
|
+
id: number;
|
|
98
|
+
label: string;
|
|
99
|
+
routes: PageInfo[];
|
|
100
|
+
}
|
|
101
|
+
export interface OmsModule {
|
|
102
|
+
id: number;
|
|
103
|
+
label: string;
|
|
104
|
+
routes: RouteRecordRaw[];
|
|
105
|
+
}
|
|
106
|
+
export interface ImportMetaEnv {
|
|
107
|
+
VITE_BASE_API?: string;
|
|
108
|
+
VITE_BASE?: string;
|
|
109
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okiss/oms",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "cross-env pkg=oms vite --config ../../build/dev.config.ts",
|
|
6
6
|
"build": "cross-env pkg=oms vite build --config ../../build/lib.config.ts",
|
|
@@ -35,26 +35,12 @@
|
|
|
35
35
|
"xlsx": "^0.18.5"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@babel/eslint-parser": "^7.18.2",
|
|
39
|
-
"@rollup/plugin-typescript": "^8.3.3",
|
|
40
|
-
"@types/file-saver": "^2.0.5",
|
|
41
|
-
"@types/inputmask": "^5.0.3",
|
|
42
|
-
"@types/js-cookie": "^3.0.2",
|
|
43
|
-
"@types/lodash": "^4.14.182",
|
|
44
|
-
"@types/mockjs": "^1.0.6",
|
|
45
|
-
"@types/node": "^18.0.0",
|
|
46
|
-
"@types/nprogress": "^0.2.0",
|
|
47
|
-
"@types/sortablejs": "^1.13.0",
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^5.29.0",
|
|
49
|
-
"@typescript-eslint/parser": "^5.29.0",
|
|
50
38
|
"@vitejs/plugin-vue": "^2.3.3",
|
|
51
39
|
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
|
52
40
|
"@vue/compiler-sfc": "^3.2.37",
|
|
53
41
|
"eslint": "^8.18.0",
|
|
54
42
|
"eslint-plugin-vue": "^9.1.1",
|
|
55
|
-
"node-sql-parser": "^4.3.0",
|
|
56
43
|
"only-allow": "^1.1.0",
|
|
57
|
-
"release-it": "^15.1.0",
|
|
58
44
|
"rollup-plugin-cdn": "^0.1.2",
|
|
59
45
|
"rollup-plugin-copy": "^3.4.0",
|
|
60
46
|
"rollup-plugin-typescript2": "^0.32.1",
|
|
@@ -70,8 +56,7 @@
|
|
|
70
56
|
"vite-plugin-package-config": "^0.1.1",
|
|
71
57
|
"vite-plugin-vue-setup-extend": "^0.4.0",
|
|
72
58
|
"vite-svg-loader": "^3.4.0",
|
|
73
|
-
"vue-global-api": "^0.4.1"
|
|
74
|
-
"vue-tsc": "^0.38.1"
|
|
59
|
+
"vue-global-api": "^0.4.1"
|
|
75
60
|
},
|
|
76
61
|
"files": [
|
|
77
62
|
"dist/*"
|