ep-craft 0.1.32 → 0.1.34
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/button/index.d.ts +12 -0
- package/dist/components/button-group/index.d.ts +3 -2
- package/dist/components/button-group/index.js +7 -3
- package/dist/components/button-group/src/button-group.d.ts +48 -0
- package/dist/components/button-group/src/button-group.js +7 -0
- package/dist/components/button-group/src/button-group.vue.d.ts +16 -0
- package/dist/components/button-group/src/button-group.vue.js +42 -0
- package/dist/components/button-group/src/button-group2.vue.js +4 -0
- package/dist/components/checkbox/index.js +6 -5
- package/dist/components/collection/index.d.ts +8 -0
- package/dist/components/collection/src/collection-item.vue.d.ts +2 -0
- package/dist/components/collection/src/collection-item.vue.js +10 -0
- package/dist/components/collection/src/collection-item2.vue.js +8 -0
- package/dist/components/collection/src/collection.d.ts +39 -0
- package/dist/components/collection/src/collection.js +52 -0
- package/dist/components/collection/src/collection.vue.d.ts +2 -0
- package/dist/components/collection/src/collection.vue.js +10 -0
- package/dist/components/collection/src/collection2.vue.js +7 -0
- package/dist/components/collection/src/tokens.d.ts +18 -0
- package/dist/components/divider/index.d.ts +24 -2
- package/dist/components/divider/index.js +8 -3
- package/dist/components/divider/src/divider.d.ts +30 -0
- package/dist/components/divider/src/divider.js +34 -0
- package/dist/components/divider/src/divider.vue.d.ts +24 -0
- package/dist/components/divider/src/divider.vue.js +39 -0
- package/dist/components/divider/src/divider2.vue.js +4 -0
- package/dist/components/dropdown/index.d.ts +3017 -3
- package/dist/components/dropdown/index.js +23 -3
- package/dist/components/dropdown/src/dropdown-item-impl.vue.d.ts +79 -0
- package/dist/components/dropdown/src/dropdown-item-impl.vue.js +40 -0
- package/dist/components/dropdown/src/dropdown-item-impl2.vue.js +68 -0
- package/dist/components/dropdown/src/dropdown-item.vue.d.ts +169 -0
- package/dist/components/dropdown/src/dropdown-item.vue.js +35 -0
- package/dist/components/dropdown/src/dropdown-item2.vue.js +63 -0
- package/dist/components/dropdown/src/dropdown-menu.vue.d.ts +27 -0
- package/dist/components/dropdown/src/dropdown-menu.vue.js +24 -0
- package/dist/components/dropdown/src/dropdown-menu2.vue.js +75 -0
- package/dist/components/dropdown/src/dropdown.d.ts +200 -0
- package/dist/components/dropdown/src/dropdown.js +201 -0
- package/dist/components/dropdown/src/dropdown.vue.d.ts +1126 -0
- package/dist/components/dropdown/src/dropdown.vue.js +127 -0
- package/dist/components/dropdown/src/dropdown2.vue.js +127 -0
- package/dist/components/dropdown/src/instance.d.ts +2 -0
- package/dist/components/dropdown/src/tokens.d.ts +13 -0
- package/dist/components/dropdown/src/tokens.js +5 -0
- package/dist/components/dropdown/src/useDropdown.d.ts +5 -0
- package/dist/components/dropdown/src/useDropdown.js +15 -0
- package/dist/components/dropdown-item/index.d.ts +1 -4
- package/dist/components/dropdown-menu/index.d.ts +1 -4
- package/dist/components/index.js +129 -131
- package/dist/components/popover/index.d.ts +121 -3
- package/dist/components/popover/index.js +19 -4
- package/dist/components/popover/src/directive.d.ts +4 -0
- package/dist/components/popover/src/directive.js +15 -0
- package/dist/components/popover/src/popover.d.ts +291 -0
- package/dist/components/popover/src/popover.js +168 -0
- package/dist/components/popover/src/popover.vue.d.ts +53 -0
- package/dist/components/popover/src/popover.vue.js +125 -0
- package/dist/components/popover/src/popover2.vue.js +4 -0
- package/dist/components/progress/index.d.ts +35 -2
- package/dist/components/progress/index.js +10 -4
- package/dist/components/progress/src/progress.d.ts +97 -0
- package/dist/components/progress/src/progress.js +104 -0
- package/dist/components/progress/src/progress.vue.d.ts +30 -0
- package/dist/components/progress/src/progress.vue.js +179 -0
- package/dist/components/progress/src/progress2.vue.js +4 -0
- package/dist/components/roving-focus-group/index.d.ts +14 -0
- package/dist/components/roving-focus-group/index.js +15 -0
- package/dist/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +50 -0
- package/dist/components/roving-focus-group/src/roving-focus-group-impl.vue.js +10 -0
- package/dist/components/roving-focus-group/src/roving-focus-group-impl2.vue.js +115 -0
- package/dist/components/roving-focus-group/src/roving-focus-group.d.ts +56 -0
- package/dist/components/roving-focus-group/src/roving-focus-group.js +43 -0
- package/dist/components/roving-focus-group/src/roving-focus-group.vue.d.ts +67 -0
- package/dist/components/roving-focus-group/src/roving-focus-group.vue.js +13 -0
- package/dist/components/roving-focus-group/src/roving-focus-group2.vue.js +21 -0
- package/dist/components/roving-focus-group/src/roving-focus-item.vue.d.ts +43 -0
- package/dist/components/roving-focus-group/src/roving-focus-item.vue.js +20 -0
- package/dist/components/roving-focus-group/src/roving-focus-item2.vue.js +78 -0
- package/dist/components/roving-focus-group/src/tokens.d.ts +28 -0
- package/dist/components/roving-focus-group/src/tokens.js +5 -0
- package/dist/components/roving-focus-group/src/utils.d.ts +8 -0
- package/dist/components/roving-focus-group/src/utils.js +28 -0
- package/dist/components/table/index.d.ts +56 -3
- package/dist/components/table/index.js +20 -4
- package/dist/components/table/src/composables/use-scrollbar.d.ts +6 -0
- package/dist/components/table/src/composables/use-scrollbar.js +24 -0
- package/dist/components/table/src/config.d.ts +87 -0
- package/dist/components/table/src/config.js +210 -0
- package/dist/components/table/src/filter-panel.vue.d.ts +837 -0
- package/dist/components/table/src/filter-panel.vue.js +130 -0
- package/dist/components/table/src/filter-panel2.vue.js +155 -0
- package/dist/components/table/src/h-helper.d.ts +13 -0
- package/dist/components/table/src/h-helper.js +30 -0
- package/dist/components/table/src/layout-observer.d.ts +8 -0
- package/dist/components/table/src/layout-observer.js +49 -0
- package/dist/components/table/src/store/current.d.ts +15 -0
- package/dist/components/table/src/store/current.js +45 -0
- package/dist/components/table/src/store/expand.d.ts +14 -0
- package/dist/components/table/src/store/expand.js +55 -0
- package/dist/components/table/src/store/helper.d.ts +548 -0
- package/dist/components/table/src/store/helper.js +61 -0
- package/dist/components/table/src/store/index.d.ts +1107 -0
- package/dist/components/table/src/store/index.js +123 -0
- package/dist/components/table/src/store/tree.d.ts +27 -0
- package/dist/components/table/src/store/tree.js +153 -0
- package/dist/components/table/src/store/watcher.d.ts +88 -0
- package/dist/components/table/src/store/watcher.js +483 -0
- package/dist/components/table/src/table/defaults.d.ts +560 -0
- package/dist/components/table/src/table/defaults.js +236 -0
- package/dist/components/table/src/table/key-render-helper.d.ts +2 -0
- package/dist/components/table/src/table/key-render-helper.js +18 -0
- package/dist/components/table/src/table/style-helper.d.ts +51 -0
- package/dist/components/table/src/table/style-helper.js +169 -0
- package/dist/components/table/src/table/utils-helper.d.ts +16 -0
- package/dist/components/table/src/table/utils-helper.js +36 -0
- package/dist/components/table/src/table-body/defaults.d.ts +39 -0
- package/dist/components/table/src/table-body/defaults.js +25 -0
- package/dist/components/table/src/table-body/events-helper.d.ts +19 -0
- package/dist/components/table/src/table-body/events-helper.js +126 -0
- package/dist/components/table/src/table-body/index.d.ts +84 -0
- package/dist/components/table/src/table-body/index.js +77 -0
- package/dist/components/table/src/table-body/render-helper.d.ts +18 -0
- package/dist/components/table/src/table-body/render-helper.js +188 -0
- package/dist/components/table/src/table-body/styles-helper.d.ts +15 -0
- package/dist/components/table/src/table-body/styles-helper.js +98 -0
- package/dist/components/table/src/table-body/td-wrapper.vue.d.ts +33 -0
- package/dist/components/table/src/table-body/td-wrapper.vue.js +26 -0
- package/dist/components/table/src/table-body/td-wrapper2.vue.js +4 -0
- package/dist/components/table/src/table-column/defaults.d.ts +348 -0
- package/dist/components/table/src/table-column/defaults.js +152 -0
- package/dist/components/table/src/table-column/index.d.ts +2 -0
- package/dist/components/table/src/table-column/index.vue.d.ts +32 -0
- package/dist/components/table/src/table-column/index.vue.js +161 -0
- package/dist/components/table/src/table-column/index2.vue.js +4 -0
- package/dist/components/table/src/table-column/render-helper.d.ts +17 -0
- package/dist/components/table/src/table-column/render-helper.js +116 -0
- package/dist/components/table/src/table-column/watcher-helper.d.ts +8 -0
- package/dist/components/table/src/table-column/watcher-helper.js +85 -0
- package/dist/components/table/src/table-footer/index.d.ts +79 -0
- package/dist/components/table/src/table-footer/index.js +110 -0
- package/dist/components/table/src/table-footer/mapState-helper.d.ts +9 -0
- package/dist/components/table/src/table-footer/mapState-helper.js +16 -0
- package/dist/components/table/src/table-footer/style-helper.d.ts +9 -0
- package/dist/components/table/src/table-footer/style-helper.js +42 -0
- package/dist/components/table/src/table-header/event-helper.d.ts +14 -0
- package/dist/components/table/src/table-header/event-helper.js +113 -0
- package/dist/components/table/src/table-header/index.d.ts +361 -0
- package/dist/components/table/src/table-header/index.js +255 -0
- package/dist/components/table/src/table-header/style.helper.d.ts +10 -0
- package/dist/components/table/src/table-header/style.helper.js +73 -0
- package/dist/components/table/src/table-header/utils-helper.d.ts +10 -0
- package/dist/components/table/src/table-header/utils-helper.js +45 -0
- package/dist/components/table/src/table-layout.d.ts +37 -0
- package/dist/components/table/src/table-layout.js +144 -0
- package/dist/components/table/src/table.vue.d.ts +734 -0
- package/dist/components/table/src/table.vue.js +443 -0
- package/dist/components/table/src/table2.vue.js +4 -0
- package/dist/components/table/src/tableColumn.d.ts +2 -0
- package/dist/components/table/src/tokens.d.ts +3 -0
- package/dist/components/table/src/tokens.js +4 -0
- package/dist/components/table/src/util.d.ts +55 -0
- package/dist/components/table/src/util.js +310 -0
- package/dist/components/table-column/index.d.ts +40 -3
- package/dist/components/table-column/index.js +6 -3
- package/dist/components/upload/index.d.ts +45 -2
- package/dist/components/upload/index.js +23 -4
- package/dist/components/upload/src/ajax.d.ts +9 -0
- package/dist/components/upload/src/ajax.js +58 -0
- package/dist/components/upload/src/constants.d.ts +5 -0
- package/dist/components/upload/src/constants.js +4 -0
- package/dist/components/upload/src/upload-content.d.ts +136 -0
- package/dist/components/upload/src/upload-content.js +53 -0
- package/dist/components/upload/src/upload-content.vue.d.ts +38 -0
- package/dist/components/upload/src/upload-content.vue.js +186 -0
- package/dist/components/upload/src/upload-content2.vue.js +4 -0
- package/dist/components/upload/src/upload-dragger.d.ts +22 -0
- package/dist/components/upload/src/upload-dragger.js +19 -0
- package/dist/components/upload/src/upload-dragger.vue.d.ts +19 -0
- package/dist/components/upload/src/upload-dragger.vue.js +91 -0
- package/dist/components/upload/src/upload-dragger2.vue.js +4 -0
- package/dist/components/upload/src/upload-list.d.ts +45 -0
- package/dist/components/upload/src/upload-list.js +39 -0
- package/dist/components/upload/src/upload-list.vue.d.ts +28 -0
- package/dist/components/upload/src/upload-list.vue.js +182 -0
- package/dist/components/upload/src/upload-list2.vue.js +4 -0
- package/dist/components/upload/src/upload.d.ts +361 -0
- package/dist/components/upload/src/upload.js +216 -0
- package/dist/components/upload/src/upload.vue.d.ts +64 -0
- package/dist/components/upload/src/upload.vue.js +150 -0
- package/dist/components/upload/src/upload2.vue.js +4 -0
- package/dist/components/upload/src/use-handlers.d.ts +60 -0
- package/dist/components/upload/src/use-handlers.js +111 -0
- package/dist/directives/mousewheel/index.js +28 -0
- package/dist/ep-craft.js +277 -236
- package/dist/index.d.ts +67 -0
- package/dist/utils/dom/event.js +12 -11
- package/dist/utils/objects.js +10 -9
- package/dist/utils/vue/install.js +21 -18
- package/dist/utils/vue/refs.js +8 -0
- package/dist/vendored-components.d.ts +1 -1
- package/dist/vendored-components.js +44 -4
- package/package.json +1 -1
- package/dist/components/dropdown-item/index.js +0 -6
- package/dist/components/dropdown-menu/index.js +0 -6
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import type { Placement } from '@element-plus/components/popper';
|
|
2
|
+
import type { Options } from '@popperjs/core';
|
|
3
|
+
import type { ButtonProps, ButtonType } from '@element-plus/components/button';
|
|
4
|
+
import type { ComponentInternalInstance, ComputedRef } from 'vue';
|
|
5
|
+
import type { Arrayable, Nullable } from '@element-plus/utils';
|
|
6
|
+
export interface IElDropdownInstance {
|
|
7
|
+
instance?: ComponentInternalInstance;
|
|
8
|
+
dropdownSize?: ComputedRef<string>;
|
|
9
|
+
handleClick?: () => void;
|
|
10
|
+
commandHandler?: (...arg: any[]) => void;
|
|
11
|
+
show?: () => void;
|
|
12
|
+
hide?: () => void;
|
|
13
|
+
trigger?: ComputedRef<string>;
|
|
14
|
+
hideOnClick?: ComputedRef<boolean>;
|
|
15
|
+
triggerElm?: ComputedRef<Nullable<HTMLButtonElement>>;
|
|
16
|
+
}
|
|
17
|
+
export declare const dropdownProps: {
|
|
18
|
+
readonly trigger: {
|
|
19
|
+
readonly type: import("vue").PropType<Arrayable<"click" | "contextmenu" | "hover">>;
|
|
20
|
+
readonly required: false;
|
|
21
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
22
|
+
readonly __epPropKey: true;
|
|
23
|
+
readonly default: "hover";
|
|
24
|
+
};
|
|
25
|
+
readonly triggerKeys: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => string[], boolean>;
|
|
26
|
+
readonly virtualTriggering: BooleanConstructor;
|
|
27
|
+
readonly virtualRef: {
|
|
28
|
+
readonly type: import("vue").PropType<import("@element-plus/components/popper").Measurable>;
|
|
29
|
+
readonly required: false;
|
|
30
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
31
|
+
__epPropKey: true;
|
|
32
|
+
};
|
|
33
|
+
readonly effect: {
|
|
34
|
+
readonly default: "light";
|
|
35
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/components/popper").PopperEffect) | (((new (...args: any[]) => string) | (() => import("@element-plus/components/popper").PopperEffect)) | null)[], unknown, unknown>>;
|
|
36
|
+
readonly required: false;
|
|
37
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
38
|
+
readonly __epPropKey: true;
|
|
39
|
+
};
|
|
40
|
+
readonly type: {
|
|
41
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger") | (() => ButtonType) | (((new (...args: any[]) => "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger") | (() => ButtonType)) | null)[], unknown, unknown>>;
|
|
42
|
+
readonly required: false;
|
|
43
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
44
|
+
__epPropKey: true;
|
|
45
|
+
};
|
|
46
|
+
readonly placement: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement)) | null)[], unknown, unknown, "bottom", boolean>;
|
|
47
|
+
readonly popperOptions: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | (((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>)) | null)[], unknown, unknown, () => {}, boolean>;
|
|
48
|
+
readonly id: StringConstructor;
|
|
49
|
+
readonly size: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
50
|
+
readonly splitButton: BooleanConstructor;
|
|
51
|
+
readonly hideOnClick: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
52
|
+
readonly loop: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
53
|
+
readonly showArrow: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
54
|
+
readonly showTimeout: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
55
|
+
readonly hideTimeout: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
56
|
+
readonly tabindex: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown, 0, boolean>;
|
|
57
|
+
readonly maxHeight: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown, "", boolean>;
|
|
58
|
+
readonly popperClass: {
|
|
59
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | {
|
|
60
|
+
[x: string]: boolean;
|
|
61
|
+
} | (string | {
|
|
62
|
+
[x: string]: boolean;
|
|
63
|
+
} | (string | {
|
|
64
|
+
[x: string]: boolean;
|
|
65
|
+
} | (string | {
|
|
66
|
+
[x: string]: boolean;
|
|
67
|
+
} | (string | {
|
|
68
|
+
[x: string]: boolean;
|
|
69
|
+
} | (string | {
|
|
70
|
+
[x: string]: boolean;
|
|
71
|
+
} | (string | {
|
|
72
|
+
[x: string]: boolean;
|
|
73
|
+
} | (string | {
|
|
74
|
+
[x: string]: boolean;
|
|
75
|
+
} | (string | {
|
|
76
|
+
[x: string]: boolean;
|
|
77
|
+
} | (string | {
|
|
78
|
+
[x: string]: boolean;
|
|
79
|
+
} | (string | {
|
|
80
|
+
[x: string]: boolean;
|
|
81
|
+
} | (string | {
|
|
82
|
+
[x: string]: boolean;
|
|
83
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
84
|
+
[x: string]: boolean;
|
|
85
|
+
} | (string | {
|
|
86
|
+
[x: string]: boolean;
|
|
87
|
+
} | (string | {
|
|
88
|
+
[x: string]: boolean;
|
|
89
|
+
} | (string | {
|
|
90
|
+
[x: string]: boolean;
|
|
91
|
+
} | (string | {
|
|
92
|
+
[x: string]: boolean;
|
|
93
|
+
} | (string | {
|
|
94
|
+
[x: string]: boolean;
|
|
95
|
+
} | (string | {
|
|
96
|
+
[x: string]: boolean;
|
|
97
|
+
} | (string | {
|
|
98
|
+
[x: string]: boolean;
|
|
99
|
+
} | (string | {
|
|
100
|
+
[x: string]: boolean;
|
|
101
|
+
} | (string | {
|
|
102
|
+
[x: string]: boolean;
|
|
103
|
+
} | (string | {
|
|
104
|
+
[x: string]: boolean;
|
|
105
|
+
} | (string | {
|
|
106
|
+
[x: string]: boolean;
|
|
107
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (((new (...args: any[]) => string | {
|
|
108
|
+
[x: string]: boolean;
|
|
109
|
+
} | (string | {
|
|
110
|
+
[x: string]: boolean;
|
|
111
|
+
} | (string | {
|
|
112
|
+
[x: string]: boolean;
|
|
113
|
+
} | (string | {
|
|
114
|
+
[x: string]: boolean;
|
|
115
|
+
} | (string | {
|
|
116
|
+
[x: string]: boolean;
|
|
117
|
+
} | (string | {
|
|
118
|
+
[x: string]: boolean;
|
|
119
|
+
} | (string | {
|
|
120
|
+
[x: string]: boolean;
|
|
121
|
+
} | (string | {
|
|
122
|
+
[x: string]: boolean;
|
|
123
|
+
} | (string | {
|
|
124
|
+
[x: string]: boolean;
|
|
125
|
+
} | (string | {
|
|
126
|
+
[x: string]: boolean;
|
|
127
|
+
} | (string | {
|
|
128
|
+
[x: string]: boolean;
|
|
129
|
+
} | (string | {
|
|
130
|
+
[x: string]: boolean;
|
|
131
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
132
|
+
[x: string]: boolean;
|
|
133
|
+
} | (string | {
|
|
134
|
+
[x: string]: boolean;
|
|
135
|
+
} | (string | {
|
|
136
|
+
[x: string]: boolean;
|
|
137
|
+
} | (string | {
|
|
138
|
+
[x: string]: boolean;
|
|
139
|
+
} | (string | {
|
|
140
|
+
[x: string]: boolean;
|
|
141
|
+
} | (string | {
|
|
142
|
+
[x: string]: boolean;
|
|
143
|
+
} | (string | {
|
|
144
|
+
[x: string]: boolean;
|
|
145
|
+
} | (string | {
|
|
146
|
+
[x: string]: boolean;
|
|
147
|
+
} | (string | {
|
|
148
|
+
[x: string]: boolean;
|
|
149
|
+
} | (string | {
|
|
150
|
+
[x: string]: boolean;
|
|
151
|
+
} | (string | {
|
|
152
|
+
[x: string]: boolean;
|
|
153
|
+
} | (string | {
|
|
154
|
+
[x: string]: boolean;
|
|
155
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[])) | null)[], unknown, unknown>>;
|
|
156
|
+
readonly required: false;
|
|
157
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
158
|
+
__epPropKey: true;
|
|
159
|
+
};
|
|
160
|
+
readonly popperStyle: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
161
|
+
readonly disabled: BooleanConstructor;
|
|
162
|
+
readonly role: import("@element-plus/utils").EpPropFinalized<StringConstructor, "listbox" | "grid" | "menu" | "tooltip" | "dialog" | "tree" | "group" | "navigation", unknown, "menu", boolean>;
|
|
163
|
+
readonly buttonProps: {
|
|
164
|
+
readonly type: import("vue").PropType<Partial<ButtonProps>>;
|
|
165
|
+
readonly required: false;
|
|
166
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
167
|
+
__epPropKey: true;
|
|
168
|
+
};
|
|
169
|
+
readonly teleported: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
170
|
+
readonly appendTo: {
|
|
171
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>>;
|
|
172
|
+
readonly required: false;
|
|
173
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
174
|
+
__epPropKey: true;
|
|
175
|
+
};
|
|
176
|
+
readonly persistent: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
177
|
+
};
|
|
178
|
+
export declare const dropdownItemProps: {
|
|
179
|
+
readonly command: import("@element-plus/utils").EpPropFinalized<readonly [ObjectConstructor, StringConstructor, NumberConstructor], unknown, unknown, () => {}, boolean>;
|
|
180
|
+
readonly disabled: BooleanConstructor;
|
|
181
|
+
readonly divided: BooleanConstructor;
|
|
182
|
+
readonly textValue: StringConstructor;
|
|
183
|
+
readonly icon: {
|
|
184
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>>;
|
|
185
|
+
readonly required: false;
|
|
186
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
187
|
+
__epPropKey: true;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
export declare const dropdownMenuProps: {
|
|
191
|
+
onKeydown: {
|
|
192
|
+
readonly type: import("vue").PropType<(e: KeyboardEvent) => void>;
|
|
193
|
+
readonly required: false;
|
|
194
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
195
|
+
__epPropKey: true;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
export declare const FIRST_KEYS: string[];
|
|
199
|
+
export declare const LAST_KEYS: string[];
|
|
200
|
+
export declare const FIRST_LAST_KEYS: string[];
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import "@vue/shared";
|
|
2
|
+
import "lodash-unified";
|
|
3
|
+
import "@vueuse/core";
|
|
4
|
+
import { EVENT_CODE as e } from "../../../constants/aria.js";
|
|
5
|
+
import { iconPropType as i } from "../../../utils/vue/icon.js";
|
|
6
|
+
import "vue";
|
|
7
|
+
import { buildProps as p, definePropType as t } from "../../../utils/vue/props/runtime.js";
|
|
8
|
+
import "../../tooltip/index.js";
|
|
9
|
+
import "../../popper/index.js";
|
|
10
|
+
import { useTooltipContentProps as o } from "../../tooltip/src/content.js";
|
|
11
|
+
import { roleTypes as n } from "../../popper/src/popper.js";
|
|
12
|
+
import { useTooltipTriggerProps as r } from "../../tooltip/src/trigger.js";
|
|
13
|
+
const B = p({
|
|
14
|
+
/**
|
|
15
|
+
* @description how to trigger
|
|
16
|
+
*/
|
|
17
|
+
trigger: {
|
|
18
|
+
...r.trigger,
|
|
19
|
+
type: t([
|
|
20
|
+
String,
|
|
21
|
+
Array
|
|
22
|
+
])
|
|
23
|
+
},
|
|
24
|
+
triggerKeys: {
|
|
25
|
+
type: t(Array),
|
|
26
|
+
default: () => [
|
|
27
|
+
e.enter,
|
|
28
|
+
e.numpadEnter,
|
|
29
|
+
e.space,
|
|
30
|
+
e.down
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* @description Indicates whether virtual triggering is enabled
|
|
35
|
+
*/
|
|
36
|
+
virtualTriggering: r.virtualTriggering,
|
|
37
|
+
/**
|
|
38
|
+
* @description Indicates the reference element to which the dropdown is attached
|
|
39
|
+
*/
|
|
40
|
+
virtualRef: r.virtualRef,
|
|
41
|
+
/**
|
|
42
|
+
* @description Tooltip theme, built-in theme: `dark` / `light`
|
|
43
|
+
*/
|
|
44
|
+
effect: {
|
|
45
|
+
...o.effect,
|
|
46
|
+
default: "light"
|
|
47
|
+
},
|
|
48
|
+
/**
|
|
49
|
+
* @description menu button type, refer to `Button` Component, only works when `split-button` is true
|
|
50
|
+
*/
|
|
51
|
+
type: {
|
|
52
|
+
type: t(String)
|
|
53
|
+
},
|
|
54
|
+
/**
|
|
55
|
+
* @description placement of pop menu
|
|
56
|
+
*/
|
|
57
|
+
placement: {
|
|
58
|
+
type: t(String),
|
|
59
|
+
default: "bottom"
|
|
60
|
+
},
|
|
61
|
+
/**
|
|
62
|
+
* @description [popper.js](https://popper.js.org/docs/v2/) parameters
|
|
63
|
+
*/
|
|
64
|
+
popperOptions: {
|
|
65
|
+
type: t(Object),
|
|
66
|
+
default: () => ({})
|
|
67
|
+
},
|
|
68
|
+
id: String,
|
|
69
|
+
/**
|
|
70
|
+
* @description menu size, also works on the split button
|
|
71
|
+
*/
|
|
72
|
+
size: {
|
|
73
|
+
type: String,
|
|
74
|
+
default: ""
|
|
75
|
+
},
|
|
76
|
+
/**
|
|
77
|
+
* @description whether a button group is displayed
|
|
78
|
+
*/
|
|
79
|
+
splitButton: Boolean,
|
|
80
|
+
/**
|
|
81
|
+
* @description whether to hide menu after clicking menu-item
|
|
82
|
+
*/
|
|
83
|
+
hideOnClick: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: !0
|
|
86
|
+
},
|
|
87
|
+
loop: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: !0
|
|
90
|
+
},
|
|
91
|
+
/**
|
|
92
|
+
* @description whether the tooltip content has an arrow
|
|
93
|
+
*/
|
|
94
|
+
showArrow: {
|
|
95
|
+
type: Boolean,
|
|
96
|
+
default: !0
|
|
97
|
+
},
|
|
98
|
+
/**
|
|
99
|
+
* @description delay time before show a dropdown (only works when trigger is `hover`)
|
|
100
|
+
*/
|
|
101
|
+
showTimeout: {
|
|
102
|
+
type: Number,
|
|
103
|
+
default: 150
|
|
104
|
+
},
|
|
105
|
+
/**
|
|
106
|
+
* @description delay time before hide a dropdown (only works when trigger is `hover`)
|
|
107
|
+
*/
|
|
108
|
+
hideTimeout: {
|
|
109
|
+
type: Number,
|
|
110
|
+
default: 150
|
|
111
|
+
},
|
|
112
|
+
/**
|
|
113
|
+
* @description [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of Dropdown
|
|
114
|
+
*/
|
|
115
|
+
tabindex: {
|
|
116
|
+
type: t([Number, String]),
|
|
117
|
+
default: 0
|
|
118
|
+
},
|
|
119
|
+
/**
|
|
120
|
+
* @description the max height of menu
|
|
121
|
+
*/
|
|
122
|
+
maxHeight: {
|
|
123
|
+
type: t([Number, String]),
|
|
124
|
+
default: ""
|
|
125
|
+
},
|
|
126
|
+
/**
|
|
127
|
+
* @description custom class name for Dropdown's dropdown
|
|
128
|
+
*/
|
|
129
|
+
popperClass: o.popperClass,
|
|
130
|
+
/**
|
|
131
|
+
* @description custom style for Dropdown's dropdown
|
|
132
|
+
*/
|
|
133
|
+
popperStyle: o.popperStyle,
|
|
134
|
+
/**
|
|
135
|
+
* @description whether to disable
|
|
136
|
+
*/
|
|
137
|
+
disabled: Boolean,
|
|
138
|
+
/**
|
|
139
|
+
* @description the ARIA role attribute for the dropdown menu. Depending on the use case, you may want to change this to 'navigation'
|
|
140
|
+
*/
|
|
141
|
+
role: {
|
|
142
|
+
type: String,
|
|
143
|
+
values: n,
|
|
144
|
+
default: "menu"
|
|
145
|
+
},
|
|
146
|
+
buttonProps: {
|
|
147
|
+
type: t(Object)
|
|
148
|
+
},
|
|
149
|
+
/**
|
|
150
|
+
* @description whether the dropdown popup is teleported to the body
|
|
151
|
+
*/
|
|
152
|
+
teleported: o.teleported,
|
|
153
|
+
/**
|
|
154
|
+
* @description which element the dropdown CONTENT appends to
|
|
155
|
+
*/
|
|
156
|
+
appendTo: o.appendTo,
|
|
157
|
+
/**
|
|
158
|
+
* @description when dropdown inactive and `persistent` is `false` , dropdown menu will be destroyed
|
|
159
|
+
*/
|
|
160
|
+
persistent: {
|
|
161
|
+
type: Boolean,
|
|
162
|
+
default: !0
|
|
163
|
+
}
|
|
164
|
+
}), P = p({
|
|
165
|
+
/**
|
|
166
|
+
* @description a command to be dispatched to Dropdown's `command` callback
|
|
167
|
+
*/
|
|
168
|
+
command: {
|
|
169
|
+
type: [Object, String, Number],
|
|
170
|
+
default: () => ({})
|
|
171
|
+
},
|
|
172
|
+
/**
|
|
173
|
+
* @description whether the item is disabled
|
|
174
|
+
*/
|
|
175
|
+
disabled: Boolean,
|
|
176
|
+
/**
|
|
177
|
+
* @description whether a divider is displayed
|
|
178
|
+
*/
|
|
179
|
+
divided: Boolean,
|
|
180
|
+
textValue: String,
|
|
181
|
+
/**
|
|
182
|
+
* @description custom icon
|
|
183
|
+
*/
|
|
184
|
+
icon: {
|
|
185
|
+
type: i
|
|
186
|
+
}
|
|
187
|
+
}), h = p({
|
|
188
|
+
onKeydown: { type: t(Function) }
|
|
189
|
+
}), l = [
|
|
190
|
+
e.down,
|
|
191
|
+
e.pageDown,
|
|
192
|
+
e.home
|
|
193
|
+
], a = [e.up, e.pageUp, e.end], E = [...l, ...a];
|
|
194
|
+
export {
|
|
195
|
+
l as FIRST_KEYS,
|
|
196
|
+
E as FIRST_LAST_KEYS,
|
|
197
|
+
a as LAST_KEYS,
|
|
198
|
+
P as dropdownItemProps,
|
|
199
|
+
h as dropdownMenuProps,
|
|
200
|
+
B as dropdownProps
|
|
201
|
+
};
|