lew-ui 1.5.9 → 1.5.11
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/_layout/src/LewLayout.vue.d.ts +2 -3
- package/dist/components/_magic-text/src/LewMagicText.vue.d.ts +1 -2
- package/dist/components/_space/src/LewSpace.vue.d.ts +2 -3
- package/dist/components/_steps/src/LewSteps.vue.d.ts +2 -3
- package/dist/components/_tree-select/src/LewTreeSelect.vue.d.ts +1 -2
- package/dist/components/_upload/src/LewUpload.d.ts +31 -34
- package/dist/components/_upload/src/components/LewUploadDragger.d.ts +2 -3
- package/dist/components/_upload/src/props.d.ts +9 -10
- package/dist/components/alert/src/LewAlert.vue.d.ts +4 -5
- package/dist/components/avatar/src/LewAvatar.vue.d.ts +12 -14
- package/dist/components/backtop/src/LewBackTop.vue.d.ts +6 -8
- package/dist/components/badge/src/LewBadge.vue.d.ts +6 -8
- package/dist/components/breadcrumb/src/LewBreadcrumb.vue.d.ts +8 -10
- package/dist/components/button/src/LewButton.vue.d.ts +19 -22
- package/dist/components/cascader/src/LewCascader.vue.d.ts +19 -21
- package/dist/components/checkbox/src/LewCheckbox.vue.d.ts +8 -11
- package/dist/components/checkbox/src/LewCheckboxGroup.vue.d.ts +16 -18
- package/dist/components/date-picker/src/LewDate.vue.d.ts +6 -7
- package/dist/components/date-picker/src/LewDatePicker.vue.d.ts +12 -15
- package/dist/components/date-picker/src/LewDateRange.vue.d.ts +4 -6
- package/dist/components/date-picker/src/LewDateRangePicker.vue.d.ts +9 -11
- package/dist/components/drawer/src/LewDrawer.vue.d.ts +5 -7
- package/dist/components/dropdown/src/LewDropdown.vue.d.ts +5 -6
- package/dist/components/flex/src/LewFlex.vue.d.ts +5 -7
- package/dist/components/form/src/LewForm.vue.d.ts +4 -6
- package/dist/components/input/src/LewInput.vue.d.ts +19 -22
- package/dist/components/input-tag/src/LewInputTag.vue.d.ts +8 -10
- package/dist/components/magic-number/src/LewMagicNumber.vue.d.ts +7 -9
- package/dist/components/mark/src/LewMark.vue.d.ts +6 -8
- package/dist/components/modal/src/LewModal.vue.d.ts +10 -12
- package/dist/components/pagination/src/LewPagination.vue.d.ts +13 -16
- package/dist/components/popok/src/LewPopok.vue.d.ts +6 -8
- package/dist/components/popover/src/LewPopover.vue.d.ts +5 -7
- package/dist/components/radio/src/LewRadio.vue.d.ts +8 -11
- package/dist/components/radio/src/LewRadioGroup.vue.d.ts +19 -21
- package/dist/components/result/src/LewResult.vue.d.ts +2 -3
- package/dist/components/select/src/LewSelect.vue.d.ts +23 -25
- package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +26 -28
- package/dist/components/switch/src/LewSwitch.vue.d.ts +5 -7
- package/dist/components/table/src/LewTable.vue.d.ts +13 -16
- package/dist/components/tabs/src/LewTabs.vue.d.ts +20 -23
- package/dist/components/tag/src/LewTag.vue.d.ts +12 -14
- package/dist/components/text-trim/src/LewTextTrim.vue.d.ts +6 -8
- package/dist/components/textarea/src/LewTextarea.vue.d.ts +8 -10
- package/dist/components/title/src/LewTitle.vue.d.ts +8 -10
- package/dist/directives/dialog/src/LewDialog.vue.d.ts +6 -8
- package/package.json +6 -2
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _sfc_main: DefineComponent<{
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
2
|
direction: {
|
|
4
3
|
type: StringConstructor;
|
|
5
4
|
default: string;
|
|
@@ -16,7 +15,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
16
15
|
type: StringConstructor;
|
|
17
16
|
default: string;
|
|
18
17
|
};
|
|
19
|
-
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
18
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
19
|
direction: {
|
|
21
20
|
type: StringConstructor;
|
|
22
21
|
default: string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
3
2
|
export default _default;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _sfc_main: DefineComponent<{
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
2
|
direction: {
|
|
4
3
|
type: StringConstructor;
|
|
5
4
|
default: string;
|
|
6
5
|
};
|
|
7
|
-
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
7
|
direction: {
|
|
9
8
|
type: StringConstructor;
|
|
10
9
|
default: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _sfc_main: DefineComponent<Readonly<ComponentPropsOptions<{
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
|
3
2
|
[x: string]: unknown;
|
|
4
|
-
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, readonly string[] | Readonly<ExtractPropTypes<Readonly<ComponentObjectPropsOptions<{
|
|
3
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, readonly string[] | Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|
|
5
4
|
[x: string]: unknown;
|
|
6
5
|
}>>>>, {
|
|
7
6
|
[x: number]: string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
3
2
|
export default _default;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import type { LooseRequired } from '@vue/shared';
|
|
2
|
-
import type { http } from './http';
|
|
3
|
-
import type { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
4
1
|
import type { UploadFile, UploadRequestOptions } from './upload.type';
|
|
5
|
-
declare const _default: DefineComponent<{
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
3
|
fileList: {
|
|
7
|
-
type: PropType<UploadFile[]>;
|
|
4
|
+
type: import("vue").PropType<UploadFile[]>;
|
|
8
5
|
default: () => any[];
|
|
9
6
|
};
|
|
10
7
|
accept: {
|
|
@@ -24,14 +21,14 @@ declare const _default: DefineComponent<{
|
|
|
24
21
|
default: string;
|
|
25
22
|
};
|
|
26
23
|
method: {
|
|
27
|
-
type: PropType<"post" | "get" | "POST" | "GET">;
|
|
24
|
+
type: import("vue").PropType<"post" | "get" | "POST" | "GET">;
|
|
28
25
|
default: string;
|
|
29
26
|
};
|
|
30
27
|
headers: {
|
|
31
|
-
type: PropType<Headers | Record<string, string>>;
|
|
28
|
+
type: import("vue").PropType<Headers | Record<string, string>>;
|
|
32
29
|
};
|
|
33
30
|
data: {
|
|
34
|
-
type: PropType<Record<string, any>>;
|
|
31
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
35
32
|
};
|
|
36
33
|
showFileList: {
|
|
37
34
|
type: BooleanConstructor;
|
|
@@ -46,7 +43,7 @@ declare const _default: DefineComponent<{
|
|
|
46
43
|
default: boolean;
|
|
47
44
|
};
|
|
48
45
|
listType: {
|
|
49
|
-
type: PropType<"text" | "picture" | "picture-card">;
|
|
46
|
+
type: import("vue").PropType<"text" | "picture" | "picture-card">;
|
|
50
47
|
default: string;
|
|
51
48
|
};
|
|
52
49
|
autoUpload: {
|
|
@@ -54,38 +51,38 @@ declare const _default: DefineComponent<{
|
|
|
54
51
|
default: boolean;
|
|
55
52
|
};
|
|
56
53
|
httpRequest: {
|
|
57
|
-
type: PropType<(options: UploadRequestOptions) => void>;
|
|
58
|
-
default: typeof http;
|
|
54
|
+
type: import("vue").PropType<(options: UploadRequestOptions) => void>;
|
|
55
|
+
default: typeof import("./http").http;
|
|
59
56
|
};
|
|
60
57
|
onBeforeUpload: {
|
|
61
|
-
type: PropType<(file: UploadFile) => boolean | Promise<boolean>>;
|
|
58
|
+
type: import("vue").PropType<(file: UploadFile) => boolean | Promise<boolean>>;
|
|
62
59
|
};
|
|
63
60
|
onChange: {
|
|
64
|
-
type: PropType<(file: UploadFile, fileList: UploadFile[]) => void>;
|
|
61
|
+
type: import("vue").PropType<(file: UploadFile, fileList: UploadFile[]) => void>;
|
|
65
62
|
default: () => void;
|
|
66
63
|
};
|
|
67
64
|
onProgress: {
|
|
68
|
-
type: PropType<(event: ProgressEvent<EventTarget>, file: UploadFile, fileList: UploadFile[]) => void>;
|
|
65
|
+
type: import("vue").PropType<(event: ProgressEvent<EventTarget>, file: UploadFile, fileList: UploadFile[]) => void>;
|
|
69
66
|
default: () => void;
|
|
70
67
|
};
|
|
71
68
|
onSuccess: {
|
|
72
|
-
type: PropType<(response: any, file: UploadFile, fileList: UploadFile[]) => void>;
|
|
69
|
+
type: import("vue").PropType<(response: any, file: UploadFile, fileList: UploadFile[]) => void>;
|
|
73
70
|
default: () => void;
|
|
74
71
|
};
|
|
75
72
|
onFail: {
|
|
76
|
-
type: PropType<(error: Error, file: UploadFile, fileList: UploadFile[]) => void>;
|
|
73
|
+
type: import("vue").PropType<(error: Error, file: UploadFile, fileList: UploadFile[]) => void>;
|
|
77
74
|
default: () => void;
|
|
78
75
|
};
|
|
79
76
|
onRemove: {
|
|
80
|
-
type: PropType<(file: UploadFile, fileList: UploadFile[]) => void>;
|
|
77
|
+
type: import("vue").PropType<(file: UploadFile, fileList: UploadFile[]) => void>;
|
|
81
78
|
default: () => void;
|
|
82
79
|
};
|
|
83
80
|
onPreview: {
|
|
84
|
-
type: PropType<(file: UploadFile) => void>;
|
|
81
|
+
type: import("vue").PropType<(file: UploadFile) => void>;
|
|
85
82
|
default: () => void;
|
|
86
83
|
};
|
|
87
84
|
}, {
|
|
88
|
-
props: LooseRequired<{
|
|
85
|
+
props: import("@vue/shared").LooseRequired<{
|
|
89
86
|
readonly name: string;
|
|
90
87
|
readonly onChange: (file: UploadFile, fileList: UploadFile[]) => void;
|
|
91
88
|
readonly multiple: boolean;
|
|
@@ -115,9 +112,9 @@ declare const _default: DefineComponent<{
|
|
|
115
112
|
renderFileListPictureCard: () => JSX.Element;
|
|
116
113
|
renderTipSlot: () => JSX.Element;
|
|
117
114
|
submit: () => void;
|
|
118
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:fileList"[], "update:fileList", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
115
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:fileList"[], "update:fileList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
119
116
|
fileList: {
|
|
120
|
-
type: PropType<UploadFile[]>;
|
|
117
|
+
type: import("vue").PropType<UploadFile[]>;
|
|
121
118
|
default: () => any[];
|
|
122
119
|
};
|
|
123
120
|
accept: {
|
|
@@ -137,14 +134,14 @@ declare const _default: DefineComponent<{
|
|
|
137
134
|
default: string;
|
|
138
135
|
};
|
|
139
136
|
method: {
|
|
140
|
-
type: PropType<"post" | "get" | "POST" | "GET">;
|
|
137
|
+
type: import("vue").PropType<"post" | "get" | "POST" | "GET">;
|
|
141
138
|
default: string;
|
|
142
139
|
};
|
|
143
140
|
headers: {
|
|
144
|
-
type: PropType<Headers | Record<string, string>>;
|
|
141
|
+
type: import("vue").PropType<Headers | Record<string, string>>;
|
|
145
142
|
};
|
|
146
143
|
data: {
|
|
147
|
-
type: PropType<Record<string, any>>;
|
|
144
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
148
145
|
};
|
|
149
146
|
showFileList: {
|
|
150
147
|
type: BooleanConstructor;
|
|
@@ -159,7 +156,7 @@ declare const _default: DefineComponent<{
|
|
|
159
156
|
default: boolean;
|
|
160
157
|
};
|
|
161
158
|
listType: {
|
|
162
|
-
type: PropType<"text" | "picture" | "picture-card">;
|
|
159
|
+
type: import("vue").PropType<"text" | "picture" | "picture-card">;
|
|
163
160
|
default: string;
|
|
164
161
|
};
|
|
165
162
|
autoUpload: {
|
|
@@ -167,34 +164,34 @@ declare const _default: DefineComponent<{
|
|
|
167
164
|
default: boolean;
|
|
168
165
|
};
|
|
169
166
|
httpRequest: {
|
|
170
|
-
type: PropType<(options: UploadRequestOptions) => void>;
|
|
171
|
-
default: typeof http;
|
|
167
|
+
type: import("vue").PropType<(options: UploadRequestOptions) => void>;
|
|
168
|
+
default: typeof import("./http").http;
|
|
172
169
|
};
|
|
173
170
|
onBeforeUpload: {
|
|
174
|
-
type: PropType<(file: UploadFile) => boolean | Promise<boolean>>;
|
|
171
|
+
type: import("vue").PropType<(file: UploadFile) => boolean | Promise<boolean>>;
|
|
175
172
|
};
|
|
176
173
|
onChange: {
|
|
177
|
-
type: PropType<(file: UploadFile, fileList: UploadFile[]) => void>;
|
|
174
|
+
type: import("vue").PropType<(file: UploadFile, fileList: UploadFile[]) => void>;
|
|
178
175
|
default: () => void;
|
|
179
176
|
};
|
|
180
177
|
onProgress: {
|
|
181
|
-
type: PropType<(event: ProgressEvent<EventTarget>, file: UploadFile, fileList: UploadFile[]) => void>;
|
|
178
|
+
type: import("vue").PropType<(event: ProgressEvent<EventTarget>, file: UploadFile, fileList: UploadFile[]) => void>;
|
|
182
179
|
default: () => void;
|
|
183
180
|
};
|
|
184
181
|
onSuccess: {
|
|
185
|
-
type: PropType<(response: any, file: UploadFile, fileList: UploadFile[]) => void>;
|
|
182
|
+
type: import("vue").PropType<(response: any, file: UploadFile, fileList: UploadFile[]) => void>;
|
|
186
183
|
default: () => void;
|
|
187
184
|
};
|
|
188
185
|
onFail: {
|
|
189
|
-
type: PropType<(error: Error, file: UploadFile, fileList: UploadFile[]) => void>;
|
|
186
|
+
type: import("vue").PropType<(error: Error, file: UploadFile, fileList: UploadFile[]) => void>;
|
|
190
187
|
default: () => void;
|
|
191
188
|
};
|
|
192
189
|
onRemove: {
|
|
193
|
-
type: PropType<(file: UploadFile, fileList: UploadFile[]) => void>;
|
|
190
|
+
type: import("vue").PropType<(file: UploadFile, fileList: UploadFile[]) => void>;
|
|
194
191
|
default: () => void;
|
|
195
192
|
};
|
|
196
193
|
onPreview: {
|
|
197
|
-
type: PropType<(file: UploadFile) => void>;
|
|
194
|
+
type: import("vue").PropType<(file: UploadFile) => void>;
|
|
198
195
|
default: () => void;
|
|
199
196
|
};
|
|
200
197
|
}>> & {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: DefineComponent<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
2
|
disabled: {
|
|
4
3
|
type: BooleanConstructor;
|
|
5
4
|
default: boolean;
|
|
6
5
|
};
|
|
7
|
-
}, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "dragFiles"[], "dragFiles", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
6
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "dragFiles"[], "dragFiles", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
7
|
disabled: {
|
|
9
8
|
type: BooleanConstructor;
|
|
10
9
|
default: boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { UploadFile, UploadRequestOptions } from './upload.type';
|
|
2
1
|
import type { PropType } from 'vue';
|
|
3
2
|
import { http } from './http';
|
|
4
3
|
declare const uploadProps: {
|
|
@@ -6,7 +5,7 @@ declare const uploadProps: {
|
|
|
6
5
|
* 默认上传文件
|
|
7
6
|
*/
|
|
8
7
|
fileList: {
|
|
9
|
-
type: PropType<UploadFile[]>;
|
|
8
|
+
type: PropType<import("./upload.type").UploadFile[]>;
|
|
10
9
|
default: () => any[];
|
|
11
10
|
};
|
|
12
11
|
/**
|
|
@@ -95,55 +94,55 @@ declare const uploadProps: {
|
|
|
95
94
|
* 覆盖默认的 Xhr 行为,允许自行实现上传文件的请求
|
|
96
95
|
*/
|
|
97
96
|
httpRequest: {
|
|
98
|
-
type: PropType<(options: UploadRequestOptions) => void>;
|
|
97
|
+
type: PropType<(options: import("./upload.type").UploadRequestOptions) => void>;
|
|
99
98
|
default: typeof http;
|
|
100
99
|
};
|
|
101
100
|
/**
|
|
102
101
|
* 文件上传前钩子,若返回 false 或者返回 Promise 且被 reject,则停止上传。
|
|
103
102
|
*/
|
|
104
103
|
onBeforeUpload: {
|
|
105
|
-
type: PropType<(file: UploadFile) => boolean | Promise<boolean>>;
|
|
104
|
+
type: PropType<(file: import("./upload.type").UploadFile) => boolean | Promise<boolean>>;
|
|
106
105
|
};
|
|
107
106
|
/**
|
|
108
107
|
* 文件状态改变时的钩子,添加文件、上传成功和上传失败时都会被调用
|
|
109
108
|
*/
|
|
110
109
|
onChange: {
|
|
111
|
-
type: PropType<(file: UploadFile, fileList: UploadFile[]) => void>;
|
|
110
|
+
type: PropType<(file: import("./upload.type").UploadFile, fileList: import("./upload.type").UploadFile[]) => void>;
|
|
112
111
|
default: () => void;
|
|
113
112
|
};
|
|
114
113
|
/**
|
|
115
114
|
* 文件上传进度的钩子
|
|
116
115
|
*/
|
|
117
116
|
onProgress: {
|
|
118
|
-
type: PropType<(event: ProgressEvent<EventTarget>, file: UploadFile, fileList: UploadFile[]) => void>;
|
|
117
|
+
type: PropType<(event: ProgressEvent<EventTarget>, file: import("./upload.type").UploadFile, fileList: import("./upload.type").UploadFile[]) => void>;
|
|
119
118
|
default: () => void;
|
|
120
119
|
};
|
|
121
120
|
/**
|
|
122
121
|
* 文件上传成功时的钩子
|
|
123
122
|
*/
|
|
124
123
|
onSuccess: {
|
|
125
|
-
type: PropType<(response: any, file: UploadFile, fileList: UploadFile[]) => void>;
|
|
124
|
+
type: PropType<(response: any, file: import("./upload.type").UploadFile, fileList: import("./upload.type").UploadFile[]) => void>;
|
|
126
125
|
default: () => void;
|
|
127
126
|
};
|
|
128
127
|
/**
|
|
129
128
|
* 文件上传失败时的钩子
|
|
130
129
|
*/
|
|
131
130
|
onFail: {
|
|
132
|
-
type: PropType<(error: Error, file: UploadFile, fileList: UploadFile[]) => void>;
|
|
131
|
+
type: PropType<(error: Error, file: import("./upload.type").UploadFile, fileList: import("./upload.type").UploadFile[]) => void>;
|
|
133
132
|
default: () => void;
|
|
134
133
|
};
|
|
135
134
|
/**
|
|
136
135
|
* 文件从文件列表移除时的钩子
|
|
137
136
|
*/
|
|
138
137
|
onRemove: {
|
|
139
|
-
type: PropType<(file: UploadFile, fileList: UploadFile[]) => void>;
|
|
138
|
+
type: PropType<(file: import("./upload.type").UploadFile, fileList: import("./upload.type").UploadFile[]) => void>;
|
|
140
139
|
default: () => void;
|
|
141
140
|
};
|
|
142
141
|
/**
|
|
143
142
|
* 点击文件列表中已上传的文件时的钩子
|
|
144
143
|
*/
|
|
145
144
|
onPreview: {
|
|
146
|
-
type: PropType<(file: UploadFile) => void>;
|
|
145
|
+
type: PropType<(file: import("./upload.type").UploadFile) => void>;
|
|
147
146
|
default: () => void;
|
|
148
147
|
};
|
|
149
148
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
1
|
import type { AlertItem } from './props';
|
|
3
|
-
declare const _sfc_main: DefineComponent<{
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
3
|
list: {
|
|
5
|
-
type: PropType<AlertItem[]>;
|
|
4
|
+
type: import("vue").PropType<AlertItem[]>;
|
|
6
5
|
default: any[];
|
|
7
6
|
description: string;
|
|
8
7
|
};
|
|
@@ -11,9 +10,9 @@ declare const _sfc_main: DefineComponent<{
|
|
|
11
10
|
alertClassName: (item: AlertItem) => any;
|
|
12
11
|
readonly getIconType: any;
|
|
13
12
|
readonly LewIcon: any;
|
|
14
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "close"[], "close", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
13
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
14
|
list: {
|
|
16
|
-
type: PropType<AlertItem[]>;
|
|
15
|
+
type: import("vue").PropType<AlertItem[]>;
|
|
17
16
|
default: any[];
|
|
18
17
|
description: string;
|
|
19
18
|
};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import type { DefineComponent, PropType, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
|
-
declare const _sfc_main: DefineComponent<{
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
2
|
round: {
|
|
5
3
|
type: BooleanConstructor;
|
|
6
4
|
default: boolean;
|
|
7
5
|
description: string;
|
|
8
6
|
};
|
|
9
7
|
status: {
|
|
10
|
-
type: PropType<"online" | "processing" | "away" | "offline" | "busy">;
|
|
8
|
+
type: import("vue").PropType<"online" | "processing" | "away" | "offline" | "busy">;
|
|
11
9
|
default: string;
|
|
12
10
|
description: string;
|
|
13
11
|
};
|
|
14
12
|
statusPosition: {
|
|
15
|
-
type: PropType<"bottom" | "left" | "top" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom">;
|
|
13
|
+
type: import("vue").PropType<"bottom" | "left" | "top" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom">;
|
|
16
14
|
default: string;
|
|
17
15
|
description: string;
|
|
18
16
|
};
|
|
@@ -42,7 +40,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
42
40
|
description: string;
|
|
43
41
|
};
|
|
44
42
|
}, {
|
|
45
|
-
props: LooseRequired<{
|
|
43
|
+
props: import("@vue/shared").LooseRequired<{
|
|
46
44
|
readonly width: number;
|
|
47
45
|
readonly round: boolean;
|
|
48
46
|
readonly height: number;
|
|
@@ -53,27 +51,27 @@ declare const _sfc_main: DefineComponent<{
|
|
|
53
51
|
readonly alt: string;
|
|
54
52
|
} & {}>;
|
|
55
53
|
isLoading: any;
|
|
56
|
-
isError: Ref<boolean>;
|
|
57
|
-
imgSrc: ComputedRef<string>;
|
|
58
|
-
dotClassName: ComputedRef<any>;
|
|
59
|
-
avatarClassName: ComputedRef<any>;
|
|
60
|
-
avatarStyleObject: ComputedRef<{
|
|
54
|
+
isError: import("vue").Ref<boolean>;
|
|
55
|
+
imgSrc: import("vue").ComputedRef<string>;
|
|
56
|
+
dotClassName: import("vue").ComputedRef<any>;
|
|
57
|
+
avatarClassName: import("vue").ComputedRef<any>;
|
|
58
|
+
avatarStyleObject: import("vue").ComputedRef<{
|
|
61
59
|
width: any;
|
|
62
60
|
height: any;
|
|
63
61
|
}>;
|
|
64
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
62
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
65
63
|
round: {
|
|
66
64
|
type: BooleanConstructor;
|
|
67
65
|
default: boolean;
|
|
68
66
|
description: string;
|
|
69
67
|
};
|
|
70
68
|
status: {
|
|
71
|
-
type: PropType<"online" | "processing" | "away" | "offline" | "busy">;
|
|
69
|
+
type: import("vue").PropType<"online" | "processing" | "away" | "offline" | "busy">;
|
|
72
70
|
default: string;
|
|
73
71
|
description: string;
|
|
74
72
|
};
|
|
75
73
|
statusPosition: {
|
|
76
|
-
type: PropType<"bottom" | "left" | "top" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom">;
|
|
74
|
+
type: import("vue").PropType<"bottom" | "left" | "top" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom">;
|
|
77
75
|
default: string;
|
|
78
76
|
description: string;
|
|
79
77
|
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import type { DefineComponent, ShallowRef, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
|
-
declare const _sfc_main: DefineComponent<{
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
2
|
right: {
|
|
5
3
|
type: NumberConstructor;
|
|
6
4
|
default: number;
|
|
@@ -22,7 +20,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
22
20
|
description: string;
|
|
23
21
|
};
|
|
24
22
|
}, {
|
|
25
|
-
props: LooseRequired<{
|
|
23
|
+
props: import("@vue/shared").LooseRequired<{
|
|
26
24
|
readonly bottom: number;
|
|
27
25
|
readonly right: number;
|
|
28
26
|
readonly valveHeight: number;
|
|
@@ -30,9 +28,9 @@ declare const _sfc_main: DefineComponent<{
|
|
|
30
28
|
readonly onClick?: (...args: any[]) => any;
|
|
31
29
|
} & {}>;
|
|
32
30
|
emit: (event: "click", ...args: any[]) => void;
|
|
33
|
-
dom: ShallowRef<HTMLElement>;
|
|
34
|
-
showBackTop: Ref<boolean>;
|
|
35
|
-
backTopStyle: ComputedRef<{
|
|
31
|
+
dom: import("vue").ShallowRef<HTMLElement>;
|
|
32
|
+
showBackTop: import("vue").Ref<boolean>;
|
|
33
|
+
backTopStyle: import("vue").ComputedRef<{
|
|
36
34
|
right: string;
|
|
37
35
|
bottom: string;
|
|
38
36
|
}>;
|
|
@@ -40,7 +38,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
40
38
|
handleScroll: () => void;
|
|
41
39
|
throttledScrollHandler: any;
|
|
42
40
|
readonly LewIcon: any;
|
|
43
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "click"[], "click", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
41
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
42
|
right: {
|
|
45
43
|
type: NumberConstructor;
|
|
46
44
|
default: number;
|
|
@@ -1,30 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
import type { DefineComponent, PropType, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
|
-
declare const _sfc_main: DefineComponent<{
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
2
|
value: {
|
|
5
3
|
type: StringConstructor;
|
|
6
4
|
default: string;
|
|
7
5
|
description: string;
|
|
8
6
|
};
|
|
9
7
|
color: {
|
|
10
|
-
type: PropType<"red" | "orange" | "yellow" | "green" | "mint" | "teal" | "cyan" | "blue" | "indigo" | "purple" | "pink" | "gray" | "brown">;
|
|
8
|
+
type: import("vue").PropType<"red" | "orange" | "yellow" | "green" | "mint" | "teal" | "cyan" | "blue" | "indigo" | "purple" | "pink" | "gray" | "brown">;
|
|
11
9
|
default: string;
|
|
12
10
|
description: string;
|
|
13
11
|
};
|
|
14
12
|
}, {
|
|
15
|
-
props: LooseRequired<{
|
|
13
|
+
props: import("@vue/shared").LooseRequired<{
|
|
16
14
|
readonly value: string;
|
|
17
15
|
readonly color: "red" | "orange" | "yellow" | "green" | "mint" | "teal" | "cyan" | "blue" | "indigo" | "purple" | "pink" | "gray" | "brown";
|
|
18
16
|
} & {}>;
|
|
19
|
-
getStyle: ComputedRef<Record<string, string>>;
|
|
20
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
17
|
+
getStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
18
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
19
|
value: {
|
|
22
20
|
type: StringConstructor;
|
|
23
21
|
default: string;
|
|
24
22
|
description: string;
|
|
25
23
|
};
|
|
26
24
|
color: {
|
|
27
|
-
type: PropType<"red" | "orange" | "yellow" | "green" | "mint" | "teal" | "cyan" | "blue" | "indigo" | "purple" | "pink" | "gray" | "brown">;
|
|
25
|
+
type: import("vue").PropType<"red" | "orange" | "yellow" | "green" | "mint" | "teal" | "cyan" | "blue" | "indigo" | "purple" | "pink" | "gray" | "brown">;
|
|
28
26
|
default: string;
|
|
29
27
|
description: string;
|
|
30
28
|
};
|
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
import type { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
|
-
declare const _sfc_main: DefineComponent<{
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
2
|
options: {
|
|
5
|
-
type: PropType<BreadcrumbOptions[]>;
|
|
3
|
+
type: import("vue").PropType<import("./props").BreadcrumbOptions[]>;
|
|
6
4
|
default: any[];
|
|
7
5
|
description: string;
|
|
8
6
|
};
|
|
9
7
|
iconType: {
|
|
10
|
-
type: PropType<BreadcrumbIconType>;
|
|
8
|
+
type: import("vue").PropType<import("./props").BreadcrumbIconType>;
|
|
11
9
|
default: string;
|
|
12
10
|
description: string;
|
|
13
11
|
};
|
|
14
12
|
}, {
|
|
15
13
|
lewTo: (path: string) => void;
|
|
16
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
15
|
options: {
|
|
18
|
-
type: PropType<BreadcrumbOptions[]>;
|
|
16
|
+
type: import("vue").PropType<import("./props").BreadcrumbOptions[]>;
|
|
19
17
|
default: any[];
|
|
20
18
|
description: string;
|
|
21
19
|
};
|
|
22
20
|
iconType: {
|
|
23
|
-
type: PropType<BreadcrumbIconType>;
|
|
21
|
+
type: import("vue").PropType<import("./props").BreadcrumbIconType>;
|
|
24
22
|
default: string;
|
|
25
23
|
description: string;
|
|
26
24
|
};
|
|
27
25
|
}>>, {
|
|
28
|
-
options: BreadcrumbOptions[];
|
|
29
|
-
iconType: BreadcrumbIconType;
|
|
26
|
+
options: import("./props").BreadcrumbOptions[];
|
|
27
|
+
iconType: import("./props").BreadcrumbIconType;
|
|
30
28
|
}, {}>;
|
|
31
29
|
export default _sfc_main;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ButtonColor, ButtonType, ButtonSize } from './props';
|
|
3
|
-
import type { DefineComponent, PropType, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
4
|
-
declare const _sfc_main: DefineComponent<{
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
5
2
|
color: {
|
|
6
|
-
type: PropType<ButtonColor>;
|
|
3
|
+
type: import("vue").PropType<import("./props").ButtonColor>;
|
|
7
4
|
default: string;
|
|
8
5
|
description: string;
|
|
9
6
|
};
|
|
@@ -13,7 +10,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
13
10
|
description: string;
|
|
14
11
|
};
|
|
15
12
|
type: {
|
|
16
|
-
type: PropType<ButtonType>;
|
|
13
|
+
type: import("vue").PropType<import("./props").ButtonType>;
|
|
17
14
|
default: string;
|
|
18
15
|
description: string;
|
|
19
16
|
};
|
|
@@ -23,7 +20,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
23
20
|
description: string;
|
|
24
21
|
};
|
|
25
22
|
size: {
|
|
26
|
-
type: PropType<ButtonSize>;
|
|
23
|
+
type: import("vue").PropType<import("./props").ButtonSize>;
|
|
27
24
|
default: string;
|
|
28
25
|
description: string;
|
|
29
26
|
};
|
|
@@ -49,11 +46,11 @@ declare const _sfc_main: DefineComponent<{
|
|
|
49
46
|
};
|
|
50
47
|
}, {
|
|
51
48
|
emit: (event: "click", ...args: any[]) => void;
|
|
52
|
-
props: LooseRequired<{
|
|
53
|
-
readonly type: ButtonType;
|
|
54
|
-
readonly color: ButtonColor;
|
|
49
|
+
props: import("@vue/shared").LooseRequired<{
|
|
50
|
+
readonly type: import("./props").ButtonType;
|
|
51
|
+
readonly color: import("./props").ButtonColor;
|
|
55
52
|
readonly round: boolean;
|
|
56
|
-
readonly size: ButtonSize;
|
|
53
|
+
readonly size: import("./props").ButtonSize;
|
|
57
54
|
readonly disabled: boolean;
|
|
58
55
|
readonly loading: boolean;
|
|
59
56
|
readonly text: string;
|
|
@@ -61,15 +58,15 @@ declare const _sfc_main: DefineComponent<{
|
|
|
61
58
|
readonly request?: Function;
|
|
62
59
|
readonly onClick?: (...args: any[]) => any;
|
|
63
60
|
} & {}>;
|
|
64
|
-
_loading: Ref<boolean>;
|
|
61
|
+
_loading: import("vue").Ref<boolean>;
|
|
65
62
|
handleClick: (e: MouseEvent) => Promise<void>;
|
|
66
|
-
getButtonClass: ComputedRef<any>;
|
|
67
|
-
getIconSize: ComputedRef<16 | 12 | 14>;
|
|
68
|
-
getStyle: ComputedRef<Record<string, string>>;
|
|
63
|
+
getButtonClass: import("vue").ComputedRef<any>;
|
|
64
|
+
getIconSize: import("vue").ComputedRef<16 | 12 | 14>;
|
|
65
|
+
getStyle: import("vue").ComputedRef<Record<string, string>>;
|
|
69
66
|
readonly LewIcon: any;
|
|
70
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "click"[], "click", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
67
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
71
68
|
color: {
|
|
72
|
-
type: PropType<ButtonColor>;
|
|
69
|
+
type: import("vue").PropType<import("./props").ButtonColor>;
|
|
73
70
|
default: string;
|
|
74
71
|
description: string;
|
|
75
72
|
};
|
|
@@ -79,7 +76,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
79
76
|
description: string;
|
|
80
77
|
};
|
|
81
78
|
type: {
|
|
82
|
-
type: PropType<ButtonType>;
|
|
79
|
+
type: import("vue").PropType<import("./props").ButtonType>;
|
|
83
80
|
default: string;
|
|
84
81
|
description: string;
|
|
85
82
|
};
|
|
@@ -89,7 +86,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
89
86
|
description: string;
|
|
90
87
|
};
|
|
91
88
|
size: {
|
|
92
|
-
type: PropType<ButtonSize>;
|
|
89
|
+
type: import("vue").PropType<import("./props").ButtonSize>;
|
|
93
90
|
default: string;
|
|
94
91
|
description: string;
|
|
95
92
|
};
|
|
@@ -116,10 +113,10 @@ declare const _sfc_main: DefineComponent<{
|
|
|
116
113
|
}>> & {
|
|
117
114
|
onClick?: (...args: any[]) => any;
|
|
118
115
|
}, {
|
|
119
|
-
type: ButtonType;
|
|
120
|
-
color: ButtonColor;
|
|
116
|
+
type: import("./props").ButtonType;
|
|
117
|
+
color: import("./props").ButtonColor;
|
|
121
118
|
round: boolean;
|
|
122
|
-
size: ButtonSize;
|
|
119
|
+
size: import("./props").ButtonSize;
|
|
123
120
|
disabled: boolean;
|
|
124
121
|
loading: boolean;
|
|
125
122
|
text: string;
|