@opentinyvue/vue-file-upload 3.21.0 → 3.22.1

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/lib/index.js CHANGED
@@ -7,9 +7,8 @@ function _extends() {
7
7
  return n;
8
8
  }, _extends.apply(null, arguments);
9
9
  }
10
- import { defineComponent, $prefix, $setup, $props } from "@opentinyvue/vue-common";
10
+ import { defineComponent, $props, $setup, $prefix } from "@opentinyvue/vue-common";
11
11
  import PcTemplate from "./pc.js";
12
- import MobileTemplate from "./mobile.js";
13
12
  import MobileFirstTemplate from "./mobile-first.js";
14
13
  import "@opentinyvue/vue-theme/file-upload/index.css";
15
14
  var template = function template2(mode) {
@@ -18,9 +17,6 @@ var template = function template2(mode) {
18
17
  if ("pc" === (tinyMode || mode)) {
19
18
  return PcTemplate;
20
19
  }
21
- if ("mobile" === (tinyMode || mode)) {
22
- return MobileTemplate;
23
- }
24
20
  if ("mobile-first" === (tinyMode || mode)) {
25
21
  return MobileFirstTemplate;
26
22
  }
@@ -378,7 +374,7 @@ var FileUpload = defineComponent({
378
374
  });
379
375
  }
380
376
  });
381
- var version = "3.21.0";
377
+ var version = "3.undefined";
382
378
  FileUpload.install = function(Vue) {
383
379
  Vue.component(FileUpload.name, FileUpload);
384
380
  };
@@ -7,16 +7,16 @@ function _extends() {
7
7
  return n;
8
8
  }, _extends.apply(null, arguments);
9
9
  }
10
- import { createVNode, createTextVNode, mergeProps, isVNode, resolveComponent } from "vue";
11
- import { renderless, api } from "@opentinyvue/vue-renderless/file-upload/vue";
12
- import { defineComponent, props, setup as _setup, h, isVue3 } from "@opentinyvue/vue-common";
10
+ import { createVNode, createTextVNode, mergeProps, resolveComponent, isVNode } from "vue";
11
+ import { api, renderless } from "@opentinyvue/vue-renderless/file-upload/vue";
12
+ import { defineComponent, props, h, setup as _setup, isVue3 } from "@opentinyvue/vue-common";
13
13
  import UploadList from "@opentinyvue/vue-upload-list";
14
14
  import Upload from "@opentinyvue/vue-upload";
15
15
  import Progress from "@opentinyvue/vue-progress";
16
16
  import Modal from "@opentinyvue/vue-modal";
17
17
  import DialogBox from "@opentinyvue/vue-dialog-box";
18
18
  import Tooltip from "@opentinyvue/vue-tooltip";
19
- import { IconAttachment, IconSuccessful, IconClose, IconDownload, IconFileCloudupload, IconPlus, IconPlusCircle, IconPicture, IconMic, IconStartCircle, IconHelpQuery } from "@opentinyvue/vue-icon";
19
+ import { IconHelpQuery, IconStartCircle, IconMic, IconPicture, IconPlusCircle, IconPlus, IconFileCloudupload, IconDownload, IconClose, IconSuccessful, IconAttachment } from "@opentinyvue/vue-icon";
20
20
  import Streamsaver from "streamsaver";
21
21
  import Button from "@opentinyvue/vue-button";
22
22
  import Input from "@opentinyvue/vue-input";
@@ -223,7 +223,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
223
223
  operateContent = downloadAll2 ? createVNode("div", {
224
224
  "class": "hidden sm:inline-block align-middle"
225
225
  }, [createVNode(resolveComponent("tiny-button"), {
226
- "class": "ml-2",
227
226
  "onClick": function onClick() {
228
227
  return downloadAll2(uploadFiles2);
229
228
  }
package/lib/pc.js CHANGED
@@ -8,8 +8,8 @@ function _extends() {
8
8
  }, _extends.apply(null, arguments);
9
9
  }
10
10
  import { createVNode, resolveComponent, createTextVNode, mergeProps, isVNode } from "vue";
11
- import { renderless, api } from "@opentinyvue/vue-renderless/file-upload/vue";
12
- import { defineComponent, props, setup as _setup, h, isVue3 } from "@opentinyvue/vue-common";
11
+ import { api, renderless } from "@opentinyvue/vue-renderless/file-upload/vue";
12
+ import { defineComponent, props, h, setup as _setup, isVue3 } from "@opentinyvue/vue-common";
13
13
  import UploadList from "@opentinyvue/vue-upload-list";
14
14
  import Upload from "@opentinyvue/vue-upload";
15
15
  import Progress from "@opentinyvue/vue-progress";
package/package.json CHANGED
@@ -1,27 +1,26 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-file-upload",
3
- "version": "3.21.0",
3
+ "version": "3.22.1",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
7
7
  "main": "./lib/index.js",
8
8
  "module": "./lib/index.js",
9
9
  "dependencies": {
10
- "@opentinyvue/vue-button": "~3.21.0",
11
- "@opentinyvue/vue-common": "~3.21.0",
12
- "@opentinyvue/vue-dialog-box": "~3.21.0",
13
- "@opentinyvue/vue-icon": "~3.21.0",
14
- "@opentinyvue/vue-input": "~3.21.0",
15
- "@opentinyvue/vue-modal": "~3.21.0",
16
- "@opentinyvue/vue-popover": "~3.21.0",
17
- "@opentinyvue/vue-progress": "~3.21.0",
18
- "@opentinyvue/vue-renderless": "~3.21.0",
19
- "@opentinyvue/vue-tooltip": "~3.21.0",
20
- "@opentinyvue/vue-upload": "~3.21.0",
21
- "@opentinyvue/vue-upload-list": "~3.21.0",
22
- "@opentinyvue/vue-switch": "~3.21.0",
23
- "@opentinyvue/vue-theme": "~3.21.0",
24
- "@opentinyvue/vue-theme-mobile": "~3.21.0",
10
+ "@opentinyvue/vue-button": "~3.22.0",
11
+ "@opentinyvue/vue-common": "~3.22.0",
12
+ "@opentinyvue/vue-dialog-box": "~3.22.0",
13
+ "@opentinyvue/vue-icon": "~3.22.0",
14
+ "@opentinyvue/vue-input": "~3.22.0",
15
+ "@opentinyvue/vue-modal": "~3.22.0",
16
+ "@opentinyvue/vue-popover": "~3.22.0",
17
+ "@opentinyvue/vue-progress": "~3.22.0",
18
+ "@opentinyvue/vue-renderless": "~3.22.0",
19
+ "@opentinyvue/vue-tooltip": "~3.22.0",
20
+ "@opentinyvue/vue-upload": "~3.22.0",
21
+ "@opentinyvue/vue-upload-list": "~3.22.0",
22
+ "@opentinyvue/vue-switch": "~3.22.0",
23
+ "@opentinyvue/vue-theme": "~3.22.0",
25
24
  "streamsaver": "2.0.6"
26
25
  },
27
26
  "types": "index.d.ts",
package/src/index.d.ts CHANGED
@@ -227,7 +227,7 @@ export declare const fileUploadProps: {
227
227
  default: () => never[];
228
228
  };
229
229
  fileSize: {
230
- type: (ArrayConstructor | NumberConstructor)[];
230
+ type: (NumberConstructor | ArrayConstructor)[];
231
231
  validator(value: any): boolean;
232
232
  };
233
233
  fileTitle: {
@@ -516,7 +516,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
516
516
  default: () => never[];
517
517
  };
518
518
  fileSize: {
519
- type: (ArrayConstructor | NumberConstructor)[];
519
+ type: (NumberConstructor | ArrayConstructor)[];
520
520
  validator(value: any): boolean;
521
521
  };
522
522
  fileTitle: {
@@ -806,7 +806,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
806
806
  default: () => never[];
807
807
  };
808
808
  fileSize: {
809
- type: (ArrayConstructor | NumberConstructor)[];
809
+ type: (NumberConstructor | ArrayConstructor)[];
810
810
  validator(value: any): boolean;
811
811
  };
812
812
  fileTitle: {
@@ -966,11 +966,12 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
966
966
  }>>, {
967
967
  name: string;
968
968
  disabled: boolean;
969
+ display: boolean;
969
970
  type: string;
970
971
  title: string;
971
- mode: string;
972
972
  drag: boolean;
973
- display: boolean;
973
+ withCredentials: boolean;
974
+ mode: string;
974
975
  tiny_mode_root: boolean;
975
976
  _constants: Record<string, any>;
976
977
  lockScroll: boolean;
@@ -980,7 +981,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
980
981
  isHidden: boolean;
981
982
  scale: string | number;
982
983
  listType: string;
983
- withCredentials: boolean;
984
984
  sourceType: string;
985
985
  openDownloadFile: boolean;
986
986
  isFolderTitle: boolean;
@@ -995,16 +995,16 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
995
995
  promptTip: boolean;
996
996
  showFileList: boolean;
997
997
  encryptConfig: Record<string, any>;
998
- fileIconList: unknown[];
999
- fileTitle: string;
1000
- headerShow: boolean;
1001
- successStatistics: boolean;
1002
- uploadIcon: boolean;
1003
998
  edm: Record<string, any>;
1004
999
  dragger: boolean;
1005
1000
  mergeService: boolean;
1006
1001
  thumbOption: Record<string, any>;
1007
1002
  cacheToken: boolean;
1008
1003
  reUploadable: boolean;
1004
+ fileIconList: unknown[];
1005
+ fileTitle: string;
1006
+ headerShow: boolean;
1007
+ successStatistics: boolean;
1008
+ uploadIcon: boolean;
1009
1009
  }, {}>;
1010
1010
  export default _default;
@@ -5,8 +5,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
5
5
  type?: any;
6
6
  data?: any;
7
7
  title?: any;
8
- mode?: any;
8
+ fileSize?: any;
9
9
  drag?: any;
10
+ withCredentials?: any;
11
+ mode?: any;
12
+ customClass?: any;
10
13
  tiny_mode?: any;
11
14
  tiny_mode_root?: any;
12
15
  tiny_template?: any;
@@ -14,16 +17,13 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
14
17
  _constants?: any;
15
18
  tiny_theme?: any;
16
19
  tiny_chart_theme?: any;
17
- customClass?: any;
18
20
  lockScroll?: any;
19
21
  action?: any;
20
22
  showTitle?: any;
21
23
  displayOnly?: any;
22
24
  multiple?: any;
23
25
  scale?: any;
24
- fileSize?: any;
25
26
  listType?: any;
26
- withCredentials?: any;
27
27
  httpRequest?: any;
28
28
  accept?: any;
29
29
  limit?: any;
@@ -42,21 +42,24 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
42
42
  promptTip?: any;
43
43
  showFileList?: any;
44
44
  encryptConfig?: any;
45
- beforeRemove?: any;
46
45
  edm?: any;
47
46
  dragger?: any;
47
+ beforeRemove?: any;
48
48
  mergeService?: any;
49
49
  thumbOption?: any;
50
50
  hwh5?: any;
51
51
  cacheToken?: any;
52
- }>, IFileUploadApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("error" | "progress" | "change" | "success" | "remove" | "download" | "trigger-click" | "click-file-list" | "hash-progress")[], "error" | "progress" | "change" | "success" | "remove" | "download" | "trigger-click" | "click-file-list" | "hash-progress", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
52
+ }>, IFileUploadApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("error" | "progress" | "success" | "change" | "remove" | "download" | "trigger-click" | "click-file-list" | "hash-progress")[], "error" | "progress" | "success" | "change" | "remove" | "download" | "trigger-click" | "click-file-list" | "hash-progress", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
53
53
  name?: any;
54
54
  disabled?: any;
55
55
  type?: any;
56
56
  data?: any;
57
57
  title?: any;
58
- mode?: any;
58
+ fileSize?: any;
59
59
  drag?: any;
60
+ withCredentials?: any;
61
+ mode?: any;
62
+ customClass?: any;
60
63
  tiny_mode?: any;
61
64
  tiny_mode_root?: any;
62
65
  tiny_template?: any;
@@ -64,16 +67,13 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
64
67
  _constants?: any;
65
68
  tiny_theme?: any;
66
69
  tiny_chart_theme?: any;
67
- customClass?: any;
68
70
  lockScroll?: any;
69
71
  action?: any;
70
72
  showTitle?: any;
71
73
  displayOnly?: any;
72
74
  multiple?: any;
73
75
  scale?: any;
74
- fileSize?: any;
75
76
  listType?: any;
76
- withCredentials?: any;
77
77
  httpRequest?: any;
78
78
  accept?: any;
79
79
  limit?: any;
@@ -92,9 +92,9 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
92
92
  promptTip?: any;
93
93
  showFileList?: any;
94
94
  encryptConfig?: any;
95
- beforeRemove?: any;
96
95
  edm?: any;
97
96
  dragger?: any;
97
+ beforeRemove?: any;
98
98
  mergeService?: any;
99
99
  thumbOption?: any;
100
100
  hwh5?: any;
@@ -115,8 +115,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
115
115
  readonly type?: any;
116
116
  readonly data?: any;
117
117
  readonly title?: any;
118
- readonly mode?: any;
118
+ readonly fileSize?: any;
119
119
  readonly drag?: any;
120
+ readonly withCredentials?: any;
121
+ readonly mode?: any;
122
+ readonly customClass?: any;
120
123
  readonly tiny_mode?: any;
121
124
  readonly tiny_mode_root?: any;
122
125
  readonly tiny_template?: any;
@@ -124,16 +127,13 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
124
127
  readonly _constants?: any;
125
128
  readonly tiny_theme?: any;
126
129
  readonly tiny_chart_theme?: any;
127
- readonly customClass?: any;
128
130
  readonly lockScroll?: any;
129
131
  readonly action?: any;
130
132
  readonly showTitle?: any;
131
133
  readonly displayOnly?: any;
132
134
  readonly multiple?: any;
133
135
  readonly scale?: any;
134
- readonly fileSize?: any;
135
136
  readonly listType?: any;
136
- readonly withCredentials?: any;
137
137
  readonly httpRequest?: any;
138
138
  readonly accept?: any;
139
139
  readonly limit?: any;
@@ -152,9 +152,9 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
152
152
  readonly promptTip?: any;
153
153
  readonly showFileList?: any;
154
154
  readonly encryptConfig?: any;
155
- readonly beforeRemove?: any;
156
155
  readonly edm?: any;
157
156
  readonly dragger?: any;
157
+ readonly beforeRemove?: any;
158
158
  readonly mergeService?: any;
159
159
  readonly thumbOption?: any;
160
160
  readonly hwh5?: any;
package/src/pc.vue.d.ts CHANGED
@@ -4,7 +4,9 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
4
4
  type?: any;
5
5
  data?: any;
6
6
  title?: any;
7
+ fileSize?: any;
7
8
  drag?: any;
9
+ withCredentials?: any;
8
10
  tiny_mode?: any;
9
11
  tiny_mode_root?: any;
10
12
  tiny_template?: any;
@@ -17,9 +19,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
17
19
  displayOnly?: any;
18
20
  multiple?: any;
19
21
  isHidden?: any;
20
- fileSize?: any;
21
22
  listType?: any;
22
- withCredentials?: any;
23
23
  httpRequest?: any;
24
24
  accept?: any;
25
25
  limit?: any;
@@ -37,21 +37,23 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
37
37
  promptTip?: any;
38
38
  showFileList?: any;
39
39
  encryptConfig?: any;
40
- beforeRemove?: any;
41
40
  edm?: any;
42
41
  dragger?: any;
42
+ beforeRemove?: any;
43
43
  mergeService?: any;
44
44
  thumbOption?: any;
45
45
  cacheToken?: any;
46
46
  reUploadable?: any;
47
47
  reUploadTip?: any;
48
- }>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("error" | "progress" | "change" | "success" | "remove" | "download" | "hash-progress")[], "error" | "progress" | "change" | "success" | "remove" | "download" | "hash-progress", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
48
+ }>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("error" | "progress" | "success" | "change" | "remove" | "download" | "hash-progress")[], "error" | "progress" | "success" | "change" | "remove" | "download" | "hash-progress", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
49
49
  name?: any;
50
50
  disabled?: any;
51
51
  type?: any;
52
52
  data?: any;
53
53
  title?: any;
54
+ fileSize?: any;
54
55
  drag?: any;
56
+ withCredentials?: any;
55
57
  tiny_mode?: any;
56
58
  tiny_mode_root?: any;
57
59
  tiny_template?: any;
@@ -64,9 +66,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
64
66
  displayOnly?: any;
65
67
  multiple?: any;
66
68
  isHidden?: any;
67
- fileSize?: any;
68
69
  listType?: any;
69
- withCredentials?: any;
70
70
  httpRequest?: any;
71
71
  accept?: any;
72
72
  limit?: any;
@@ -84,9 +84,9 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
84
84
  promptTip?: any;
85
85
  showFileList?: any;
86
86
  encryptConfig?: any;
87
- beforeRemove?: any;
88
87
  edm?: any;
89
88
  dragger?: any;
89
+ beforeRemove?: any;
90
90
  mergeService?: any;
91
91
  thumbOption?: any;
92
92
  cacheToken?: any;
@@ -106,7 +106,9 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
106
106
  readonly type?: any;
107
107
  readonly data?: any;
108
108
  readonly title?: any;
109
+ readonly fileSize?: any;
109
110
  readonly drag?: any;
111
+ readonly withCredentials?: any;
110
112
  readonly tiny_mode?: any;
111
113
  readonly tiny_mode_root?: any;
112
114
  readonly tiny_template?: any;
@@ -119,9 +121,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
119
121
  readonly displayOnly?: any;
120
122
  readonly multiple?: any;
121
123
  readonly isHidden?: any;
122
- readonly fileSize?: any;
123
124
  readonly listType?: any;
124
- readonly withCredentials?: any;
125
125
  readonly httpRequest?: any;
126
126
  readonly accept?: any;
127
127
  readonly limit?: any;
@@ -139,9 +139,9 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
139
139
  readonly promptTip?: any;
140
140
  readonly showFileList?: any;
141
141
  readonly encryptConfig?: any;
142
- readonly beforeRemove?: any;
143
142
  readonly edm?: any;
144
143
  readonly dragger?: any;
144
+ readonly beforeRemove?: any;
145
145
  readonly mergeService?: any;
146
146
  readonly thumbOption?: any;
147
147
  readonly cacheToken?: any;
package/lib/mobile.js DELETED
@@ -1,136 +0,0 @@
1
- function _extends() {
2
- return _extends = Object.assign ? Object.assign.bind() : function(n) {
3
- for (var e = 1; e < arguments.length; e++) {
4
- var t = arguments[e];
5
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
6
- }
7
- return n;
8
- }, _extends.apply(null, arguments);
9
- }
10
- import { createVNode, createTextVNode, resolveComponent } from "vue";
11
- import { renderless, api } from "@opentinyvue/vue-renderless/file-upload/vue";
12
- import { defineComponent, props, setup as _setup, h } from "@opentinyvue/vue-common";
13
- import UploadList from "@opentinyvue/vue-upload-list";
14
- import Upload from "@opentinyvue/vue-upload";
15
- import Progress from "@opentinyvue/vue-progress";
16
- import Modal from "@opentinyvue/vue-modal";
17
- import { iconUpload } from "@opentinyvue/vue-icon";
18
- import "@opentinyvue/vue-theme-mobile/file-upload/index.css";
19
- import "@opentinyvue/vue-theme-mobile/upload-list/index.css";
20
- import "@opentinyvue/vue-theme-mobile/upload-dragger/index.css";
21
- import "@opentinyvue/vue-theme-mobile/upload/index.css";
22
- var _sfc_main = /* @__PURE__ */ defineComponent({
23
- inheritAttrs: false,
24
- props: [].concat(props, ["size", "action", "drag", "headers", "data", "multiple", "name", "withCredentials", "showFileList", "accept", "type", "beforeUpload", "beforeRemove", "fileList", "autoUpload", "listType", "httpRequest", "disabled", "limit", "fileIconList", "display", "fileTitle", "headerShow", "successStatistics", "uploadIcon", "edm"]),
25
- setup: function setup(props2, context) {
26
- return _setup({
27
- props: props2,
28
- context,
29
- renderless,
30
- api,
31
- extendOptions: {
32
- Modal
33
- }
34
- });
35
- },
36
- components: {
37
- Progress,
38
- UploadList,
39
- Upload,
40
- IconUpload: iconUpload()
41
- },
42
- render: function render() {
43
- var _this = this;
44
- var _this$state$listeners = this.state.listeners, _this$state$listeners2 = _this$state$listeners.exceed, exceed = _this$state$listeners2 === void 0 ? function() {
45
- } : _this$state$listeners2, _this$state$listeners3 = _this$state$listeners.preview, preview = _this$state$listeners3 === void 0 ? function() {
46
- } : _this$state$listeners3;
47
- var fileTitle = this.fileTitle, headerShow = this.headerShow, successStatistics = this.successStatistics, uploadIcon = this.uploadIcon;
48
- var uploadList;
49
- var uploaArr = this.state.uploadFiles;
50
- var successNum = 0;
51
- var pictureArr = [];
52
- uploaArr && uploaArr.map(function(item) {
53
- if (_this.listType === "picture-card" && item.url) {
54
- pictureArr.push(item.url);
55
- }
56
- if (item.status === "success") {
57
- successNum += 1;
58
- }
59
- });
60
- if (this.showFileList) {
61
- var listData = {
62
- props: {
63
- disabled: this.state.uploadDisabled,
64
- listType: this.listType,
65
- files: this.state.uploadFiles,
66
- filesIcon: this.fileIconList,
67
- display: this.display,
68
- srcList: pictureArr,
69
- handlePreview: preview
70
- },
71
- on: {
72
- remove: this.handleRemove
73
- }
74
- };
75
- uploadList = h(UploadList, _extends({}, listData), function(props2) {
76
- if (_this.slots.file) {
77
- return _this.slots.file({
78
- file: props2.file
79
- });
80
- }
81
- });
82
- }
83
- var uploadData = {
84
- props: {
85
- type: this.type,
86
- drag: this.drag,
87
- action: this.state.url,
88
- multiple: this.multiple,
89
- withCredentials: this.withCredentials,
90
- headers: this.headers,
91
- name: this.name,
92
- data: this.data,
93
- accept: this.accept,
94
- fileList: this.state.uploadFiles,
95
- autoUpload: this.autoUpload,
96
- listType: this.listType,
97
- disabled: this.state.uploadDisabled,
98
- limit: this.limit,
99
- onExceed: exceed,
100
- onStart: this.handleStart,
101
- onProgress: this.handleProgress,
102
- onSuccess: this.handleSuccess,
103
- onError: this.handleError,
104
- onPreview: preview,
105
- httpRequest: this.state.httpRequest,
106
- size: this.size
107
- },
108
- ref: "upload-inner"
109
- };
110
- var trigger = this.slots.trigger && this.slots.trigger() || this.slots.default();
111
- var uploadComponent = !headerShow || this.listType === "picture-card" ? h(Upload, _extends({}, uploadData), trigger) : "";
112
- var header = createVNode("div", {
113
- "class": "tiny-mobile-file-upload__header"
114
- }, [createVNode("div", {
115
- "class": "tiny-mobile-file-upload__header-title"
116
- }, [fileTitle]), createVNode("div", {
117
- "class": "tiny-mobile-file-upload__header-upload"
118
- }, [successStatistics ? createVNode("span", {
119
- "class": "upload-status"
120
- }, [successNum, createTextVNode("/"), uploaArr.length]) : "", this.listType !== "picture-card" && uploadIcon ? createVNode("span", {
121
- "class": "upload-icon"
122
- }, [h(Upload, _extends({}, uploadData), trigger || createVNode(resolveComponent("icon-upload"), null, null))]) : ""])]);
123
- return createVNode("div", {
124
- "class": ["tiny-mobile-file-upload", this.$attrs.class],
125
- "ref": "fileUpload"
126
- }, [headerShow ? header : "", createVNode("div", {
127
- "class": {
128
- "tiny-mobile-file-upload__wrap": true,
129
- "is-card": this.listType === "picture-card"
130
- }
131
- }, [this.listType === "picture-card" ? uploadList : "", this.slots.trigger ? [uploadComponent, this.slots.default && this.slots.default()] : uploadComponent, this.slots.tip && this.slots.tip(), this.listType !== "picture-card" ? uploadList : ""])]);
132
- }
133
- });
134
- export {
135
- _sfc_main as default
136
- };
@@ -1,104 +0,0 @@
1
- declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
- name?: any;
3
- disabled?: any;
4
- type?: any;
5
- data?: any;
6
- drag?: any;
7
- size?: any;
8
- display?: any;
9
- tiny_mode?: any;
10
- tiny_mode_root?: any;
11
- tiny_template?: any;
12
- tiny_renderless?: any;
13
- _constants?: any;
14
- tiny_theme?: any;
15
- tiny_chart_theme?: any;
16
- action?: any;
17
- multiple?: any;
18
- listType?: any;
19
- withCredentials?: any;
20
- httpRequest?: any;
21
- accept?: any;
22
- limit?: any;
23
- autoUpload?: any;
24
- beforeUpload?: any;
25
- fileList?: any;
26
- headers?: any;
27
- showFileList?: any;
28
- beforeRemove?: any;
29
- fileIconList?: any;
30
- fileTitle?: any;
31
- headerShow?: any;
32
- successStatistics?: any;
33
- uploadIcon?: any;
34
- edm?: any;
35
- }>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
36
- name?: any;
37
- disabled?: any;
38
- type?: any;
39
- data?: any;
40
- drag?: any;
41
- size?: any;
42
- display?: any;
43
- tiny_mode?: any;
44
- tiny_mode_root?: any;
45
- tiny_template?: any;
46
- tiny_renderless?: any;
47
- _constants?: any;
48
- tiny_theme?: any;
49
- tiny_chart_theme?: any;
50
- action?: any;
51
- multiple?: any;
52
- listType?: any;
53
- withCredentials?: any;
54
- httpRequest?: any;
55
- accept?: any;
56
- limit?: any;
57
- autoUpload?: any;
58
- beforeUpload?: any;
59
- fileList?: any;
60
- headers?: any;
61
- showFileList?: any;
62
- beforeRemove?: any;
63
- fileIconList?: any;
64
- fileTitle?: any;
65
- headerShow?: any;
66
- successStatistics?: any;
67
- uploadIcon?: any;
68
- edm?: any;
69
- }>>>, {
70
- readonly name?: any;
71
- readonly disabled?: any;
72
- readonly type?: any;
73
- readonly data?: any;
74
- readonly drag?: any;
75
- readonly size?: any;
76
- readonly display?: any;
77
- readonly tiny_mode?: any;
78
- readonly tiny_mode_root?: any;
79
- readonly tiny_template?: any;
80
- readonly tiny_renderless?: any;
81
- readonly _constants?: any;
82
- readonly tiny_theme?: any;
83
- readonly tiny_chart_theme?: any;
84
- readonly action?: any;
85
- readonly multiple?: any;
86
- readonly listType?: any;
87
- readonly withCredentials?: any;
88
- readonly httpRequest?: any;
89
- readonly accept?: any;
90
- readonly limit?: any;
91
- readonly autoUpload?: any;
92
- readonly beforeUpload?: any;
93
- readonly fileList?: any;
94
- readonly headers?: any;
95
- readonly showFileList?: any;
96
- readonly beforeRemove?: any;
97
- readonly fileIconList?: any;
98
- readonly fileTitle?: any;
99
- readonly headerShow?: any;
100
- readonly successStatistics?: any;
101
- readonly uploadIcon?: any;
102
- readonly edm?: any;
103
- }, {}>;
104
- export default _default;