@maxtropy/v-components 0.1.18-beta.2 → 0.1.18-beta.21
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/mx-vcomponents.es.js +46693 -26334
- package/dist/style.css +1 -1
- package/dist/types/components/breadcrumb/BreadCrumb.vue.d.ts +4 -0
- package/dist/types/components/echartsWithTheme/MxEchartsWithTheme.vue.d.ts +2 -0
- package/dist/types/components/echartsWithTheme/darkTheme.d.ts +6 -0
- package/dist/types/components/echartsWithTheme/lightTheme.d.ts +6 -0
- package/dist/types/components/echartsWithTheme/utils.d.ts +1 -1
- package/dist/types/components/errorPage/MxErrorPage.vue.d.ts +42 -0
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/components/tag/MxTag.vue.d.ts +3 -3
- package/dist/types/components/tree/MxTree.vue.d.ts +1 -1
- package/dist/types/components/upload/MxUpload.vue.d.ts +1 -1
- package/dist/types/utils/micro.d.ts +22 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ interface Props {
|
|
|
9
9
|
customClass?: string;
|
|
10
10
|
devMenu?: MenuItem;
|
|
11
11
|
options?: BreadCrumbItemProps[];
|
|
12
|
+
externalOptionsOnly?: boolean;
|
|
12
13
|
reassign?: boolean;
|
|
13
14
|
itemClick?: (item: BreadCrumbItemProps) => void;
|
|
14
15
|
}
|
|
@@ -16,12 +17,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
16
17
|
customClass: string;
|
|
17
18
|
devMenu: undefined;
|
|
18
19
|
options: () => never[];
|
|
20
|
+
externalOptionsOnly: boolean;
|
|
19
21
|
reassign: boolean;
|
|
20
22
|
itemClick: undefined;
|
|
21
23
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "itemClick"[], "itemClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
22
24
|
customClass: string;
|
|
23
25
|
devMenu: undefined;
|
|
24
26
|
options: () => never[];
|
|
27
|
+
externalOptionsOnly: boolean;
|
|
25
28
|
reassign: boolean;
|
|
26
29
|
itemClick: undefined;
|
|
27
30
|
}>>> & {
|
|
@@ -30,6 +33,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
30
33
|
customClass: string;
|
|
31
34
|
devMenu: MenuItem;
|
|
32
35
|
options: BreadCrumbItemProps[];
|
|
36
|
+
externalOptionsOnly: boolean;
|
|
33
37
|
reassign: boolean;
|
|
34
38
|
itemClick: (item: BreadCrumbItemProps) => void;
|
|
35
39
|
}, {}>;
|
|
@@ -9,6 +9,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
9
9
|
loading?: boolean | undefined;
|
|
10
10
|
type?: string | undefined;
|
|
11
11
|
onEvents?: Record<string, Function> | undefined;
|
|
12
|
+
onClick?: ((params?: any) => void) | undefined;
|
|
12
13
|
empty?: {
|
|
13
14
|
isShowEmpty: boolean;
|
|
14
15
|
} | undefined;
|
|
@@ -25,6 +26,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
25
26
|
loading?: boolean | undefined;
|
|
26
27
|
type?: string | undefined;
|
|
27
28
|
onEvents?: Record<string, Function> | undefined;
|
|
29
|
+
onClick?: ((params?: any) => void) | undefined;
|
|
28
30
|
empty?: {
|
|
29
31
|
isShowEmpty: boolean;
|
|
30
32
|
} | undefined;
|
|
@@ -26,6 +26,7 @@ export declare const darkTheme: (type?: string) => {
|
|
|
26
26
|
color: string;
|
|
27
27
|
};
|
|
28
28
|
trigger?: undefined;
|
|
29
|
+
axisPointer?: undefined;
|
|
29
30
|
};
|
|
30
31
|
grid?: undefined;
|
|
31
32
|
dataZoom?: undefined;
|
|
@@ -63,6 +64,11 @@ export declare const darkTheme: (type?: string) => {
|
|
|
63
64
|
textStyle: {
|
|
64
65
|
color: string;
|
|
65
66
|
};
|
|
67
|
+
axisPointer: {
|
|
68
|
+
lineStyle: {
|
|
69
|
+
color: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
66
72
|
};
|
|
67
73
|
dataZoom: {
|
|
68
74
|
type: string;
|
|
@@ -26,6 +26,7 @@ export declare const lightTheme: (type?: string) => {
|
|
|
26
26
|
color: string;
|
|
27
27
|
};
|
|
28
28
|
trigger?: undefined;
|
|
29
|
+
axisPointer?: undefined;
|
|
29
30
|
};
|
|
30
31
|
grid?: undefined;
|
|
31
32
|
dataZoom?: undefined;
|
|
@@ -63,6 +64,11 @@ export declare const lightTheme: (type?: string) => {
|
|
|
63
64
|
textStyle: {
|
|
64
65
|
color: string;
|
|
65
66
|
};
|
|
67
|
+
axisPointer: {
|
|
68
|
+
lineStyle: {
|
|
69
|
+
color: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
66
72
|
};
|
|
67
73
|
dataZoom: {
|
|
68
74
|
type: string;
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function deepMergeWithArray(target: any, sources: any): any;
|
|
8
8
|
export declare function wrapArrayObj(baseYAxis: any, input: any): any[];
|
|
9
|
-
export declare function
|
|
9
|
+
export declare function resolveCSSVarString(input: string): string;
|
|
10
10
|
export declare const formatOptions: (themeOptions: any, option: any, dataZoomExit?: boolean) => any;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
status?: string | number | undefined;
|
|
3
|
+
title?: string | undefined;
|
|
4
|
+
description?: string | undefined;
|
|
5
|
+
homePath?: string | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
status: number;
|
|
8
|
+
homePath: string;
|
|
9
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
back: () => void;
|
|
11
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
|
+
status?: string | number | undefined;
|
|
13
|
+
title?: string | undefined;
|
|
14
|
+
description?: string | undefined;
|
|
15
|
+
homePath?: string | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
status: number;
|
|
18
|
+
homePath: string;
|
|
19
|
+
}>>> & {
|
|
20
|
+
onBack?: (() => any) | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
status: string | number;
|
|
23
|
+
homePath: string;
|
|
24
|
+
}, {}>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: import('vue').PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type __VLS_WithDefaults<P, D> = {
|
|
36
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
37
|
+
default: D[K];
|
|
38
|
+
}> : P[K];
|
|
39
|
+
};
|
|
40
|
+
type __VLS_Prettify<T> = {
|
|
41
|
+
[K in keyof T]: T[K];
|
|
42
|
+
} & {};
|
|
@@ -44,4 +44,5 @@ import MxSubContent from './subContent';
|
|
|
44
44
|
import MxAutocomplete from './autocomplete';
|
|
45
45
|
import MxLoading from './loading';
|
|
46
46
|
import MxEcharts from './echartsWithTheme';
|
|
47
|
-
|
|
47
|
+
import MxErrorPage from './errorPage/MxErrorPage.vue';
|
|
48
|
+
export { MxInput, MxInputNumber, MxButton, MxSwitch, MxSelect, MxOption, MxOptionGroup, MxRadio, MxRadioGroup, MxRadioButton, MxCheckbox, MxCheckboxButton, MxCheckboxGroup, SwitchStaff, HeadNavigation, SiderMenu, UserContent, SystemContent, BreadCrumb, BasicLayout, AuthorizedPermission, usePermission, useStaffTitle, useIntegratedAuthorityList, MxTooltip, MxPopover, MxDropdown, MxDropdownItem, MxDropdownMenu, MxAlert, MxDialog, MxSlider, MxDatePicker, MxTimePicker, MxPopconfirm, MxTree, MxTreeSelect, MxUpload, MxEllipsisSpan, MxEmpty, MxSteps, MxStep, MxTag, MxTable, MxTableColumn, MxPagination, MxForm, MxFormItem, MxTabs, MxTabPane, MxTimeSelect, MxCascader, MxFilter, MxWrapper, MxFormContent, MxFormTitle, MxSubContent, MxAutocomplete, MxLoading, MxEcharts, MxErrorPage, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
3
|
type: {
|
|
4
|
-
type: PropType<"" | "success" | "warning" | "info" | "
|
|
4
|
+
type: PropType<"" | "success" | "warning" | "info" | "primary" | "danger" | "dashed" | "invalid">;
|
|
5
5
|
validator: (value: string) => boolean;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
15
15
|
};
|
|
16
16
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
17
|
type: {
|
|
18
|
-
type: PropType<"" | "success" | "warning" | "info" | "
|
|
18
|
+
type: PropType<"" | "success" | "warning" | "info" | "primary" | "danger" | "dashed" | "invalid">;
|
|
19
19
|
validator: (value: string) => boolean;
|
|
20
20
|
default: string;
|
|
21
21
|
};
|
|
@@ -29,7 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
29
29
|
};
|
|
30
30
|
}>>, {
|
|
31
31
|
color: string;
|
|
32
|
-
type: "" | "success" | "warning" | "info" | "
|
|
32
|
+
type: "" | "success" | "warning" | "info" | "primary" | "danger" | "dashed" | "invalid";
|
|
33
33
|
disabled: boolean;
|
|
34
34
|
}, {}>, Partial<Record<NonNullable<string | number>, (_: {}) => any>>>;
|
|
35
35
|
export default _default;
|
|
@@ -62,8 +62,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}
|
|
|
62
62
|
}>) => void)[] | undefined;
|
|
63
63
|
class?: unknown;
|
|
64
64
|
style?: unknown;
|
|
65
|
-
readonly load?: import("element-plus/es/components/tree/src/tree.type.js").LoadFunction | undefined;
|
|
66
65
|
readonly icon?: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | undefined;
|
|
66
|
+
readonly load?: import("element-plus/es/components/tree/src/tree.type.js").LoadFunction | undefined;
|
|
67
67
|
readonly emptyText?: string | undefined;
|
|
68
68
|
readonly nodeKey?: string | undefined;
|
|
69
69
|
readonly defaultCheckedKeys?: import("element-plus/es/components/tree/src/tree.type.js").TreeKey[] | undefined;
|
|
@@ -87,8 +87,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
87
87
|
};
|
|
88
88
|
}>>, {
|
|
89
89
|
onChange: (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
90
|
-
drag: boolean;
|
|
91
90
|
disabled: boolean;
|
|
91
|
+
drag: boolean;
|
|
92
92
|
beforeUpload: (rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils/typescript").Awaitable<boolean | void | Blob | File | null | undefined>;
|
|
93
93
|
beforeRemove: (uploadFile: import("element-plus").UploadFile, uploadFiles: import("element-plus").UploadFiles) => import("element-plus/es/utils/typescript").Awaitable<boolean>;
|
|
94
94
|
onPreview: (uploadFile: import("element-plus").UploadFile) => void;
|
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
import type { Router } from 'vue-router';
|
|
1
|
+
import type { RouteRecordRaw, Router } from 'vue-router';
|
|
2
|
+
type IsvErrorRouteOptions = {
|
|
3
|
+
homePath?: string;
|
|
4
|
+
};
|
|
5
|
+
export type IsvRuntimeErrorInfo = {
|
|
6
|
+
type: 'error' | 'unhandledrejection';
|
|
7
|
+
event: ErrorEvent | PromiseRejectionEvent;
|
|
8
|
+
error?: unknown;
|
|
9
|
+
message: string;
|
|
10
|
+
filename?: string;
|
|
11
|
+
stack?: string;
|
|
12
|
+
};
|
|
13
|
+
export type IsvRuntimeErrorBridgeOptions = {
|
|
14
|
+
enableErrorPage?: boolean;
|
|
15
|
+
useDefaultIgnore?: boolean;
|
|
16
|
+
ignoreRuntimeError?: (errorInfo: IsvRuntimeErrorInfo) => boolean;
|
|
17
|
+
onRuntimeError?: (errorInfo: IsvRuntimeErrorInfo) => void;
|
|
18
|
+
};
|
|
2
19
|
declare enum MicroAppNameEnum {
|
|
3
20
|
CC = "ms-cc",
|
|
4
21
|
DC = "ms-dc",
|
|
@@ -32,11 +49,15 @@ export declare function locationAssign(url: string | URL): void;
|
|
|
32
49
|
export declare function redirectToLogin(): void;
|
|
33
50
|
export declare function microAppRewrite(): void;
|
|
34
51
|
export declare function microAppRouterHandle(router: Router): void;
|
|
52
|
+
export declare function withIsvErrorRoutes(routes: RouteRecordRaw[], options?: IsvErrorRouteOptions): RouteRecordRaw[];
|
|
53
|
+
export declare function setupIsvRuntimeErrorBridge(options?: IsvRuntimeErrorBridgeOptions): () => void;
|
|
35
54
|
declare const _default: {
|
|
36
55
|
getBase: typeof getBase;
|
|
37
56
|
getMicroAppBaseRoute: typeof getMicroAppBaseRoute;
|
|
38
57
|
microAppRewrite: typeof microAppRewrite;
|
|
39
58
|
microAppRouterHandle: typeof microAppRouterHandle;
|
|
59
|
+
setupIsvRuntimeErrorBridge: typeof setupIsvRuntimeErrorBridge;
|
|
60
|
+
withIsvErrorRoutes: typeof withIsvErrorRoutes;
|
|
40
61
|
redirectToLogin: typeof redirectToLogin;
|
|
41
62
|
};
|
|
42
63
|
export default _default;
|