lew-ui 2.7.13 → 2.7.14
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/LICENSE +21 -21
- package/dist/{utils → _components}/RenderComponent.vue.d.ts +6 -6
- package/dist/components/data/collapse/src/LewCollapse.vue.d.ts +9 -4
- package/dist/components/data/collapse/src/LewCollapseItem.vue.d.ts +14 -22
- package/dist/components/data/collapse/src/LewCollapseTransition.vue.d.ts +55 -0
- package/dist/components/data/collapse/src/props.d.ts +7 -17
- package/dist/components/data/desc/src/LewDesc.vue.d.ts +27 -61
- package/dist/components/data/desc/src/LewDescItem.vue.d.ts +39 -79
- package/dist/components/data/desc/src/props.d.ts +41 -60
- package/dist/components/data/table/src/LewTable.vue.d.ts +1 -1
- package/dist/components/data/tree/src/props.d.ts +2 -2
- package/dist/components/feedback/alert/src/LewAlert.vue.d.ts +1 -1
- package/dist/components/feedback/drawer/src/LewDrawer.vue.d.ts +2 -2
- package/dist/components/feedback/empty/src/LewEmpty.vue.d.ts +7 -7
- package/dist/components/feedback/modal/src/LewModal.vue.d.ts +2 -2
- package/dist/components/feedback/popok/src/LewPopok.vue.d.ts +91 -145
- package/dist/components/feedback/popover/src/LewPopover.vue.d.ts +2 -2
- package/dist/components/form/cascader/src/LewCascader.vue.d.ts +21 -21
- package/dist/components/form/checkbox/src/LewCheckboxGroup.vue.d.ts +1 -1
- package/dist/components/form/color-picker/src/LewColorPicker.vue.d.ts +1 -1
- package/dist/components/form/date-picker/src/LewDatePicker.vue.d.ts +11 -11
- package/dist/components/form/date-range-picker/src/LewDateRangePicker.vue.d.ts +11 -11
- package/dist/components/form/form/src/LewForm.vue.d.ts +3 -3
- package/dist/components/form/form/src/LewFormItem.vue.d.ts +5 -5
- package/dist/components/form/input/src/LewInput.vue.d.ts +2 -2
- package/dist/components/form/input-number/src/LewInputNumber.vue.d.ts +1 -1
- package/dist/components/form/input-table/src/FormModal.vue.d.ts +6 -6
- package/dist/components/form/input-table/src/LewInputTable.vue.d.ts +13 -13
- package/dist/components/form/input-tag/src/LewInputTag.vue.d.ts +5 -5
- package/dist/components/form/input-tree/src/LewInputTree.vue.d.ts +1 -1
- package/dist/components/form/radio/src/LewRadioGroup.vue.d.ts +1 -1
- package/dist/components/form/select/src/LewSelect.vue.d.ts +21 -21
- package/dist/components/form/select-multiple/src/LewSelectMultiple.vue.d.ts +41 -41
- package/dist/components/form/slider/src/LewSlider.vue.d.ts +1 -1
- package/dist/components/form/slider-range/src/LewSliderRange.vue.d.ts +1 -1
- package/dist/components/form/switch/src/LewSwitch.vue.d.ts +2 -2
- package/dist/components/form/switch/src/props.d.ts +1 -1
- package/dist/components/form/tabs/src/LewTabs.vue.d.ts +1 -1
- package/dist/components/form/textarea/src/LewTextarea.vue.d.ts +6 -6
- package/dist/components/form/tree-select/src/LewTreeSelect.vue.d.ts +22 -22
- package/dist/components/form/upload/src/LewUpload.vue.d.ts +44 -38
- package/dist/components/general/avatar/src/LewAvatar.vue.d.ts +38 -58
- package/dist/components/general/avatar/src/props.d.ts +10 -23
- package/dist/components/general/badge/src/LewBadge.vue.d.ts +27 -38
- package/dist/components/general/badge/src/props.d.ts +12 -17
- package/dist/components/general/button/src/LewButton.vue.d.ts +18 -47
- package/dist/components/general/button/src/props.d.ts +6 -22
- package/dist/components/general/dropdown/src/LewDropdown.vue.d.ts +48 -49
- package/dist/components/general/dropdown/src/props.d.ts +7 -16
- package/dist/components/general/flex/src/LewFlex.vue.d.ts +36 -39
- package/dist/components/general/flex/src/props.d.ts +7 -11
- package/dist/components/general/image/src/LewImage.vue.d.ts +2 -2
- package/dist/components/general/mark/src/LewMark.vue.d.ts +18 -27
- package/dist/components/general/mark/src/props.d.ts +9 -15
- package/dist/components/general/tag/src/LewTag.vue.d.ts +22 -33
- package/dist/components/general/tag/src/props.d.ts +10 -10
- package/dist/components/general/text-trim/src/LewTextTrim.vue.d.ts +35 -42
- package/dist/components/general/text-trim/src/props.d.ts +12 -18
- package/dist/components/general/text-trim/src/text-trim.d.ts +16 -5
- package/dist/components/general/title/src/LewTitle.vue.d.ts +19 -29
- package/dist/components/general/title/src/props.d.ts +9 -13
- package/dist/components/navigation/action-box/src/LewActionBox.vue.d.ts +27 -30
- package/dist/components/navigation/action-box/src/props.d.ts +12 -15
- package/dist/components/navigation/back-top/src/LewBackTop.vue.d.ts +7 -14
- package/dist/components/navigation/back-top/src/props.d.ts +0 -5
- package/dist/components/navigation/breadcrumb/src/LewBreadcrumb.vue.d.ts +15 -18
- package/dist/components/navigation/breadcrumb/src/props.d.ts +4 -7
- package/dist/components/navigation/menu-tree/src/LewMenuTree.vue.d.ts +26 -22
- package/dist/components/navigation/menu-tree/src/LewMenuTreeItem.vue.d.ts +23 -62
- package/dist/components/navigation/menu-tree/src/props.d.ts +16 -29
- package/dist/components/navigation/steps/src/LewSteps.vue.d.ts +10 -10
- package/dist/constants/index.d.ts +3 -1
- package/dist/directives/context-menu/src/index.d.ts +3 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1862 -1925
- package/dist/index.umd.cjs +12 -6
- package/dist/methods/dialog/src/LewDialog.vue.d.ts +69 -123
- package/dist/methods/dialog/src/index.d.ts +2 -2
- package/dist/types/index.d.ts +8 -1
- package/dist/utils/dragmove.d.ts +16 -0
- package/dist/utils/index.d.ts +1 -16
- package/dist/utils/render.d.ts +5 -4
- package/package.json +2 -1
- package/dist/hooks/src/useDOMCreate.d.ts +0 -1
- package/dist/hooks/src/useEventListener.d.ts +0 -1
- /package/dist/{utils/LewCommonIcon.vue.d.ts → _components/CommonIcon.vue.d.ts} +0 -0
|
@@ -1,72 +1,69 @@
|
|
|
1
|
+
import { ActionBoxOption } from './props';
|
|
1
2
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
3
|
options: {
|
|
3
|
-
type: PropType<
|
|
4
|
+
type: PropType<ActionBoxOption[]>;
|
|
4
5
|
default: () => never[];
|
|
5
6
|
};
|
|
6
7
|
x: {
|
|
7
8
|
type: PropType<import('../../../..').FlexXAlignment>;
|
|
8
9
|
default: string;
|
|
9
|
-
typeDesc: string;
|
|
10
10
|
validator(value: import('../../../..').FlexXAlignment): boolean;
|
|
11
11
|
};
|
|
12
|
+
divider: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
};
|
|
12
15
|
dropdownThreshold: {
|
|
13
|
-
type:
|
|
14
|
-
|
|
16
|
+
type: PropType<number | string>;
|
|
17
|
+
validator(value: number | string): boolean;
|
|
15
18
|
};
|
|
16
19
|
dropdownLabel: {
|
|
17
|
-
type:
|
|
20
|
+
type: null;
|
|
18
21
|
default: string;
|
|
19
22
|
};
|
|
20
23
|
dropdownIcon: {
|
|
21
|
-
type:
|
|
22
|
-
default: undefined;
|
|
23
|
-
};
|
|
24
|
-
divider: {
|
|
25
|
-
type: BooleanConstructor;
|
|
26
|
-
default: boolean;
|
|
24
|
+
type: null;
|
|
27
25
|
};
|
|
28
26
|
iconOnly: {
|
|
29
27
|
type: BooleanConstructor;
|
|
30
|
-
default: boolean;
|
|
31
28
|
};
|
|
32
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
+
click: (option: ActionBoxOption, index: number, event: MouseEvent) => any;
|
|
31
|
+
dropdownClick: (option: ActionBoxOption, index: number, event: MouseEvent) => any;
|
|
32
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
33
33
|
options: {
|
|
34
|
-
type: PropType<
|
|
34
|
+
type: PropType<ActionBoxOption[]>;
|
|
35
35
|
default: () => never[];
|
|
36
36
|
};
|
|
37
37
|
x: {
|
|
38
38
|
type: PropType<import('../../../..').FlexXAlignment>;
|
|
39
39
|
default: string;
|
|
40
|
-
typeDesc: string;
|
|
41
40
|
validator(value: import('../../../..').FlexXAlignment): boolean;
|
|
42
41
|
};
|
|
42
|
+
divider: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
};
|
|
43
45
|
dropdownThreshold: {
|
|
44
|
-
type:
|
|
45
|
-
|
|
46
|
+
type: PropType<number | string>;
|
|
47
|
+
validator(value: number | string): boolean;
|
|
46
48
|
};
|
|
47
49
|
dropdownLabel: {
|
|
48
|
-
type:
|
|
50
|
+
type: null;
|
|
49
51
|
default: string;
|
|
50
52
|
};
|
|
51
53
|
dropdownIcon: {
|
|
52
|
-
type:
|
|
53
|
-
default: undefined;
|
|
54
|
-
};
|
|
55
|
-
divider: {
|
|
56
|
-
type: BooleanConstructor;
|
|
57
|
-
default: boolean;
|
|
54
|
+
type: null;
|
|
58
55
|
};
|
|
59
56
|
iconOnly: {
|
|
60
57
|
type: BooleanConstructor;
|
|
61
|
-
default: boolean;
|
|
62
58
|
};
|
|
63
|
-
}>> & Readonly<{
|
|
64
|
-
|
|
59
|
+
}>> & Readonly<{
|
|
60
|
+
onClick?: ((option: ActionBoxOption, index: number, event: MouseEvent) => any) | undefined;
|
|
61
|
+
onDropdownClick?: ((option: ActionBoxOption, index: number, event: MouseEvent) => any) | undefined;
|
|
62
|
+
}>, {
|
|
65
63
|
x: import('../../../..').FlexXAlignment;
|
|
66
|
-
|
|
67
|
-
dropdownLabel: any;
|
|
68
|
-
dropdownIcon: any;
|
|
64
|
+
options: ActionBoxOption[];
|
|
69
65
|
divider: boolean;
|
|
66
|
+
dropdownLabel: any;
|
|
70
67
|
iconOnly: boolean;
|
|
71
68
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
72
69
|
export default _default;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { FlexXAlignment } from '../../../..';
|
|
2
|
+
import { ComponentSource } from '../../../../types';
|
|
2
3
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
3
4
|
export interface ActionBoxOption {
|
|
4
|
-
label:
|
|
5
|
-
icon?:
|
|
6
|
-
customRender?:
|
|
7
|
-
onClick?: () => void;
|
|
5
|
+
label: ComponentSource;
|
|
6
|
+
icon?: ComponentSource;
|
|
7
|
+
customRender?: ComponentSource;
|
|
8
|
+
onClick?: (event?: MouseEvent) => void;
|
|
8
9
|
}
|
|
9
10
|
export declare const actionBoxProps: {
|
|
10
11
|
options: {
|
|
@@ -14,28 +15,24 @@ export declare const actionBoxProps: {
|
|
|
14
15
|
x: {
|
|
15
16
|
type: PropType<FlexXAlignment>;
|
|
16
17
|
default: string;
|
|
17
|
-
typeDesc: string;
|
|
18
18
|
validator(value: FlexXAlignment): boolean;
|
|
19
19
|
};
|
|
20
|
+
divider: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
};
|
|
20
23
|
dropdownThreshold: {
|
|
21
|
-
type:
|
|
22
|
-
|
|
24
|
+
type: PropType<number | string>;
|
|
25
|
+
validator(value: number | string): boolean;
|
|
23
26
|
};
|
|
24
27
|
dropdownLabel: {
|
|
25
|
-
type:
|
|
28
|
+
type: null;
|
|
26
29
|
default: string;
|
|
27
30
|
};
|
|
28
31
|
dropdownIcon: {
|
|
29
|
-
type:
|
|
30
|
-
default: undefined;
|
|
31
|
-
};
|
|
32
|
-
divider: {
|
|
33
|
-
type: BooleanConstructor;
|
|
34
|
-
default: boolean;
|
|
32
|
+
type: null;
|
|
35
33
|
};
|
|
36
34
|
iconOnly: {
|
|
37
35
|
type: BooleanConstructor;
|
|
38
|
-
default: boolean;
|
|
39
36
|
};
|
|
40
37
|
};
|
|
41
38
|
export type ActionBoxProps = ExtractPropTypes<typeof actionBoxProps>;
|
|
@@ -12,59 +12,52 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
12
12
|
type: NumberConstructor;
|
|
13
13
|
default: number;
|
|
14
14
|
validator(value: number): boolean;
|
|
15
|
-
description: string;
|
|
16
15
|
};
|
|
17
16
|
bottom: {
|
|
18
17
|
type: NumberConstructor;
|
|
19
18
|
default: number;
|
|
20
19
|
validator(value: number): boolean;
|
|
21
|
-
description: string;
|
|
22
20
|
};
|
|
23
21
|
valveHeight: {
|
|
24
22
|
type: NumberConstructor;
|
|
25
23
|
default: number;
|
|
26
24
|
validator(value: number): boolean;
|
|
27
|
-
description: string;
|
|
28
25
|
};
|
|
29
26
|
target: {
|
|
30
27
|
type: StringConstructor;
|
|
31
|
-
default: string;
|
|
32
28
|
validator(value: string): boolean;
|
|
33
|
-
description: string;
|
|
34
29
|
};
|
|
35
30
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
|
-
click: (
|
|
31
|
+
click: (event?: MouseEvent | undefined) => any;
|
|
32
|
+
show: () => any;
|
|
33
|
+
hide: () => any;
|
|
37
34
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
38
35
|
right: {
|
|
39
36
|
type: NumberConstructor;
|
|
40
37
|
default: number;
|
|
41
38
|
validator(value: number): boolean;
|
|
42
|
-
description: string;
|
|
43
39
|
};
|
|
44
40
|
bottom: {
|
|
45
41
|
type: NumberConstructor;
|
|
46
42
|
default: number;
|
|
47
43
|
validator(value: number): boolean;
|
|
48
|
-
description: string;
|
|
49
44
|
};
|
|
50
45
|
valveHeight: {
|
|
51
46
|
type: NumberConstructor;
|
|
52
47
|
default: number;
|
|
53
48
|
validator(value: number): boolean;
|
|
54
|
-
description: string;
|
|
55
49
|
};
|
|
56
50
|
target: {
|
|
57
51
|
type: StringConstructor;
|
|
58
|
-
default: string;
|
|
59
52
|
validator(value: string): boolean;
|
|
60
|
-
description: string;
|
|
61
53
|
};
|
|
62
54
|
}>> & Readonly<{
|
|
63
|
-
onClick?: ((
|
|
55
|
+
onClick?: ((event?: MouseEvent | undefined) => any) | undefined;
|
|
56
|
+
onShow?: (() => any) | undefined;
|
|
57
|
+
onHide?: (() => any) | undefined;
|
|
64
58
|
}>, {
|
|
65
|
-
right: number;
|
|
66
59
|
bottom: number;
|
|
67
|
-
|
|
60
|
+
right: number;
|
|
68
61
|
valveHeight: number;
|
|
69
62
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
70
63
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -4,25 +4,20 @@ export declare const backTopProps: {
|
|
|
4
4
|
type: NumberConstructor;
|
|
5
5
|
default: number;
|
|
6
6
|
validator(value: number): boolean;
|
|
7
|
-
description: string;
|
|
8
7
|
};
|
|
9
8
|
bottom: {
|
|
10
9
|
type: NumberConstructor;
|
|
11
10
|
default: number;
|
|
12
11
|
validator(value: number): boolean;
|
|
13
|
-
description: string;
|
|
14
12
|
};
|
|
15
13
|
valveHeight: {
|
|
16
14
|
type: NumberConstructor;
|
|
17
15
|
default: number;
|
|
18
16
|
validator(value: number): boolean;
|
|
19
|
-
description: string;
|
|
20
17
|
};
|
|
21
18
|
target: {
|
|
22
19
|
type: StringConstructor;
|
|
23
|
-
default: string;
|
|
24
20
|
validator(value: string): boolean;
|
|
25
|
-
description: string;
|
|
26
21
|
};
|
|
27
22
|
};
|
|
28
23
|
export type BackTopProps = ExtractPropTypes<typeof backTopProps>;
|
|
@@ -1,37 +1,34 @@
|
|
|
1
|
+
import { BreadcrumbOption } from './props';
|
|
1
2
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
3
|
options: {
|
|
3
|
-
type: PropType<
|
|
4
|
+
type: PropType<BreadcrumbOption[]>;
|
|
4
5
|
default: () => never[];
|
|
5
|
-
|
|
6
|
-
validator(value: unknown): boolean;
|
|
6
|
+
validator(value: BreadcrumbOption[]): boolean;
|
|
7
7
|
};
|
|
8
8
|
separator: {
|
|
9
|
-
type:
|
|
9
|
+
type: PropType<import('./props').BreadcrumbSeparator>;
|
|
10
10
|
default: string;
|
|
11
|
-
|
|
12
|
-
description: string;
|
|
13
|
-
validator(value: string): boolean;
|
|
11
|
+
validator(value: import('./props').BreadcrumbSeparator): boolean;
|
|
14
12
|
};
|
|
15
13
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
-
change: (
|
|
14
|
+
change: (item: BreadcrumbOption, index: number) => any;
|
|
15
|
+
itemClick: (item: BreadcrumbOption, index: number, event: MouseEvent) => any;
|
|
17
16
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
18
17
|
options: {
|
|
19
|
-
type: PropType<
|
|
18
|
+
type: PropType<BreadcrumbOption[]>;
|
|
20
19
|
default: () => never[];
|
|
21
|
-
|
|
22
|
-
validator(value: unknown): boolean;
|
|
20
|
+
validator(value: BreadcrumbOption[]): boolean;
|
|
23
21
|
};
|
|
24
22
|
separator: {
|
|
25
|
-
type:
|
|
23
|
+
type: PropType<import('./props').BreadcrumbSeparator>;
|
|
26
24
|
default: string;
|
|
27
|
-
|
|
28
|
-
description: string;
|
|
29
|
-
validator(value: string): boolean;
|
|
25
|
+
validator(value: import('./props').BreadcrumbSeparator): boolean;
|
|
30
26
|
};
|
|
31
27
|
}>> & Readonly<{
|
|
32
|
-
onChange?: ((
|
|
28
|
+
onChange?: ((item: BreadcrumbOption, index: number) => any) | undefined;
|
|
29
|
+
onItemClick?: ((item: BreadcrumbOption, index: number, event: MouseEvent) => any) | undefined;
|
|
33
30
|
}>, {
|
|
34
|
-
options:
|
|
35
|
-
separator:
|
|
31
|
+
options: BreadcrumbOption[];
|
|
32
|
+
separator: import('./props').BreadcrumbSeparator;
|
|
36
33
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
37
34
|
export default _default;
|
|
@@ -4,20 +4,17 @@ export interface BreadcrumbOption {
|
|
|
4
4
|
value?: string | number;
|
|
5
5
|
active?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export type
|
|
7
|
+
export type BreadcrumbSeparator = 'shoulder' | 'sprit';
|
|
8
8
|
export declare const breadcrumbProps: {
|
|
9
9
|
options: {
|
|
10
10
|
type: PropType<BreadcrumbOption[]>;
|
|
11
11
|
default: () => never[];
|
|
12
|
-
|
|
13
|
-
validator(value: unknown): boolean;
|
|
12
|
+
validator(value: BreadcrumbOption[]): boolean;
|
|
14
13
|
};
|
|
15
14
|
separator: {
|
|
16
|
-
type:
|
|
15
|
+
type: PropType<BreadcrumbSeparator>;
|
|
17
16
|
default: string;
|
|
18
|
-
|
|
19
|
-
description: string;
|
|
20
|
-
validator(value: string): boolean;
|
|
17
|
+
validator(value: BreadcrumbSeparator): boolean;
|
|
21
18
|
};
|
|
22
19
|
};
|
|
23
20
|
export type BreadcrumbProps = ExtractPropTypes<typeof breadcrumbProps>;
|
|
@@ -2,57 +2,61 @@ import { MenuTreeItem } from './props';
|
|
|
2
2
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
3
3
|
options: {
|
|
4
4
|
type: PropType<MenuTreeItem[]>;
|
|
5
|
-
default: never[];
|
|
6
|
-
|
|
5
|
+
default: () => never[];
|
|
6
|
+
validator(value: MenuTreeItem[]): boolean;
|
|
7
7
|
};
|
|
8
8
|
width: {
|
|
9
|
-
type: (
|
|
9
|
+
type: PropType<import("csstype").Property.Width | number>;
|
|
10
10
|
default: string;
|
|
11
|
-
|
|
12
|
-
validator(value: string | number): boolean;
|
|
11
|
+
validator(value: import("csstype").Property.Width | number): boolean;
|
|
13
12
|
};
|
|
14
13
|
modelValue: {
|
|
15
|
-
type: globalThis.PropType<
|
|
14
|
+
type: globalThis.PropType<string | number>;
|
|
16
15
|
};
|
|
17
16
|
expandKeys: {
|
|
18
|
-
type: globalThis.PropType<
|
|
17
|
+
type: globalThis.PropType<(string | number)[]>;
|
|
19
18
|
};
|
|
20
19
|
collapsed: {
|
|
21
20
|
type: globalThis.PropType<boolean>;
|
|
22
21
|
};
|
|
23
22
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
-
change: (
|
|
25
|
-
|
|
26
|
-
"update:
|
|
27
|
-
|
|
23
|
+
change: (item: MenuTreeItem) => any;
|
|
24
|
+
select: (value: string | number, item: MenuTreeItem) => any;
|
|
25
|
+
"update:modelValue": (value: string | number) => any;
|
|
26
|
+
collapse: (expandKeys: (string | number)[]) => any;
|
|
27
|
+
expand: (expandKeys: (string | number)[]) => any;
|
|
28
|
+
"update:expandKeys": (value: (string | number)[]) => any;
|
|
29
|
+
"update:collapsed": (value: boolean) => any;
|
|
28
30
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
29
31
|
options: {
|
|
30
32
|
type: PropType<MenuTreeItem[]>;
|
|
31
|
-
default: never[];
|
|
32
|
-
|
|
33
|
+
default: () => never[];
|
|
34
|
+
validator(value: MenuTreeItem[]): boolean;
|
|
33
35
|
};
|
|
34
36
|
width: {
|
|
35
|
-
type: (
|
|
37
|
+
type: PropType<import("csstype").Property.Width | number>;
|
|
36
38
|
default: string;
|
|
37
|
-
|
|
38
|
-
validator(value: string | number): boolean;
|
|
39
|
+
validator(value: import("csstype").Property.Width | number): boolean;
|
|
39
40
|
};
|
|
40
41
|
modelValue: {
|
|
41
|
-
type: globalThis.PropType<
|
|
42
|
+
type: globalThis.PropType<string | number>;
|
|
42
43
|
};
|
|
43
44
|
expandKeys: {
|
|
44
|
-
type: globalThis.PropType<
|
|
45
|
+
type: globalThis.PropType<(string | number)[]>;
|
|
45
46
|
};
|
|
46
47
|
collapsed: {
|
|
47
48
|
type: globalThis.PropType<boolean>;
|
|
48
49
|
};
|
|
49
50
|
}>> & Readonly<{
|
|
50
|
-
onChange?: ((
|
|
51
|
-
|
|
52
|
-
"onUpdate:
|
|
51
|
+
onChange?: ((item: MenuTreeItem) => any) | undefined;
|
|
52
|
+
onSelect?: ((value: string | number, item: MenuTreeItem) => any) | undefined;
|
|
53
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
54
|
+
onCollapse?: ((expandKeys: (string | number)[]) => any) | undefined;
|
|
55
|
+
onExpand?: ((expandKeys: (string | number)[]) => any) | undefined;
|
|
56
|
+
"onUpdate:expandKeys"?: ((value: (string | number)[]) => any) | undefined;
|
|
53
57
|
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
54
58
|
}>, {
|
|
59
|
+
width: number | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | "-webkit-fit-content" | "-webkit-max-content" | "auto" | "fit-content" | "intrinsic" | "max-content" | "min-content" | "min-intrinsic" | (string & {});
|
|
55
60
|
options: MenuTreeItem[];
|
|
56
|
-
width: string | number;
|
|
57
61
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
58
62
|
export default _default;
|
|
@@ -3,22 +3,13 @@ declare function __VLS_template(): {
|
|
|
3
3
|
slots: {
|
|
4
4
|
label?(_: {
|
|
5
5
|
props: {
|
|
6
|
-
readonly label: string | Function;
|
|
7
6
|
readonly disabled: boolean;
|
|
8
7
|
readonly isLeaf: boolean;
|
|
9
8
|
readonly level: number;
|
|
10
|
-
readonly tagProps: {
|
|
11
|
-
type: import('../../../..').TagType;
|
|
12
|
-
color: import('../../../..').LewColor;
|
|
13
|
-
size: import('../../../..').LewSize;
|
|
14
|
-
text: string;
|
|
15
|
-
disabled: boolean;
|
|
16
|
-
round: boolean;
|
|
17
|
-
oversize: boolean;
|
|
18
|
-
closable: boolean;
|
|
19
|
-
};
|
|
20
9
|
readonly value?: string | number | undefined;
|
|
21
|
-
readonly icon?:
|
|
10
|
+
readonly icon?: (() => any) | undefined;
|
|
11
|
+
readonly label?: string | (() => any) | undefined;
|
|
12
|
+
readonly tagProps?: import('../../../..').TagProps | undefined;
|
|
22
13
|
};
|
|
23
14
|
}): any;
|
|
24
15
|
default?(_: {}): any;
|
|
@@ -28,99 +19,69 @@ declare function __VLS_template(): {
|
|
|
28
19
|
};
|
|
29
20
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
30
21
|
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
31
|
-
label: {
|
|
32
|
-
type: (StringConstructor | FunctionConstructor)[];
|
|
33
|
-
default: string;
|
|
34
|
-
description: string;
|
|
35
|
-
};
|
|
36
22
|
value: {
|
|
37
|
-
type:
|
|
23
|
+
type: PropType<string | number>;
|
|
38
24
|
required: boolean;
|
|
39
|
-
description: string;
|
|
40
25
|
validator(value: string | number): boolean;
|
|
41
26
|
};
|
|
27
|
+
label: {
|
|
28
|
+
type: PropType<string | (() => any)>;
|
|
29
|
+
};
|
|
42
30
|
icon: {
|
|
43
|
-
type: (
|
|
44
|
-
|
|
45
|
-
|
|
31
|
+
type: PropType<() => any>;
|
|
32
|
+
};
|
|
33
|
+
tagProps: {
|
|
34
|
+
type: PropType<import('../../../..').TagProps>;
|
|
46
35
|
};
|
|
47
36
|
disabled: {
|
|
48
37
|
type: BooleanConstructor;
|
|
49
38
|
default: boolean;
|
|
50
|
-
description: string;
|
|
51
39
|
};
|
|
52
40
|
level: {
|
|
53
41
|
type: NumberConstructor;
|
|
54
42
|
default: number;
|
|
55
|
-
|
|
43
|
+
validator(value: number): boolean;
|
|
56
44
|
};
|
|
57
45
|
isLeaf: {
|
|
58
46
|
type: BooleanConstructor;
|
|
59
47
|
default: boolean;
|
|
60
|
-
description: string;
|
|
61
|
-
};
|
|
62
|
-
tagProps: {
|
|
63
|
-
type: PropType<import('../../../..').TagProps>;
|
|
64
|
-
default: () => {};
|
|
65
|
-
description: string;
|
|
66
48
|
};
|
|
67
49
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
68
|
-
change: (
|
|
50
|
+
change: () => any;
|
|
69
51
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
70
|
-
label: {
|
|
71
|
-
type: (StringConstructor | FunctionConstructor)[];
|
|
72
|
-
default: string;
|
|
73
|
-
description: string;
|
|
74
|
-
};
|
|
75
52
|
value: {
|
|
76
|
-
type:
|
|
53
|
+
type: PropType<string | number>;
|
|
77
54
|
required: boolean;
|
|
78
|
-
description: string;
|
|
79
55
|
validator(value: string | number): boolean;
|
|
80
56
|
};
|
|
57
|
+
label: {
|
|
58
|
+
type: PropType<string | (() => any)>;
|
|
59
|
+
};
|
|
81
60
|
icon: {
|
|
82
|
-
type: (
|
|
83
|
-
|
|
84
|
-
|
|
61
|
+
type: PropType<() => any>;
|
|
62
|
+
};
|
|
63
|
+
tagProps: {
|
|
64
|
+
type: PropType<import('../../../..').TagProps>;
|
|
85
65
|
};
|
|
86
66
|
disabled: {
|
|
87
67
|
type: BooleanConstructor;
|
|
88
68
|
default: boolean;
|
|
89
|
-
description: string;
|
|
90
69
|
};
|
|
91
70
|
level: {
|
|
92
71
|
type: NumberConstructor;
|
|
93
72
|
default: number;
|
|
94
|
-
|
|
73
|
+
validator(value: number): boolean;
|
|
95
74
|
};
|
|
96
75
|
isLeaf: {
|
|
97
76
|
type: BooleanConstructor;
|
|
98
77
|
default: boolean;
|
|
99
|
-
description: string;
|
|
100
|
-
};
|
|
101
|
-
tagProps: {
|
|
102
|
-
type: PropType<import('../../../..').TagProps>;
|
|
103
|
-
default: () => {};
|
|
104
|
-
description: string;
|
|
105
78
|
};
|
|
106
79
|
}>> & Readonly<{
|
|
107
|
-
onChange?: ((
|
|
80
|
+
onChange?: (() => any) | undefined;
|
|
108
81
|
}>, {
|
|
109
|
-
icon: string | Function;
|
|
110
|
-
label: string | Function;
|
|
111
82
|
disabled: boolean;
|
|
112
83
|
isLeaf: boolean;
|
|
113
84
|
level: number;
|
|
114
|
-
tagProps: {
|
|
115
|
-
type: import('../../../..').TagType;
|
|
116
|
-
color: import('../../../..').LewColor;
|
|
117
|
-
size: import('../../../..').LewSize;
|
|
118
|
-
text: string;
|
|
119
|
-
disabled: boolean;
|
|
120
|
-
round: boolean;
|
|
121
|
-
oversize: boolean;
|
|
122
|
-
closable: boolean;
|
|
123
|
-
};
|
|
124
85
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
125
86
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
126
87
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
1
2
|
import { TagProps } from '../../../..';
|
|
2
|
-
import { ExtractPropTypes } from 'vue';
|
|
3
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
3
4
|
export interface MenuTreeItem {
|
|
4
5
|
label: string | (() => any);
|
|
5
6
|
value: string | number;
|
|
@@ -11,71 +12,57 @@ export interface MenuTreeItem {
|
|
|
11
12
|
}
|
|
12
13
|
export declare const menuTreeModel: {
|
|
13
14
|
modelValue: {
|
|
14
|
-
type:
|
|
15
|
+
type: PropType<string | number>;
|
|
15
16
|
default: string;
|
|
16
|
-
description: string;
|
|
17
|
-
validator(value: string): boolean;
|
|
18
17
|
};
|
|
19
18
|
expandKeys: {
|
|
20
19
|
type: PropType<(string | number)[]>;
|
|
21
20
|
default: () => never[];
|
|
22
|
-
description: string;
|
|
23
21
|
};
|
|
24
22
|
collapsed: {
|
|
25
23
|
type: BooleanConstructor;
|
|
26
24
|
default: boolean;
|
|
27
|
-
description: string;
|
|
28
25
|
};
|
|
29
26
|
};
|
|
30
27
|
export declare const menuTreeProps: {
|
|
31
28
|
options: {
|
|
32
29
|
type: PropType<MenuTreeItem[]>;
|
|
33
|
-
default: never[];
|
|
34
|
-
|
|
30
|
+
default: () => never[];
|
|
31
|
+
validator(value: MenuTreeItem[]): boolean;
|
|
35
32
|
};
|
|
36
33
|
width: {
|
|
37
|
-
type:
|
|
34
|
+
type: PropType<Property.Width | number>;
|
|
38
35
|
default: string;
|
|
39
|
-
|
|
40
|
-
validator(value: string | number): boolean;
|
|
36
|
+
validator(value: Property.Width | number): boolean;
|
|
41
37
|
};
|
|
42
38
|
};
|
|
43
39
|
export declare const menuTreeItemProps: {
|
|
44
|
-
label: {
|
|
45
|
-
type: (StringConstructor | FunctionConstructor)[];
|
|
46
|
-
default: string;
|
|
47
|
-
description: string;
|
|
48
|
-
};
|
|
49
40
|
value: {
|
|
50
|
-
type:
|
|
41
|
+
type: PropType<string | number>;
|
|
51
42
|
required: boolean;
|
|
52
|
-
description: string;
|
|
53
43
|
validator(value: string | number): boolean;
|
|
54
44
|
};
|
|
45
|
+
label: {
|
|
46
|
+
type: PropType<string | (() => any)>;
|
|
47
|
+
};
|
|
55
48
|
icon: {
|
|
56
|
-
type: (
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
type: PropType<() => any>;
|
|
50
|
+
};
|
|
51
|
+
tagProps: {
|
|
52
|
+
type: PropType<TagProps>;
|
|
59
53
|
};
|
|
60
54
|
disabled: {
|
|
61
55
|
type: BooleanConstructor;
|
|
62
56
|
default: boolean;
|
|
63
|
-
description: string;
|
|
64
57
|
};
|
|
65
58
|
level: {
|
|
66
59
|
type: NumberConstructor;
|
|
67
60
|
default: number;
|
|
68
|
-
|
|
61
|
+
validator(value: number): boolean;
|
|
69
62
|
};
|
|
70
63
|
isLeaf: {
|
|
71
64
|
type: BooleanConstructor;
|
|
72
65
|
default: boolean;
|
|
73
|
-
description: string;
|
|
74
|
-
};
|
|
75
|
-
tagProps: {
|
|
76
|
-
type: PropType<TagProps>;
|
|
77
|
-
default: () => {};
|
|
78
|
-
description: string;
|
|
79
66
|
};
|
|
80
67
|
};
|
|
81
68
|
export type MenuTreeProps = ExtractPropTypes<typeof menuTreeProps>;
|