@maxtropy/v-components 0.0.6 → 0.1.0-beta.0
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 +1271 -1272
- package/dist/types/components/basiclayout/BasicLayout.vue.d.ts +28 -0
- package/dist/types/components/basiclayout/index.d.ts +7 -0
- package/dist/types/components/breadcrumb/BreadCrumb.vue.d.ts +52 -0
- package/dist/types/components/breadcrumb/index.d.ts +7 -0
- package/dist/types/components/systemcontent/SystemContent.vue.d.ts +1 -1
- package/dist/types/utils/hooks.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
customClass?: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
5
|
+
customClass: string;
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
7
|
+
customClass: string;
|
|
8
|
+
}>>>, {
|
|
9
|
+
customClass: string;
|
|
10
|
+
}>;
|
|
11
|
+
export default _default;
|
|
12
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
+
} : {
|
|
17
|
+
type: import('vue').PropType<T[K]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
22
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
23
|
+
default: D[K];
|
|
24
|
+
}> : P[K];
|
|
25
|
+
};
|
|
26
|
+
declare type __VLS_Prettify<T> = {
|
|
27
|
+
[K in keyof T]: T[K];
|
|
28
|
+
} & {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { MenuItem } from '../../common/entity';
|
|
2
|
+
import 'element-plus/es/components/breadcrumb/style/css';
|
|
3
|
+
import 'element-plus/es/components/breadcrumb-item/style/css';
|
|
4
|
+
interface BreadCrumbItemProps {
|
|
5
|
+
name: string;
|
|
6
|
+
path?: string;
|
|
7
|
+
}
|
|
8
|
+
interface Props {
|
|
9
|
+
customClass?: string;
|
|
10
|
+
devMenu?: MenuItem;
|
|
11
|
+
options?: BreadCrumbItemProps[];
|
|
12
|
+
reassign?: boolean;
|
|
13
|
+
click?: (item: BreadCrumbItemProps) => void;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
16
|
+
customClass: string;
|
|
17
|
+
devMenu: undefined;
|
|
18
|
+
options: () => never[];
|
|
19
|
+
reassign: boolean;
|
|
20
|
+
itemClick: undefined;
|
|
21
|
+
}>, {}, 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
|
+
customClass: string;
|
|
23
|
+
devMenu: undefined;
|
|
24
|
+
options: () => never[];
|
|
25
|
+
reassign: boolean;
|
|
26
|
+
itemClick: undefined;
|
|
27
|
+
}>>> & {
|
|
28
|
+
onItemClick?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
customClass: string;
|
|
31
|
+
devMenu: MenuItem;
|
|
32
|
+
options: BreadCrumbItemProps[];
|
|
33
|
+
reassign: boolean;
|
|
34
|
+
}>;
|
|
35
|
+
export default _default;
|
|
36
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
37
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
38
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
39
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
40
|
+
} : {
|
|
41
|
+
type: import('vue').PropType<T[K]>;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
46
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
47
|
+
default: D[K];
|
|
48
|
+
}> : P[K];
|
|
49
|
+
};
|
|
50
|
+
declare type __VLS_Prettify<T> = {
|
|
51
|
+
[K in keyof T]: T[K];
|
|
52
|
+
} & {};
|
|
@@ -24,8 +24,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
24
24
|
}>>> & {
|
|
25
25
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
26
26
|
}, {
|
|
27
|
-
title: string;
|
|
28
27
|
customClass: string;
|
|
28
|
+
title: string;
|
|
29
29
|
router: Router;
|
|
30
30
|
showLogo: boolean;
|
|
31
31
|
linkEnable: boolean;
|
|
@@ -4,6 +4,7 @@ export declare const getTenantCurrent: () => import("../common/subject").ISubjec
|
|
|
4
4
|
export declare function refreshCurrrent(callback?: () => void): void;
|
|
5
5
|
export declare function useCurrent(callback?: (current?: UserInfo) => void): void;
|
|
6
6
|
export declare function useStaffList(callback?: (staffList?: any) => void): void;
|
|
7
|
+
export declare const getMenuCurrent: () => import("../common/subject").ISubjectHolder<MenuItemProps[]>;
|
|
7
8
|
export declare function useMenuList(callback: (menuList?: MenuItemProps[]) => void): void;
|
|
8
9
|
export declare function useLogout(): void;
|
|
9
10
|
declare const _default: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxtropy/v-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.1.0-beta.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "rimraf dist && vue-tsc && vite build",
|
|
20
|
-
"
|
|
20
|
+
"start": "vitepress dev docs",
|
|
21
21
|
"docs:build": "vitepress build docs",
|
|
22
22
|
"docs:serve": "vitepress serve docs",
|
|
23
23
|
"prepare": "husky install",
|