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.
@@ -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";
@@ -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, null | number | string | undefined>;
69
+ headers?: Headers | Record<string, string | number | null | undefined>;
64
70
  header?: HeaderDataAttr | HeaderDataAttr[];
65
71
  withCredentials: boolean;
66
72
  sliceUrl: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.1-beta.37",
3
+ "version": "2.0.1-beta.38",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",