bkui-vue 2.0.1-beta.37 → 2.0.1-beta.38
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.cjs.js +34 -34
- package/dist/index.esm.js +6489 -6465
- package/dist/index.umd.js +33 -33
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/cascader/index.js +0 -1
- package/lib/index.js +1 -1
- package/lib/select/common.d.ts +2 -2
- package/lib/select/index.d.ts +7 -4
- package/lib/select/index.js +56 -27
- package/lib/select/option.d.ts +4 -5
- package/lib/select/select.css +3 -0
- package/lib/select/select.d.ts +1 -0
- package/lib/select/select.less +4 -0
- package/lib/select/select.variable.css +3 -0
- package/lib/select/type.d.ts +9 -10
- package/lib/upload/index.d.ts +23 -0
- package/lib/upload/index.js +30 -6
- package/lib/upload/props.d.ts +6 -1
- package/lib/upload/upload.d.ts +11 -0
- package/lib/upload/upload.type.d.ts +7 -1
- package/package.json +1 -1
package/lib/upload/props.d.ts
CHANGED
@@ -1,6 +1,11 @@
|
|
1
|
-
import { APIResponse, EThemes, ExtraFormData, FormDataAttr, HeaderDataAttr, MaxSize, UploadFile, UploadRawFile, UploadRequestHandler } from './upload.type';
|
1
|
+
import { APIResponse, EThemes, ETypes, ExtraFormData, FormDataAttr, HeaderDataAttr, MaxSize, UploadFile, UploadRawFile, UploadRequestHandler } from './upload.type';
|
2
2
|
import type { PropType } from 'vue';
|
3
3
|
declare const _default: {
|
4
|
+
type: {
|
5
|
+
type: PropType<"formdata" | "binary">;
|
6
|
+
default: "formdata" | "binary";
|
7
|
+
validator: (val: ETypes) => boolean;
|
8
|
+
};
|
4
9
|
theme: {
|
5
10
|
type: PropType<"button" | "picture" | "draggable">;
|
6
11
|
default: "button" | "picture" | "draggable";
|
package/lib/upload/upload.d.ts
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
import { APIResponse, EThemes, UploadFile, UploadRawFile } from './upload.type';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
|
+
type: {
|
4
|
+
type: import("vue").PropType<"formdata" | "binary">;
|
5
|
+
default: "formdata" | "binary";
|
6
|
+
validator: (val: import("./upload.type").ETypes) => boolean;
|
7
|
+
};
|
3
8
|
theme: {
|
4
9
|
type: import("vue").PropType<"button" | "picture" | "draggable">;
|
5
10
|
default: "button" | "picture" | "draggable";
|
@@ -110,6 +115,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
110
115
|
default: number;
|
111
116
|
};
|
112
117
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("done" | "error" | "progress" | "delete" | "success" | "exceed")[], "done" | "error" | "progress" | "delete" | "success" | "exceed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
118
|
+
type: {
|
119
|
+
type: import("vue").PropType<"formdata" | "binary">;
|
120
|
+
default: "formdata" | "binary";
|
121
|
+
validator: (val: import("./upload.type").ETypes) => boolean;
|
122
|
+
};
|
113
123
|
theme: {
|
114
124
|
type: import("vue").PropType<"button" | "picture" | "draggable">;
|
115
125
|
default: "button" | "picture" | "draggable";
|
@@ -228,6 +238,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
228
238
|
onExceed?: (...args: any[]) => any;
|
229
239
|
}, {
|
230
240
|
name: string;
|
241
|
+
type: "formdata" | "binary";
|
231
242
|
data: import("./upload.type").ExtraFormData | import("./upload.type").ExtraFormData[];
|
232
243
|
header: import("./upload.type").HeaderDataAttr | import("./upload.type").HeaderDataAttr[];
|
233
244
|
extCls: string;
|
@@ -7,6 +7,11 @@ export declare const enum EThemes {
|
|
7
7
|
PICTURE = "picture"
|
8
8
|
}
|
9
9
|
export type Theme = Lowercase<keyof typeof EThemes>;
|
10
|
+
export declare const enum ETypes {
|
11
|
+
FORMDATA = "formdata",
|
12
|
+
BINARY = "binary"
|
13
|
+
}
|
14
|
+
export type Type = Lowercase<keyof typeof ETypes>;
|
10
15
|
export declare const enum EUploadStatus {
|
11
16
|
FAIL = "fail",
|
12
17
|
NEW = "new",
|
@@ -56,11 +61,12 @@ export type UploadProps = ExtractPropTypes<typeof uploadProps>;
|
|
56
61
|
export interface UploadRequestOptions {
|
57
62
|
action: string;
|
58
63
|
method: string;
|
64
|
+
type: Type;
|
59
65
|
data?: ExtraFormData | ExtraFormData[];
|
60
66
|
formDataAttributes?: FormDataAttr | FormDataAttr[];
|
61
67
|
filename: string;
|
62
68
|
file: File;
|
63
|
-
headers?: Headers | Record<string,
|
69
|
+
headers?: Headers | Record<string, string | number | null | undefined>;
|
64
70
|
header?: HeaderDataAttr | HeaderDataAttr[];
|
65
71
|
withCredentials: boolean;
|
66
72
|
sliceUrl: string;
|