lew-ui 2.3.5 → 2.3.8
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/README.md +33 -33
- package/README.zh-CN.md +35 -35
- package/dist/components/alert/src/LewAlert.vue.d.ts +9 -7
- package/dist/components/alert/src/props.d.ts +8 -6
- package/dist/components/avatar/src/LewAvatar.vue.d.ts +37 -38
- package/dist/components/avatar/src/props.d.ts +22 -20
- package/dist/components/backtop/src/LewBackTop.vue.d.ts +9 -1
- package/dist/components/backtop/src/props.d.ts +4 -0
- package/dist/components/badge/src/LewBadge.vue.d.ts +12 -8
- package/dist/components/badge/src/props.d.ts +7 -5
- package/dist/components/breadcrumb/src/LewBreadcrumb.vue.d.ts +14 -10
- package/dist/components/breadcrumb/src/props.d.ts +10 -8
- package/dist/components/button/src/LewButton.vue.d.ts +60 -36
- package/dist/components/button/src/props.d.ts +31 -19
- package/dist/components/cascader/src/LewCascader.vue.d.ts +51 -48
- package/dist/components/cascader/src/props.d.ts +29 -21
- package/dist/components/checkbox/src/LewCheckbox.vue.d.ts +41 -39
- package/dist/components/checkbox/src/props.d.ts +43 -38
- package/dist/components/collapse/src/LewCollapse.vue.d.ts +4 -0
- package/dist/components/collapse/src/LewCollapseItem.vue.d.ts +10 -4
- package/dist/components/collapse/src/props.d.ts +8 -2
- package/dist/components/date-picker/src/LewDatePicker.vue.d.ts +31 -27
- package/dist/components/date-picker/src/props.d.ts +21 -18
- package/dist/components/date-range-picker/src/LewDateRange.vue.d.ts +4 -0
- package/dist/components/date-range-picker/src/LewDateRangePicker.vue.d.ts +41 -35
- package/dist/components/date-range-picker/src/props.d.ts +24 -19
- package/dist/components/drawer/src/LewDrawer.vue.d.ts +36 -30
- package/dist/components/drawer/src/props.d.ts +18 -15
- package/dist/components/dropdown/src/LewDropdown.vue.d.ts +24 -16
- package/dist/components/dropdown/src/props.d.ts +14 -12
- package/dist/components/empty/src/LewEmpty.vue.d.ts +15 -5
- package/dist/components/empty/src/props.d.ts +7 -2
- package/dist/components/flex/src/LewFlex.vue.d.ts +32 -26
- package/dist/components/flex/src/props.d.ts +18 -12
- package/dist/components/form/src/LewForm.vue.d.ts +35 -23
- package/dist/components/form/src/LewFormItem.vue.d.ts +70 -62
- package/dist/components/form/src/LewGetLabelWidth.vue.d.ts +5 -3
- package/dist/components/form/src/props.d.ts +47 -36
- package/dist/components/image/src/LewImage.vue.d.ts +48 -33
- package/dist/components/image/src/props.d.ts +25 -16
- package/dist/components/input/src/LewInput.vue.d.ts +67 -64
- package/dist/components/input/src/props.d.ts +33 -29
- package/dist/components/input-number/src/LewInputNumber.vue.d.ts +52 -40
- package/dist/components/input-number/src/props.d.ts +28 -20
- package/dist/components/input-table/src/props.d.ts +62 -15
- package/dist/components/input-tag/src/LewInputTag.vue.d.ts +4 -4
- package/dist/components/input-tag/src/props.d.ts +6 -4
- package/dist/components/magic-number/src/LewMagicNumber.vue.d.ts +3 -3
- package/dist/components/magic-number/src/props.d.ts +1 -1
- package/dist/components/mark/src/LewMark.vue.d.ts +20 -16
- package/dist/components/mark/src/props.d.ts +13 -9
- package/dist/components/menu/src/LewMenu.vue.d.ts +11 -7
- package/dist/components/menu/src/props.d.ts +7 -5
- package/dist/components/menu-tree/src/LewMenuTree.vue.d.ts +3 -3
- package/dist/components/menu-tree/src/props.d.ts +3 -3
- package/dist/components/modal/src/LewModal.vue.d.ts +10 -4
- package/dist/components/modal/src/props.d.ts +4 -1
- package/dist/components/pagination/src/LewPagination.vue.d.ts +7 -3
- package/dist/components/pagination/src/props.d.ts +10 -5
- package/dist/components/popok/src/LewPopok.vue.d.ts +18 -10
- package/dist/components/popok/src/props.d.ts +7 -3
- package/dist/components/popover/src/LewPopover.vue.d.ts +38 -34
- package/dist/components/popover/src/props.d.ts +20 -16
- package/dist/components/radio/src/LewRadio.vue.d.ts +33 -31
- package/dist/components/radio/src/LewRadioGroup.vue.d.ts +27 -23
- package/dist/components/radio/src/props.d.ts +32 -28
- package/dist/components/result/src/LewResult.vue.d.ts +9 -3
- package/dist/components/result/src/props.d.ts +7 -1
- package/dist/components/select/src/LewSelect.vue.d.ts +20 -20
- package/dist/components/select/src/props.d.ts +10 -8
- package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +29 -23
- package/dist/components/select-multiple/src/props.d.ts +13 -10
- package/dist/components/steps/src/LewSteps.vue.d.ts +10 -6
- package/dist/components/steps/src/props.d.ts +7 -4
- package/dist/components/switch/src/LewSwitch.vue.d.ts +12 -8
- package/dist/components/switch/src/props.d.ts +9 -3
- package/dist/components/table/src/LewTable.vue.d.ts +30 -23
- package/dist/components/table/src/props.d.ts +23 -11
- package/dist/components/tabs/src/LewTabs.vue.d.ts +27 -17
- package/dist/components/tabs/src/props.d.ts +16 -11
- package/dist/components/tag/src/LewTag.vue.d.ts +12 -6
- package/dist/components/tag/src/props.d.ts +6 -3
- package/dist/components/text-trim/src/LewTextTrim.vue.d.ts +42 -30
- package/dist/components/text-trim/src/props.d.ts +21 -13
- package/dist/components/textarea/src/LewTextarea.vue.d.ts +37 -42
- package/dist/components/textarea/src/props.d.ts +17 -18
- package/dist/components/title/src/LewTitle.vue.d.ts +17 -11
- package/dist/components/title/src/props.d.ts +10 -10
- package/dist/components/tree/src/LewTree.vue.d.ts +11 -9
- package/dist/components/tree/src/props.d.ts +5 -4
- package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +100 -90
- package/dist/components/tree-select/src/props.d.ts +56 -44
- package/dist/components/upload/src/LewUpload.vue.d.ts +49 -39
- package/dist/components/upload/src/props.d.ts +26 -21
- package/dist/directives/backtop/src/index.d.ts +2 -2
- package/dist/directives/dialog/src/LewDialog.vue.d.ts +16 -12
- package/dist/directives/dialog/src/index.d.ts +5 -5
- package/dist/directives/dialog/src/props.d.ts +8 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +2732 -1333
- package/dist/index.umd.js +46 -46
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/input-table/src/LewInputTable.vue.d.ts +0 -87
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { LewColor } from '../../..';
|
|
3
3
|
|
|
4
4
|
export type MenuTreeOptions = {
|
|
5
5
|
label: string;
|
|
@@ -9,7 +9,7 @@ export type MenuTreeOptions = {
|
|
|
9
9
|
level?: number;
|
|
10
10
|
icon?: string;
|
|
11
11
|
tagText?: string;
|
|
12
|
-
tagColor?:
|
|
12
|
+
tagColor?: LewColor;
|
|
13
13
|
};
|
|
14
14
|
export declare const menuTreeProps: {
|
|
15
15
|
options: {
|
|
@@ -18,7 +18,7 @@ export declare const menuTreeProps: {
|
|
|
18
18
|
typeDesc: string;
|
|
19
19
|
description: string;
|
|
20
20
|
};
|
|
21
|
-
|
|
21
|
+
active: {
|
|
22
22
|
type: StringConstructor;
|
|
23
23
|
default: string;
|
|
24
24
|
description: string;
|
|
@@ -9,16 +9,19 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
9
9
|
type: StringConstructor;
|
|
10
10
|
default: string;
|
|
11
11
|
description: string;
|
|
12
|
+
validator: (value: string) => boolean;
|
|
12
13
|
};
|
|
13
14
|
width: {
|
|
14
15
|
type: (StringConstructor | NumberConstructor)[];
|
|
15
16
|
default: string;
|
|
16
17
|
description: string;
|
|
18
|
+
validator: (value: string | number) => boolean;
|
|
17
19
|
};
|
|
18
20
|
height: {
|
|
19
21
|
type: (StringConstructor | NumberConstructor)[];
|
|
20
22
|
default: string;
|
|
21
23
|
description: string;
|
|
24
|
+
validator: (value: string | number) => boolean;
|
|
22
25
|
};
|
|
23
26
|
hideFooter: {
|
|
24
27
|
type: BooleanConstructor;
|
|
@@ -31,7 +34,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
31
34
|
description: string;
|
|
32
35
|
};
|
|
33
36
|
okProps: {
|
|
34
|
-
type:
|
|
37
|
+
type: PropType<import('../../..').ButtonProps>;
|
|
35
38
|
default: () => {
|
|
36
39
|
text: string;
|
|
37
40
|
color: string;
|
|
@@ -39,7 +42,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
39
42
|
description: string;
|
|
40
43
|
};
|
|
41
44
|
cancelProps: {
|
|
42
|
-
type:
|
|
45
|
+
type: PropType<import('../../..').ButtonProps>;
|
|
43
46
|
default: () => {
|
|
44
47
|
type: string;
|
|
45
48
|
text: string;
|
|
@@ -72,16 +75,19 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
72
75
|
type: StringConstructor;
|
|
73
76
|
default: string;
|
|
74
77
|
description: string;
|
|
78
|
+
validator: (value: string) => boolean;
|
|
75
79
|
};
|
|
76
80
|
width: {
|
|
77
81
|
type: (StringConstructor | NumberConstructor)[];
|
|
78
82
|
default: string;
|
|
79
83
|
description: string;
|
|
84
|
+
validator: (value: string | number) => boolean;
|
|
80
85
|
};
|
|
81
86
|
height: {
|
|
82
87
|
type: (StringConstructor | NumberConstructor)[];
|
|
83
88
|
default: string;
|
|
84
89
|
description: string;
|
|
90
|
+
validator: (value: string | number) => boolean;
|
|
85
91
|
};
|
|
86
92
|
hideFooter: {
|
|
87
93
|
type: BooleanConstructor;
|
|
@@ -94,7 +100,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
94
100
|
description: string;
|
|
95
101
|
};
|
|
96
102
|
okProps: {
|
|
97
|
-
type:
|
|
103
|
+
type: PropType<import('../../..').ButtonProps>;
|
|
98
104
|
default: () => {
|
|
99
105
|
text: string;
|
|
100
106
|
color: string;
|
|
@@ -102,7 +108,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
102
108
|
description: string;
|
|
103
109
|
};
|
|
104
110
|
cancelProps: {
|
|
105
|
-
type:
|
|
111
|
+
type: PropType<import('../../..').ButtonProps>;
|
|
106
112
|
default: () => {
|
|
107
113
|
type: string;
|
|
108
114
|
text: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExtractPropTypes
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { ButtonProps } from '../../button/index';
|
|
3
3
|
|
|
4
4
|
export declare const modalModel: {
|
|
@@ -13,16 +13,19 @@ export declare const modalProps: {
|
|
|
13
13
|
type: StringConstructor;
|
|
14
14
|
default: string;
|
|
15
15
|
description: string;
|
|
16
|
+
validator: (value: string) => boolean;
|
|
16
17
|
};
|
|
17
18
|
width: {
|
|
18
19
|
type: (StringConstructor | NumberConstructor)[];
|
|
19
20
|
default: string;
|
|
20
21
|
description: string;
|
|
22
|
+
validator: (value: string | number) => boolean;
|
|
21
23
|
};
|
|
22
24
|
height: {
|
|
23
25
|
type: (StringConstructor | NumberConstructor)[];
|
|
24
26
|
default: string;
|
|
25
27
|
description: string;
|
|
28
|
+
validator: (value: string | number) => boolean;
|
|
26
29
|
};
|
|
27
30
|
hideFooter: {
|
|
28
31
|
type: BooleanConstructor;
|
|
@@ -8,14 +8,16 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
8
8
|
pageSize: import('vue').PropType<any>;
|
|
9
9
|
pageSizeOptions: import('vue').PropType<any>;
|
|
10
10
|
size: {
|
|
11
|
-
type:
|
|
11
|
+
type: PropType<import('../../..').LewSize>;
|
|
12
12
|
default: string;
|
|
13
13
|
description: string;
|
|
14
|
+
validator: (value: import('../../..').LewSize) => boolean;
|
|
14
15
|
};
|
|
15
16
|
visiblePagesCount: {
|
|
16
17
|
type: NumberConstructor;
|
|
17
18
|
default: number;
|
|
18
19
|
description: string;
|
|
20
|
+
validator: (value: number) => boolean;
|
|
19
21
|
};
|
|
20
22
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
23
|
change: (...args: any[]) => void;
|
|
@@ -27,21 +29,23 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
27
29
|
pageSize: import('vue').PropType<any>;
|
|
28
30
|
pageSizeOptions: import('vue').PropType<any>;
|
|
29
31
|
size: {
|
|
30
|
-
type:
|
|
32
|
+
type: PropType<import('../../..').LewSize>;
|
|
31
33
|
default: string;
|
|
32
34
|
description: string;
|
|
35
|
+
validator: (value: import('../../..').LewSize) => boolean;
|
|
33
36
|
};
|
|
34
37
|
visiblePagesCount: {
|
|
35
38
|
type: NumberConstructor;
|
|
36
39
|
default: number;
|
|
37
40
|
description: string;
|
|
41
|
+
validator: (value: number) => boolean;
|
|
38
42
|
};
|
|
39
43
|
}>> & {
|
|
40
44
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
41
45
|
"onUpdate:currentPage"?: ((...args: any[]) => any) | undefined;
|
|
42
46
|
"onUpdate:pageSize"?: ((...args: any[]) => any) | undefined;
|
|
43
47
|
}, {
|
|
44
|
-
size:
|
|
48
|
+
size: import('../../..').LewSize;
|
|
45
49
|
visiblePagesCount: number;
|
|
46
50
|
}, {}>;
|
|
47
51
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SelectOptions } from '../../..';
|
|
1
|
+
import { SelectOptions, LewSize } from '../../..';
|
|
3
2
|
|
|
4
3
|
export type PaginationOptions = SelectOptions;
|
|
5
4
|
export declare const paginationModel: {
|
|
@@ -7,36 +6,42 @@ export declare const paginationModel: {
|
|
|
7
6
|
type: NumberConstructor;
|
|
8
7
|
default: number;
|
|
9
8
|
description: string;
|
|
9
|
+
validator: (value: number) => boolean;
|
|
10
10
|
};
|
|
11
11
|
currentPage: {
|
|
12
12
|
type: NumberConstructor;
|
|
13
13
|
default: number;
|
|
14
14
|
description: string;
|
|
15
|
+
validator: (value: number) => boolean;
|
|
15
16
|
};
|
|
16
17
|
pageSize: {
|
|
17
18
|
type: NumberConstructor;
|
|
18
|
-
|
|
19
|
+
required: boolean;
|
|
19
20
|
default: number;
|
|
20
21
|
description: string;
|
|
22
|
+
validator: (value: number) => boolean;
|
|
21
23
|
};
|
|
22
24
|
pageSizeOptions: {
|
|
23
25
|
type: PropType<PaginationOptions[]>;
|
|
24
|
-
default: {
|
|
26
|
+
default: () => {
|
|
25
27
|
label: string;
|
|
26
28
|
value: number;
|
|
27
29
|
}[];
|
|
28
30
|
description: string;
|
|
31
|
+
validator: (value: PaginationOptions[]) => boolean;
|
|
29
32
|
};
|
|
30
33
|
};
|
|
31
34
|
export declare const paginationProps: {
|
|
32
35
|
size: {
|
|
33
|
-
type:
|
|
36
|
+
type: PropType<LewSize>;
|
|
34
37
|
default: string;
|
|
35
38
|
description: string;
|
|
39
|
+
validator: (value: LewSize) => boolean;
|
|
36
40
|
};
|
|
37
41
|
visiblePagesCount: {
|
|
38
42
|
type: NumberConstructor;
|
|
39
43
|
default: number;
|
|
40
44
|
description: string;
|
|
45
|
+
validator: (value: number) => boolean;
|
|
41
46
|
};
|
|
42
47
|
};
|
|
@@ -6,16 +6,19 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
6
6
|
type: StringConstructor;
|
|
7
7
|
default: string;
|
|
8
8
|
description: string;
|
|
9
|
+
validator: (value: string) => boolean;
|
|
9
10
|
};
|
|
10
11
|
width: {
|
|
11
12
|
type: (StringConstructor | NumberConstructor)[];
|
|
12
13
|
default: string;
|
|
13
14
|
description: string;
|
|
15
|
+
validator: (value: string | number) => boolean;
|
|
14
16
|
};
|
|
15
17
|
trigger: {
|
|
16
|
-
type:
|
|
18
|
+
type: PropType<import('../../..').PopoverTrigger>;
|
|
17
19
|
default: string;
|
|
18
20
|
description: string;
|
|
21
|
+
validator: (value: string) => boolean;
|
|
19
22
|
};
|
|
20
23
|
title: {
|
|
21
24
|
type: StringConstructor;
|
|
@@ -23,7 +26,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
23
26
|
description: string;
|
|
24
27
|
};
|
|
25
28
|
okProps: {
|
|
26
|
-
type:
|
|
29
|
+
type: PropType<import('../../..').ButtonProps>;
|
|
27
30
|
default: () => {
|
|
28
31
|
text: string;
|
|
29
32
|
color: string;
|
|
@@ -31,7 +34,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
31
34
|
description: string;
|
|
32
35
|
};
|
|
33
36
|
cancelProps: {
|
|
34
|
-
type:
|
|
37
|
+
type: PropType<import('../../..').ButtonProps>;
|
|
35
38
|
default: () => {
|
|
36
39
|
type: string;
|
|
37
40
|
text: string;
|
|
@@ -45,9 +48,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
45
48
|
description: string;
|
|
46
49
|
};
|
|
47
50
|
placement: {
|
|
48
|
-
type:
|
|
51
|
+
type: PropType<import('../../..').PopoverPlacement>;
|
|
49
52
|
default: string;
|
|
50
53
|
description: string;
|
|
54
|
+
validator: (value: string) => boolean;
|
|
51
55
|
};
|
|
52
56
|
}, {
|
|
53
57
|
hide: () => void;
|
|
@@ -60,16 +64,19 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
60
64
|
type: StringConstructor;
|
|
61
65
|
default: string;
|
|
62
66
|
description: string;
|
|
67
|
+
validator: (value: string) => boolean;
|
|
63
68
|
};
|
|
64
69
|
width: {
|
|
65
70
|
type: (StringConstructor | NumberConstructor)[];
|
|
66
71
|
default: string;
|
|
67
72
|
description: string;
|
|
73
|
+
validator: (value: string | number) => boolean;
|
|
68
74
|
};
|
|
69
75
|
trigger: {
|
|
70
|
-
type:
|
|
76
|
+
type: PropType<import('../../..').PopoverTrigger>;
|
|
71
77
|
default: string;
|
|
72
78
|
description: string;
|
|
79
|
+
validator: (value: string) => boolean;
|
|
73
80
|
};
|
|
74
81
|
title: {
|
|
75
82
|
type: StringConstructor;
|
|
@@ -77,7 +84,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
77
84
|
description: string;
|
|
78
85
|
};
|
|
79
86
|
okProps: {
|
|
80
|
-
type:
|
|
87
|
+
type: PropType<import('../../..').ButtonProps>;
|
|
81
88
|
default: () => {
|
|
82
89
|
text: string;
|
|
83
90
|
color: string;
|
|
@@ -85,7 +92,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
85
92
|
description: string;
|
|
86
93
|
};
|
|
87
94
|
cancelProps: {
|
|
88
|
-
type:
|
|
95
|
+
type: PropType<import('../../..').ButtonProps>;
|
|
89
96
|
default: () => {
|
|
90
97
|
type: string;
|
|
91
98
|
text: string;
|
|
@@ -99,9 +106,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
99
106
|
description: string;
|
|
100
107
|
};
|
|
101
108
|
placement: {
|
|
102
|
-
type:
|
|
109
|
+
type: PropType<import('../../..').PopoverPlacement>;
|
|
103
110
|
default: string;
|
|
104
111
|
description: string;
|
|
112
|
+
validator: (value: string) => boolean;
|
|
105
113
|
};
|
|
106
114
|
}>> & {
|
|
107
115
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
@@ -111,8 +119,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
111
119
|
type: string;
|
|
112
120
|
width: string | number;
|
|
113
121
|
title: string;
|
|
114
|
-
trigger:
|
|
115
|
-
placement:
|
|
122
|
+
trigger: import('../../..').PopoverTrigger;
|
|
123
|
+
placement: import('../../..').PopoverPlacement;
|
|
116
124
|
content: string;
|
|
117
125
|
okProps: import('../../..').ButtonProps;
|
|
118
126
|
cancelProps: import('../../..').ButtonProps;
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { ButtonProps } from '../../button/index';
|
|
2
|
-
import {
|
|
2
|
+
import { PopoverPlacement, PopoverTrigger } from '../../popover/index';
|
|
3
3
|
|
|
4
4
|
export declare const popokProps: {
|
|
5
5
|
type: {
|
|
6
6
|
type: StringConstructor;
|
|
7
7
|
default: string;
|
|
8
8
|
description: string;
|
|
9
|
+
validator: (value: string) => boolean;
|
|
9
10
|
};
|
|
10
11
|
width: {
|
|
11
12
|
type: (StringConstructor | NumberConstructor)[];
|
|
12
13
|
default: string;
|
|
13
14
|
description: string;
|
|
15
|
+
validator: (value: string | number) => boolean;
|
|
14
16
|
};
|
|
15
17
|
trigger: {
|
|
16
|
-
type:
|
|
18
|
+
type: PropType<PopoverTrigger>;
|
|
17
19
|
default: string;
|
|
18
20
|
description: string;
|
|
21
|
+
validator: (value: string) => boolean;
|
|
19
22
|
};
|
|
20
23
|
title: {
|
|
21
24
|
type: StringConstructor;
|
|
@@ -45,8 +48,9 @@ export declare const popokProps: {
|
|
|
45
48
|
description: string;
|
|
46
49
|
};
|
|
47
50
|
placement: {
|
|
48
|
-
type:
|
|
51
|
+
type: PropType<PopoverPlacement>;
|
|
49
52
|
default: string;
|
|
50
53
|
description: string;
|
|
54
|
+
validator: (value: string) => boolean;
|
|
51
55
|
};
|
|
52
56
|
};
|
|
@@ -7,14 +7,16 @@ declare function __VLS_template(): {
|
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_component: import('vue').DefineComponent<{
|
|
9
9
|
trigger: {
|
|
10
|
-
type:
|
|
10
|
+
type: globalThis.PropType<import('../../..').PopoverTrigger>;
|
|
11
11
|
default: string;
|
|
12
12
|
description: string;
|
|
13
|
+
validator(value: import('../../..').PopoverTrigger): boolean;
|
|
13
14
|
};
|
|
14
15
|
placement: {
|
|
15
|
-
type:
|
|
16
|
+
type: globalThis.PropType<import('../../..').PopoverPlacement>;
|
|
16
17
|
default: string;
|
|
17
18
|
description: string;
|
|
19
|
+
validator(value: import('../../..').PopoverPlacement): boolean;
|
|
18
20
|
};
|
|
19
21
|
disabled: {
|
|
20
22
|
type: BooleanConstructor;
|
|
@@ -26,28 +28,28 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
26
28
|
default: boolean;
|
|
27
29
|
description: string;
|
|
28
30
|
};
|
|
31
|
+
hideOnClick: {
|
|
32
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
33
|
+
default: boolean;
|
|
34
|
+
description: string;
|
|
35
|
+
validator(value: boolean | string): boolean;
|
|
36
|
+
};
|
|
37
|
+
offset: {
|
|
38
|
+
type: globalThis.PropType<number[]>;
|
|
39
|
+
default: () => number[];
|
|
40
|
+
description: string;
|
|
41
|
+
validator(value: [number, number]): boolean;
|
|
42
|
+
};
|
|
29
43
|
popoverBodyClassName: {
|
|
30
44
|
type: StringConstructor;
|
|
31
45
|
default: string;
|
|
32
46
|
description: string;
|
|
33
47
|
};
|
|
34
48
|
triggerTarget: {
|
|
35
|
-
type:
|
|
36
|
-
new (): Element;
|
|
37
|
-
prototype: Element;
|
|
38
|
-
};
|
|
49
|
+
type: globalThis.PropType<Element>;
|
|
39
50
|
default: null;
|
|
40
51
|
description: string;
|
|
41
52
|
};
|
|
42
|
-
offset: {
|
|
43
|
-
type: PropType<number[]>;
|
|
44
|
-
default: number[];
|
|
45
|
-
description: string;
|
|
46
|
-
};
|
|
47
|
-
hideOnClick: {
|
|
48
|
-
type: (StringConstructor | BooleanConstructor)[];
|
|
49
|
-
default: boolean;
|
|
50
|
-
};
|
|
51
53
|
}, {
|
|
52
54
|
show: () => void;
|
|
53
55
|
hide: () => void;
|
|
@@ -57,14 +59,16 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
57
59
|
hide: (...args: any[]) => void;
|
|
58
60
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
59
61
|
trigger: {
|
|
60
|
-
type:
|
|
62
|
+
type: globalThis.PropType<import('../../..').PopoverTrigger>;
|
|
61
63
|
default: string;
|
|
62
64
|
description: string;
|
|
65
|
+
validator(value: import('../../..').PopoverTrigger): boolean;
|
|
63
66
|
};
|
|
64
67
|
placement: {
|
|
65
|
-
type:
|
|
68
|
+
type: globalThis.PropType<import('../../..').PopoverPlacement>;
|
|
66
69
|
default: string;
|
|
67
70
|
description: string;
|
|
71
|
+
validator(value: import('../../..').PopoverPlacement): boolean;
|
|
68
72
|
};
|
|
69
73
|
disabled: {
|
|
70
74
|
type: BooleanConstructor;
|
|
@@ -76,40 +80,40 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
76
80
|
default: boolean;
|
|
77
81
|
description: string;
|
|
78
82
|
};
|
|
83
|
+
hideOnClick: {
|
|
84
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
85
|
+
default: boolean;
|
|
86
|
+
description: string;
|
|
87
|
+
validator(value: boolean | string): boolean;
|
|
88
|
+
};
|
|
89
|
+
offset: {
|
|
90
|
+
type: globalThis.PropType<number[]>;
|
|
91
|
+
default: () => number[];
|
|
92
|
+
description: string;
|
|
93
|
+
validator(value: [number, number]): boolean;
|
|
94
|
+
};
|
|
79
95
|
popoverBodyClassName: {
|
|
80
96
|
type: StringConstructor;
|
|
81
97
|
default: string;
|
|
82
98
|
description: string;
|
|
83
99
|
};
|
|
84
100
|
triggerTarget: {
|
|
85
|
-
type:
|
|
86
|
-
new (): Element;
|
|
87
|
-
prototype: Element;
|
|
88
|
-
};
|
|
101
|
+
type: globalThis.PropType<Element>;
|
|
89
102
|
default: null;
|
|
90
103
|
description: string;
|
|
91
104
|
};
|
|
92
|
-
offset: {
|
|
93
|
-
type: PropType<number[]>;
|
|
94
|
-
default: number[];
|
|
95
|
-
description: string;
|
|
96
|
-
};
|
|
97
|
-
hideOnClick: {
|
|
98
|
-
type: (StringConstructor | BooleanConstructor)[];
|
|
99
|
-
default: boolean;
|
|
100
|
-
};
|
|
101
105
|
}>> & {
|
|
102
106
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
103
107
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
104
108
|
}, {
|
|
105
|
-
trigger: string;
|
|
106
109
|
disabled: boolean;
|
|
110
|
+
trigger: import('../../..').PopoverTrigger;
|
|
107
111
|
loading: boolean;
|
|
108
|
-
placement:
|
|
112
|
+
placement: import('../../..').PopoverPlacement;
|
|
113
|
+
hideOnClick: string | boolean;
|
|
114
|
+
offset: number[];
|
|
109
115
|
popoverBodyClassName: string;
|
|
110
116
|
triggerTarget: Element;
|
|
111
|
-
offset: number[];
|
|
112
|
-
hideOnClick: string | boolean;
|
|
113
117
|
}, {}>;
|
|
114
118
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
115
119
|
export default _default;
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
|
|
3
|
+
export type PopoverTrigger = 'click' | 'hover' | 'focus';
|
|
4
|
+
export type PopoverPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
3
5
|
export declare const popoverProps: {
|
|
4
6
|
trigger: {
|
|
5
|
-
type:
|
|
7
|
+
type: PropType<PopoverTrigger>;
|
|
6
8
|
default: string;
|
|
7
9
|
description: string;
|
|
10
|
+
validator(value: PopoverTrigger): boolean;
|
|
8
11
|
};
|
|
9
12
|
placement: {
|
|
10
|
-
type:
|
|
13
|
+
type: PropType<PopoverPlacement>;
|
|
11
14
|
default: string;
|
|
12
15
|
description: string;
|
|
16
|
+
validator(value: PopoverPlacement): boolean;
|
|
13
17
|
};
|
|
14
18
|
disabled: {
|
|
15
19
|
type: BooleanConstructor;
|
|
@@ -21,27 +25,27 @@ export declare const popoverProps: {
|
|
|
21
25
|
default: boolean;
|
|
22
26
|
description: string;
|
|
23
27
|
};
|
|
28
|
+
hideOnClick: {
|
|
29
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
30
|
+
default: boolean;
|
|
31
|
+
description: string;
|
|
32
|
+
validator(value: boolean | string): boolean;
|
|
33
|
+
};
|
|
34
|
+
offset: {
|
|
35
|
+
type: PropType<number[]>;
|
|
36
|
+
default: () => number[];
|
|
37
|
+
description: string;
|
|
38
|
+
validator(value: [number, number]): boolean;
|
|
39
|
+
};
|
|
24
40
|
popoverBodyClassName: {
|
|
25
41
|
type: StringConstructor;
|
|
26
42
|
default: string;
|
|
27
43
|
description: string;
|
|
28
44
|
};
|
|
29
45
|
triggerTarget: {
|
|
30
|
-
type:
|
|
31
|
-
new (): Element;
|
|
32
|
-
prototype: Element;
|
|
33
|
-
};
|
|
46
|
+
type: PropType<Element>;
|
|
34
47
|
default: null;
|
|
35
48
|
description: string;
|
|
36
49
|
};
|
|
37
|
-
offset: {
|
|
38
|
-
type: PropType<number[]>;
|
|
39
|
-
default: number[];
|
|
40
|
-
description: string;
|
|
41
|
-
};
|
|
42
|
-
hideOnClick: {
|
|
43
|
-
type: (StringConstructor | BooleanConstructor)[];
|
|
44
|
-
default: boolean;
|
|
45
|
-
};
|
|
46
50
|
};
|
|
47
51
|
export type PopoverProps = ExtractPropTypes<typeof popoverProps>;
|