@vunk/form 1.1.77 → 1.1.80

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.
Files changed (297) hide show
  1. package/components/_plugin-vue_export-helper.mjs +9 -0
  2. package/components/button/{index.js → index.mjs} +33 -29
  3. package/components/button/src/ctx.d.ts +30 -30
  4. package/components/button/src/index.vue.d.ts +69 -69
  5. package/components/cascader/index.css +0 -2
  6. package/components/cascader/{index.js → index.mjs} +22 -22
  7. package/components/cascader/src/ctx.d.ts +37 -45
  8. package/components/cascader/src/index.vue.d.ts +92 -92
  9. package/components/cascader/src/use.d.ts +1 -1
  10. package/components/checkbox/index.css +0 -9
  11. package/components/checkbox/{index.js → index.mjs} +45 -42
  12. package/components/checkbox/src/ctx.d.ts +29 -32
  13. package/components/checkbox/src/index.vue.d.ts +65 -65
  14. package/components/color-picker/{index.js → index.mjs} +23 -22
  15. package/components/color-picker/src/ctx.d.ts +29 -29
  16. package/components/color-picker/src/index.vue.d.ts +67 -67
  17. package/components/date-picker/index.d.ts +1 -0
  18. package/components/date-picker/{index.js → index.mjs} +46 -26
  19. package/components/date-picker/src/ctx.d.ts +51 -49
  20. package/components/date-picker/src/index.vue.d.ts +104 -104
  21. package/components/date-picker-range/index.css +18 -0
  22. package/components/date-picker-range/index.d.ts +4 -0
  23. package/components/date-picker-range/index.mjs +164 -0
  24. package/components/date-picker-range/src/ctx.d.ts +177 -0
  25. package/components/date-picker-range/src/index.vue.d.ts +398 -0
  26. package/components/date-picker-range/src/types.d.ts +12 -0
  27. package/components/download-plus/index.css +0 -6
  28. package/components/download-plus/{index.js → index.mjs} +119 -147
  29. package/components/download-plus/src/api.d.ts +1 -1
  30. package/components/download-plus/src/ctx.d.ts +27 -26
  31. package/components/download-plus/src/index.vue.d.ts +59 -59
  32. package/components/esri-input-geojson/index.css +0 -10
  33. package/components/esri-input-geojson/index.mjs +1109 -0
  34. package/components/esri-input-geojson/src/append.vue.d.ts +1 -1
  35. package/components/esri-input-geojson/src/ctx.d.ts +49 -72
  36. package/components/esri-input-geojson/src/index.vue.d.ts +138 -158
  37. package/components/esri-input-geojson/src/types.d.ts +0 -1
  38. package/components/esri-input-geojson/src/viewer.vue.d.ts +18 -19
  39. package/components/form/{index.js → index.mjs} +38 -36
  40. package/components/form/src/ctx.d.ts +13 -297
  41. package/components/form/src/index.vue.d.ts +97 -659
  42. package/components/form-item/index.css +0 -8
  43. package/components/form-item/{index.js → index.mjs} +22 -19
  44. package/components/form-item/src/ctx.d.ts +13 -11
  45. package/components/form-item/src/index.vue.d.ts +20 -20
  46. package/components/form-item-renderer/{index.js → index.mjs} +9 -7
  47. package/components/form-item-renderer/src/index.vue.d.ts +1 -1
  48. package/components/form-item-renderer-template/{index.js → index.mjs} +7 -7
  49. package/components/geoinput/{index.js → index.mjs} +10 -17
  50. package/components/geoinput/src/ctx.d.ts +48 -60
  51. package/components/geoinput/src/index.vue.d.ts +114 -132
  52. package/components/geoinput-read/index.css +0 -2
  53. package/components/geoinput-read/{index.js → index.mjs} +101 -109
  54. package/components/geoinput-read/src/core.vue.d.ts +123 -142
  55. package/components/geoinput-read/src/ctx.d.ts +50 -74
  56. package/components/geoinput-read/src/index.vue.d.ts +102 -120
  57. package/components/geoinput-update/index.css +0 -6
  58. package/components/geoinput-update/index.mjs +399 -0
  59. package/components/geoinput-update/src/ctx.d.ts +49 -69
  60. package/components/geoinput-update/src/index.vue.d.ts +126 -141
  61. package/components/index.mjs +11 -0
  62. package/components/index2.mjs +306 -0
  63. package/components/index3.mjs +484 -0
  64. package/components/input/{index.js → index.mjs} +31 -27
  65. package/components/input/src/ctx.d.ts +47 -66
  66. package/components/input/src/index.vue.d.ts +101 -113
  67. package/components/input-link/index.css +0 -2
  68. package/components/input-link/index.mjs +151 -0
  69. package/components/input-link/src/ctx.d.ts +40 -56
  70. package/components/input-link/src/index.vue.d.ts +89 -101
  71. package/components/input-number/index.css +0 -2
  72. package/components/input-number/{index.js → index.mjs} +25 -25
  73. package/components/input-number/src/ctx.d.ts +31 -37
  74. package/components/input-number/src/index.vue.d.ts +71 -71
  75. package/components/radio/index.css +0 -6
  76. package/components/radio/{index.js → index.mjs} +50 -47
  77. package/components/radio/src/ctx.d.ts +29 -29
  78. package/components/radio/src/index.vue.d.ts +64 -64
  79. package/components/select/index.css +0 -2
  80. package/components/select/{index.js → index.mjs} +49 -48
  81. package/components/select/src/ctx.d.ts +31 -85
  82. package/components/select/src/index.vue.d.ts +121 -230
  83. package/components/slider/{index.js → index.mjs} +28 -24
  84. package/components/slider/src/ctx.d.ts +35 -35
  85. package/components/slider/src/index.vue.d.ts +93 -93
  86. package/components/switch/index.css +0 -2
  87. package/components/switch/{index.js → index.mjs} +29 -24
  88. package/components/switch/src/ctx.d.ts +40 -40
  89. package/components/switch/src/index.vue.d.ts +91 -91
  90. package/components/templates-default/index.mjs +302 -0
  91. package/components/templates-default/src/ctx.d.ts +2 -4
  92. package/components/templates-default/src/index.vue.d.ts +2 -8
  93. package/components/templates-element-plus/index.mjs +106 -0
  94. package/components/templates-esri/index.mjs +59 -0
  95. package/components/templates-layout/index.css +0 -3
  96. package/components/templates-layout/index.mjs +131 -0
  97. package/components/templates-mapbox/index.mjs +59 -0
  98. package/components/templates-variant/index.d.ts +4 -0
  99. package/components/templates-variant/index.mjs +64 -0
  100. package/components/templates-variant/src/ctx.d.ts +11 -0
  101. package/components/templates-variant/src/index.vue.d.ts +20 -0
  102. package/components/templates-variant/src/types.d.ts +2 -0
  103. package/components/upload/index.css +0 -7
  104. package/components/upload/index.mjs +501 -0
  105. package/components/upload/src/ctx.d.ts +36 -38
  106. package/components/upload/src/file.vue.d.ts +22 -21
  107. package/components/upload/src/index.vue.d.ts +78 -78
  108. package/components/upload-plus/index.css +4 -8
  109. package/components/upload-plus/{index.js → index.mjs} +9497 -926
  110. package/components/upload-plus/src/api.d.ts +1 -1
  111. package/components/upload-plus/src/ctx.d.ts +25 -28
  112. package/components/upload-plus/src/index.vue.d.ts +58 -58
  113. package/components/van-cascader/index.css +0 -2
  114. package/components/van-cascader/{index.js → index.mjs} +41 -44
  115. package/components/van-cascader/src/ctx.d.ts +35 -35
  116. package/components/van-cascader/src/index.vue.d.ts +82 -82
  117. package/components/var-datetime-picker/index.css +0 -2
  118. package/components/var-datetime-picker/index.mjs +324 -0
  119. package/components/var-datetime-picker/src/ctx.d.ts +27 -26
  120. package/components/var-datetime-picker/src/index.vue.d.ts +57 -57
  121. package/components/vditor/{index.js → index.mjs} +9 -14
  122. package/components/vditor/src/ctx.d.ts +2 -1
  123. package/components/vditor/src/index.vue.d.ts +2 -3
  124. package/composables/index.mjs +85 -0
  125. package/composables/useSourceManager.d.ts +2 -2
  126. package/defaults.d.ts +1 -1
  127. package/index.css +22 -168
  128. package/index.d.ts +1 -1
  129. package/index.esm.js +44 -1
  130. package/package.json +257 -2
  131. package/shared/const/index.d.ts +1 -1
  132. package/shared/const/index.mjs +56 -0
  133. package/shared/element-plus/ctx.d.ts +26 -94
  134. package/shared/element-plus/index.mjs +285 -0
  135. package/shared/element-plus/instances.d.ts +29 -28
  136. package/shared/form/index.mjs +30 -0
  137. package/shared/helper/index.mjs +9 -0
  138. package/shared/index.mjs +1 -0
  139. package/shared/infer-prop/index.mjs +34 -0
  140. package/shared/progress-it/index.mjs +38 -0
  141. package/shared/rules/index.mjs +53 -0
  142. package/shared/types/source/index.d.ts +2 -1
  143. package/shared/upload/index.mjs +771 -0
  144. package/components/button/src/ctx.js +0 -1
  145. package/components/cascader/src/ctx.js +0 -1
  146. package/components/cascader/src/types.js +0 -1
  147. package/components/cascader/src/use.js +0 -1
  148. package/components/checkbox/src/ctx.js +0 -1
  149. package/components/checkbox/src/index.css +0 -1
  150. package/components/checkbox/src/types.js +0 -1
  151. package/components/color-picker/index.css +0 -1
  152. package/components/color-picker/src/ctx.js +0 -1
  153. package/components/color-picker/src/index.css +0 -1
  154. package/components/color-picker/src/types.js +0 -1
  155. package/components/date-picker/index.css +0 -1
  156. package/components/date-picker/src/ctx.js +0 -1
  157. package/components/date-picker/src/index.css +0 -1
  158. package/components/date-picker/src/types.js +0 -1
  159. package/components/download-plus/src/api.js +0 -1
  160. package/components/download-plus/src/const.js +0 -1
  161. package/components/download-plus/src/ctx.js +0 -1
  162. package/components/download-plus/src/index.css +0 -1
  163. package/components/download-plus/src/types.js +0 -1
  164. package/components/esri-input-geojson/index.js +0 -1563
  165. package/components/esri-input-geojson/src/const.js +0 -1
  166. package/components/esri-input-geojson/src/ctx.js +0 -1
  167. package/components/esri-input-geojson/src/index.css +0 -1
  168. package/components/esri-input-geojson/src/types.js +0 -1
  169. package/components/form/index.css +0 -1
  170. package/components/form/src/ctx.js +0 -1
  171. package/components/form/src/index.css +0 -1
  172. package/components/form/src/types.js +0 -1
  173. package/components/form/src/utils.js +0 -1
  174. package/components/form-item/src/ctx.js +0 -1
  175. package/components/form-item/src/index.css +0 -1
  176. package/components/form-item/src/types.js +0 -1
  177. package/components/form-item-renderer/index.css +0 -1
  178. package/components/form-item-renderer/src/ctx.js +0 -1
  179. package/components/form-item-renderer/src/index.css +0 -1
  180. package/components/form-item-renderer/src/symbols.js +0 -1
  181. package/components/form-item-renderer/src/types.js +0 -1
  182. package/components/form-item-renderer-template/index.css +0 -1
  183. package/components/form-item-renderer-template/src/ctx.js +0 -1
  184. package/components/form-item-renderer-template/src/index.css +0 -1
  185. package/components/form-item-renderer-template/src/types.js +0 -1
  186. package/components/geoinput/index.css +0 -1
  187. package/components/geoinput/src/ctx.js +0 -1
  188. package/components/geoinput/src/index.css +0 -1
  189. package/components/geoinput/src/types.js +0 -1
  190. package/components/geoinput-read/src/ctx.js +0 -1
  191. package/components/geoinput-read/src/index.css +0 -1
  192. package/components/geoinput-read/src/types.js +0 -1
  193. package/components/geoinput-update/index.js +0 -930
  194. package/components/geoinput-update/src/ctx.js +0 -1
  195. package/components/geoinput-update/src/index.css +0 -1
  196. package/components/geoinput-update/src/types.js +0 -1
  197. package/components/input/index.css +0 -1
  198. package/components/input/src/ctx.js +0 -1
  199. package/components/input/src/index.css +0 -1
  200. package/components/input/src/types.js +0 -1
  201. package/components/input-link/index.js +0 -163
  202. package/components/input-link/src/ctx.js +0 -1
  203. package/components/input-link/src/index.css +0 -1
  204. package/components/input-link/src/types.js +0 -1
  205. package/components/input-number/src/ctx.js +0 -1
  206. package/components/input-number/src/index.css +0 -1
  207. package/components/input-number/src/types.js +0 -1
  208. package/components/radio/src/ctx.js +0 -1
  209. package/components/radio/src/index.css +0 -1
  210. package/components/radio/src/types.js +0 -1
  211. package/components/select/src/ctx.js +0 -1
  212. package/components/select/src/index.css +0 -1
  213. package/components/select/src/types.js +0 -1
  214. package/components/slider/index.css +0 -1
  215. package/components/slider/src/ctx.js +0 -1
  216. package/components/slider/src/index.css +0 -1
  217. package/components/slider/src/types.js +0 -1
  218. package/components/switch/src/ctx.js +0 -1
  219. package/components/switch/src/index.css +0 -1
  220. package/components/switch/src/types.js +0 -1
  221. package/components/templates-default/index.css +0 -1
  222. package/components/templates-default/index.js +0 -347
  223. package/components/templates-default/src/ctx.js +0 -1
  224. package/components/templates-default/src/index.css +0 -1
  225. package/components/templates-default/src/types.js +0 -1
  226. package/components/templates-element-plus/index.css +0 -1
  227. package/components/templates-element-plus/index.js +0 -110
  228. package/components/templates-element-plus/src/ctx.js +0 -1
  229. package/components/templates-element-plus/src/index.css +0 -1
  230. package/components/templates-element-plus/src/types.js +0 -1
  231. package/components/templates-esri/index.css +0 -1
  232. package/components/templates-esri/index.js +0 -65
  233. package/components/templates-esri/src/ctx.js +0 -1
  234. package/components/templates-esri/src/index.css +0 -1
  235. package/components/templates-esri/src/types.js +0 -1
  236. package/components/templates-layout/index.js +0 -141
  237. package/components/templates-layout/src/ctx.js +0 -1
  238. package/components/templates-layout/src/index.css +0 -1
  239. package/components/templates-layout/src/types.js +0 -1
  240. package/components/templates-mapbox/index.css +0 -1
  241. package/components/templates-mapbox/index.js +0 -65
  242. package/components/templates-mapbox/src/ctx.js +0 -1
  243. package/components/templates-mapbox/src/index.css +0 -1
  244. package/components/templates-mapbox/src/types.js +0 -1
  245. package/components/upload/index.js +0 -565
  246. package/components/upload/src/ctx.js +0 -1
  247. package/components/upload/src/index.css +0 -1
  248. package/components/upload/src/types.js +0 -1
  249. package/components/upload-plus/src/api.js +0 -28
  250. package/components/upload-plus/src/const.js +0 -1
  251. package/components/upload-plus/src/ctx.js +0 -1
  252. package/components/upload-plus/src/index.css +0 -1
  253. package/components/upload-plus/src/types.js +0 -1
  254. package/components/van-cascader/src/ctx.js +0 -1
  255. package/components/van-cascader/src/index.css +0 -1
  256. package/components/van-cascader/src/types.js +0 -1
  257. package/components/var-datetime-picker/index.js +0 -299
  258. package/components/var-datetime-picker/src/const.js +0 -1
  259. package/components/var-datetime-picker/src/ctx.js +0 -1
  260. package/components/var-datetime-picker/src/index.css +0 -1
  261. package/components/var-datetime-picker/src/types.js +0 -1
  262. package/components/vditor/index.css +0 -1
  263. package/components/vditor/src/ctx.js +0 -1
  264. package/components/vditor/src/index.css +0 -1
  265. package/components/vditor/src/types.js +0 -1
  266. package/composables/index.css +0 -1
  267. package/composables/index.js +0 -1
  268. package/shared/const/index.css +0 -1
  269. package/shared/const/index.js +0 -1
  270. package/shared/element-plus/index.css +0 -1
  271. package/shared/element-plus/index.js +0 -1
  272. package/shared/form/index.css +0 -1
  273. package/shared/form/index.js +0 -1
  274. package/shared/helper/index.css +0 -1
  275. package/shared/helper/index.js +0 -1
  276. package/shared/index.css +0 -1
  277. package/shared/index.js +0 -1
  278. package/shared/infer-prop/index.css +0 -1
  279. package/shared/infer-prop/index.js +0 -1
  280. package/shared/progress-it/index.css +0 -1
  281. package/shared/progress-it/index.js +0 -1
  282. package/shared/rules/index.css +0 -1
  283. package/shared/rules/index.js +0 -1
  284. package/shared/types/form/index.css +0 -1
  285. package/shared/types/form/index.js +0 -1
  286. package/shared/types/index.css +0 -1
  287. package/shared/types/index.js +0 -1
  288. package/shared/types/source/index.css +0 -1
  289. package/shared/types/source/index.js +0 -1
  290. package/shared/types/source-manager/index.css +0 -1
  291. package/shared/types/source-manager/index.js +0 -1
  292. package/shared/upload/index.css +0 -1
  293. package/shared/upload/index.js +0 -1
  294. /package/{components/button/index.css → shared/types/form/index.mjs} +0 -0
  295. /package/{components/button/src/index.css → shared/types/index.mjs} +0 -0
  296. /package/{components/cascader/src/index.css → shared/types/source/index.mjs} +0 -0
  297. /package/{components/button/src/types.js → shared/types/source-manager/index.mjs} +0 -0
@@ -1,11 +1,14 @@
1
1
  import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
2
- import { defineComponent, openBlock, createElementBlock, createElementVNode, watchEffect, ref, watch, computed, onBeforeUnmount, resolveComponent, createBlock, mergeProps, withCtx, createVNode, normalizeClass, Fragment, renderList, normalizeStyle, createCommentVNode, createTextVNode } from 'vue';
2
+ import { defineComponent, watchEffect, ref, watch, computed, onBeforeUnmount, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementVNode, createVNode, normalizeClass, createElementBlock, Fragment, renderList, normalizeStyle, createCommentVNode, createTextVNode } from 'vue';
3
3
  import { rFile } from '@skzz/platform/api/basic';
4
4
  import { restFetch as restFetch$1 } from '@skzz/platform/shared/fetch/platform';
5
5
  import { ElButtonGroup, ElButton, ElInput, ElMessage } from 'element-plus';
6
6
  import { RestFetch } from '@vunk/core/shared/utils-fetch';
7
+ import { g as getToken } from '../index.mjs';
7
8
  import { useModelComputed } from '@vunk/core/composables';
9
+ import { c as circle_close_filled_default, d as download_default } from '../index2.mjs';
8
10
  import { ToggleHandler } from '@vunk/core/shared/utils-class';
11
+ import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
9
12
 
10
13
  const props = {
11
14
  ..._VkfFormItemCtx.props,
@@ -52,15 +55,6 @@ var Status = /* @__PURE__ */ ((Status2) => {
52
55
  return Status2;
53
56
  })(Status || {});
54
57
 
55
- const KeyConfig = {
56
- TokenKey: "VUNK_SKZZ_REST_TOKEN",
57
- ApplicationKey: "VUNK_SKZZ_REST_APPLICATION",
58
- TenantKey: "VUNK_SKZZ_REST_TENANT"
59
- };
60
- function getToken() {
61
- return localStorage.getItem(KeyConfig.TokenKey) || "";
62
- }
63
-
64
58
  const restFetch = new RestFetch({
65
59
  baseURL: restFetch$1.baseURL,
66
60
  presetRequestInit: (config) => {
@@ -118,48 +112,7 @@ const downChunk = (params, init) => {
118
112
  });
119
113
  };
120
114
 
121
- /*! Element Plus Icons Vue v2.3.1 */
122
-
123
- var circle_close_filled_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */defineComponent({
124
- name: "CircleCloseFilled",
125
- __name: "circle-close-filled",
126
- setup(__props) {
127
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
128
- xmlns: "http://www.w3.org/2000/svg",
129
- viewBox: "0 0 1024 1024"
130
- }, [createElementVNode("path", {
131
- fill: "currentColor",
132
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
133
- })]));
134
- }
135
- });
136
-
137
- // src/components/circle-close-filled.vue
138
- var circle_close_filled_default = circle_close_filled_vue_vue_type_script_setup_true_lang_default;
139
- var download_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */defineComponent({
140
- name: "Download",
141
- __name: "download",
142
- setup(__props) {
143
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
144
- xmlns: "http://www.w3.org/2000/svg",
145
- viewBox: "0 0 1024 1024"
146
- }, [createElementVNode("path", {
147
- fill: "currentColor",
148
- d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"
149
- })]));
150
- }
151
- });
152
-
153
- // src/components/download.vue
154
- var download_default = download_vue_vue_type_script_setup_true_lang_default;
155
-
156
- var __defProp = Object.defineProperty;
157
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
158
- var __publicField = (obj, key, value) => {
159
- __defNormalProp(obj, key + "" , value);
160
- return value;
161
- };
162
- var script = defineComponent({
115
+ var _sfc_main = defineComponent({
163
116
  name: "VkfDownloadPlus",
164
117
  components: {
165
118
  VkfFormItem,
@@ -169,9 +122,7 @@ var script = defineComponent({
169
122
  },
170
123
  props,
171
124
  emits,
172
- setup(props2, {
173
- emit
174
- }) {
125
+ setup(props2, { emit }) {
175
126
  const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
176
127
  watchEffect(() => {
177
128
  restFetch.baseURL = props2.url || restFetch$1.baseURL;
@@ -208,11 +159,12 @@ var script = defineComponent({
208
159
  const fileSize = fileInfo.value.size;
209
160
  const fileId = fileInfo.value.id;
210
161
  const chunksLength = Math.ceil(fileSize / props2.chunkSize);
211
- chunks.value = Array.from({
212
- length: chunksLength
213
- }, (_, i) => {
162
+ chunks.value = Array.from({ length: chunksLength }, (_, i) => {
214
163
  const start = i * props2.chunkSize;
215
- const end = Math.min(start + props2.chunkSize, fileSize) - 1;
164
+ const end = Math.min(
165
+ start + props2.chunkSize,
166
+ fileSize
167
+ ) - 1;
216
168
  let downloadedChunk = {};
217
169
  if (chunks.value[i] && chunks.value[i].start === start && chunks.value[i].end === end && chunks.value[i].status === Status.done) {
218
170
  downloadedChunk = chunks.value[i];
@@ -229,14 +181,17 @@ var script = defineComponent({
229
181
  };
230
182
  });
231
183
  fileStatus.value = Status.downloading;
232
- const needDownloadChunks = chunks.value.filter((v) => v.status === Status.wait || v.status === Status.error);
184
+ const needDownloadChunks = chunks.value.filter(
185
+ (v) => v.status === Status.wait || v.status === Status.error
186
+ );
233
187
  rChunkFiles(needDownloadChunks).then(() => {
234
188
  const blobs = chunks.value.map((item) => {
235
189
  return item.data;
236
190
  });
237
- return new Blob(blobs, {
238
- type: "application/octet-stream"
239
- });
191
+ return new Blob(
192
+ blobs,
193
+ { type: "application/octet-stream" }
194
+ );
240
195
  }).then((blob) => {
241
196
  const url = URL.createObjectURL(blob);
242
197
  const a = document.createElement("a");
@@ -267,7 +222,9 @@ var script = defineComponent({
267
222
  const start = async () => {
268
223
  while (counter < len && max > 0) {
269
224
  max--;
270
- const i = chunks2.findIndex((v) => v.status === Status.wait || v.status === Status.error);
225
+ const i = chunks2.findIndex(
226
+ (v) => v.status === Status.wait || v.status === Status.error
227
+ );
271
228
  const currentChunk = chunks2[i];
272
229
  if (currentChunk) {
273
230
  currentChunk.status = Status.downloading;
@@ -294,7 +251,12 @@ var script = defineComponent({
294
251
  retryArr[index] = 0;
295
252
  }
296
253
  retryArr[index]++;
297
- console.warn(index, currentChunk, retryArr[index], "\u6B21\u62A5\u9519");
254
+ console.warn(
255
+ index,
256
+ currentChunk,
257
+ retryArr[index],
258
+ "\u6B21\u62A5\u9519"
259
+ );
298
260
  currentChunk.progress = -1;
299
261
  if (retryArr[index] >= retrys) {
300
262
  return reject();
@@ -326,7 +288,6 @@ var script = defineComponent({
326
288
  class OnlineToggle extends ToggleHandler {
327
289
  constructor(listener) {
328
290
  super();
329
- __publicField(this, "listener");
330
291
  this.listener = listener;
331
292
  }
332
293
  add() {
@@ -358,93 +319,103 @@ var script = defineComponent({
358
319
  }
359
320
  });
360
321
 
361
- const _hoisted_1 = {
362
- class: "vkf-download-plus-main"
363
- };
364
- const _hoisted_2 = {
365
- class: "vkf-download-plus-label"
366
- };
322
+ const _hoisted_1 = { class: "vkf-download-plus-main" };
323
+ const _hoisted_2 = { class: "vkf-download-plus-label" };
367
324
  const _hoisted_3 = {
368
325
  key: 0,
369
326
  class: "vkf-download-plus-cube-x"
370
327
  };
371
- function render(_ctx, _cache, $props, $setup, $data, $options) {
328
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
372
329
  const _component_ElInput = resolveComponent("ElInput");
373
330
  const _component_el_button = resolveComponent("el-button");
374
331
  const _component_el_button_group = resolveComponent("el-button-group");
375
332
  const _component_VkfFormItem = resolveComponent("VkfFormItem");
376
333
  return openBlock(), createBlock(
377
334
  _component_VkfFormItem,
378
- mergeProps(_ctx.formItemBindProps, {
379
- class: "vkf-download-plus"
380
- }),
335
+ mergeProps(_ctx.formItemBindProps, { class: "vkf-download-plus" }),
381
336
  {
382
- default: withCtx(() => [createElementVNode("div", _hoisted_1, [createElementVNode("label", _hoisted_2, [createVNode(_component_ElInput, {
383
- class: normalizeClass({
384
- "is-error": _ctx.fileStatus === _ctx.Status.error
385
- }),
386
- "prefix-icon": _ctx.filePrefixIcon,
387
- "model-value": _ctx.fileInfo?.realName,
388
- readonly: ""
389
- }, null, 8, ["class", "prefix-icon", "model-value"]), _ctx.fileStatus === _ctx.Status.downloading || _ctx.fileStatus === _ctx.Status.pause ? (openBlock(), createElementBlock("div", _hoisted_3, [(openBlock(true), createElementBlock(
390
- Fragment,
391
- null,
392
- renderList(_ctx.chunks, (chunk) => {
393
- return openBlock(), createElementBlock(
394
- "div",
395
- {
396
- key: chunk.fileId + "-" + chunk.index,
397
- class: normalizeClass(["vkf-download-plus-cube", {
398
- "error": chunk.status == _ctx.Status.error
399
- }]),
400
- style: normalizeStyle({
401
- width: 100 / _ctx.chunks.length + "%"
402
- })
403
- },
404
- [createElementVNode(
405
- "div",
406
- {
407
- class: normalizeClass({
408
- "uploading": chunk.progress > 0 && chunk.progress < 100,
409
- "success": chunk.progress == 100
337
+ default: withCtx(() => [
338
+ createElementVNode("div", _hoisted_1, [
339
+ createElementVNode("label", _hoisted_2, [
340
+ createVNode(_component_ElInput, {
341
+ class: normalizeClass({
342
+ "is-error": _ctx.fileStatus === _ctx.Status.error
343
+ }),
344
+ "prefix-icon": _ctx.filePrefixIcon,
345
+ "model-value": _ctx.fileInfo?.realName,
346
+ readonly: ""
347
+ }, null, 8, ["class", "prefix-icon", "model-value"]),
348
+ _ctx.fileStatus === _ctx.Status.downloading || _ctx.fileStatus === _ctx.Status.pause ? (openBlock(), createElementBlock("div", _hoisted_3, [
349
+ (openBlock(true), createElementBlock(
350
+ Fragment,
351
+ null,
352
+ renderList(_ctx.chunks, (chunk) => {
353
+ return openBlock(), createElementBlock(
354
+ "div",
355
+ {
356
+ key: chunk.fileId + "-" + chunk.index,
357
+ class: normalizeClass(["vkf-download-plus-cube", {
358
+ "error": chunk.status == _ctx.Status.error
359
+ }]),
360
+ style: normalizeStyle({
361
+ width: 100 / _ctx.chunks.length + "%"
362
+ })
363
+ },
364
+ [
365
+ createElementVNode(
366
+ "div",
367
+ {
368
+ class: normalizeClass({
369
+ "uploading": chunk.progress > 0 && chunk.progress < 100,
370
+ "success": chunk.progress == 100
371
+ }),
372
+ style: normalizeStyle({
373
+ height: chunk.progress + "%"
374
+ })
375
+ },
376
+ null,
377
+ 6
378
+ /* CLASS, STYLE */
379
+ )
380
+ ],
381
+ 6
382
+ /* CLASS, STYLE */
383
+ );
410
384
  }),
411
- style: normalizeStyle({
412
- height: chunk.progress + "%"
413
- })
414
- },
415
- null,
416
- 6
417
- /* CLASS, STYLE */
418
- )],
419
- 6
420
- /* CLASS, STYLE */
421
- );
422
- }),
423
- 128
424
- /* KEYED_FRAGMENT */
425
- ))])) : createCommentVNode("v-if", true)]), createVNode(_component_el_button_group, {
426
- class: "vkf-download-plus-btng"
427
- }, {
428
- default: withCtx(() => [_ctx.fileStatus === _ctx.Status.downloading ? (openBlock(), createBlock(_component_el_button, {
429
- key: 0,
430
- type: "danger",
431
- onClick: _ctx.handlePause
432
- }, {
433
- default: withCtx(() => [createTextVNode(" \u6682\u505C ")]),
434
- _: 1
435
- /* STABLE */
436
- }, 8, ["onClick"])) : (openBlock(), createBlock(_component_el_button, {
437
- key: 1,
438
- type: "primary",
439
- onClick: _ctx.handleDownload
440
- }, {
441
- default: withCtx(() => [createTextVNode(" \u4E0B\u8F7D ")]),
442
- _: 1
443
- /* STABLE */
444
- }, 8, ["onClick"]))]),
445
- _: 1
446
- /* STABLE */
447
- })])]),
385
+ 128
386
+ /* KEYED_FRAGMENT */
387
+ ))
388
+ ])) : createCommentVNode("v-if", true)
389
+ ]),
390
+ createVNode(_component_el_button_group, { class: "vkf-download-plus-btng" }, {
391
+ default: withCtx(() => [
392
+ _ctx.fileStatus === _ctx.Status.downloading ? (openBlock(), createBlock(_component_el_button, {
393
+ key: 0,
394
+ type: "danger",
395
+ onClick: _ctx.handlePause
396
+ }, {
397
+ default: withCtx(() => [
398
+ createTextVNode(" \u6682\u505C ")
399
+ ]),
400
+ _: 1
401
+ /* STABLE */
402
+ }, 8, ["onClick"])) : (openBlock(), createBlock(_component_el_button, {
403
+ key: 1,
404
+ type: "primary",
405
+ onClick: _ctx.handleDownload
406
+ }, {
407
+ default: withCtx(() => [
408
+ createTextVNode(" \u4E0B\u8F7D ")
409
+ ]),
410
+ _: 1
411
+ /* STABLE */
412
+ }, 8, ["onClick"]))
413
+ ]),
414
+ _: 1
415
+ /* STABLE */
416
+ })
417
+ ])
418
+ ]),
448
419
  _: 1
449
420
  /* STABLE */
450
421
  },
@@ -452,16 +423,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
452
423
  /* FULL_PROPS */
453
424
  );
454
425
  }
455
-
456
- script.render = render;
457
- script.__file = "download-plus/src/index.vue";
426
+ var VkfDownloadPlus = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/download-plus/src/index.vue"]]);
458
427
 
459
428
  var types = /*#__PURE__*/Object.freeze({
460
429
  __proto__: null
461
430
  });
462
431
 
463
- script.install = (app) => {
464
- app.component(script.name || "VkfDownloadPlus", script);
432
+ VkfDownloadPlus.install = (app) => {
433
+ app.component(
434
+ VkfDownloadPlus.name || "VkfDownloadPlus",
435
+ VkfDownloadPlus
436
+ );
465
437
  };
466
438
 
467
- export { script as VkfDownloadPlus, types as __VkfDownloadPlus, script as default };
439
+ export { VkfDownloadPlus, types as __VkfDownloadPlus, VkfDownloadPlus as default };
@@ -6,7 +6,7 @@ export declare const downChunk: (params: {
6
6
  end: number;
7
7
  fileServiceType?: string;
8
8
  }, init?: {
9
- onprogress?: XMLHttpRequestEventTarget['onprogress'];
9
+ onprogress?: XMLHttpRequestEventTarget["onprogress"];
10
10
  xhrs?: XMLHttpRequest[];
11
11
  }) => Promise<{
12
12
  data: Blob;
@@ -1,3 +1,4 @@
1
+ import { FileServiceType } from './types';
1
2
  import { Status } from './const';
2
3
  import { PropType } from 'vue';
3
4
  export declare const props: {
@@ -17,7 +18,7 @@ export declare const props: {
17
18
  default: number;
18
19
  };
19
20
  fileServiceType: {
20
- type: PropType<import("../../upload-plus/src/types").FileServiceType>;
21
+ type: PropType<FileServiceType>;
21
22
  default: any;
22
23
  };
23
24
  /**
@@ -28,37 +29,13 @@ export declare const props: {
28
29
  type: PropType<Status>;
29
30
  default: any;
30
31
  };
31
- label: StringConstructor;
32
- labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
33
- prop: {
34
- readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
35
- readonly required: false;
36
- readonly validator: (val: unknown) => boolean;
37
- __epPropKey: true;
38
- };
39
32
  required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
40
- rules: {
41
- readonly type: PropType<unknown>;
42
- readonly required: false;
43
- readonly validator: (val: unknown) => boolean;
44
- __epPropKey: true;
45
- };
46
- error: StringConstructor;
47
- validateStatus: {
48
- readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
49
- readonly required: false;
50
- readonly validator: (val: unknown) => boolean;
51
- __epPropKey: true;
52
- };
53
- for: StringConstructor;
54
- inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
55
- showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
56
33
  formItemSize: {
57
34
  type: PropType<"default" | "small" | "large">;
58
35
  default: "default" | "small" | "large";
59
36
  };
60
37
  formItemSlots: {
61
- type: PropType<import("../../form-item/src/types").FormItemSlots>;
38
+ type: PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
62
39
  default: any;
63
40
  };
64
41
  elRef: {
@@ -77,6 +54,30 @@ export declare const props: {
77
54
  type: PropType<"right">;
78
55
  default: string;
79
56
  };
57
+ label: StringConstructor;
58
+ labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
59
+ prop: {
60
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
61
+ readonly required: false;
62
+ readonly validator: ((val: unknown) => boolean) | undefined;
63
+ __epPropKey: true;
64
+ };
65
+ rules: {
66
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
67
+ readonly required: false;
68
+ readonly validator: ((val: unknown) => boolean) | undefined;
69
+ __epPropKey: true;
70
+ };
71
+ error: StringConstructor;
72
+ validateStatus: {
73
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
74
+ readonly required: false;
75
+ readonly validator: ((val: unknown) => boolean) | undefined;
76
+ __epPropKey: true;
77
+ };
78
+ for: StringConstructor;
79
+ inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
80
+ showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
80
81
  };
81
82
  export declare const emits: {
82
83
  'update:fileStatus': any;
@@ -13,44 +13,20 @@ declare const _default: import("vue").DefineComponent<{
13
13
  default: number;
14
14
  };
15
15
  fileServiceType: {
16
- type: import("vue").PropType<import("../../upload-plus/src/types").FileServiceType>;
16
+ type: import("vue").PropType<import("./types").FileServiceType>;
17
17
  default: any;
18
18
  };
19
19
  fileStatus: {
20
20
  type: import("vue").PropType<Status>;
21
21
  default: any;
22
22
  };
23
- label: StringConstructor;
24
- labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
25
- prop: {
26
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
27
- readonly required: false;
28
- readonly validator: (val: unknown) => boolean;
29
- __epPropKey: true;
30
- };
31
23
  required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
32
- rules: {
33
- readonly type: import("vue").PropType<unknown>;
34
- readonly required: false;
35
- readonly validator: (val: unknown) => boolean;
36
- __epPropKey: true;
37
- };
38
- error: StringConstructor;
39
- validateStatus: {
40
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
41
- readonly required: false;
42
- readonly validator: (val: unknown) => boolean;
43
- __epPropKey: true;
44
- };
45
- for: StringConstructor;
46
- inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
47
- showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
48
24
  formItemSize: {
49
25
  type: import("vue").PropType<"default" | "small" | "large">;
50
26
  default: "default" | "small" | "large";
51
27
  };
52
28
  formItemSlots: {
53
- type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
29
+ type: import("vue").PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
54
30
  default: any;
55
31
  };
56
32
  elRef: {
@@ -69,6 +45,30 @@ declare const _default: import("vue").DefineComponent<{
69
45
  type: import("vue").PropType<"right">;
70
46
  default: string;
71
47
  };
48
+ label: StringConstructor;
49
+ labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
50
+ prop: {
51
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
52
+ readonly required: false;
53
+ readonly validator: ((val: unknown) => boolean) | undefined;
54
+ __epPropKey: true;
55
+ };
56
+ rules: {
57
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
58
+ readonly required: false;
59
+ readonly validator: ((val: unknown) => boolean) | undefined;
60
+ __epPropKey: true;
61
+ };
62
+ error: StringConstructor;
63
+ validateStatus: {
64
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
65
+ readonly required: false;
66
+ readonly validator: ((val: unknown) => boolean) | undefined;
67
+ __epPropKey: true;
68
+ };
69
+ for: StringConstructor;
70
+ inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
71
+ showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
72
72
  }, {
73
73
  formItemBindProps: import("vue").ComputedRef<{}>;
74
74
  fileInfo: import("vue").Ref<{
@@ -100,7 +100,7 @@ declare const _default: import("vue").DefineComponent<{
100
100
  end: number;
101
101
  status: Status;
102
102
  index: number;
103
- fileServiceType?: import("../../upload-plus/src/types").FileServiceType;
103
+ fileServiceType?: import("./types").FileServiceType;
104
104
  progress: number;
105
105
  data?: {
106
106
  readonly size: number;
@@ -129,44 +129,20 @@ declare const _default: import("vue").DefineComponent<{
129
129
  default: number;
130
130
  };
131
131
  fileServiceType: {
132
- type: import("vue").PropType<import("../../upload-plus/src/types").FileServiceType>;
132
+ type: import("vue").PropType<import("./types").FileServiceType>;
133
133
  default: any;
134
134
  };
135
135
  fileStatus: {
136
136
  type: import("vue").PropType<Status>;
137
137
  default: any;
138
138
  };
139
- label: StringConstructor;
140
- labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
141
- prop: {
142
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
143
- readonly required: false;
144
- readonly validator: (val: unknown) => boolean;
145
- __epPropKey: true;
146
- };
147
139
  required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
148
- rules: {
149
- readonly type: import("vue").PropType<unknown>;
150
- readonly required: false;
151
- readonly validator: (val: unknown) => boolean;
152
- __epPropKey: true;
153
- };
154
- error: StringConstructor;
155
- validateStatus: {
156
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
157
- readonly required: false;
158
- readonly validator: (val: unknown) => boolean;
159
- __epPropKey: true;
160
- };
161
- for: StringConstructor;
162
- inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
163
- showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
164
140
  formItemSize: {
165
141
  type: import("vue").PropType<"default" | "small" | "large">;
166
142
  default: "default" | "small" | "large";
167
143
  };
168
144
  formItemSlots: {
169
- type: import("vue").PropType<import("../../form-item/src/types").FormItemSlots>;
145
+ type: import("vue").PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
170
146
  default: any;
171
147
  };
172
148
  elRef: {
@@ -185,22 +161,46 @@ declare const _default: import("vue").DefineComponent<{
185
161
  type: import("vue").PropType<"right">;
186
162
  default: string;
187
163
  };
164
+ label: StringConstructor;
165
+ labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
166
+ prop: {
167
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
168
+ readonly required: false;
169
+ readonly validator: ((val: unknown) => boolean) | undefined;
170
+ __epPropKey: true;
171
+ };
172
+ rules: {
173
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
174
+ readonly required: false;
175
+ readonly validator: ((val: unknown) => boolean) | undefined;
176
+ __epPropKey: true;
177
+ };
178
+ error: StringConstructor;
179
+ validateStatus: {
180
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
181
+ readonly required: false;
182
+ readonly validator: ((val: unknown) => boolean) | undefined;
183
+ __epPropKey: true;
184
+ };
185
+ for: StringConstructor;
186
+ inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
187
+ showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
188
188
  }>> & {
189
189
  "onUpdate:fileStatus"?: (...args: any[] | unknown[]) => any;
190
190
  }, {
191
- labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
192
191
  required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
193
- inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
194
- showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
195
192
  formItemSize: "default" | "small" | "large";
196
- formItemSlots: import("../../form-item/src/types").FormItemSlots;
193
+ formItemSlots: import("@vunk/form/components/form-item/src/types").FormItemSlots;
197
194
  inline: boolean;
198
195
  readonly: boolean;
199
196
  labelPosition: "right";
197
+ labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
198
+ inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
199
+ showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
200
200
  url: string;
201
201
  chunkSize: number;
202
- fileServiceType: import("../../upload-plus/src/types").FileServiceType;
203
- fileStatus: Status;
202
+ fileServiceType: import("@vunk/form/components/upload-plus/src/types").FileServiceType;
204
203
  fileId: string;
204
+ fileStatus: Status;
205
205
  }, {}>;
206
206
  export default _default;