next-ui3 1.3.23 → 1.4.0
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/index.css +1 -1
- package/dist/index.full.min.js +131 -16
- package/dist/index.full.min.mjs +133 -18
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/utils/index.min.js +2 -2
- package/dist/utils/index.min.mjs +2 -2
- package/es/components/autocomplete/src/index.vue.d.ts +10 -203
- package/es/components/cascader/src/index.vue.d.ts +5 -1111
- package/es/components/checkbox/src/index.vue.d.ts +5 -10
- package/es/components/checkbox-group/src/BlockCheckboxGroup.vue.d.ts +10 -15
- package/es/components/checkbox-group/src/index.vue.d.ts +24 -27
- package/es/components/date-picker/src/QuarterPicker.vue.d.ts +1 -1
- package/es/components/date-picker/src/SemiAnnualPicker.vue.d.ts +1 -1
- package/es/components/date-picker/src/index.vue.d.ts +5 -383
- package/es/components/download-button/src/index.vue.d.ts +5 -10
- package/es/components/empty/src/index.vue.d.ts +5 -10
- package/es/components/file-select/src/index.vue.d.ts +9 -17
- package/es/components/file-upload/index.d.ts +3 -0
- package/es/components/file-upload/src/FileList.vue.d.ts +2 -0
- package/es/components/file-upload/src/index.vue.d.ts +110 -0
- package/es/components/file-upload/src/types.d.ts +12 -0
- package/es/components/filter/src/index.vue.d.ts +11 -197
- package/es/components/flex-text/src/index.vue.d.ts +7 -14
- package/es/components/form/src/index.vue.d.ts +13 -197
- package/es/components/icon/index.d.ts +2 -0
- package/es/components/icon/src/index.vue.d.ts +12 -0
- package/es/components/index.d.ts +2 -0
- package/es/components/input/src/index.vue.d.ts +5 -415
- package/es/components/input-number/src/index.vue.d.ts +9 -418
- package/es/components/input-password/src/index.vue.d.ts +5 -415
- package/es/components/pagination/src/index.vue.d.ts +5 -8
- package/es/components/radio-group/src/CustomRadioGroup.vue.d.ts +10 -15
- package/es/components/radio-group/src/index.vue.d.ts +19 -21
- package/es/components/remote-cascader/src/index.vue.d.ts +5 -10
- package/es/components/remote-select/src/DictSelect.vue.d.ts +5 -149
- package/es/components/remote-select/src/EnumSelect.vue.d.ts +5 -149
- package/es/components/remote-select/src/index.vue.d.ts +5 -10
- package/es/components/remote-tree-select/src/index.vue.d.ts +5 -10
- package/es/components/remote-tree-select/src/old.vue.d.ts +5 -53
- package/es/components/select/src/index.vue.d.ts +19 -549
- package/es/components/table/src/index.vue.d.ts +15 -571
- package/es/components/tree-panel/src/index.vue.d.ts +11 -882
- package/es/components/tree-select/src/index.vue.d.ts +5 -53
- package/es/components/upload/src/ImageUpload.vue.d.ts +8 -15
- package/es/components/upload/src/index.vue.d.ts +11 -468
- package/es/config/icons.d.ts +1 -0
- package/es/config/index.d.ts +1 -0
- package/es/hooks/use-toast/index.d.ts +1 -0
- package/es/hooks/use-upload-config/index.d.ts +1 -1
- package/es/utils/index.d.ts +1 -0
- package/es/utils/lock.d.ts +6 -0
- package/es/utils/timer.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/lib/components/autocomplete/src/index.vue.d.ts +10 -203
- package/lib/components/cascader/src/index.vue.d.ts +5 -1111
- package/lib/components/checkbox/src/index.vue.d.ts +5 -10
- package/lib/components/checkbox-group/src/BlockCheckboxGroup.vue.d.ts +10 -15
- package/lib/components/checkbox-group/src/index.vue.d.ts +24 -27
- package/lib/components/date-picker/src/QuarterPicker.vue.d.ts +1 -1
- package/lib/components/date-picker/src/SemiAnnualPicker.vue.d.ts +1 -1
- package/lib/components/date-picker/src/index.vue.d.ts +5 -383
- package/lib/components/download-button/src/index.vue.d.ts +5 -10
- package/lib/components/empty/src/index.vue.d.ts +5 -10
- package/lib/components/file-select/src/index.vue.d.ts +9 -17
- package/lib/components/file-upload/index.d.ts +3 -0
- package/lib/components/file-upload/src/FileList.vue.d.ts +2 -0
- package/lib/components/file-upload/src/index.vue.d.ts +110 -0
- package/lib/components/file-upload/src/types.d.ts +12 -0
- package/lib/components/filter/src/index.vue.d.ts +11 -197
- package/lib/components/flex-text/src/index.vue.d.ts +7 -14
- package/lib/components/form/src/index.vue.d.ts +13 -197
- package/lib/components/icon/index.d.ts +2 -0
- package/lib/components/icon/src/index.vue.d.ts +12 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/components/input/src/index.vue.d.ts +5 -415
- package/lib/components/input-number/src/index.vue.d.ts +9 -418
- package/lib/components/input-password/src/index.vue.d.ts +5 -415
- package/lib/components/pagination/src/index.vue.d.ts +5 -8
- package/lib/components/radio-group/src/CustomRadioGroup.vue.d.ts +10 -15
- package/lib/components/radio-group/src/index.vue.d.ts +19 -21
- package/lib/components/remote-cascader/src/index.vue.d.ts +5 -10
- package/lib/components/remote-select/src/DictSelect.vue.d.ts +5 -149
- package/lib/components/remote-select/src/EnumSelect.vue.d.ts +5 -149
- package/lib/components/remote-select/src/index.vue.d.ts +5 -10
- package/lib/components/remote-tree-select/src/index.vue.d.ts +5 -10
- package/lib/components/remote-tree-select/src/old.vue.d.ts +5 -53
- package/lib/components/select/src/index.vue.d.ts +19 -549
- package/lib/components/table/src/index.vue.d.ts +15 -571
- package/lib/components/tree-panel/src/index.vue.d.ts +11 -882
- package/lib/components/tree-select/src/index.vue.d.ts +5 -53
- package/lib/components/upload/src/ImageUpload.vue.d.ts +8 -15
- package/lib/components/upload/src/index.vue.d.ts +11 -468
- package/lib/config/icons.d.ts +1 -0
- package/lib/config/index.d.ts +1 -0
- package/lib/hooks/use-toast/index.d.ts +1 -0
- package/lib/hooks/use-upload-config/index.d.ts +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/lock.d.ts +6 -0
- package/lib/utils/timer.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/theme-chalk/base.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/nt-empty.css +1 -1
- package/theme-chalk/nt-file-select.css +1 -1
- package/theme-chalk/nt-file-upload.css +1 -0
- package/theme-chalk/nt-icon.css +1 -0
- package/theme-chalk/src/base.scss +3 -0
- package/theme-chalk/src/file-upload.scss +156 -0
- package/theme-chalk/src/icon.scss +15 -0
- package/theme-chalk/src/index.scss +2 -0
|
@@ -5,15 +5,10 @@ type __VLS_Props = {
|
|
|
5
5
|
downloader?: IFileDownloader;
|
|
6
6
|
text?: boolean;
|
|
7
7
|
};
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
default?(_: {}): any;
|
|
12
|
-
};
|
|
13
|
-
refs: {};
|
|
14
|
-
rootEl: HTMLDivElement;
|
|
8
|
+
declare var __VLS_9: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_9) => any;
|
|
15
11
|
};
|
|
16
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
12
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
18
13
|
text: boolean;
|
|
19
14
|
}>, {
|
|
@@ -23,7 +18,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
23
18
|
}>>>, {
|
|
24
19
|
text: boolean;
|
|
25
20
|
}>;
|
|
26
|
-
declare const _default:
|
|
21
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
27
22
|
export default _default;
|
|
28
23
|
type __VLS_WithDefaults<P, D> = {
|
|
29
24
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
@@ -39,7 +34,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
39
34
|
required: true;
|
|
40
35
|
};
|
|
41
36
|
};
|
|
42
|
-
type
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
43
38
|
new (): {
|
|
44
39
|
$slots: S;
|
|
45
40
|
};
|
|
@@ -4,15 +4,10 @@ type __VLS_Props = {
|
|
|
4
4
|
size?: 'default' | 'small';
|
|
5
5
|
loading?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
default?(_: {}): any;
|
|
11
|
-
};
|
|
12
|
-
refs: {};
|
|
13
|
-
rootEl: HTMLDivElement;
|
|
7
|
+
declare var __VLS_1: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
14
10
|
};
|
|
15
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
11
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
17
12
|
type: string;
|
|
18
13
|
text: string;
|
|
@@ -26,7 +21,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
26
21
|
text: string;
|
|
27
22
|
loading: boolean;
|
|
28
23
|
}>;
|
|
29
|
-
declare const _default:
|
|
24
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
30
25
|
export default _default;
|
|
31
26
|
type __VLS_WithDefaults<P, D> = {
|
|
32
27
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
@@ -42,7 +37,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
42
37
|
required: true;
|
|
43
38
|
};
|
|
44
39
|
};
|
|
45
|
-
type
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
46
41
|
new (): {
|
|
47
42
|
$slots: S;
|
|
48
43
|
};
|
|
@@ -6,22 +6,14 @@ type __VLS_Props = {
|
|
|
6
6
|
limit?: number;
|
|
7
7
|
tips?: string;
|
|
8
8
|
};
|
|
9
|
-
declare
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
17
|
-
refs: {
|
|
18
|
-
inputRef: HTMLInputElement;
|
|
19
|
-
dropRef: HTMLDivElement;
|
|
20
|
-
dragRef: HTMLDivElement;
|
|
21
|
-
};
|
|
22
|
-
rootEl: HTMLDivElement;
|
|
9
|
+
declare var __VLS_1: {
|
|
10
|
+
showFileSelector: () => void;
|
|
11
|
+
}, __VLS_19: {};
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
trigger?: (props: typeof __VLS_1) => any;
|
|
14
|
+
} & {
|
|
15
|
+
tip?: (props: typeof __VLS_19) => any;
|
|
23
16
|
};
|
|
24
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
25
17
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
26
18
|
maxSize: number;
|
|
27
19
|
multiple: boolean;
|
|
@@ -41,7 +33,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
41
33
|
maxSize: number;
|
|
42
34
|
limit: number;
|
|
43
35
|
}>;
|
|
44
|
-
declare const _default:
|
|
36
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
45
37
|
export default _default;
|
|
46
38
|
type __VLS_WithDefaults<P, D> = {
|
|
47
39
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
@@ -57,7 +49,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
57
49
|
required: true;
|
|
58
50
|
};
|
|
59
51
|
};
|
|
60
|
-
type
|
|
52
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
61
53
|
new (): {
|
|
62
54
|
$slots: S;
|
|
63
55
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { IFileUploader } from 'next-ui3/es/hooks';
|
|
2
|
+
import type { IFileItem } from './types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
modelValue?: any[] | any;
|
|
5
|
+
valueFormatter?: (fileItem?: IFileItem) => any;
|
|
6
|
+
fileFormatter?: (value: any) => Partial<IFileItem>;
|
|
7
|
+
uploading?: boolean;
|
|
8
|
+
isError?: boolean;
|
|
9
|
+
fileUploader?: IFileUploader;
|
|
10
|
+
autoUpload?: boolean;
|
|
11
|
+
maxThread?: number;
|
|
12
|
+
fileTypes?: string[];
|
|
13
|
+
maxSize?: number;
|
|
14
|
+
fileValidator?: (file: File) => Error | undefined;
|
|
15
|
+
multiple?: boolean;
|
|
16
|
+
limit?: number;
|
|
17
|
+
tips?: string;
|
|
18
|
+
compressEnabled?: boolean;
|
|
19
|
+
compressOptions?: {
|
|
20
|
+
quality?: number;
|
|
21
|
+
mimeType?: string;
|
|
22
|
+
maxWidth?: number;
|
|
23
|
+
maxHeight?: number;
|
|
24
|
+
width?: number;
|
|
25
|
+
height?: number;
|
|
26
|
+
minWidth?: number;
|
|
27
|
+
minHeight?: number;
|
|
28
|
+
convertSize?: number;
|
|
29
|
+
loose?: boolean;
|
|
30
|
+
redressOrientation?: boolean;
|
|
31
|
+
};
|
|
32
|
+
validateEvent?: boolean;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
action?: string;
|
|
35
|
+
method?: string;
|
|
36
|
+
name?: string;
|
|
37
|
+
data?: Record<string, any>;
|
|
38
|
+
headers?: Record<string, any>;
|
|
39
|
+
drag?: boolean;
|
|
40
|
+
};
|
|
41
|
+
declare var __VLS_1: {
|
|
42
|
+
isDragover: boolean;
|
|
43
|
+
disabled: boolean;
|
|
44
|
+
};
|
|
45
|
+
type __VLS_Slots = {} & {
|
|
46
|
+
trigger?: (props: typeof __VLS_1) => any;
|
|
47
|
+
};
|
|
48
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
49
|
+
autoUpload: boolean;
|
|
50
|
+
maxThread: number;
|
|
51
|
+
multiple: boolean;
|
|
52
|
+
limit: number;
|
|
53
|
+
maxSize: number;
|
|
54
|
+
uploading: boolean;
|
|
55
|
+
compressEnabled: boolean;
|
|
56
|
+
validateEvent: boolean;
|
|
57
|
+
disabled: boolean;
|
|
58
|
+
name: string;
|
|
59
|
+
drag: boolean;
|
|
60
|
+
}>, {
|
|
61
|
+
upload: () => Promise<void>;
|
|
62
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
63
|
+
autoUpload: boolean;
|
|
64
|
+
maxThread: number;
|
|
65
|
+
multiple: boolean;
|
|
66
|
+
limit: number;
|
|
67
|
+
maxSize: number;
|
|
68
|
+
uploading: boolean;
|
|
69
|
+
compressEnabled: boolean;
|
|
70
|
+
validateEvent: boolean;
|
|
71
|
+
disabled: boolean;
|
|
72
|
+
name: string;
|
|
73
|
+
drag: boolean;
|
|
74
|
+
}>>>, {
|
|
75
|
+
drag: boolean;
|
|
76
|
+
disabled: boolean;
|
|
77
|
+
validateEvent: boolean;
|
|
78
|
+
name: string;
|
|
79
|
+
multiple: boolean;
|
|
80
|
+
maxSize: number;
|
|
81
|
+
limit: number;
|
|
82
|
+
uploading: boolean;
|
|
83
|
+
autoUpload: boolean;
|
|
84
|
+
maxThread: number;
|
|
85
|
+
compressEnabled: boolean;
|
|
86
|
+
}>;
|
|
87
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
88
|
+
export default _default;
|
|
89
|
+
type __VLS_WithDefaults<P, D> = {
|
|
90
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
91
|
+
default: D[K];
|
|
92
|
+
}> : P[K];
|
|
93
|
+
};
|
|
94
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
95
|
+
type __VLS_TypePropsToOption<T> = {
|
|
96
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
97
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
98
|
+
} : {
|
|
99
|
+
type: import('vue').PropType<T[K]>;
|
|
100
|
+
required: true;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
104
|
+
new (): {
|
|
105
|
+
$slots: S;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
type __VLS_PrettifyLocal<T> = {
|
|
109
|
+
[K in keyof T]: T[K];
|
|
110
|
+
} & {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type IFileItem = {
|
|
2
|
+
uid: number;
|
|
3
|
+
file?: File;
|
|
4
|
+
url?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
size?: number;
|
|
7
|
+
status: 'ready' | 'pending' | 'uploading' | 'success' | 'error' | 'removed';
|
|
8
|
+
controller?: AbortController;
|
|
9
|
+
progress?: number;
|
|
10
|
+
response?: any;
|
|
11
|
+
error?: string;
|
|
12
|
+
};
|
|
@@ -17,202 +17,16 @@ type __VLS_Props = {
|
|
|
17
17
|
resetButtonText?: string;
|
|
18
18
|
useConfirm?: boolean;
|
|
19
19
|
};
|
|
20
|
-
declare
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
$: import("vue").ComponentInternalInstance;
|
|
30
|
-
$data: {};
|
|
31
|
-
$props: Partial<{
|
|
32
|
-
readonly disabled: boolean;
|
|
33
|
-
readonly inline: boolean;
|
|
34
|
-
readonly labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
35
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
36
|
-
readonly inlineMessage: boolean;
|
|
37
|
-
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
38
|
-
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
39
|
-
readonly labelSuffix: string;
|
|
40
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
41
|
-
readonly statusIcon: boolean;
|
|
42
|
-
readonly hideRequiredAsterisk: boolean;
|
|
43
|
-
readonly scrollToError: boolean;
|
|
44
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
45
|
-
readonly model: ObjectConstructor;
|
|
46
|
-
readonly rules: {
|
|
47
|
-
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
48
|
-
readonly required: false;
|
|
49
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
50
|
-
__epPropKey: true;
|
|
51
|
-
};
|
|
52
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
53
|
-
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
54
|
-
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
55
|
-
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
56
|
-
readonly inline: BooleanConstructor;
|
|
57
|
-
readonly inlineMessage: BooleanConstructor;
|
|
58
|
-
readonly statusIcon: BooleanConstructor;
|
|
59
|
-
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
60
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
61
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
62
|
-
readonly scrollToError: BooleanConstructor;
|
|
63
|
-
readonly scrollIntoViewOptions: {
|
|
64
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
65
|
-
readonly required: false;
|
|
66
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
67
|
-
__epPropKey: true;
|
|
68
|
-
};
|
|
69
|
-
readonly size: {
|
|
70
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
71
|
-
readonly required: false;
|
|
72
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
73
|
-
__epPropKey: true;
|
|
74
|
-
};
|
|
75
|
-
readonly disabled: BooleanConstructor;
|
|
76
|
-
}>> & {
|
|
77
|
-
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
78
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "inline" | "disabled" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
|
79
|
-
$attrs: {
|
|
80
|
-
[x: string]: unknown;
|
|
81
|
-
};
|
|
82
|
-
$refs: {
|
|
83
|
-
[x: string]: unknown;
|
|
84
|
-
};
|
|
85
|
-
$slots: import("vue").Slots;
|
|
86
|
-
$root: import("vue").ComponentPublicInstance | null;
|
|
87
|
-
$parent: import("vue").ComponentPublicInstance | null;
|
|
88
|
-
$emit: (event: "validate", prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
89
|
-
$el: any;
|
|
90
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
91
|
-
readonly model: ObjectConstructor;
|
|
92
|
-
readonly rules: {
|
|
93
|
-
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
94
|
-
readonly required: false;
|
|
95
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
96
|
-
__epPropKey: true;
|
|
97
|
-
};
|
|
98
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
99
|
-
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
100
|
-
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
101
|
-
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
102
|
-
readonly inline: BooleanConstructor;
|
|
103
|
-
readonly inlineMessage: BooleanConstructor;
|
|
104
|
-
readonly statusIcon: BooleanConstructor;
|
|
105
|
-
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
106
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
107
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
108
|
-
readonly scrollToError: BooleanConstructor;
|
|
109
|
-
readonly scrollIntoViewOptions: {
|
|
110
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
111
|
-
readonly required: false;
|
|
112
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
113
|
-
__epPropKey: true;
|
|
114
|
-
};
|
|
115
|
-
readonly size: {
|
|
116
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
117
|
-
readonly required: false;
|
|
118
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
119
|
-
__epPropKey: true;
|
|
120
|
-
};
|
|
121
|
-
readonly disabled: BooleanConstructor;
|
|
122
|
-
}>> & {
|
|
123
|
-
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
124
|
-
}, {
|
|
125
|
-
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
126
|
-
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
127
|
-
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
128
|
-
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
129
|
-
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
130
|
-
fields: import("element-plus").FormItemContext[];
|
|
131
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
132
|
-
validate: (prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => void;
|
|
133
|
-
}, string, {
|
|
134
|
-
readonly disabled: boolean;
|
|
135
|
-
readonly inline: boolean;
|
|
136
|
-
readonly labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
137
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
138
|
-
readonly inlineMessage: boolean;
|
|
139
|
-
readonly showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
140
|
-
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
141
|
-
readonly labelSuffix: string;
|
|
142
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
143
|
-
readonly statusIcon: boolean;
|
|
144
|
-
readonly hideRequiredAsterisk: boolean;
|
|
145
|
-
readonly scrollToError: boolean;
|
|
146
|
-
}> & {
|
|
147
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
148
|
-
created?: (() => void) | (() => void)[];
|
|
149
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
150
|
-
mounted?: (() => void) | (() => void)[];
|
|
151
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
152
|
-
updated?: (() => void) | (() => void)[];
|
|
153
|
-
activated?: (() => void) | (() => void)[];
|
|
154
|
-
deactivated?: (() => void) | (() => void)[];
|
|
155
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
156
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
157
|
-
destroyed?: (() => void) | (() => void)[];
|
|
158
|
-
unmounted?: (() => void) | (() => void)[];
|
|
159
|
-
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
160
|
-
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
161
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
162
|
-
};
|
|
163
|
-
$forceUpdate: () => void;
|
|
164
|
-
$nextTick: typeof import("vue").nextTick;
|
|
165
|
-
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
166
|
-
} & Readonly<import("vue").ExtractPropTypes<{
|
|
167
|
-
readonly model: ObjectConstructor;
|
|
168
|
-
readonly rules: {
|
|
169
|
-
readonly type: import("vue").PropType<Partial<Record<string, import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>>>>;
|
|
170
|
-
readonly required: false;
|
|
171
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
172
|
-
__epPropKey: true;
|
|
173
|
-
};
|
|
174
|
-
readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
|
175
|
-
readonly requireAsteriskPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
176
|
-
readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
177
|
-
readonly labelSuffix: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
178
|
-
readonly inline: BooleanConstructor;
|
|
179
|
-
readonly inlineMessage: BooleanConstructor;
|
|
180
|
-
readonly statusIcon: BooleanConstructor;
|
|
181
|
-
readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
182
|
-
readonly validateOnRuleChange: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
183
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
184
|
-
readonly scrollToError: BooleanConstructor;
|
|
185
|
-
readonly scrollIntoViewOptions: {
|
|
186
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
187
|
-
readonly required: false;
|
|
188
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
189
|
-
__epPropKey: true;
|
|
190
|
-
};
|
|
191
|
-
readonly size: {
|
|
192
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
193
|
-
readonly required: false;
|
|
194
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
195
|
-
__epPropKey: true;
|
|
196
|
-
};
|
|
197
|
-
readonly disabled: BooleanConstructor;
|
|
198
|
-
}>> & {
|
|
199
|
-
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
200
|
-
} & import("vue").ShallowUnwrapRef<{
|
|
201
|
-
validate: (callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
202
|
-
validateField: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>, callback?: import("element-plus").FormValidateCallback) => import("element-plus").FormValidationResult;
|
|
203
|
-
resetFields: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
204
|
-
clearValidate: (props?: import("element-plus/es/utils").Arrayable<import("element-plus").FormItemProp>) => void;
|
|
205
|
-
scrollToField: (prop: import("element-plus").FormItemProp) => void;
|
|
206
|
-
fields: import("element-plus").FormItemContext[];
|
|
207
|
-
}> & {} & import("@vue/runtime-core").ComponentCustomProperties & {
|
|
208
|
-
$slots: {
|
|
209
|
-
default?(_: {}): any;
|
|
210
|
-
};
|
|
211
|
-
}) | null;
|
|
212
|
-
};
|
|
213
|
-
rootEl: any;
|
|
20
|
+
declare var __VLS_28: string, __VLS_29: {}, __VLS_32: string, __VLS_33: {
|
|
21
|
+
label: string;
|
|
22
|
+
}, __VLS_55: {};
|
|
23
|
+
type __VLS_Slots = {} & {
|
|
24
|
+
[K in NonNullable<typeof __VLS_28>]?: (props: typeof __VLS_29) => any;
|
|
25
|
+
} & {
|
|
26
|
+
[K in NonNullable<typeof __VLS_32>]?: (props: typeof __VLS_33) => any;
|
|
27
|
+
} & {
|
|
28
|
+
buttons?: (props: typeof __VLS_55) => any;
|
|
214
29
|
};
|
|
215
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
216
30
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
217
31
|
modelValue: () => {};
|
|
218
32
|
itemWidth: number;
|
|
@@ -246,7 +60,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
246
60
|
resetButtonText: string;
|
|
247
61
|
useConfirm: boolean;
|
|
248
62
|
}>;
|
|
249
|
-
declare const _default:
|
|
63
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
250
64
|
export default _default;
|
|
251
65
|
type __VLS_WithDefaults<P, D> = {
|
|
252
66
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
@@ -262,7 +76,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
262
76
|
required: true;
|
|
263
77
|
};
|
|
264
78
|
};
|
|
265
|
-
type
|
|
79
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
266
80
|
new (): {
|
|
267
81
|
$slots: S;
|
|
268
82
|
};
|
|
@@ -7,19 +7,12 @@ type __VLS_Props = {
|
|
|
7
7
|
showDelay?: number;
|
|
8
8
|
hideDelay?: number;
|
|
9
9
|
};
|
|
10
|
-
declare
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
refs: {
|
|
17
|
-
containerRef: HTMLDivElement;
|
|
18
|
-
popperRef: HTMLDivElement;
|
|
19
|
-
};
|
|
20
|
-
rootEl: HTMLDivElement;
|
|
10
|
+
declare var __VLS_1: {}, __VLS_11: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_1) => any;
|
|
13
|
+
} & {
|
|
14
|
+
default?: (props: typeof __VLS_11) => any;
|
|
21
15
|
};
|
|
22
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
16
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
24
17
|
lines: number;
|
|
25
18
|
disabled: boolean;
|
|
@@ -42,7 +35,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
42
35
|
showDelay: number;
|
|
43
36
|
hideDelay: number;
|
|
44
37
|
}>;
|
|
45
|
-
declare const _default:
|
|
38
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
46
39
|
export default _default;
|
|
47
40
|
type __VLS_WithDefaults<P, D> = {
|
|
48
41
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
@@ -58,7 +51,7 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
58
51
|
required: true;
|
|
59
52
|
};
|
|
60
53
|
};
|
|
61
|
-
type
|
|
54
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
62
55
|
new (): {
|
|
63
56
|
$slots: S;
|
|
64
57
|
};
|