@a2simcode/ui 0.0.15 → 0.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/dist/components/index.d.ts +2 -1
- package/dist/components/menu/index.d.ts +98 -0
- package/dist/components/menu/src/hmenu/index.vue.d.ts +21 -0
- package/dist/components/menu/src/imenu/index.vue.d.ts +34 -0
- package/dist/components/menu/src/menu-item/index.vue.d.ts +103 -0
- package/dist/components/menu/src/menu.vue.d.ts +73 -0
- package/dist/components/menu/src/sub-menu/index.vue.d.ts +20 -0
- package/dist/components/menu/src/vmenu/index.vue.d.ts +19 -0
- package/dist/simcode-ui.es.js +2777 -2075
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/dist/ui.css +1 -1
- package/package.json +3 -3
|
@@ -32,12 +32,13 @@ import { default as JInputCode } from './input-code';
|
|
|
32
32
|
import { default as JTitle } from './title';
|
|
33
33
|
import { default as JCodeMirror } from './code-mirror';
|
|
34
34
|
import { default as JSliderCaptcha } from './slider-captcha';
|
|
35
|
+
import { default as JMenu } from './menu';
|
|
35
36
|
import { default as JComp } from './comp';
|
|
36
37
|
import { default as JForm } from './form';
|
|
37
38
|
import { default as JFormItem } from './form-item';
|
|
38
39
|
import { default as JPage } from './page';
|
|
39
40
|
import { default as JGuid } from './guid';
|
|
40
|
-
export { JButton, JButtons, JInput, JIcon, JRadio, JSelect, JCascaderSelect, JCheckbox, JNumber, JAutoComplete, JLayout, JTable, JDialog, JDialogFull, JDrawer, JLayer, JDynamicLayer, JInputTag, JRate, JSlider, JUpload, JEcharts, JBarcode, JCodeMirror, JCount, JCountUp, JDataPanel, JDivider, JHpanel, JGuid, JInputButton, JInputCode, JTitle, JComp, JForm, JFormItem, JPage, JSliderCaptcha };
|
|
41
|
+
export { JButton, JButtons, JInput, JIcon, JRadio, JSelect, JCascaderSelect, JCheckbox, JNumber, JAutoComplete, JLayout, JTable, JDialog, JDialogFull, JDrawer, JLayer, JDynamicLayer, JInputTag, JRate, JSlider, JUpload, JEcharts, JBarcode, JCodeMirror, JCount, JCountUp, JDataPanel, JDivider, JHpanel, JGuid, JInputButton, JInputCode, JTitle, JComp, JForm, JFormItem, JPage, JSliderCaptcha, JMenu };
|
|
41
42
|
export * from '../core';
|
|
42
43
|
export type { InputProps } from './input/src/input.vue';
|
|
43
44
|
export type { SelectOption, SelectProps } from './select/src/select.vue';
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
declare const JMenu: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
menus: {
|
|
4
|
+
type: import('vue').PropType<Record<string, any>[]>;
|
|
5
|
+
default: () => never[];
|
|
6
|
+
};
|
|
7
|
+
activeId: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: undefined;
|
|
10
|
+
};
|
|
11
|
+
collapsed: BooleanConstructor;
|
|
12
|
+
theme: {
|
|
13
|
+
type: import('vue').PropType<"light" | "dark">;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
mode: {
|
|
17
|
+
type: import('vue').PropType<"vertical" | "horizontal" | "inline">;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{
|
|
21
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
+
click: (...args: any[]) => void;
|
|
24
|
+
}, import('vue').PublicProps, {
|
|
25
|
+
mode: "inline" | "vertical" | "horizontal";
|
|
26
|
+
theme: "dark" | "light";
|
|
27
|
+
collapsed: boolean;
|
|
28
|
+
menus: Record<string, any>[];
|
|
29
|
+
activeId: string;
|
|
30
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
31
|
+
P: {};
|
|
32
|
+
B: {};
|
|
33
|
+
D: {};
|
|
34
|
+
C: {};
|
|
35
|
+
M: {};
|
|
36
|
+
Defaults: {};
|
|
37
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
38
|
+
menus: {
|
|
39
|
+
type: import('vue').PropType<Record<string, any>[]>;
|
|
40
|
+
default: () => never[];
|
|
41
|
+
};
|
|
42
|
+
activeId: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: undefined;
|
|
45
|
+
};
|
|
46
|
+
collapsed: BooleanConstructor;
|
|
47
|
+
theme: {
|
|
48
|
+
type: import('vue').PropType<"light" | "dark">;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
mode: {
|
|
52
|
+
type: import('vue').PropType<"vertical" | "horizontal" | "inline">;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
}>> & Readonly<{
|
|
56
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
}>, {}, {}, {}, {}, {
|
|
58
|
+
mode: "inline" | "vertical" | "horizontal";
|
|
59
|
+
theme: "dark" | "light";
|
|
60
|
+
collapsed: boolean;
|
|
61
|
+
menus: Record<string, any>[];
|
|
62
|
+
activeId: string;
|
|
63
|
+
}>;
|
|
64
|
+
__isFragment?: never;
|
|
65
|
+
__isTeleport?: never;
|
|
66
|
+
__isSuspense?: never;
|
|
67
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
68
|
+
menus: {
|
|
69
|
+
type: import('vue').PropType<Record<string, any>[]>;
|
|
70
|
+
default: () => never[];
|
|
71
|
+
};
|
|
72
|
+
activeId: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: undefined;
|
|
75
|
+
};
|
|
76
|
+
collapsed: BooleanConstructor;
|
|
77
|
+
theme: {
|
|
78
|
+
type: import('vue').PropType<"light" | "dark">;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
mode: {
|
|
82
|
+
type: import('vue').PropType<"vertical" | "horizontal" | "inline">;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
}>> & Readonly<{
|
|
86
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
87
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
88
|
+
click: (...args: any[]) => void;
|
|
89
|
+
}, string, {
|
|
90
|
+
mode: "inline" | "vertical" | "horizontal";
|
|
91
|
+
theme: "dark" | "light";
|
|
92
|
+
collapsed: boolean;
|
|
93
|
+
menus: Record<string, any>[];
|
|
94
|
+
activeId: string;
|
|
95
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
96
|
+
install: (app: import('vue').App) => void;
|
|
97
|
+
};
|
|
98
|
+
export default JMenu;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
menuList: {
|
|
4
|
+
type: PropType<Record<string, any>[]>;
|
|
5
|
+
default: () => never[];
|
|
6
|
+
};
|
|
7
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
click: (...args: any[]) => void;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
+
menuList: {
|
|
11
|
+
type: PropType<Record<string, any>[]>;
|
|
12
|
+
default: () => never[];
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{
|
|
15
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
menuList: Record<string, any>[];
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
19
|
+
menuRef: HTMLDivElement;
|
|
20
|
+
}, HTMLDivElement>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
/**
|
|
4
|
+
* @zh 菜单数据。
|
|
5
|
+
*/
|
|
6
|
+
menuList: {
|
|
7
|
+
type: PropType<Record<string, any>[]>;
|
|
8
|
+
default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @zh 是否折叠。
|
|
12
|
+
*/
|
|
13
|
+
collapsed: BooleanConstructor;
|
|
14
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
click: (...args: any[]) => void;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
/**
|
|
18
|
+
* @zh 菜单数据。
|
|
19
|
+
*/
|
|
20
|
+
menuList: {
|
|
21
|
+
type: PropType<Record<string, any>[]>;
|
|
22
|
+
default: () => never[];
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @zh 是否折叠。
|
|
26
|
+
*/
|
|
27
|
+
collapsed: BooleanConstructor;
|
|
28
|
+
}>> & Readonly<{
|
|
29
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
collapsed: boolean;
|
|
32
|
+
menuList: Record<string, any>[];
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
/**
|
|
4
|
+
* @zh 菜单项数据
|
|
5
|
+
*/
|
|
6
|
+
item: {
|
|
7
|
+
type: PropType<{
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
icon?: string;
|
|
11
|
+
hasChildren?: boolean;
|
|
12
|
+
indent: number;
|
|
13
|
+
open: boolean;
|
|
14
|
+
active: boolean;
|
|
15
|
+
color?: string;
|
|
16
|
+
}>;
|
|
17
|
+
default: () => {};
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @zh 当前激活的菜单项
|
|
21
|
+
*/
|
|
22
|
+
parentActives: {
|
|
23
|
+
type: PropType<string[]>;
|
|
24
|
+
default: () => never[];
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @zh 是否折叠。
|
|
28
|
+
*/
|
|
29
|
+
collapsed: BooleanConstructor;
|
|
30
|
+
/**
|
|
31
|
+
* @zh 是否子菜单。(弹层)
|
|
32
|
+
*/
|
|
33
|
+
isSub: BooleanConstructor;
|
|
34
|
+
/**
|
|
35
|
+
* @zh 是否水平菜单。
|
|
36
|
+
*/
|
|
37
|
+
isHorizontal: BooleanConstructor;
|
|
38
|
+
/**
|
|
39
|
+
* @zh 是否竖直弹窗菜单。
|
|
40
|
+
*/
|
|
41
|
+
isVertical: BooleanConstructor;
|
|
42
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
+
click: (...args: any[]) => void;
|
|
44
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
45
|
+
/**
|
|
46
|
+
* @zh 菜单项数据
|
|
47
|
+
*/
|
|
48
|
+
item: {
|
|
49
|
+
type: PropType<{
|
|
50
|
+
value: string;
|
|
51
|
+
label: string;
|
|
52
|
+
icon?: string;
|
|
53
|
+
hasChildren?: boolean;
|
|
54
|
+
indent: number;
|
|
55
|
+
open: boolean;
|
|
56
|
+
active: boolean;
|
|
57
|
+
color?: string;
|
|
58
|
+
}>;
|
|
59
|
+
default: () => {};
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* @zh 当前激活的菜单项
|
|
63
|
+
*/
|
|
64
|
+
parentActives: {
|
|
65
|
+
type: PropType<string[]>;
|
|
66
|
+
default: () => never[];
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* @zh 是否折叠。
|
|
70
|
+
*/
|
|
71
|
+
collapsed: BooleanConstructor;
|
|
72
|
+
/**
|
|
73
|
+
* @zh 是否子菜单。(弹层)
|
|
74
|
+
*/
|
|
75
|
+
isSub: BooleanConstructor;
|
|
76
|
+
/**
|
|
77
|
+
* @zh 是否水平菜单。
|
|
78
|
+
*/
|
|
79
|
+
isHorizontal: BooleanConstructor;
|
|
80
|
+
/**
|
|
81
|
+
* @zh 是否竖直弹窗菜单。
|
|
82
|
+
*/
|
|
83
|
+
isVertical: BooleanConstructor;
|
|
84
|
+
}>> & Readonly<{
|
|
85
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
}>, {
|
|
87
|
+
item: {
|
|
88
|
+
value: string;
|
|
89
|
+
label: string;
|
|
90
|
+
icon?: string;
|
|
91
|
+
hasChildren?: boolean;
|
|
92
|
+
indent: number;
|
|
93
|
+
open: boolean;
|
|
94
|
+
active: boolean;
|
|
95
|
+
color?: string;
|
|
96
|
+
};
|
|
97
|
+
collapsed: boolean;
|
|
98
|
+
isSub: boolean;
|
|
99
|
+
isHorizontal: boolean;
|
|
100
|
+
isVertical: boolean;
|
|
101
|
+
parentActives: string[];
|
|
102
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
103
|
+
export default _default;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
/**
|
|
4
|
+
* @zh 菜单数据。
|
|
5
|
+
*/
|
|
6
|
+
menus: {
|
|
7
|
+
type: PropType<Record<string, any>[]>;
|
|
8
|
+
default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @zh 当前激活的菜单项。
|
|
12
|
+
*/
|
|
13
|
+
activeId: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: undefined;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @zh 是否折叠。
|
|
19
|
+
*/
|
|
20
|
+
collapsed: BooleanConstructor;
|
|
21
|
+
/**
|
|
22
|
+
* @zh 主题。
|
|
23
|
+
*/
|
|
24
|
+
theme: {
|
|
25
|
+
type: PropType<"light" | "dark">;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
mode: {
|
|
29
|
+
type: PropType<"vertical" | "horizontal" | "inline">;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
33
|
+
click: (...args: any[]) => void;
|
|
34
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
35
|
+
/**
|
|
36
|
+
* @zh 菜单数据。
|
|
37
|
+
*/
|
|
38
|
+
menus: {
|
|
39
|
+
type: PropType<Record<string, any>[]>;
|
|
40
|
+
default: () => never[];
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* @zh 当前激活的菜单项。
|
|
44
|
+
*/
|
|
45
|
+
activeId: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* @zh 是否折叠。
|
|
51
|
+
*/
|
|
52
|
+
collapsed: BooleanConstructor;
|
|
53
|
+
/**
|
|
54
|
+
* @zh 主题。
|
|
55
|
+
*/
|
|
56
|
+
theme: {
|
|
57
|
+
type: PropType<"light" | "dark">;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
mode: {
|
|
61
|
+
type: PropType<"vertical" | "horizontal" | "inline">;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
}>> & Readonly<{
|
|
65
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
}>, {
|
|
67
|
+
mode: "inline" | "vertical" | "horizontal";
|
|
68
|
+
theme: "dark" | "light";
|
|
69
|
+
collapsed: boolean;
|
|
70
|
+
menus: Record<string, any>[];
|
|
71
|
+
activeId: string;
|
|
72
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
73
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
/**
|
|
3
|
+
* @zh 父级ID
|
|
4
|
+
*/
|
|
5
|
+
pId: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
};
|
|
8
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
click: (...args: any[]) => void;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
+
/**
|
|
12
|
+
* @zh 父级ID
|
|
13
|
+
*/
|
|
14
|
+
pId: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
};
|
|
17
|
+
}>> & Readonly<{
|
|
18
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
menuList: {
|
|
4
|
+
type: PropType<Record<string, any>[]>;
|
|
5
|
+
default: () => never[];
|
|
6
|
+
};
|
|
7
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
click: (...args: any[]) => void;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
+
menuList: {
|
|
11
|
+
type: PropType<Record<string, any>[]>;
|
|
12
|
+
default: () => never[];
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{
|
|
15
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
menuList: Record<string, any>[];
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
19
|
+
export default _default;
|