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,4 +1,5 @@
|
|
|
1
1
|
declare function focus(): void;
|
|
2
|
+
declare function blur(): void;
|
|
2
3
|
declare function __VLS_template(): {
|
|
3
4
|
attrs: Partial<{}>;
|
|
4
5
|
slots: {
|
|
@@ -13,141 +14,111 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
13
14
|
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
14
15
|
text: {
|
|
15
16
|
type: StringConstructor;
|
|
16
|
-
default: string;
|
|
17
|
-
description: string;
|
|
18
17
|
validator(value: string): boolean;
|
|
19
18
|
};
|
|
20
19
|
width: {
|
|
21
|
-
type: (
|
|
22
|
-
|
|
23
|
-
description: string;
|
|
20
|
+
type: PropType<import('./props').ButtonWidth>;
|
|
21
|
+
validator(value: import('./props').ButtonWidth): boolean;
|
|
24
22
|
};
|
|
25
23
|
type: {
|
|
26
24
|
type: PropType<import('./props').ButtonType>;
|
|
27
25
|
default: string;
|
|
28
|
-
description: string;
|
|
29
26
|
validator(value: import('./props').ButtonType): boolean;
|
|
30
27
|
};
|
|
31
28
|
size: {
|
|
32
29
|
type: PropType<import('./props').ButtonSize>;
|
|
33
30
|
default: string;
|
|
34
|
-
description: string;
|
|
35
31
|
validator(value: import('./props').ButtonSize): boolean;
|
|
36
32
|
};
|
|
37
33
|
singleIcon: {
|
|
38
34
|
type: BooleanConstructor;
|
|
39
|
-
default: boolean;
|
|
40
|
-
description: string;
|
|
41
35
|
};
|
|
42
36
|
color: {
|
|
43
37
|
type: PropType<import('../../../..').LewColor>;
|
|
44
38
|
default: string;
|
|
45
|
-
description: string;
|
|
46
39
|
validator(value: import('../../../..').LewColor): boolean;
|
|
47
40
|
};
|
|
48
41
|
round: {
|
|
49
42
|
type: BooleanConstructor;
|
|
50
|
-
default: boolean;
|
|
51
|
-
description: string;
|
|
52
43
|
};
|
|
53
44
|
dashed: {
|
|
54
45
|
type: BooleanConstructor;
|
|
55
|
-
default: boolean;
|
|
56
|
-
description: string;
|
|
57
46
|
};
|
|
58
47
|
loading: {
|
|
59
48
|
type: BooleanConstructor;
|
|
60
|
-
default: boolean;
|
|
61
|
-
description: string;
|
|
62
49
|
};
|
|
63
50
|
disabled: {
|
|
64
51
|
type: BooleanConstructor;
|
|
65
|
-
default: boolean;
|
|
66
|
-
description: string;
|
|
67
52
|
};
|
|
68
53
|
request: {
|
|
69
|
-
type:
|
|
70
|
-
default: null;
|
|
71
|
-
description: string;
|
|
54
|
+
type: PropType<() => Promise<void>>;
|
|
72
55
|
};
|
|
73
56
|
}>, {
|
|
74
57
|
focus: typeof focus;
|
|
58
|
+
blur: typeof blur;
|
|
75
59
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
76
|
-
|
|
60
|
+
blur: (event: FocusEvent) => any;
|
|
61
|
+
click: (event: MouseEvent) => any;
|
|
62
|
+
focus: (event: FocusEvent) => any;
|
|
63
|
+
mouseenter: (event: MouseEvent) => any;
|
|
64
|
+
mouseleave: (event: MouseEvent) => any;
|
|
77
65
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
78
66
|
text: {
|
|
79
67
|
type: StringConstructor;
|
|
80
|
-
default: string;
|
|
81
|
-
description: string;
|
|
82
68
|
validator(value: string): boolean;
|
|
83
69
|
};
|
|
84
70
|
width: {
|
|
85
|
-
type: (
|
|
86
|
-
|
|
87
|
-
description: string;
|
|
71
|
+
type: PropType<import('./props').ButtonWidth>;
|
|
72
|
+
validator(value: import('./props').ButtonWidth): boolean;
|
|
88
73
|
};
|
|
89
74
|
type: {
|
|
90
75
|
type: PropType<import('./props').ButtonType>;
|
|
91
76
|
default: string;
|
|
92
|
-
description: string;
|
|
93
77
|
validator(value: import('./props').ButtonType): boolean;
|
|
94
78
|
};
|
|
95
79
|
size: {
|
|
96
80
|
type: PropType<import('./props').ButtonSize>;
|
|
97
81
|
default: string;
|
|
98
|
-
description: string;
|
|
99
82
|
validator(value: import('./props').ButtonSize): boolean;
|
|
100
83
|
};
|
|
101
84
|
singleIcon: {
|
|
102
85
|
type: BooleanConstructor;
|
|
103
|
-
default: boolean;
|
|
104
|
-
description: string;
|
|
105
86
|
};
|
|
106
87
|
color: {
|
|
107
88
|
type: PropType<import('../../../..').LewColor>;
|
|
108
89
|
default: string;
|
|
109
|
-
description: string;
|
|
110
90
|
validator(value: import('../../../..').LewColor): boolean;
|
|
111
91
|
};
|
|
112
92
|
round: {
|
|
113
93
|
type: BooleanConstructor;
|
|
114
|
-
default: boolean;
|
|
115
|
-
description: string;
|
|
116
94
|
};
|
|
117
95
|
dashed: {
|
|
118
96
|
type: BooleanConstructor;
|
|
119
|
-
default: boolean;
|
|
120
|
-
description: string;
|
|
121
97
|
};
|
|
122
98
|
loading: {
|
|
123
99
|
type: BooleanConstructor;
|
|
124
|
-
default: boolean;
|
|
125
|
-
description: string;
|
|
126
100
|
};
|
|
127
101
|
disabled: {
|
|
128
102
|
type: BooleanConstructor;
|
|
129
|
-
default: boolean;
|
|
130
|
-
description: string;
|
|
131
103
|
};
|
|
132
104
|
request: {
|
|
133
|
-
type:
|
|
134
|
-
default: null;
|
|
135
|
-
description: string;
|
|
105
|
+
type: PropType<() => Promise<void>>;
|
|
136
106
|
};
|
|
137
107
|
}>> & Readonly<{
|
|
138
|
-
|
|
108
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
109
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
110
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
111
|
+
onMouseenter?: ((event: MouseEvent) => any) | undefined;
|
|
112
|
+
onMouseleave?: ((event: MouseEvent) => any) | undefined;
|
|
139
113
|
}>, {
|
|
140
114
|
type: import('./props').ButtonType;
|
|
141
115
|
color: import('../../../..').LewColor;
|
|
142
116
|
size: import('./props').ButtonSize;
|
|
143
117
|
loading: boolean;
|
|
144
|
-
text: string;
|
|
145
|
-
width: string | number;
|
|
146
118
|
disabled: boolean;
|
|
147
119
|
singleIcon: boolean;
|
|
148
120
|
round: boolean;
|
|
149
121
|
dashed: boolean;
|
|
150
|
-
request: Function;
|
|
151
122
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
152
123
|
buttonRef: HTMLButtonElement;
|
|
153
124
|
}, HTMLButtonElement>;
|
|
@@ -1,67 +1,51 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
1
2
|
import { LewColor, LewSize } from '../../../..';
|
|
2
|
-
import { ExtractPropTypes } from 'vue';
|
|
3
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
3
4
|
export type ButtonSize = 'mini' | LewSize;
|
|
4
5
|
export type ButtonType = 'fill' | 'light' | 'ghost' | 'text';
|
|
5
6
|
export type IconPosition = 'left' | 'right';
|
|
7
|
+
export type ButtonWidth = Property.Width | number;
|
|
6
8
|
export declare const buttonProps: {
|
|
7
9
|
text: {
|
|
8
10
|
type: StringConstructor;
|
|
9
|
-
default: string;
|
|
10
|
-
description: string;
|
|
11
11
|
validator(value: string): boolean;
|
|
12
12
|
};
|
|
13
13
|
width: {
|
|
14
|
-
type:
|
|
15
|
-
|
|
16
|
-
description: string;
|
|
14
|
+
type: PropType<ButtonWidth>;
|
|
15
|
+
validator(value: ButtonWidth): boolean;
|
|
17
16
|
};
|
|
18
17
|
type: {
|
|
19
18
|
type: PropType<ButtonType>;
|
|
20
19
|
default: string;
|
|
21
|
-
description: string;
|
|
22
20
|
validator(value: ButtonType): boolean;
|
|
23
21
|
};
|
|
24
22
|
size: {
|
|
25
23
|
type: PropType<ButtonSize>;
|
|
26
24
|
default: string;
|
|
27
|
-
description: string;
|
|
28
25
|
validator(value: ButtonSize): boolean;
|
|
29
26
|
};
|
|
30
27
|
singleIcon: {
|
|
31
28
|
type: BooleanConstructor;
|
|
32
|
-
default: boolean;
|
|
33
|
-
description: string;
|
|
34
29
|
};
|
|
35
30
|
color: {
|
|
36
31
|
type: PropType<LewColor>;
|
|
37
32
|
default: string;
|
|
38
|
-
description: string;
|
|
39
33
|
validator(value: LewColor): boolean;
|
|
40
34
|
};
|
|
41
35
|
round: {
|
|
42
36
|
type: BooleanConstructor;
|
|
43
|
-
default: boolean;
|
|
44
|
-
description: string;
|
|
45
37
|
};
|
|
46
38
|
dashed: {
|
|
47
39
|
type: BooleanConstructor;
|
|
48
|
-
default: boolean;
|
|
49
|
-
description: string;
|
|
50
40
|
};
|
|
51
41
|
loading: {
|
|
52
42
|
type: BooleanConstructor;
|
|
53
|
-
default: boolean;
|
|
54
|
-
description: string;
|
|
55
43
|
};
|
|
56
44
|
disabled: {
|
|
57
45
|
type: BooleanConstructor;
|
|
58
|
-
default: boolean;
|
|
59
|
-
description: string;
|
|
60
46
|
};
|
|
61
47
|
request: {
|
|
62
|
-
type:
|
|
63
|
-
default: null;
|
|
64
|
-
description: string;
|
|
48
|
+
type: PropType<() => Promise<void>>;
|
|
65
49
|
};
|
|
66
50
|
};
|
|
67
51
|
export type ButtonProps = ExtractPropTypes<typeof buttonProps>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ContextMenus } from '../../../..';
|
|
1
2
|
declare function show(): void;
|
|
2
3
|
declare function hide(): void;
|
|
3
4
|
declare function __VLS_template(): {
|
|
@@ -11,25 +12,25 @@ declare function __VLS_template(): {
|
|
|
11
12
|
$data: {};
|
|
12
13
|
$props: Partial<{
|
|
13
14
|
loading: boolean;
|
|
14
|
-
disabled: boolean;
|
|
15
|
-
placement: import('../../../..').PopoverPlacement;
|
|
16
15
|
offset: number[];
|
|
16
|
+
placement: import('../../../..').PopoverPlacement;
|
|
17
|
+
disabled: boolean;
|
|
17
18
|
trigger: import('../../../..').PopoverTrigger;
|
|
18
19
|
hideOnClick: string | boolean;
|
|
19
20
|
popoverBodyClassName: string;
|
|
20
21
|
triggerTarget: Element;
|
|
21
22
|
}> & Omit<{
|
|
22
23
|
readonly loading: boolean;
|
|
23
|
-
readonly disabled: boolean;
|
|
24
|
-
readonly placement: import('../../../..').PopoverPlacement;
|
|
25
24
|
readonly offset: number[];
|
|
25
|
+
readonly placement: import('../../../..').PopoverPlacement;
|
|
26
|
+
readonly disabled: boolean;
|
|
26
27
|
readonly trigger: import('../../../..').PopoverTrigger;
|
|
27
28
|
readonly hideOnClick: string | boolean;
|
|
28
29
|
readonly popoverBodyClassName: string;
|
|
29
30
|
readonly triggerTarget: Element;
|
|
30
31
|
readonly onShow?: ((...args: any[]) => any) | undefined;
|
|
31
32
|
readonly onHide?: ((...args: any[]) => any) | undefined;
|
|
32
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "loading" | "
|
|
33
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "loading" | "offset" | "placement" | "disabled" | "trigger" | "hideOnClick" | "popoverBodyClassName" | "triggerTarget">;
|
|
33
34
|
$attrs: {
|
|
34
35
|
[x: string]: unknown;
|
|
35
36
|
};
|
|
@@ -104,9 +105,9 @@ declare function __VLS_template(): {
|
|
|
104
105
|
hide: (...args: any[]) => void;
|
|
105
106
|
}, string, {
|
|
106
107
|
loading: boolean;
|
|
107
|
-
disabled: boolean;
|
|
108
|
-
placement: import('../../../..').PopoverPlacement;
|
|
109
108
|
offset: number[];
|
|
109
|
+
placement: import('../../../..').PopoverPlacement;
|
|
110
|
+
disabled: boolean;
|
|
110
111
|
trigger: import('../../../..').PopoverTrigger;
|
|
111
112
|
hideOnClick: string | boolean;
|
|
112
113
|
popoverBodyClassName: string;
|
|
@@ -133,9 +134,9 @@ declare function __VLS_template(): {
|
|
|
133
134
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
134
135
|
} & Readonly<{
|
|
135
136
|
loading: boolean;
|
|
136
|
-
disabled: boolean;
|
|
137
|
-
placement: import('../../../..').PopoverPlacement;
|
|
138
137
|
offset: number[];
|
|
138
|
+
placement: import('../../../..').PopoverPlacement;
|
|
139
|
+
disabled: boolean;
|
|
139
140
|
trigger: import('../../../..').PopoverTrigger;
|
|
140
141
|
hideOnClick: string | boolean;
|
|
141
142
|
popoverBodyClassName: string;
|
|
@@ -188,7 +189,7 @@ declare function __VLS_template(): {
|
|
|
188
189
|
}>> & Readonly<{
|
|
189
190
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
190
191
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
191
|
-
}>, "show" | "hide" | "refresh" | ("loading" | "
|
|
192
|
+
}>, "show" | "hide" | "refresh" | ("loading" | "offset" | "placement" | "disabled" | "trigger" | "hideOnClick" | "popoverBodyClassName" | "triggerTarget")> & import('vue').ShallowUnwrapRef<{
|
|
192
193
|
show: () => void;
|
|
193
194
|
hide: () => void;
|
|
194
195
|
refresh: () => void;
|
|
@@ -207,61 +208,59 @@ declare function __VLS_template(): {
|
|
|
207
208
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
208
209
|
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
209
210
|
trigger: {
|
|
210
|
-
type: PropType<import('../../../..').
|
|
211
|
+
type: PropType<import('../../../..').LewPopoverTrigger>;
|
|
211
212
|
default: string;
|
|
212
|
-
|
|
213
|
-
validator(value: import('../../../..').DropdownTrigger): boolean;
|
|
213
|
+
validator(value: import('../../../..').LewPopoverTrigger): boolean;
|
|
214
214
|
};
|
|
215
215
|
placement: {
|
|
216
|
-
type: PropType<import('../../../..').
|
|
216
|
+
type: PropType<import('../../../..').LewPopoverPlacement>;
|
|
217
217
|
default: string;
|
|
218
|
-
|
|
219
|
-
validator(value: import('../../../..').DropdownPlacement): boolean;
|
|
218
|
+
validator(value: import('../../../..').LewPopoverPlacement): boolean;
|
|
220
219
|
};
|
|
221
220
|
options: {
|
|
222
|
-
type: PropType<
|
|
221
|
+
type: PropType<ContextMenus[]>;
|
|
223
222
|
default: () => never[];
|
|
224
|
-
|
|
225
|
-
typeDesc: string;
|
|
226
|
-
validator(value: import('../../../..').DropdownOptions[]): boolean;
|
|
223
|
+
validator(value: ContextMenus[]): boolean;
|
|
227
224
|
};
|
|
228
225
|
checkable: {
|
|
229
226
|
type: BooleanConstructor;
|
|
230
|
-
default: boolean;
|
|
231
|
-
description: string;
|
|
232
227
|
};
|
|
233
228
|
}>, {
|
|
234
229
|
show: typeof show;
|
|
235
230
|
hide: typeof hide;
|
|
236
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
231
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
232
|
+
select: (item: ContextMenus, event: Event) => any;
|
|
233
|
+
visibleChange: (visible: boolean) => any;
|
|
234
|
+
beforeShow: () => any;
|
|
235
|
+
beforeHide: () => any;
|
|
236
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
237
237
|
trigger: {
|
|
238
|
-
type: PropType<import('../../../..').
|
|
238
|
+
type: PropType<import('../../../..').LewPopoverTrigger>;
|
|
239
239
|
default: string;
|
|
240
|
-
|
|
241
|
-
validator(value: import('../../../..').DropdownTrigger): boolean;
|
|
240
|
+
validator(value: import('../../../..').LewPopoverTrigger): boolean;
|
|
242
241
|
};
|
|
243
242
|
placement: {
|
|
244
|
-
type: PropType<import('../../../..').
|
|
243
|
+
type: PropType<import('../../../..').LewPopoverPlacement>;
|
|
245
244
|
default: string;
|
|
246
|
-
|
|
247
|
-
validator(value: import('../../../..').DropdownPlacement): boolean;
|
|
245
|
+
validator(value: import('../../../..').LewPopoverPlacement): boolean;
|
|
248
246
|
};
|
|
249
247
|
options: {
|
|
250
|
-
type: PropType<
|
|
248
|
+
type: PropType<ContextMenus[]>;
|
|
251
249
|
default: () => never[];
|
|
252
|
-
|
|
253
|
-
typeDesc: string;
|
|
254
|
-
validator(value: import('../../../..').DropdownOptions[]): boolean;
|
|
250
|
+
validator(value: ContextMenus[]): boolean;
|
|
255
251
|
};
|
|
256
252
|
checkable: {
|
|
257
253
|
type: BooleanConstructor;
|
|
258
|
-
default: boolean;
|
|
259
|
-
description: string;
|
|
260
254
|
};
|
|
261
|
-
}>> & Readonly<{
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
255
|
+
}>> & Readonly<{
|
|
256
|
+
onSelect?: ((item: ContextMenus, event: Event) => any) | undefined;
|
|
257
|
+
onVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
258
|
+
onBeforeShow?: (() => any) | undefined;
|
|
259
|
+
onBeforeHide?: (() => any) | undefined;
|
|
260
|
+
}>, {
|
|
261
|
+
options: ContextMenus[];
|
|
262
|
+
placement: import('../../../..').LewPopoverPlacement;
|
|
263
|
+
trigger: import('../../../..').LewPopoverTrigger;
|
|
265
264
|
checkable: boolean;
|
|
266
265
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
267
266
|
lewPopoverRef: ({
|
|
@@ -269,25 +268,25 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
269
268
|
$data: {};
|
|
270
269
|
$props: Partial<{
|
|
271
270
|
loading: boolean;
|
|
272
|
-
disabled: boolean;
|
|
273
|
-
placement: import('../../../..').PopoverPlacement;
|
|
274
271
|
offset: number[];
|
|
272
|
+
placement: import('../../../..').PopoverPlacement;
|
|
273
|
+
disabled: boolean;
|
|
275
274
|
trigger: import('../../../..').PopoverTrigger;
|
|
276
275
|
hideOnClick: string | boolean;
|
|
277
276
|
popoverBodyClassName: string;
|
|
278
277
|
triggerTarget: Element;
|
|
279
278
|
}> & Omit<{
|
|
280
279
|
readonly loading: boolean;
|
|
281
|
-
readonly disabled: boolean;
|
|
282
|
-
readonly placement: import('../../../..').PopoverPlacement;
|
|
283
280
|
readonly offset: number[];
|
|
281
|
+
readonly placement: import('../../../..').PopoverPlacement;
|
|
282
|
+
readonly disabled: boolean;
|
|
284
283
|
readonly trigger: import('../../../..').PopoverTrigger;
|
|
285
284
|
readonly hideOnClick: string | boolean;
|
|
286
285
|
readonly popoverBodyClassName: string;
|
|
287
286
|
readonly triggerTarget: Element;
|
|
288
287
|
readonly onShow?: ((...args: any[]) => any) | undefined;
|
|
289
288
|
readonly onHide?: ((...args: any[]) => any) | undefined;
|
|
290
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "loading" | "
|
|
289
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "loading" | "offset" | "placement" | "disabled" | "trigger" | "hideOnClick" | "popoverBodyClassName" | "triggerTarget">;
|
|
291
290
|
$attrs: {
|
|
292
291
|
[x: string]: unknown;
|
|
293
292
|
};
|
|
@@ -362,9 +361,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
362
361
|
hide: (...args: any[]) => void;
|
|
363
362
|
}, string, {
|
|
364
363
|
loading: boolean;
|
|
365
|
-
disabled: boolean;
|
|
366
|
-
placement: import('../../../..').PopoverPlacement;
|
|
367
364
|
offset: number[];
|
|
365
|
+
placement: import('../../../..').PopoverPlacement;
|
|
366
|
+
disabled: boolean;
|
|
368
367
|
trigger: import('../../../..').PopoverTrigger;
|
|
369
368
|
hideOnClick: string | boolean;
|
|
370
369
|
popoverBodyClassName: string;
|
|
@@ -391,9 +390,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
391
390
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
392
391
|
} & Readonly<{
|
|
393
392
|
loading: boolean;
|
|
394
|
-
disabled: boolean;
|
|
395
|
-
placement: import('../../../..').PopoverPlacement;
|
|
396
393
|
offset: number[];
|
|
394
|
+
placement: import('../../../..').PopoverPlacement;
|
|
395
|
+
disabled: boolean;
|
|
397
396
|
trigger: import('../../../..').PopoverTrigger;
|
|
398
397
|
hideOnClick: string | boolean;
|
|
399
398
|
popoverBodyClassName: string;
|
|
@@ -446,7 +445,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
446
445
|
}>> & Readonly<{
|
|
447
446
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
448
447
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
449
|
-
}>, "show" | "hide" | "refresh" | ("loading" | "
|
|
448
|
+
}>, "show" | "hide" | "refresh" | ("loading" | "offset" | "placement" | "disabled" | "trigger" | "hideOnClick" | "popoverBodyClassName" | "triggerTarget")> & import('vue').ShallowUnwrapRef<{
|
|
450
449
|
show: () => void;
|
|
451
450
|
hide: () => void;
|
|
452
451
|
refresh: () => void;
|
|
@@ -1,39 +1,30 @@
|
|
|
1
1
|
import { ContextMenus } from '../../../..';
|
|
2
|
+
import { LewPopoverPlacement, LewPopoverTrigger } from '../../../../types';
|
|
2
3
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
export type DropdownTrigger = 'hover' | 'click';
|
|
4
|
-
export type DropdownPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
5
|
-
export type DropdownOptions = ContextMenus;
|
|
6
4
|
export declare const dropdownModel: {
|
|
7
5
|
selectedKeys: {
|
|
8
6
|
type: PropType<string[]>;
|
|
9
7
|
default: () => never[];
|
|
10
|
-
description: string;
|
|
11
8
|
};
|
|
12
9
|
};
|
|
13
10
|
export declare const dropdownProps: {
|
|
14
11
|
trigger: {
|
|
15
|
-
type: PropType<
|
|
12
|
+
type: PropType<LewPopoverTrigger>;
|
|
16
13
|
default: string;
|
|
17
|
-
|
|
18
|
-
validator(value: DropdownTrigger): boolean;
|
|
14
|
+
validator(value: LewPopoverTrigger): boolean;
|
|
19
15
|
};
|
|
20
16
|
placement: {
|
|
21
|
-
type: PropType<
|
|
17
|
+
type: PropType<LewPopoverPlacement>;
|
|
22
18
|
default: string;
|
|
23
|
-
|
|
24
|
-
validator(value: DropdownPlacement): boolean;
|
|
19
|
+
validator(value: LewPopoverPlacement): boolean;
|
|
25
20
|
};
|
|
26
21
|
options: {
|
|
27
|
-
type: PropType<
|
|
22
|
+
type: PropType<ContextMenus[]>;
|
|
28
23
|
default: () => never[];
|
|
29
|
-
|
|
30
|
-
typeDesc: string;
|
|
31
|
-
validator(value: DropdownOptions[]): boolean;
|
|
24
|
+
validator(value: ContextMenus[]): boolean;
|
|
32
25
|
};
|
|
33
26
|
checkable: {
|
|
34
27
|
type: BooleanConstructor;
|
|
35
|
-
default: boolean;
|
|
36
|
-
description: string;
|
|
37
28
|
};
|
|
38
29
|
};
|
|
39
30
|
export type DropdownProps = ExtractPropTypes<typeof dropdownProps>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FlexXAlignment, FlexYAlignment } from './props';
|
|
1
2
|
declare function __VLS_template(): {
|
|
2
3
|
attrs: Partial<{}>;
|
|
3
4
|
slots: {
|
|
@@ -11,88 +12,84 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
11
12
|
direction: {
|
|
12
13
|
type: PropType<import('./props').FlexDirection>;
|
|
13
14
|
default: string;
|
|
14
|
-
typeDesc: string;
|
|
15
15
|
validator(value: import('./props').FlexDirection): boolean;
|
|
16
16
|
};
|
|
17
17
|
x: {
|
|
18
|
-
type: PropType<
|
|
18
|
+
type: PropType<FlexXAlignment>;
|
|
19
19
|
default: string;
|
|
20
|
-
|
|
21
|
-
validator(value: import('./props').FlexXAlignment): boolean;
|
|
20
|
+
validator(value: FlexXAlignment): boolean;
|
|
22
21
|
};
|
|
23
22
|
y: {
|
|
24
|
-
type: PropType<
|
|
23
|
+
type: PropType<FlexYAlignment>;
|
|
25
24
|
default: string;
|
|
26
|
-
|
|
27
|
-
validator(value: import('./props').FlexYAlignment): boolean;
|
|
25
|
+
validator(value: FlexYAlignment): boolean;
|
|
28
26
|
};
|
|
29
27
|
mode: {
|
|
30
28
|
type: PropType<import('./props').FlexMode>;
|
|
31
|
-
default: string;
|
|
32
|
-
typeDesc: string;
|
|
33
29
|
validator(value: import('./props').FlexMode): boolean;
|
|
34
30
|
};
|
|
35
31
|
wrap: {
|
|
36
32
|
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
33
|
};
|
|
39
34
|
gap: {
|
|
40
|
-
type: (
|
|
35
|
+
type: PropType<import('./props').FlexGap>;
|
|
41
36
|
default: number;
|
|
42
|
-
validator(value:
|
|
37
|
+
validator(value: import('./props').FlexGap): boolean;
|
|
43
38
|
};
|
|
44
39
|
width: {
|
|
45
|
-
type: (
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
40
|
+
type: PropType<import('./props').FlexWidth>;
|
|
41
|
+
validator(value: import('./props').FlexWidth): boolean;
|
|
42
|
+
};
|
|
43
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
44
|
+
click: (event: MouseEvent) => any;
|
|
45
|
+
resize: (size: {
|
|
46
|
+
width: number;
|
|
47
|
+
height: number;
|
|
48
|
+
}) => any;
|
|
49
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
50
50
|
direction: {
|
|
51
51
|
type: PropType<import('./props').FlexDirection>;
|
|
52
52
|
default: string;
|
|
53
|
-
typeDesc: string;
|
|
54
53
|
validator(value: import('./props').FlexDirection): boolean;
|
|
55
54
|
};
|
|
56
55
|
x: {
|
|
57
|
-
type: PropType<
|
|
56
|
+
type: PropType<FlexXAlignment>;
|
|
58
57
|
default: string;
|
|
59
|
-
|
|
60
|
-
validator(value: import('./props').FlexXAlignment): boolean;
|
|
58
|
+
validator(value: FlexXAlignment): boolean;
|
|
61
59
|
};
|
|
62
60
|
y: {
|
|
63
|
-
type: PropType<
|
|
61
|
+
type: PropType<FlexYAlignment>;
|
|
64
62
|
default: string;
|
|
65
|
-
|
|
66
|
-
validator(value: import('./props').FlexYAlignment): boolean;
|
|
63
|
+
validator(value: FlexYAlignment): boolean;
|
|
67
64
|
};
|
|
68
65
|
mode: {
|
|
69
66
|
type: PropType<import('./props').FlexMode>;
|
|
70
|
-
default: string;
|
|
71
|
-
typeDesc: string;
|
|
72
67
|
validator(value: import('./props').FlexMode): boolean;
|
|
73
68
|
};
|
|
74
69
|
wrap: {
|
|
75
70
|
type: BooleanConstructor;
|
|
76
|
-
default: boolean;
|
|
77
71
|
};
|
|
78
72
|
gap: {
|
|
79
|
-
type: (
|
|
73
|
+
type: PropType<import('./props').FlexGap>;
|
|
80
74
|
default: number;
|
|
81
|
-
validator(value:
|
|
75
|
+
validator(value: import('./props').FlexGap): boolean;
|
|
82
76
|
};
|
|
83
77
|
width: {
|
|
84
|
-
type: (
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
78
|
+
type: PropType<import('./props').FlexWidth>;
|
|
79
|
+
validator(value: import('./props').FlexWidth): boolean;
|
|
80
|
+
};
|
|
81
|
+
}>> & Readonly<{
|
|
82
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
83
|
+
onResize?: ((size: {
|
|
84
|
+
width: number;
|
|
85
|
+
height: number;
|
|
86
|
+
}) => any) | undefined;
|
|
87
|
+
}>, {
|
|
89
88
|
direction: import('./props').FlexDirection;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
mode: import('./props').FlexMode;
|
|
89
|
+
x: FlexXAlignment;
|
|
90
|
+
y: FlexYAlignment;
|
|
91
|
+
gap: import('./props').FlexGap;
|
|
94
92
|
wrap: boolean;
|
|
95
|
-
gap: string | number;
|
|
96
93
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
97
94
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
98
95
|
export default _default;
|