@maxtropy/v-components 0.1.17-beta.4 → 0.1.17-beta.40
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 +45545 -16627
- package/dist/style.css +1 -1
- package/dist/types/components/button/MxButton.vue.d.ts +2 -2
- package/dist/types/components/checkbox/MxCheckbox.vue.d.ts +3 -3
- package/dist/types/components/dialog/MxDialog.vue.d.ts +17 -17
- package/dist/types/components/dropdown/index.d.ts +2 -2
- package/dist/types/components/echartsWithTheme/MxEchartsWithTheme.vue.d.ts +51 -0
- package/dist/types/components/echartsWithTheme/darkTheme.d.ts +102 -0
- package/dist/types/components/echartsWithTheme/index.d.ts +7 -0
- package/dist/types/components/echartsWithTheme/lightTheme.d.ts +102 -0
- package/dist/types/components/echartsWithTheme/pluginsEcharts.d.ts +2 -0
- package/dist/types/components/echartsWithTheme/utils.d.ts +10 -0
- package/dist/types/components/ellipsisSpan/MxEllipsisSpan.vue.d.ts +1 -1
- package/dist/types/components/filter/MxFilter.vue.d.ts +1 -1
- package/dist/types/components/form/MxForm.vue.d.ts +3 -3
- package/dist/types/components/form/MxFormItem.vue.d.ts +1 -1
- package/dist/types/components/form/index.d.ts +3 -3
- package/dist/types/components/index.d.ts +4 -5
- package/dist/types/components/loading/common/LoadingCore.vue.d.ts +31 -0
- package/dist/types/components/loading/common/loadingStyles.d.ts +1 -0
- package/dist/types/components/loading/directive.d.ts +8 -0
- package/dist/types/components/loading/index.d.ts +5 -0
- package/dist/types/components/loading/service.d.ts +7 -0
- package/dist/types/components/loading/types.d.ts +18 -0
- package/dist/types/components/pagination/MxPagination.vue.d.ts +1 -1
- package/dist/types/components/popconfirm/MxPopconfirm.vue.d.ts +3 -3
- package/dist/types/components/popover/MxPopover.vue.d.ts +22 -0
- package/dist/types/components/popover/index.d.ts +7 -0
- package/dist/types/components/select/MxSelect.vue.d.ts +4 -1
- package/dist/types/components/tree/MxTree.vue.d.ts +2 -2
- package/dist/types/components/treeselect/MxTreeSelect.vue.d.ts +74 -1
- package/dist/types/components/upload/MxUpload.vue.d.ts +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/theme/index.d.ts +8 -4
- package/dist/types/utils/micro.d.ts +30 -0
- package/package.json +4 -2
- package/dist/types/theme/types/Themes.d.ts +0 -7
- /package/dist/types/components/dropdown/{MxDropdownItem.vue.d.ts → MxDropDownItem.vue.d.ts} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
popperClass: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
popperClass: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}>>, {
|
|
12
|
+
popperClass: string;
|
|
13
|
+
}, {}>, {
|
|
14
|
+
reference?(_: {}): any;
|
|
15
|
+
default?(_: {}): any;
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {
|
|
2
|
+
focus: () => void | undefined;
|
|
3
|
+
blur: () => void | undefined;
|
|
4
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, Partial<Record<NonNullable<string | number>, (_: {}) => any>>>;
|
|
2
5
|
export default _default;
|
|
3
6
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
4
7
|
new (): {
|
|
@@ -62,10 +62,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}
|
|
|
62
62
|
}>) => void)[] | undefined;
|
|
63
63
|
class?: unknown;
|
|
64
64
|
style?: unknown;
|
|
65
|
-
readonly icon?: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | undefined;
|
|
66
65
|
readonly load?: import("element-plus/es/components/tree/src/tree.type.js").LoadFunction | undefined;
|
|
66
|
+
readonly icon?: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | undefined;
|
|
67
67
|
readonly emptyText?: string | undefined;
|
|
68
|
-
"onCurrent-change"?: ((...args: any[]) => any) | undefined;
|
|
69
68
|
readonly nodeKey?: string | undefined;
|
|
70
69
|
readonly defaultCheckedKeys?: import("element-plus/es/components/tree/src/tree.type.js").TreeKey[] | undefined;
|
|
71
70
|
readonly defaultExpandedKeys?: import("element-plus/es/components/tree/src/tree.type.js").TreeKey[] | undefined;
|
|
@@ -74,6 +73,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}
|
|
|
74
73
|
readonly allowDrag?: Function | undefined;
|
|
75
74
|
readonly allowDrop?: Function | undefined;
|
|
76
75
|
readonly filterNodeMethod?: import("element-plus/es/components/tree/src/tree.type.js").FilterNodeMethodFunction | undefined;
|
|
76
|
+
"onCurrent-change"?: ((...args: any[]) => any) | undefined;
|
|
77
77
|
"onNode-expand"?: ((...args: any[]) => any) | undefined;
|
|
78
78
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
79
79
|
"onCheck-change"?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,4 +1,77 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {
|
|
2
|
+
selectTreeRef: import("vue").Ref<({
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
[x: number]: any;
|
|
8
|
+
[x: symbol]: any;
|
|
9
|
+
} | {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
[x: number]: any;
|
|
12
|
+
[x: symbol]: any;
|
|
13
|
+
};
|
|
14
|
+
$attrs: {
|
|
15
|
+
[x: string]: unknown;
|
|
16
|
+
};
|
|
17
|
+
$refs: {
|
|
18
|
+
[x: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
$slots: Readonly<{
|
|
21
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
24
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
25
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
26
|
+
$el: any;
|
|
27
|
+
$options: import("vue").ComponentOptionsBase<Readonly<any>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {} | {
|
|
30
|
+
[x: string]: any;
|
|
31
|
+
}, {}, string, {}> & {
|
|
32
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
43
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
44
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
45
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
46
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
47
|
+
};
|
|
48
|
+
$forceUpdate: () => void;
|
|
49
|
+
$nextTick: typeof import("vue").nextTick;
|
|
50
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
51
|
+
} & Readonly<any> & import("vue").ShallowUnwrapRef<() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
}>> & {} & import("vue").ComponentCustomProperties & {}) | undefined>;
|
|
54
|
+
focus: () => any;
|
|
55
|
+
blur: () => any;
|
|
56
|
+
filter: (value: string) => any;
|
|
57
|
+
getCheckedNodes: (leafOnly?: boolean | undefined) => any;
|
|
58
|
+
setCheckedNodes: (nodes: any[], leafOnly?: boolean | undefined) => any;
|
|
59
|
+
getCheckedKeys: (leafOnly?: boolean | undefined) => any;
|
|
60
|
+
setCheckedKeys: (keys: any[], leafOnly?: boolean | undefined) => any;
|
|
61
|
+
setChecked: (key: any, checked: boolean, deep: boolean) => any;
|
|
62
|
+
getHalfCheckedNodes: () => any;
|
|
63
|
+
getHalfCheckedKeys: () => any;
|
|
64
|
+
updateKeyChildren: (key: any, data: any[]) => any;
|
|
65
|
+
getNode: (key: any) => any;
|
|
66
|
+
remove: (key: any) => any;
|
|
67
|
+
append: (data: any, parentKey?: any) => any;
|
|
68
|
+
insertBefore: (data: any, refKey: any) => any;
|
|
69
|
+
insertAfter: (data: any, refKey: any) => any;
|
|
70
|
+
setCurrentKey: (key: any) => any;
|
|
71
|
+
getCurrentKey: () => any;
|
|
72
|
+
setCurrentNode: (node: any) => any;
|
|
73
|
+
getCurrentNode: () => any;
|
|
74
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, Partial<Record<NonNullable<string | number>, (_: any) => any>>>;
|
|
2
75
|
export default _default;
|
|
3
76
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
4
77
|
new (): {
|
|
@@ -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
|
-
disabled: boolean;
|
|
91
90
|
drag: boolean;
|
|
91
|
+
disabled: 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;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
+
import './global.d.ts';
|
|
2
3
|
declare function install(app: App): void;
|
|
3
4
|
declare const _default: {
|
|
4
5
|
install: typeof install;
|
|
@@ -6,6 +7,7 @@ declare const _default: {
|
|
|
6
7
|
export default _default;
|
|
7
8
|
export * from './components/message';
|
|
8
9
|
export * from './components/messageBox';
|
|
10
|
+
export * from './components/loading';
|
|
9
11
|
export * from './components/notification';
|
|
10
12
|
export * from './components';
|
|
11
13
|
export * from './constants';
|
|
@@ -3,13 +3,17 @@ import './common/css-vars.scss';
|
|
|
3
3
|
import './dark/css-vars.scss';
|
|
4
4
|
import './light/css-vars.scss';
|
|
5
5
|
import './yellow-light/css-vars.scss';
|
|
6
|
-
|
|
6
|
+
import { RouteLocationNormalized } from 'vue-router';
|
|
7
|
+
export declare enum Themes {
|
|
7
8
|
DARK = "dark",
|
|
8
9
|
LIGHT = "light",
|
|
9
10
|
YELLOWLIGHT = "yellow-light",
|
|
10
11
|
SAPPHIRE = "sapphire",
|
|
11
12
|
JUNTONG = "juntong"
|
|
12
13
|
}
|
|
13
|
-
declare const THEME_STORE_KEY = "mxTheme";
|
|
14
|
-
declare const useTheme: (targetTheme: Themes) => void;
|
|
15
|
-
export
|
|
14
|
+
export declare const THEME_STORE_KEY = "mxTheme";
|
|
15
|
+
export declare const useTheme: (targetTheme: Themes) => void;
|
|
16
|
+
export declare function setPageScopedTheme(theme: string): void;
|
|
17
|
+
export declare function clearPageScopedTheme(): void;
|
|
18
|
+
export { themeClass };
|
|
19
|
+
export declare function handleThemeBeforeEach(to: RouteLocationNormalized): void;
|
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
import type { Router } from 'vue-router';
|
|
2
|
+
declare enum MicroAppNameEnum {
|
|
3
|
+
CC = "ms-cc",
|
|
4
|
+
DC = "ms-dc",
|
|
5
|
+
DS = "ms-ds",
|
|
6
|
+
IDS = "ms-ids"
|
|
7
|
+
}
|
|
8
|
+
declare enum IsvAppNameEnum {
|
|
9
|
+
WO = "ms-wo",
|
|
10
|
+
JI = "ms-ji",
|
|
11
|
+
AI = "ms-ai",
|
|
12
|
+
ZM = "ms-zm",
|
|
13
|
+
PA = "ms-pa",
|
|
14
|
+
RT = "ms-rt",
|
|
15
|
+
BA = "ms-ba",
|
|
16
|
+
EC = "ms-ec",
|
|
17
|
+
CA = "ms-ca",
|
|
18
|
+
EN = "ms-en",
|
|
19
|
+
GP = "ms-gp",
|
|
20
|
+
PR = "ms-pr"
|
|
21
|
+
}
|
|
22
|
+
export declare const MicroAppList: ({
|
|
23
|
+
appName: MicroAppNameEnum;
|
|
24
|
+
rawWindowName: string;
|
|
25
|
+
} | {
|
|
26
|
+
appName: IsvAppNameEnum;
|
|
27
|
+
rawWindowName: string;
|
|
28
|
+
})[];
|
|
2
29
|
export declare function getBase(): string;
|
|
3
30
|
export declare function getMicroAppBaseRoute(): string;
|
|
31
|
+
export declare function locationAssign(url: string | URL): void;
|
|
32
|
+
export declare function redirectToLogin(): void;
|
|
4
33
|
export declare function microAppRewrite(): void;
|
|
5
34
|
export declare function microAppRouterHandle(router: Router): void;
|
|
6
35
|
declare const _default: {
|
|
@@ -8,5 +37,6 @@ declare const _default: {
|
|
|
8
37
|
getMicroAppBaseRoute: typeof getMicroAppBaseRoute;
|
|
9
38
|
microAppRewrite: typeof microAppRewrite;
|
|
10
39
|
microAppRouterHandle: typeof microAppRouterHandle;
|
|
40
|
+
redirectToLogin: typeof redirectToLogin;
|
|
11
41
|
};
|
|
12
42
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxtropy/v-components",
|
|
3
|
-
"version": "0.1.17-beta.
|
|
3
|
+
"version": "0.1.17-beta.40",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build:components": "rimraf dist && vue-tsc && vite build",
|
|
20
20
|
"start": "vitepress dev docs --no-cache ",
|
|
21
|
-
"build": "vitepress build docs",
|
|
21
|
+
"build": "NODE_OPTIONS='--max-old-space-size=4096' vitepress build docs",
|
|
22
22
|
"docs:serve": "vitepress serve docs",
|
|
23
23
|
"prepare": "husky install",
|
|
24
24
|
"release": "npm run commit patch",
|
|
@@ -71,6 +71,8 @@
|
|
|
71
71
|
"@element-plus/icons-vue": "^2.3.1",
|
|
72
72
|
"@types/lodash-es": "^4.17.7",
|
|
73
73
|
"classnames": "^2.5.1",
|
|
74
|
+
"echarts": "^5.5.0",
|
|
75
|
+
"vue-echarts": "^7.0.0",
|
|
74
76
|
"element-plus": ">=2.3.4",
|
|
75
77
|
"js-cookie": "^3.0.1",
|
|
76
78
|
"lodash-es": ">=4",
|
|
File without changes
|