@a2simcode/ui 0.0.15 → 0.0.17
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/code-mirror/index.d.ts +3 -3
- package/dist/components/code-mirror/src/code-mirror.vue.d.ts +1 -1
- package/dist/components/comp/index.d.ts +3 -3
- package/dist/components/comp/src/comp.vue.d.ts +1 -1
- 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/core/utils/index.d.ts +1 -0
- package/dist/core/utils/tree.d.ts +10 -0
- package/dist/simcode-ui.es.js +2968 -2184
- 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
|
@@ -14,8 +14,8 @@ declare const JCodeMirror: {
|
|
|
14
14
|
}, import('vue').PublicProps, {
|
|
15
15
|
height: number;
|
|
16
16
|
mode: string;
|
|
17
|
-
readonly: boolean;
|
|
18
17
|
value: string;
|
|
18
|
+
readonly: boolean;
|
|
19
19
|
isHint: boolean;
|
|
20
20
|
handleHint: (str: string) => any[];
|
|
21
21
|
isScrollToBottom: boolean;
|
|
@@ -39,8 +39,8 @@ declare const JCodeMirror: {
|
|
|
39
39
|
}, {}, {}, {}, {
|
|
40
40
|
height: number;
|
|
41
41
|
mode: string;
|
|
42
|
-
readonly: boolean;
|
|
43
42
|
value: string;
|
|
43
|
+
readonly: boolean;
|
|
44
44
|
isHint: boolean;
|
|
45
45
|
handleHint: (str: string) => any[];
|
|
46
46
|
isScrollToBottom: boolean;
|
|
@@ -63,8 +63,8 @@ declare const JCodeMirror: {
|
|
|
63
63
|
}, string, {
|
|
64
64
|
height: number;
|
|
65
65
|
mode: string;
|
|
66
|
-
readonly: boolean;
|
|
67
66
|
value: string;
|
|
67
|
+
readonly: boolean;
|
|
68
68
|
isHint: boolean;
|
|
69
69
|
handleHint: (str: string) => any[];
|
|
70
70
|
isScrollToBottom: boolean;
|
|
@@ -33,8 +33,8 @@ declare const _default: import('vue').DefineComponent<CodeMirrorProps, {
|
|
|
33
33
|
}>, {
|
|
34
34
|
height: number;
|
|
35
35
|
mode: string;
|
|
36
|
-
readonly: boolean;
|
|
37
36
|
value: string;
|
|
37
|
+
readonly: boolean;
|
|
38
38
|
isHint: boolean;
|
|
39
39
|
handleHint: (str: string) => any[];
|
|
40
40
|
isScrollToBottom: boolean;
|
|
@@ -41,8 +41,8 @@ declare const JComp: {
|
|
|
41
41
|
}, import('vue').PublicProps, {
|
|
42
42
|
type: string;
|
|
43
43
|
id: string;
|
|
44
|
-
modelValue: string | number | boolean | any[] | Record<string, any>;
|
|
45
44
|
children: import('..').SchemaRuntimeConfig[];
|
|
45
|
+
modelValue: string | number | boolean | any[] | Record<string, any>;
|
|
46
46
|
row: Record<string, any>;
|
|
47
47
|
getCompType: Function;
|
|
48
48
|
config: Record<string, any>;
|
|
@@ -93,8 +93,8 @@ declare const JComp: {
|
|
|
93
93
|
}>, {}, {}, {}, {}, {
|
|
94
94
|
type: string;
|
|
95
95
|
id: string;
|
|
96
|
-
modelValue: string | number | boolean | any[] | Record<string, any>;
|
|
97
96
|
children: import('..').SchemaRuntimeConfig[];
|
|
97
|
+
modelValue: string | number | boolean | any[] | Record<string, any>;
|
|
98
98
|
row: Record<string, any>;
|
|
99
99
|
getCompType: Function;
|
|
100
100
|
config: Record<string, any>;
|
|
@@ -145,8 +145,8 @@ declare const JComp: {
|
|
|
145
145
|
}, string, {
|
|
146
146
|
type: string;
|
|
147
147
|
id: string;
|
|
148
|
-
modelValue: string | number | boolean | any[] | Record<string, any>;
|
|
149
148
|
children: import('..').SchemaRuntimeConfig[];
|
|
149
|
+
modelValue: string | number | boolean | any[] | Record<string, any>;
|
|
150
150
|
row: Record<string, any>;
|
|
151
151
|
getCompType: Function;
|
|
152
152
|
config: Record<string, any>;
|
|
@@ -154,8 +154,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
154
154
|
}>, {
|
|
155
155
|
type: string;
|
|
156
156
|
id: string;
|
|
157
|
-
modelValue: string | number | boolean | any[] | Record<string, any>;
|
|
158
157
|
children: SchemaRuntimeConfig[];
|
|
158
|
+
modelValue: string | number | boolean | any[] | Record<string, any>;
|
|
159
159
|
row: Record<string, any>;
|
|
160
160
|
getCompType: Function;
|
|
161
161
|
config: Record<string, any>;
|
|
@@ -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;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*将数组数据转化成树形数据
|
|
3
|
+
*/
|
|
4
|
+
export declare function setGroupMap(data: any[], idKey: string, pidKey: string): {
|
|
5
|
+
group: Record<string, any>;
|
|
6
|
+
map: Record<string, any>;
|
|
7
|
+
};
|
|
8
|
+
export declare function toTree(data: any[], _idKey?: string, pidKey?: string, valueKey?: string, labelKey?: string, filterIds?: any): any[];
|
|
9
|
+
export declare const toArray: (data: any[], filterIds?: string[]) => any[];
|
|
10
|
+
export declare const toSimpleTree: (data: any[], valueKey?: string, labelKey?: string) => any[];
|