ep-craft 0.1.26 → 0.1.27
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/date-picker/src/date-picker.js +38 -34
- package/dist/components/date-picker/src/props.js +19 -7
- package/dist/components/form/src/types.d.ts +1 -1
- package/dist/components/scrollbar/index.d.ts +1 -0
- package/dist/components/scrollbar/src/util.d.ts +40 -0
- package/dist/components/scrollbar/src/util.js +25 -0
- package/dist/components/select/select.vue.d.ts +8 -8
- package/dist/components/select/src/useSelect.d.ts +2 -2
- package/dist/components/select-v2/index.d.ts +6 -2
- package/dist/components/select-v2/index.js +7 -4
- package/dist/components/select-v2/src/defaults.d.ts +258 -0
- package/dist/components/select-v2/src/defaults.js +359 -0
- package/dist/components/select-v2/src/group-item.vue.d.ts +40 -0
- package/dist/components/select-v2/src/group-item.vue.js +13 -0
- package/dist/components/select-v2/src/group-item2.vue.js +33 -0
- package/dist/components/select-v2/src/option-item.vue.d.ts +66 -0
- package/dist/components/select-v2/src/option-item.vue.js +37 -0
- package/dist/components/select-v2/src/option-item2.vue.js +46 -0
- package/dist/components/select-v2/src/select-dropdown.d.ts +53 -0
- package/dist/components/select-v2/src/select-dropdown.js +209 -0
- package/dist/components/select-v2/src/select.types.d.ts +2 -1
- package/dist/components/select-v2/src/select.vue.d.ts +918 -0
- package/dist/components/select-v2/src/select.vue.js +388 -0
- package/dist/components/select-v2/src/select2.vue.js +86 -0
- package/dist/components/select-v2/src/token.d.ts +16 -0
- package/dist/components/select-v2/src/token.js +6 -0
- package/dist/components/select-v2/src/useAllowCreate.d.ts +8 -0
- package/dist/components/select-v2/src/useAllowCreate.js +64 -0
- package/dist/components/select-v2/src/useOption.d.ts +7 -0
- package/dist/components/select-v2/src/useOption.js +13 -0
- package/dist/components/select-v2/src/useProps.d.ts +2 -3
- package/dist/components/select-v2/src/useSelect.d.ts +129 -0
- package/dist/components/select-v2/src/useSelect.js +501 -0
- package/dist/components/time-picker/index.js +10 -11
- package/dist/components/time-picker/src/common/picker.vue.d.ts +131 -125
- package/dist/components/time-picker/src/common/picker.vue.js +163 -160
- package/dist/components/time-picker/src/common/props.d.ts +0 -1
- package/dist/components/time-picker/src/common/props.js +13 -14
- package/dist/components/time-picker/src/time-picker.d.ts +0 -3
- package/dist/components/virtual-list/index.d.ts +8 -0
- package/dist/components/virtual-list/src/builders/build-list.d.ts +187 -0
- package/dist/components/virtual-list/src/builders/build-list.js +363 -0
- package/dist/components/virtual-list/src/components/dynamic-size-list.d.ts +186 -0
- package/dist/components/virtual-list/src/components/dynamic-size-list.js +112 -0
- package/dist/components/virtual-list/src/components/fixed-size-list.d.ts +185 -0
- package/dist/components/virtual-list/src/components/fixed-size-list.js +68 -0
- package/dist/components/virtual-list/src/components/scrollbar.d.ts +79 -0
- package/dist/components/virtual-list/src/components/scrollbar.js +134 -0
- package/dist/components/virtual-list/src/defaults.d.ts +27 -0
- package/dist/components/virtual-list/src/defaults.js +26 -0
- package/dist/components/virtual-list/src/hooks/use-cache.d.ts +1 -0
- package/dist/components/virtual-list/src/hooks/use-cache.js +13 -0
- package/dist/components/virtual-list/src/hooks/use-wheel.d.ts +13 -0
- package/dist/components/virtual-list/src/hooks/use-wheel.js +26 -0
- package/dist/components/virtual-list/src/props.d.ts +211 -0
- package/dist/components/virtual-list/src/props.js +151 -0
- package/dist/components/virtual-list/src/types.d.ts +152 -0
- package/dist/components/virtual-list/src/utils.d.ts +16 -0
- package/dist/components/virtual-list/src/utils.js +22 -0
- package/dist/hooks/use-float-label/index.d.ts +6 -2
- package/dist/hooks/use-float-label/index.js +11 -7
- package/dist/index.css +1 -1
- package/dist/vendored-components.d.ts +1 -1
- package/dist/vendored-components.js +1 -0
- package/package.json +2 -1
- package/theme-chalk/src/float-label.scss +57 -0
|
@@ -1,68 +1,72 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as _, computed as P, provide as a, reactive as s, toRef as O, ref as T, createVNode as n, mergeProps as l, isVNode as b } from "vue";
|
|
2
2
|
import "../../time-picker/index.js";
|
|
3
|
-
import { UPDATE_MODEL_EVENT as
|
|
4
|
-
import { EpDatePickerPanel as
|
|
5
|
-
import { datePickerProps as
|
|
6
|
-
import { ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY as
|
|
7
|
-
import { PICKER_POPPER_OPTIONS_INJECTION_KEY as
|
|
8
|
-
import
|
|
9
|
-
function
|
|
10
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !
|
|
3
|
+
import { UPDATE_MODEL_EVENT as i } from "../../../constants/event.js";
|
|
4
|
+
import { EpDatePickerPanel as D } from "../../date-picker-panel/index.js";
|
|
5
|
+
import { datePickerProps as A } from "./props.js";
|
|
6
|
+
import { ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY as I } from "../../date-picker-panel/src/constants.js";
|
|
7
|
+
import { PICKER_POPPER_OPTIONS_INJECTION_KEY as R, DEFAULT_FORMATS_DATEPICKER as C, DEFAULT_FORMATS_DATE as N } from "../../time-picker/src/constants.js";
|
|
8
|
+
import F from "../../time-picker/src/common/picker.vue.js";
|
|
9
|
+
function k(t) {
|
|
10
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !b(t);
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const h = /* @__PURE__ */ _({
|
|
13
13
|
name: "EpDatePicker",
|
|
14
14
|
install: null,
|
|
15
|
-
props:
|
|
16
|
-
emits: [
|
|
15
|
+
props: A,
|
|
16
|
+
emits: [i],
|
|
17
17
|
setup(t, {
|
|
18
|
-
expose:
|
|
19
|
-
emit:
|
|
20
|
-
slots:
|
|
18
|
+
expose: f,
|
|
19
|
+
emit: m,
|
|
20
|
+
slots: r
|
|
21
21
|
}) {
|
|
22
|
-
const
|
|
23
|
-
a(
|
|
24
|
-
const
|
|
25
|
-
|
|
22
|
+
const c = P(() => !t.format);
|
|
23
|
+
a(I, c), a(R, s(O(t, "popperOptions")));
|
|
24
|
+
const o = T();
|
|
25
|
+
f({
|
|
26
26
|
focus: () => {
|
|
27
27
|
var e;
|
|
28
|
-
(e =
|
|
28
|
+
(e = o.value) == null || e.focus();
|
|
29
29
|
},
|
|
30
30
|
blur: () => {
|
|
31
31
|
var e;
|
|
32
|
-
(e =
|
|
32
|
+
(e = o.value) == null || e.blur();
|
|
33
33
|
},
|
|
34
34
|
handleOpen: () => {
|
|
35
35
|
var e;
|
|
36
|
-
(e =
|
|
36
|
+
(e = o.value) == null || e.handleOpen();
|
|
37
37
|
},
|
|
38
38
|
handleClose: () => {
|
|
39
39
|
var e;
|
|
40
|
-
(e =
|
|
40
|
+
(e = o.value) == null || e.handleClose();
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
-
const
|
|
44
|
-
|
|
43
|
+
const d = (e) => {
|
|
44
|
+
m(i, e);
|
|
45
45
|
};
|
|
46
46
|
return () => {
|
|
47
|
-
const e = t.format ?? (
|
|
48
|
-
|
|
47
|
+
const e = t.format ?? (C[t.type] || N), {
|
|
48
|
+
floatLabel: p,
|
|
49
|
+
...u
|
|
50
|
+
} = t;
|
|
51
|
+
return n(F, l(u, {
|
|
52
|
+
floatLabelEnabled: p,
|
|
49
53
|
format: e,
|
|
50
54
|
type: t.type,
|
|
51
|
-
ref:
|
|
52
|
-
"onUpdate:modelValue":
|
|
55
|
+
ref: o,
|
|
56
|
+
"onUpdate:modelValue": d
|
|
53
57
|
}), {
|
|
54
|
-
default: (
|
|
58
|
+
default: (E) => n(D, l({
|
|
55
59
|
disabled: t.disabled,
|
|
56
60
|
editable: t.editable,
|
|
57
61
|
border: !1
|
|
58
|
-
},
|
|
59
|
-
default: () => [
|
|
62
|
+
}, E), k(r) ? r : {
|
|
63
|
+
default: () => [r]
|
|
60
64
|
}),
|
|
61
|
-
"range-separator":
|
|
65
|
+
"range-separator": r["range-separator"]
|
|
62
66
|
});
|
|
63
67
|
};
|
|
64
68
|
}
|
|
65
69
|
});
|
|
66
70
|
export {
|
|
67
|
-
|
|
71
|
+
h as default
|
|
68
72
|
};
|
|
@@ -1,21 +1,33 @@
|
|
|
1
1
|
import "../../time-picker/index.js";
|
|
2
|
+
import "vue";
|
|
2
3
|
import "@vue/shared";
|
|
3
4
|
import "lodash-unified";
|
|
4
5
|
import "@vueuse/core";
|
|
5
6
|
import "@element-plus/icons-vue";
|
|
6
|
-
import { buildProps as r, definePropType as
|
|
7
|
-
import "
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
import { buildProps as r, definePropType as o } from "../../../utils/vue/props/runtime.js";
|
|
8
|
+
import "../../../hooks/use-size/index.js";
|
|
9
|
+
import "@popperjs/core";
|
|
10
|
+
import "../../../hooks/use-z-index/index.js";
|
|
11
|
+
import "../../../hooks/use-delayed-toggle/index.js";
|
|
12
|
+
import "../../../hooks/use-aria/index.js";
|
|
13
|
+
import "../../../hooks/use-model-toggle/index.js";
|
|
14
|
+
import "../../../hooks/use-empty-values/index.js";
|
|
15
|
+
import { floatLabelProp as t } from "../../../hooks/use-float-label/index.js";
|
|
16
|
+
import { timePickerDefaultProps as p } from "../../time-picker/src/common/props.js";
|
|
17
|
+
const x = r({
|
|
18
|
+
...p,
|
|
19
|
+
// 浮动标签仅由 date-picker 对外提供:time-picker 与 date-picker 共用
|
|
20
|
+
// timePickerDefaultProps 基座,故该属性在此单独声明,不放进共享基座,
|
|
21
|
+
// 以免独立 EpTimePicker 顺带获得浮动能力(见 design.md Out of Boundary)。
|
|
22
|
+
...t,
|
|
11
23
|
/**
|
|
12
24
|
* @description type of the picker
|
|
13
25
|
*/
|
|
14
26
|
type: {
|
|
15
|
-
type:
|
|
27
|
+
type: o(String),
|
|
16
28
|
default: "date"
|
|
17
29
|
}
|
|
18
30
|
});
|
|
19
31
|
export {
|
|
20
|
-
|
|
32
|
+
x as datePickerProps
|
|
21
33
|
};
|
|
@@ -8,7 +8,7 @@ export interface FormItemContext {
|
|
|
8
8
|
size?: ComponentSize;
|
|
9
9
|
$el?: HTMLDivElement | undefined;
|
|
10
10
|
validateMessage?: string;
|
|
11
|
-
validateState?:
|
|
11
|
+
validateState?: '' | 'error' | 'validating' | 'success';
|
|
12
12
|
isGroup?: boolean;
|
|
13
13
|
labelId?: string;
|
|
14
14
|
inputIds?: string[];
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { CSSProperties } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* scrollbar 源码化子集 —— 仅为 virtual-list 的 scrollbar 包装提供工具导出。
|
|
4
|
+
*
|
|
5
|
+
* scrollbar 组件本体仍走薄包装(见 index.ts),此处仅补齐
|
|
6
|
+
* virtual-list/src/components/scrollbar 依赖的 `BAR_MAP` 等命名导出。
|
|
7
|
+
* 上游 renderThumbStyle 的入参类型引用 `Pick<ThumbProps, 'move' | 'size'>`,
|
|
8
|
+
* 因本地未 vendor `thumb.ts`(ThumbProps 来源缺失),故将 `Pick<ThumbProps,
|
|
9
|
+
* 'move' | 'size'>` 就地内联为等价结构类型 `{ move?: number; size?: string }`
|
|
10
|
+
* (上游 `size` 为可选 string、`move` 为可选 number)。
|
|
11
|
+
*/
|
|
12
|
+
export declare const GAP = 4;
|
|
13
|
+
export declare const BAR_MAP: {
|
|
14
|
+
readonly vertical: {
|
|
15
|
+
readonly offset: "offsetHeight";
|
|
16
|
+
readonly scroll: "scrollTop";
|
|
17
|
+
readonly scrollSize: "scrollHeight";
|
|
18
|
+
readonly size: "height";
|
|
19
|
+
readonly key: "vertical";
|
|
20
|
+
readonly axis: "Y";
|
|
21
|
+
readonly client: "clientY";
|
|
22
|
+
readonly direction: "top";
|
|
23
|
+
};
|
|
24
|
+
readonly horizontal: {
|
|
25
|
+
readonly offset: "offsetWidth";
|
|
26
|
+
readonly scroll: "scrollLeft";
|
|
27
|
+
readonly scrollSize: "scrollWidth";
|
|
28
|
+
readonly size: "width";
|
|
29
|
+
readonly key: "horizontal";
|
|
30
|
+
readonly axis: "X";
|
|
31
|
+
readonly client: "clientX";
|
|
32
|
+
readonly direction: "left";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export declare const renderThumbStyle: ({ move, size, bar, }: {
|
|
36
|
+
move?: number;
|
|
37
|
+
size?: string;
|
|
38
|
+
} & {
|
|
39
|
+
bar: (typeof BAR_MAP)[keyof typeof BAR_MAP];
|
|
40
|
+
}) => CSSProperties;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const l = {
|
|
2
|
+
vertical: {
|
|
3
|
+
offset: "offsetHeight",
|
|
4
|
+
scroll: "scrollTop",
|
|
5
|
+
scrollSize: "scrollHeight",
|
|
6
|
+
size: "height",
|
|
7
|
+
key: "vertical",
|
|
8
|
+
axis: "Y",
|
|
9
|
+
client: "clientY",
|
|
10
|
+
direction: "top"
|
|
11
|
+
},
|
|
12
|
+
horizontal: {
|
|
13
|
+
offset: "offsetWidth",
|
|
14
|
+
scroll: "scrollLeft",
|
|
15
|
+
scrollSize: "scrollWidth",
|
|
16
|
+
size: "width",
|
|
17
|
+
key: "horizontal",
|
|
18
|
+
axis: "X",
|
|
19
|
+
client: "clientX",
|
|
20
|
+
direction: "left"
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
l as BAR_MAP
|
|
25
|
+
};
|
|
@@ -92,7 +92,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
92
92
|
}>, {
|
|
93
93
|
modelValue: import("vue").ComputedRef<string | number | boolean | any[] | Record<string, any> | null | undefined>;
|
|
94
94
|
selectedLabel: import("vue").ComputedRef<string | string[]>;
|
|
95
|
-
floatLabelClass: import("vue").ComputedRef<
|
|
95
|
+
floatLabelClass: import("vue").ComputedRef<import("@element-plus/hooks").FloatLabelClass>;
|
|
96
96
|
floatLabelText: import("vue").ComputedRef<string>;
|
|
97
97
|
calculatorRef: import("vue").ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
|
|
98
98
|
inputStyle: import("vue").ComputedRef<{
|
|
@@ -188,8 +188,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
188
188
|
showClearBtn: import("vue").ComputedRef<boolean>;
|
|
189
189
|
iconComponent: import("vue").ComputedRef<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>>;
|
|
190
190
|
iconReverse: import("vue").ComputedRef<string>;
|
|
191
|
-
validateState: import("vue").ComputedRef<
|
|
192
|
-
validateIcon: import("vue").ComputedRef<
|
|
191
|
+
validateState: import("vue").ComputedRef<"" | "error" | "success" | "validating">;
|
|
192
|
+
validateIcon: import("vue").ComputedRef<import("vue").Component | "">;
|
|
193
193
|
showNewOption: import("vue").ComputedRef<boolean>;
|
|
194
194
|
updateOptions: () => void;
|
|
195
195
|
collapseTagSize: import("vue").ComputedRef<"default" | "small">;
|
|
@@ -369,11 +369,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
369
369
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
370
370
|
"onEnd-reached"?: ((direction: import("@element-plus/components/scrollbar").ScrollbarDirection) => any) | undefined;
|
|
371
371
|
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
372
|
+
"onRemove-tag"?: ((val: unknown) => any) | undefined;
|
|
372
373
|
"onPopup-scroll"?: ((args_0: {
|
|
373
374
|
scrollTop: number;
|
|
374
375
|
scrollLeft: number;
|
|
375
376
|
}) => any) | undefined;
|
|
376
|
-
"onRemove-tag"?: ((val: unknown) => any) | undefined;
|
|
377
377
|
}>, {
|
|
378
378
|
props: import("@element-plus/components/select-v2/src/useProps").Props;
|
|
379
379
|
offset: number;
|
|
@@ -407,12 +407,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
407
407
|
tagType: import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => "primary" | "success" | "warning" | "info" | "danger") | (() => "primary" | "success" | "warning" | "info" | "danger") | (((new (...args: any[]) => "primary" | "success" | "warning" | "info" | "danger") | (() => "primary" | "success" | "warning" | "info" | "danger")) | null)[], "primary" | "success" | "warning" | "info" | "danger", unknown>;
|
|
408
408
|
tagEffect: import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => "dark" | "light" | "plain") | (() => "dark" | "light" | "plain") | (((new (...args: any[]) => "dark" | "light" | "plain") | (() => "dark" | "light" | "plain")) | null)[], "dark" | "light" | "plain", unknown>;
|
|
409
409
|
automaticDropdown: boolean;
|
|
410
|
-
|
|
411
|
-
remote: boolean;
|
|
410
|
+
tagTooltip: import("./select").TagTooltipProps;
|
|
412
411
|
multipleLimit: number;
|
|
413
|
-
defaultFirstOption: boolean;
|
|
414
412
|
reserveKeyword: import("@element-plus/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
415
|
-
|
|
413
|
+
allowCreate: boolean;
|
|
414
|
+
defaultFirstOption: boolean;
|
|
415
|
+
remote: boolean;
|
|
416
416
|
remoteShowSuffix: boolean;
|
|
417
417
|
}, {}, {
|
|
418
418
|
ElSelectMenu: import("vue").DefineComponent<{}, {
|
|
@@ -85,8 +85,8 @@ export declare const useSelect: (props: SelectProps, emit: SelectEmits) => {
|
|
|
85
85
|
showClearBtn: import("vue").ComputedRef<boolean>;
|
|
86
86
|
iconComponent: import("vue").ComputedRef<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>>;
|
|
87
87
|
iconReverse: import("vue").ComputedRef<string>;
|
|
88
|
-
validateState: import("vue").ComputedRef<
|
|
89
|
-
validateIcon: import("vue").ComputedRef<
|
|
88
|
+
validateState: import("vue").ComputedRef<"" | "error" | "success" | "validating">;
|
|
89
|
+
validateIcon: import("vue").ComputedRef<Component | "">;
|
|
90
90
|
showNewOption: import("vue").ComputedRef<boolean>;
|
|
91
91
|
updateOptions: () => void;
|
|
92
92
|
collapseTagSize: import("vue").ComputedRef<"default" | "small">;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
export declare const EpSelectV2: typeof
|
|
2
|
+
import _EpSelectV2 from './src/select.vue';
|
|
3
|
+
export declare const EpSelectV2: typeof _EpSelectV2 & Plugin;
|
|
4
4
|
export default EpSelectV2;
|
|
5
|
+
export { selectV2Emits, selectV2Props } from './src/defaults';
|
|
6
|
+
export { selectV2InjectionKey } from './src/token';
|
|
7
|
+
export type { OptionV2EmitFn, OptionV2Props, OptionV2PropsPublic, SelectV2EmitFn, SelectV2Instance, SelectV2Props, SelectV2PropsPublic, } from './src/defaults';
|
|
8
|
+
export type { SelectV2Context } from './src/token';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { withInstall as e } from "../../utils/with-install.js";
|
|
2
|
+
import t from "./src/select.vue.js";
|
|
3
|
+
import { selectV2Emits as c, selectV2Props as m } from "./src/defaults.js";
|
|
4
|
+
const r = e(t, "ep-select-v2");
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
+
r as EpSelectV2,
|
|
7
|
+
c as selectV2Emits,
|
|
8
|
+
m as selectV2Props
|
|
6
9
|
};
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import type SelectV2 from './select.vue';
|
|
2
|
+
import type { Option, OptionType } from './select.types';
|
|
3
|
+
import type { Props } from './useProps';
|
|
4
|
+
import type { EmitFn } from '@element-plus/utils/vue/typescript';
|
|
5
|
+
import type { CSSProperties, ExtractPropTypes, ExtractPublicPropTypes } from 'vue';
|
|
6
|
+
import type { Options, Placement, PopperEffect } from '@element-plus/components/popper';
|
|
7
|
+
/**
|
|
8
|
+
* @description Tag tooltip configuration interface
|
|
9
|
+
*/
|
|
10
|
+
export interface TagTooltipProps {
|
|
11
|
+
appendTo?: string | HTMLElement;
|
|
12
|
+
placement?: Placement;
|
|
13
|
+
fallbackPlacements?: Placement[];
|
|
14
|
+
effect?: PopperEffect;
|
|
15
|
+
popperClass?: string;
|
|
16
|
+
popperStyle?: string | CSSProperties;
|
|
17
|
+
transition?: string;
|
|
18
|
+
teleported?: boolean;
|
|
19
|
+
popperOptions?: Partial<Options>;
|
|
20
|
+
showAfter?: number;
|
|
21
|
+
hideAfter?: number;
|
|
22
|
+
autoClose?: number;
|
|
23
|
+
offset?: number;
|
|
24
|
+
}
|
|
25
|
+
export declare const selectV2Props: {
|
|
26
|
+
readonly ariaLabel: StringConstructor;
|
|
27
|
+
readonly emptyValues: ArrayConstructor;
|
|
28
|
+
readonly valueOnClear: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
29
|
+
readonly floatLabel: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
30
|
+
readonly allowCreate: BooleanConstructor;
|
|
31
|
+
readonly autocomplete: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => "none" | "both" | "inline" | "list") | (() => "none" | "both" | "inline" | "list") | (((new (...args: any[]) => "none" | "both" | "inline" | "list") | (() => "none" | "both" | "inline" | "list")) | null)[], unknown, unknown, "none", boolean>;
|
|
32
|
+
readonly automaticDropdown: BooleanConstructor;
|
|
33
|
+
readonly clearable: BooleanConstructor;
|
|
34
|
+
readonly clearIcon: import("@element-plus/utils").EpPropFinalized<(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, import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, boolean>;
|
|
35
|
+
readonly effect: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => PopperEffect) | (((new (...args: any[]) => string) | (() => PopperEffect)) | null)[], unknown, unknown, "light", boolean>;
|
|
36
|
+
readonly collapseTags: BooleanConstructor;
|
|
37
|
+
readonly collapseTagsTooltip: BooleanConstructor;
|
|
38
|
+
readonly tagTooltip: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => TagTooltipProps) | (() => TagTooltipProps) | (((new (...args: any[]) => TagTooltipProps) | (() => TagTooltipProps)) | null)[], unknown, unknown, () => {}, boolean>;
|
|
39
|
+
readonly maxCollapseTags: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
|
|
40
|
+
readonly defaultFirstOption: BooleanConstructor;
|
|
41
|
+
readonly disabled: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
42
|
+
readonly estimatedOptionHeight: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, undefined, boolean>;
|
|
43
|
+
readonly filterable: BooleanConstructor;
|
|
44
|
+
readonly filterMethod: {
|
|
45
|
+
readonly type: import("vue").PropType<(query: string) => void>;
|
|
46
|
+
readonly required: false;
|
|
47
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
48
|
+
__epPropKey: true;
|
|
49
|
+
};
|
|
50
|
+
readonly height: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 274, boolean>;
|
|
51
|
+
readonly itemHeight: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 34, boolean>;
|
|
52
|
+
readonly id: StringConstructor;
|
|
53
|
+
readonly loading: BooleanConstructor;
|
|
54
|
+
readonly loadingText: StringConstructor;
|
|
55
|
+
readonly modelValue: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => any) | (() => any) | {
|
|
56
|
+
(): any;
|
|
57
|
+
new (): any;
|
|
58
|
+
readonly prototype: any;
|
|
59
|
+
} | (((new (...args: any[]) => any) | (() => any) | {
|
|
60
|
+
(): any;
|
|
61
|
+
new (): any;
|
|
62
|
+
readonly prototype: any;
|
|
63
|
+
}) | null)[], unknown, unknown, undefined, boolean>;
|
|
64
|
+
readonly multiple: BooleanConstructor;
|
|
65
|
+
readonly multipleLimit: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
66
|
+
readonly name: StringConstructor;
|
|
67
|
+
readonly noDataText: StringConstructor;
|
|
68
|
+
readonly noMatchText: StringConstructor;
|
|
69
|
+
readonly remoteMethod: {
|
|
70
|
+
readonly type: import("vue").PropType<(query: string) => void>;
|
|
71
|
+
readonly required: false;
|
|
72
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
73
|
+
__epPropKey: true;
|
|
74
|
+
};
|
|
75
|
+
readonly reserveKeyword: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
76
|
+
readonly options: {
|
|
77
|
+
readonly type: import("vue").PropType<OptionType[]>;
|
|
78
|
+
readonly required: true;
|
|
79
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
80
|
+
__epPropKey: true;
|
|
81
|
+
};
|
|
82
|
+
readonly placeholder: {
|
|
83
|
+
readonly type: import("vue").PropType<string>;
|
|
84
|
+
readonly required: false;
|
|
85
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
86
|
+
__epPropKey: true;
|
|
87
|
+
};
|
|
88
|
+
readonly teleported: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
89
|
+
readonly persistent: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
90
|
+
readonly popperClass: {
|
|
91
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => 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
|
+
} | (string | {
|
|
108
|
+
[x: string]: boolean;
|
|
109
|
+
} | (string | {
|
|
110
|
+
[x: string]: boolean;
|
|
111
|
+
} | (string | {
|
|
112
|
+
[x: string]: boolean;
|
|
113
|
+
} | (string | {
|
|
114
|
+
[x: string]: boolean;
|
|
115
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (() => 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
|
+
} | (string | {
|
|
132
|
+
[x: string]: boolean;
|
|
133
|
+
} | (string | {
|
|
134
|
+
[x: string]: boolean;
|
|
135
|
+
} | (string | {
|
|
136
|
+
[x: string]: boolean;
|
|
137
|
+
} | (string | {
|
|
138
|
+
[x: string]: boolean;
|
|
139
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (((new (...args: any[]) => 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
|
+
} | (string | {
|
|
156
|
+
[x: string]: boolean;
|
|
157
|
+
} | (string | {
|
|
158
|
+
[x: string]: boolean;
|
|
159
|
+
} | (string | {
|
|
160
|
+
[x: string]: boolean;
|
|
161
|
+
} | (string | {
|
|
162
|
+
[x: string]: boolean;
|
|
163
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
164
|
+
[x: string]: boolean;
|
|
165
|
+
} | (string | {
|
|
166
|
+
[x: string]: boolean;
|
|
167
|
+
} | (string | {
|
|
168
|
+
[x: string]: boolean;
|
|
169
|
+
} | (string | {
|
|
170
|
+
[x: string]: boolean;
|
|
171
|
+
} | (string | {
|
|
172
|
+
[x: string]: boolean;
|
|
173
|
+
} | (string | {
|
|
174
|
+
[x: string]: boolean;
|
|
175
|
+
} | (string | {
|
|
176
|
+
[x: string]: boolean;
|
|
177
|
+
} | (string | {
|
|
178
|
+
[x: string]: boolean;
|
|
179
|
+
} | (string | {
|
|
180
|
+
[x: string]: boolean;
|
|
181
|
+
} | (string | {
|
|
182
|
+
[x: string]: boolean;
|
|
183
|
+
} | (string | {
|
|
184
|
+
[x: string]: boolean;
|
|
185
|
+
} | (string | {
|
|
186
|
+
[x: string]: boolean;
|
|
187
|
+
} | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[])) | null)[], unknown, unknown>>;
|
|
188
|
+
readonly required: false;
|
|
189
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
190
|
+
__epPropKey: true;
|
|
191
|
+
};
|
|
192
|
+
readonly popperStyle: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | false | CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | (((new (...args: any[]) => string | false | CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
193
|
+
readonly popperOptions: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | (((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>)) | null)[], unknown, unknown, () => Partial<Options>, boolean>;
|
|
194
|
+
readonly remote: BooleanConstructor;
|
|
195
|
+
readonly debounce: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
|
|
196
|
+
readonly size: {
|
|
197
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
198
|
+
readonly required: false;
|
|
199
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
200
|
+
__epPropKey: true;
|
|
201
|
+
};
|
|
202
|
+
readonly props: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => Props) | (() => Props) | (((new (...args: any[]) => Props) | (() => Props)) | null)[], unknown, unknown, () => Required<Props>, boolean>;
|
|
203
|
+
readonly valueKey: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "value", boolean>;
|
|
204
|
+
readonly scrollbarAlwaysOn: BooleanConstructor;
|
|
205
|
+
readonly validateEvent: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
206
|
+
readonly offset: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 12, boolean>;
|
|
207
|
+
readonly remoteShowSuffix: BooleanConstructor;
|
|
208
|
+
readonly showArrow: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
209
|
+
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)[], Placement, unknown, "bottom-start", boolean>;
|
|
210
|
+
readonly fallbackPlacements: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => Placement[]) | (() => Placement[]) | (((new (...args: any[]) => Placement[]) | (() => Placement[])) | null)[], unknown, unknown, readonly ["bottom-start", "top-start", "right", "left"], boolean>;
|
|
211
|
+
readonly tagType: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => "primary" | "success" | "warning" | "info" | "danger") | (() => "primary" | "success" | "warning" | "info" | "danger") | (((new (...args: any[]) => "primary" | "success" | "warning" | "info" | "danger") | (() => "primary" | "success" | "warning" | "info" | "danger")) | null)[], "primary" | "success" | "warning" | "info" | "danger", unknown, "info", boolean>;
|
|
212
|
+
readonly tagEffect: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => "dark" | "light" | "plain") | (() => "dark" | "light" | "plain") | (((new (...args: any[]) => "dark" | "light" | "plain") | (() => "dark" | "light" | "plain")) | null)[], "dark" | "light" | "plain", unknown, "light", boolean>;
|
|
213
|
+
readonly tabindex: import("@element-plus/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
|
|
214
|
+
readonly appendTo: {
|
|
215
|
+
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>>;
|
|
216
|
+
readonly required: false;
|
|
217
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
218
|
+
__epPropKey: true;
|
|
219
|
+
};
|
|
220
|
+
readonly fitInputWidth: import("@element-plus/utils").EpPropFinalized<readonly [BooleanConstructor, NumberConstructor], unknown, number | boolean, true, boolean>;
|
|
221
|
+
readonly suffixIcon: import("@element-plus/utils").EpPropFinalized<(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, import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, boolean>;
|
|
222
|
+
};
|
|
223
|
+
export declare const optionV2Props: {
|
|
224
|
+
readonly data: ArrayConstructor;
|
|
225
|
+
readonly disabled: BooleanConstructor;
|
|
226
|
+
readonly hovering: BooleanConstructor;
|
|
227
|
+
readonly item: {
|
|
228
|
+
readonly type: import("vue").PropType<Option>;
|
|
229
|
+
readonly required: true;
|
|
230
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
231
|
+
__epPropKey: true;
|
|
232
|
+
};
|
|
233
|
+
readonly index: NumberConstructor;
|
|
234
|
+
readonly style: ObjectConstructor;
|
|
235
|
+
readonly selected: BooleanConstructor;
|
|
236
|
+
readonly created: BooleanConstructor;
|
|
237
|
+
};
|
|
238
|
+
export declare const selectV2Emits: {
|
|
239
|
+
"update:modelValue": (val: SelectV2Props["modelValue"]) => boolean;
|
|
240
|
+
change: (val: SelectV2Props["modelValue"]) => boolean;
|
|
241
|
+
'end-reached': (direction: import("@element-plus/components/scrollbar").ScrollbarDirection) => boolean;
|
|
242
|
+
'remove-tag': (val: unknown) => boolean;
|
|
243
|
+
'visible-change': (visible: boolean) => boolean;
|
|
244
|
+
focus: (evt: FocusEvent) => boolean;
|
|
245
|
+
blur: (evt: FocusEvent) => boolean;
|
|
246
|
+
clear: () => boolean;
|
|
247
|
+
};
|
|
248
|
+
export declare const optionV2Emits: {
|
|
249
|
+
hover: (index?: number) => index is number;
|
|
250
|
+
select: (val: Option, index?: number) => boolean;
|
|
251
|
+
};
|
|
252
|
+
export type SelectV2Props = ExtractPropTypes<typeof selectV2Props>;
|
|
253
|
+
export type SelectV2PropsPublic = ExtractPublicPropTypes<typeof selectV2Props>;
|
|
254
|
+
export type OptionV2Props = ExtractPropTypes<typeof optionV2Props>;
|
|
255
|
+
export type OptionV2PropsPublic = ExtractPublicPropTypes<typeof optionV2Props>;
|
|
256
|
+
export type SelectV2EmitFn = EmitFn<typeof selectV2Emits>;
|
|
257
|
+
export type OptionV2EmitFn = EmitFn<typeof optionV2Emits>;
|
|
258
|
+
export type SelectV2Instance = InstanceType<typeof SelectV2> & unknown;
|