@vunk/form 1.1.64 → 1.1.66

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 (282) hide show
  1. package/component.d.ts +1 -1
  2. package/components/button/index.css +1 -0
  3. package/components/button/index.d.ts +1 -1
  4. package/components/button/index.js +43 -57
  5. package/components/button/src/ctx.d.ts +13 -13
  6. package/components/button/src/ctx.js +1 -39
  7. package/components/button/src/index.css +1 -0
  8. package/components/button/src/index.vue.d.ts +37 -73
  9. package/components/button/src/types.d.ts +1 -1
  10. package/components/cascader/index.css +1 -0
  11. package/components/cascader/index.d.ts +1 -1
  12. package/components/cascader/index.js +34 -49
  13. package/components/cascader/src/ctx.d.ts +15 -15
  14. package/components/cascader/src/ctx.js +1 -38
  15. package/components/cascader/src/index.css +1 -0
  16. package/components/cascader/src/index.vue.d.ts +45 -70
  17. package/components/cascader/src/use.d.ts +1 -1
  18. package/components/cascader/src/use.js +1 -28
  19. package/components/checkbox/index.css +1 -0
  20. package/components/checkbox/index.d.ts +1 -1
  21. package/components/checkbox/index.js +48 -53
  22. package/components/checkbox/src/ctx.d.ts +14 -14
  23. package/components/checkbox/src/ctx.js +1 -46
  24. package/components/checkbox/src/index.css +1 -0
  25. package/components/checkbox/src/index.vue.d.ts +43 -63
  26. package/components/color-picker/index.css +1 -0
  27. package/components/color-picker/index.d.ts +1 -1
  28. package/components/color-picker/index.js +38 -42
  29. package/components/color-picker/src/ctx.d.ts +15 -13
  30. package/components/color-picker/src/ctx.js +1 -23
  31. package/components/color-picker/src/index.css +1 -0
  32. package/components/color-picker/src/index.vue.d.ts +36 -65
  33. package/components/date-picker/index.css +1 -0
  34. package/components/date-picker/index.d.ts +1 -1
  35. package/components/date-picker/index.js +42 -55
  36. package/components/date-picker/src/ctx.d.ts +41 -34
  37. package/components/date-picker/src/ctx.js +1 -31
  38. package/components/date-picker/src/index.css +1 -0
  39. package/components/date-picker/src/index.vue.d.ts +122 -133
  40. package/components/date-picker/src/types.d.ts +9 -9
  41. package/components/date-picker/src/types.js +1 -11
  42. package/components/esri-input-geojson/index.css +8 -6
  43. package/components/esri-input-geojson/index.d.ts +1 -1
  44. package/components/esri-input-geojson/index.js +417 -535
  45. package/components/esri-input-geojson/src/append.vue.d.ts +7 -7
  46. package/components/esri-input-geojson/src/const.d.ts +1 -1
  47. package/components/esri-input-geojson/src/const.js +1 -33
  48. package/components/esri-input-geojson/src/ctx.d.ts +44 -35
  49. package/components/esri-input-geojson/src/ctx.js +1 -128
  50. package/components/esri-input-geojson/src/default-view.vue.d.ts +9 -9
  51. package/components/esri-input-geojson/src/index.css +1 -0
  52. package/components/esri-input-geojson/src/index.vue.d.ts +142 -119
  53. package/components/esri-input-geojson/src/types.d.ts +1 -0
  54. package/components/esri-input-geojson/src/viewer.vue.d.ts +23 -22
  55. package/components/form/index.css +1 -0
  56. package/components/form/index.d.ts +1 -1
  57. package/components/form/index.js +57 -87
  58. package/components/form/src/ctx.d.ts +176 -204
  59. package/components/form/src/ctx.js +1 -61
  60. package/components/form/src/index.css +1 -0
  61. package/components/form/src/index.vue.d.ts +515 -601
  62. package/components/form/src/types.d.ts +3 -3
  63. package/components/form/src/utils.d.ts +1 -1
  64. package/components/form/src/utils.js +1 -55
  65. package/components/form-item/index.css +1 -0
  66. package/components/form-item/index.d.ts +1 -1
  67. package/components/form-item/index.js +22 -50
  68. package/components/form-item/src/ctx.d.ts +9 -9
  69. package/components/form-item/src/ctx.js +1 -53
  70. package/components/form-item/src/index.css +1 -0
  71. package/components/form-item/src/index.vue.d.ts +26 -26
  72. package/components/form-item/src/types.d.ts +1 -1
  73. package/components/form-item-renderer/index.css +1 -0
  74. package/components/form-item-renderer/index.d.ts +1 -1
  75. package/components/form-item-renderer/index.js +10 -18
  76. package/components/form-item-renderer/src/ctx.d.ts +3 -3
  77. package/components/form-item-renderer/src/ctx.js +1 -16
  78. package/components/form-item-renderer/src/index.css +1 -0
  79. package/components/form-item-renderer/src/index.vue.d.ts +9 -9
  80. package/components/form-item-renderer/src/symbols.js +1 -3
  81. package/components/form-item-renderer-template/index.css +1 -0
  82. package/components/form-item-renderer-template/index.d.ts +1 -1
  83. package/components/form-item-renderer-template/index.js +6 -13
  84. package/components/form-item-renderer-template/src/ctx.js +1 -9
  85. package/components/form-item-renderer-template/src/index.css +1 -0
  86. package/components/form-item-renderer-template/src/index.vue.d.ts +2 -2
  87. package/components/geoinput/index.css +1 -0
  88. package/components/geoinput/index.d.ts +1 -1
  89. package/components/geoinput/index.js +45 -43
  90. package/components/geoinput/src/ctx.d.ts +42 -28
  91. package/components/geoinput/src/ctx.js +1 -39
  92. package/components/geoinput/src/index.css +1 -0
  93. package/components/geoinput/src/index.vue.d.ts +111 -223
  94. package/components/geoinput/src/types.d.ts +3 -3
  95. package/components/geoinput-read/index.css +1 -0
  96. package/components/geoinput-read/index.d.ts +1 -1
  97. package/components/geoinput-read/index.js +120 -160
  98. package/components/geoinput-read/src/append.vue.d.ts +4 -4
  99. package/components/geoinput-read/src/core.vue.d.ts +130 -104
  100. package/components/geoinput-read/src/ctx.d.ts +42 -30
  101. package/components/geoinput-read/src/ctx.js +1 -66
  102. package/components/geoinput-read/src/index.css +1 -0
  103. package/components/geoinput-read/src/index.vue.d.ts +108 -151
  104. package/components/geoinput-read/src/types.d.ts +1 -1
  105. package/components/geoinput-update/index.css +9 -7
  106. package/components/geoinput-update/index.d.ts +1 -1
  107. package/components/geoinput-update/index.js +335 -366
  108. package/components/geoinput-update/src/append.vue.d.ts +5 -5
  109. package/components/geoinput-update/src/ctx.d.ts +38 -28
  110. package/components/geoinput-update/src/ctx.js +1 -85
  111. package/components/geoinput-update/src/index.css +1 -0
  112. package/components/geoinput-update/src/index.vue.d.ts +120 -98
  113. package/components/geoinput-update/src/types.d.ts +2 -2
  114. package/components/input/index.css +1 -0
  115. package/components/input/index.d.ts +1 -1
  116. package/components/input/index.js +43 -60
  117. package/components/input/src/ctx.d.ts +31 -25
  118. package/components/input/src/ctx.js +1 -46
  119. package/components/input/src/index.css +1 -0
  120. package/components/input/src/index.vue.d.ts +94 -110
  121. package/components/input/src/types.d.ts +2 -2
  122. package/components/input-link/index.css +1 -0
  123. package/components/input-link/index.d.ts +1 -1
  124. package/components/input-link/index.js +71 -92
  125. package/components/input-link/src/ctx.d.ts +26 -20
  126. package/components/input-link/src/ctx.js +1 -66
  127. package/components/input-link/src/index.css +1 -0
  128. package/components/input-link/src/index.vue.d.ts +72 -116
  129. package/components/input-number/index.css +1 -0
  130. package/components/input-number/index.d.ts +1 -1
  131. package/components/input-number/index.js +37 -45
  132. package/components/input-number/src/ctx.d.ts +15 -15
  133. package/components/input-number/src/ctx.js +1 -38
  134. package/components/input-number/src/index.css +1 -0
  135. package/components/input-number/src/index.vue.d.ts +42 -65
  136. package/components/input-number/src/types.d.ts +1 -1
  137. package/components/radio/index.css +1 -0
  138. package/components/radio/index.d.ts +1 -1
  139. package/components/radio/index.js +45 -50
  140. package/components/radio/src/ctx.d.ts +11 -11
  141. package/components/radio/src/ctx.js +1 -39
  142. package/components/radio/src/index.css +1 -0
  143. package/components/radio/src/index.vue.d.ts +41 -60
  144. package/components/radio/src/types.d.ts +1 -1
  145. package/components/select/index.css +1 -0
  146. package/components/select/index.d.ts +1 -1
  147. package/components/select/index.js +59 -64
  148. package/components/select/src/ctx.d.ts +39 -41
  149. package/components/select/src/ctx.js +1 -40
  150. package/components/select/src/index.css +1 -0
  151. package/components/select/src/index.vue.d.ts +130 -162
  152. package/components/select/src/types.d.ts +2 -2
  153. package/components/slider/index.css +1 -0
  154. package/components/slider/index.d.ts +1 -1
  155. package/components/slider/index.js +33 -50
  156. package/components/slider/src/ctx.d.ts +18 -18
  157. package/components/slider/src/ctx.js +1 -29
  158. package/components/slider/src/index.css +1 -0
  159. package/components/slider/src/index.vue.d.ts +62 -81
  160. package/components/switch/index.css +1 -0
  161. package/components/switch/index.d.ts +1 -1
  162. package/components/switch/index.js +33 -50
  163. package/components/switch/src/ctx.d.ts +22 -22
  164. package/components/switch/src/ctx.js +1 -31
  165. package/components/switch/src/index.css +1 -0
  166. package/components/switch/src/index.vue.d.ts +65 -83
  167. package/components/switch/src/types.d.ts +1 -1
  168. package/components/templates-default/index.css +1 -0
  169. package/components/templates-default/index.d.ts +1 -1
  170. package/components/templates-default/index.js +243 -172
  171. package/components/templates-default/src/ctx.d.ts +1 -1
  172. package/components/templates-default/src/ctx.js +1 -18
  173. package/components/templates-default/src/index.css +1 -0
  174. package/components/templates-default/src/index.vue.d.ts +9 -9
  175. package/components/templates-default/src/types.d.ts +16 -16
  176. package/components/templates-element-plus/index.css +1 -0
  177. package/components/templates-element-plus/index.d.ts +1 -1
  178. package/components/templates-element-plus/index.js +66 -36
  179. package/components/templates-element-plus/src/ctx.js +1 -9
  180. package/components/templates-element-plus/src/index.css +1 -0
  181. package/components/templates-element-plus/src/index.vue.d.ts +7 -7
  182. package/components/templates-element-plus/src/types.d.ts +1 -1
  183. package/components/templates-esri/index.css +1 -0
  184. package/components/templates-esri/index.d.ts +1 -1
  185. package/components/templates-esri/index.js +25 -24
  186. package/components/templates-esri/src/ctx.d.ts +1 -1
  187. package/components/templates-esri/src/ctx.js +1 -11
  188. package/components/templates-esri/src/index.css +1 -0
  189. package/components/templates-esri/src/index.vue.d.ts +6 -6
  190. package/components/templates-esri/src/types.d.ts +1 -1
  191. package/components/templates-layout/index.css +1 -0
  192. package/components/templates-layout/index.d.ts +1 -1
  193. package/components/templates-layout/index.js +96 -63
  194. package/components/templates-layout/src/ctx.js +1 -9
  195. package/components/templates-layout/src/index.css +1 -0
  196. package/components/templates-layout/src/index.vue.d.ts +7 -7
  197. package/components/templates-layout/src/types.d.ts +3 -3
  198. package/components/templates-mapbox/index.css +1 -0
  199. package/components/templates-mapbox/index.d.ts +1 -1
  200. package/components/templates-mapbox/index.js +25 -24
  201. package/components/templates-mapbox/src/ctx.d.ts +1 -1
  202. package/components/templates-mapbox/src/ctx.js +1 -11
  203. package/components/templates-mapbox/src/index.css +1 -0
  204. package/components/templates-mapbox/src/index.vue.d.ts +6 -6
  205. package/components/templates-mapbox/src/types.d.ts +1 -1
  206. package/components/upload/index.css +11 -9
  207. package/components/upload/index.d.ts +1 -1
  208. package/components/upload/index.js +264 -289
  209. package/components/upload/src/ctx.d.ts +21 -16
  210. package/components/upload/src/ctx.js +1 -45
  211. package/components/upload/src/file.vue.d.ts +19 -19
  212. package/components/upload/src/index.css +1 -0
  213. package/components/upload/src/index.vue.d.ts +54 -62
  214. package/components/upload-plus/index.css +1 -0
  215. package/components/upload-plus/index.d.ts +1 -1
  216. package/components/upload-plus/index.js +912 -9540
  217. package/components/upload-plus/src/api.d.ts +3 -3
  218. package/components/upload-plus/src/api.js +21 -18114
  219. package/components/upload-plus/src/const.js +1 -12
  220. package/components/upload-plus/src/ctx.d.ts +13 -13
  221. package/components/upload-plus/src/ctx.js +1 -58
  222. package/components/upload-plus/src/index.css +1 -0
  223. package/components/upload-plus/src/index.vue.d.ts +31 -48
  224. package/components/upload-plus/src/types.d.ts +1 -1
  225. package/components/van-cascader/index.css +1 -0
  226. package/components/van-cascader/index.d.ts +1 -1
  227. package/components/van-cascader/index.js +47 -55
  228. package/components/van-cascader/src/ctx.d.ts +13 -13
  229. package/components/van-cascader/src/ctx.js +1 -22
  230. package/components/van-cascader/src/index.css +1 -0
  231. package/components/van-cascader/src/index.vue.d.ts +40 -57
  232. package/components/var-datetime-picker/index.css +1 -0
  233. package/components/var-datetime-picker/index.d.ts +1 -1
  234. package/components/var-datetime-picker/index.js +137 -168
  235. package/components/var-datetime-picker/src/const.js +1 -91
  236. package/components/var-datetime-picker/src/ctx.d.ts +10 -10
  237. package/components/var-datetime-picker/src/ctx.js +1 -43
  238. package/components/var-datetime-picker/src/index.css +1 -0
  239. package/components/var-datetime-picker/src/index.vue.d.ts +26 -42
  240. package/components/var-datetime-picker/src/types.d.ts +1 -1
  241. package/components/vditor/index.css +1 -0
  242. package/components/vditor/index.d.ts +1 -1
  243. package/components/vditor/index.js +22 -17
  244. package/components/vditor/src/ctx.js +1 -15
  245. package/components/vditor/src/index.css +1 -0
  246. package/components/vditor/src/index.vue.d.ts +4 -3
  247. package/components/vditor/src/types.d.ts +1 -1
  248. package/composables/index.css +1 -0
  249. package/composables/index.js +1 -104
  250. package/composables/useForm.d.ts +2 -2
  251. package/composables/useSourceManager.d.ts +1 -1
  252. package/index.css +127 -20
  253. package/index.esm.js +1 -44
  254. package/package.json +1 -1
  255. package/shared/const/index.css +1 -0
  256. package/shared/const/index.d.ts +1 -1
  257. package/shared/const/index.js +1 -56
  258. package/shared/element-plus/ctx.d.ts +28 -26
  259. package/shared/element-plus/index.css +1 -0
  260. package/shared/element-plus/index.js +1 -220
  261. package/shared/element-plus/instances.d.ts +45 -38
  262. package/shared/form/index.css +1 -0
  263. package/shared/form/index.js +1 -30
  264. package/shared/helper/index.css +1 -0
  265. package/shared/helper/index.js +1 -9
  266. package/shared/index.css +1 -0
  267. package/shared/index.js +1 -56
  268. package/shared/infer-prop/index.css +1 -0
  269. package/shared/infer-prop/index.d.ts +1 -1
  270. package/shared/infer-prop/index.js +1 -34
  271. package/shared/progress-it/index.css +1 -0
  272. package/shared/progress-it/index.d.ts +4 -4
  273. package/shared/progress-it/index.js +1 -57
  274. package/shared/rules/index.css +1 -0
  275. package/shared/rules/index.js +1 -32
  276. package/shared/types/form/index.css +1 -0
  277. package/shared/types/index.css +1 -0
  278. package/shared/types/source/index.css +1 -0
  279. package/shared/types/source/index.d.ts +2 -2
  280. package/shared/types/source-manager/index.css +1 -0
  281. package/shared/upload/index.css +1 -0
  282. package/shared/upload/index.js +1 -767
@@ -9,26 +9,9 @@ import { RestFetch } from '@vunk/core/shared/utils-fetch';
9
9
  import { useComputedReadonly } from '@vunk/form/composables';
10
10
  import progress from '@vunk/form/shared/progress-it';
11
11
 
12
- var __defProp = Object.defineProperty;
13
- var __defProps = Object.defineProperties;
14
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
15
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
16
- var __hasOwnProp = Object.prototype.hasOwnProperty;
17
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
18
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
19
- var __spreadValues = (a, b) => {
20
- for (var prop in b || (b = {}))
21
- if (__hasOwnProp.call(b, prop))
22
- __defNormalProp(a, prop, b[prop]);
23
- if (__getOwnPropSymbols)
24
- for (var prop of __getOwnPropSymbols(b)) {
25
- if (__propIsEnum.call(b, prop))
26
- __defNormalProp(a, prop, b[prop]);
27
- }
28
- return a;
29
- };
30
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
31
- const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.props), uploadProps), {
12
+ const props = {
13
+ ..._VkfFormItemCtx.props,
14
+ ...uploadProps,
32
15
  tip: {
33
16
  type: String,
34
17
  default: ""
@@ -41,7 +24,7 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
41
24
  type: Function,
42
25
  default: void 0
43
26
  }
44
- });
27
+ };
45
28
  const createBindProps = bindPropsFactory(props);
46
29
  const emits = {
47
30
  "update:fileList": null,
@@ -51,19 +34,19 @@ const createOnEmits = onEmitsFactory(emits);
51
34
 
52
35
  var ctx = /*#__PURE__*/Object.freeze({
53
36
  __proto__: null,
54
- props: props,
55
37
  createBindProps: createBindProps,
38
+ createOnEmits: createOnEmits,
56
39
  emits: emits,
57
- createOnEmits: createOnEmits
40
+ props: props
58
41
  });
59
42
 
60
43
  /*! Element Plus Icons Vue v2.1.0 */
61
44
 
45
+
62
46
  // unplugin-vue:/plugin-vue/export-helper
63
47
  var export_helper_default = (sfc, props) => {
64
48
  let target = sfc.__vccOpts || sfc;
65
- for (let [key, val] of props)
66
- target[key] = val;
49
+ for (let [key, val] of props) target[key] = val;
67
50
  return target;
68
51
  };
69
52
 
@@ -72,191 +55,143 @@ var check_vue_vue_type_script_lang_default = {
72
55
  name: "Check"
73
56
  };
74
57
  var _hoisted_143 = {
75
- xmlns: "http://www.w3.org/2000/svg",
76
- viewBox: "0 0 1024 1024"
77
- }, _hoisted_243 = /* @__PURE__ */ createElementVNode(
78
- "path",
79
- {
58
+ xmlns: "http://www.w3.org/2000/svg",
59
+ viewBox: "0 0 1024 1024"
60
+ },
61
+ _hoisted_243 = /* @__PURE__ */createElementVNode("path", {
80
62
  fill: "currentColor",
81
63
  d: "M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"
82
- },
83
- null,
84
- -1
85
- /* HOISTED */
86
- ), _hoisted_342 = [
87
- _hoisted_243
88
- ];
64
+ }, null, -1
65
+ /* HOISTED */),
66
+ _hoisted_342 = [_hoisted_243];
89
67
  function _sfc_render43(_ctx, _cache, $props, $setup, $data, $options) {
90
68
  return openBlock(), createElementBlock("svg", _hoisted_143, _hoisted_342);
91
69
  }
92
- var check_default = /* @__PURE__ */ export_helper_default(check_vue_vue_type_script_lang_default, [["render", _sfc_render43], ["__file", "check.vue"]]);
70
+ var check_default = /* @__PURE__ */export_helper_default(check_vue_vue_type_script_lang_default, [["render", _sfc_render43], ["__file", "check.vue"]]);
93
71
 
94
72
  // unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/circle-check.vue?vue&type=script&lang.ts
95
73
  var circle_check_vue_vue_type_script_lang_default = {
96
74
  name: "CircleCheck"
97
75
  };
98
76
  var _hoisted_149 = {
99
- xmlns: "http://www.w3.org/2000/svg",
100
- viewBox: "0 0 1024 1024"
101
- }, _hoisted_249 = /* @__PURE__ */ createElementVNode(
102
- "path",
103
- {
77
+ xmlns: "http://www.w3.org/2000/svg",
78
+ viewBox: "0 0 1024 1024"
79
+ },
80
+ _hoisted_249 = /* @__PURE__ */createElementVNode("path", {
104
81
  fill: "currentColor",
105
82
  d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"
106
- },
107
- null,
108
- -1
109
- /* HOISTED */
110
- ), _hoisted_348 = /* @__PURE__ */ createElementVNode(
111
- "path",
112
- {
83
+ }, null, -1
84
+ /* HOISTED */),
85
+ _hoisted_348 = /* @__PURE__ */createElementVNode("path", {
113
86
  fill: "currentColor",
114
87
  d: "M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"
115
- },
116
- null,
117
- -1
118
- /* HOISTED */
119
- ), _hoisted_415 = [
120
- _hoisted_249,
121
- _hoisted_348
122
- ];
88
+ }, null, -1
89
+ /* HOISTED */),
90
+ _hoisted_415 = [_hoisted_249, _hoisted_348];
123
91
  function _sfc_render49(_ctx, _cache, $props, $setup, $data, $options) {
124
92
  return openBlock(), createElementBlock("svg", _hoisted_149, _hoisted_415);
125
93
  }
126
- var circle_check_default = /* @__PURE__ */ export_helper_default(circle_check_vue_vue_type_script_lang_default, [["render", _sfc_render49], ["__file", "circle-check.vue"]]);
94
+ var circle_check_default = /* @__PURE__ */export_helper_default(circle_check_vue_vue_type_script_lang_default, [["render", _sfc_render49], ["__file", "circle-check.vue"]]);
127
95
 
128
96
  // unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/close.vue?vue&type=script&lang.ts
129
97
  var close_vue_vue_type_script_lang_default = {
130
98
  name: "Close"
131
99
  };
132
100
  var _hoisted_156 = {
133
- xmlns: "http://www.w3.org/2000/svg",
134
- viewBox: "0 0 1024 1024"
135
- }, _hoisted_256 = /* @__PURE__ */ createElementVNode(
136
- "path",
137
- {
101
+ xmlns: "http://www.w3.org/2000/svg",
102
+ viewBox: "0 0 1024 1024"
103
+ },
104
+ _hoisted_256 = /* @__PURE__ */createElementVNode("path", {
138
105
  fill: "currentColor",
139
106
  d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
140
- },
141
- null,
142
- -1
143
- /* HOISTED */
144
- ), _hoisted_355 = [
145
- _hoisted_256
146
- ];
107
+ }, null, -1
108
+ /* HOISTED */),
109
+ _hoisted_355 = [_hoisted_256];
147
110
  function _sfc_render56(_ctx, _cache, $props, $setup, $data, $options) {
148
111
  return openBlock(), createElementBlock("svg", _hoisted_156, _hoisted_355);
149
112
  }
150
- var close_default = /* @__PURE__ */ export_helper_default(close_vue_vue_type_script_lang_default, [["render", _sfc_render56], ["__file", "close.vue"]]);
113
+ var close_default = /* @__PURE__ */export_helper_default(close_vue_vue_type_script_lang_default, [["render", _sfc_render56], ["__file", "close.vue"]]);
151
114
 
152
115
  // unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/delete.vue?vue&type=script&lang.ts
153
116
  var delete_vue_vue_type_script_lang_default = {
154
117
  name: "Delete"
155
118
  };
156
119
  var _hoisted_180 = {
157
- xmlns: "http://www.w3.org/2000/svg",
158
- viewBox: "0 0 1024 1024"
159
- }, _hoisted_280 = /* @__PURE__ */ createElementVNode(
160
- "path",
161
- {
120
+ xmlns: "http://www.w3.org/2000/svg",
121
+ viewBox: "0 0 1024 1024"
122
+ },
123
+ _hoisted_280 = /* @__PURE__ */createElementVNode("path", {
162
124
  fill: "currentColor",
163
125
  d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"
164
- },
165
- null,
166
- -1
167
- /* HOISTED */
168
- ), _hoisted_379 = [
169
- _hoisted_280
170
- ];
126
+ }, null, -1
127
+ /* HOISTED */),
128
+ _hoisted_379 = [_hoisted_280];
171
129
  function _sfc_render80(_ctx, _cache, $props, $setup, $data, $options) {
172
130
  return openBlock(), createElementBlock("svg", _hoisted_180, _hoisted_379);
173
131
  }
174
- var delete_default = /* @__PURE__ */ export_helper_default(delete_vue_vue_type_script_lang_default, [["render", _sfc_render80], ["__file", "delete.vue"]]);
132
+ var delete_default = /* @__PURE__ */export_helper_default(delete_vue_vue_type_script_lang_default, [["render", _sfc_render80], ["__file", "delete.vue"]]);
175
133
 
176
134
  // unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/document.vue?vue&type=script&lang.ts
177
135
  var document_vue_vue_type_script_lang_default = {
178
136
  name: "Document"
179
137
  };
180
138
  var _hoisted_190 = {
181
- xmlns: "http://www.w3.org/2000/svg",
182
- viewBox: "0 0 1024 1024"
183
- }, _hoisted_290 = /* @__PURE__ */ createElementVNode(
184
- "path",
185
- {
139
+ xmlns: "http://www.w3.org/2000/svg",
140
+ viewBox: "0 0 1024 1024"
141
+ },
142
+ _hoisted_290 = /* @__PURE__ */createElementVNode("path", {
186
143
  fill: "currentColor",
187
144
  d: "M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"
188
- },
189
- null,
190
- -1
191
- /* HOISTED */
192
- ), _hoisted_389 = [
193
- _hoisted_290
194
- ];
145
+ }, null, -1
146
+ /* HOISTED */),
147
+ _hoisted_389 = [_hoisted_290];
195
148
  function _sfc_render90(_ctx, _cache, $props, $setup, $data, $options) {
196
149
  return openBlock(), createElementBlock("svg", _hoisted_190, _hoisted_389);
197
150
  }
198
- var document_default = /* @__PURE__ */ export_helper_default(document_vue_vue_type_script_lang_default, [["render", _sfc_render90], ["__file", "document.vue"]]);
151
+ var document_default = /* @__PURE__ */export_helper_default(document_vue_vue_type_script_lang_default, [["render", _sfc_render90], ["__file", "document.vue"]]);
199
152
 
200
153
  // unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/download.vue?vue&type=script&lang.ts
201
154
  var download_vue_vue_type_script_lang_default = {
202
155
  name: "Download"
203
156
  };
204
157
  var _hoisted_191 = {
205
- xmlns: "http://www.w3.org/2000/svg",
206
- viewBox: "0 0 1024 1024"
207
- }, _hoisted_291 = /* @__PURE__ */ createElementVNode(
208
- "path",
209
- {
158
+ xmlns: "http://www.w3.org/2000/svg",
159
+ viewBox: "0 0 1024 1024"
160
+ },
161
+ _hoisted_291 = /* @__PURE__ */createElementVNode("path", {
210
162
  fill: "currentColor",
211
163
  d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64v450.304z"
212
- },
213
- null,
214
- -1
215
- /* HOISTED */
216
- ), _hoisted_390 = [
217
- _hoisted_291
218
- ];
164
+ }, null, -1
165
+ /* HOISTED */),
166
+ _hoisted_390 = [_hoisted_291];
219
167
  function _sfc_render91(_ctx, _cache, $props, $setup, $data, $options) {
220
168
  return openBlock(), createElementBlock("svg", _hoisted_191, _hoisted_390);
221
169
  }
222
- var download_default = /* @__PURE__ */ export_helper_default(download_vue_vue_type_script_lang_default, [["render", _sfc_render91], ["__file", "download.vue"]]);
170
+ var download_default = /* @__PURE__ */export_helper_default(download_vue_vue_type_script_lang_default, [["render", _sfc_render91], ["__file", "download.vue"]]);
223
171
 
224
172
  // unplugin-vue:/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/zoom-in.vue?vue&type=script&lang.ts
225
173
  var zoom_in_vue_vue_type_script_lang_default = {
226
174
  name: "ZoomIn"
227
175
  };
228
176
  var _hoisted_1292 = {
229
- xmlns: "http://www.w3.org/2000/svg",
230
- viewBox: "0 0 1024 1024"
231
- }, _hoisted_2292 = /* @__PURE__ */ createElementVNode(
232
- "path",
233
- {
177
+ xmlns: "http://www.w3.org/2000/svg",
178
+ viewBox: "0 0 1024 1024"
179
+ },
180
+ _hoisted_2292 = /* @__PURE__ */createElementVNode("path", {
234
181
  fill: "currentColor",
235
182
  d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"
236
- },
237
- null,
238
- -1
239
- /* HOISTED */
240
- ), _hoisted_3291 = [
241
- _hoisted_2292
242
- ];
183
+ }, null, -1
184
+ /* HOISTED */),
185
+ _hoisted_3291 = [_hoisted_2292];
243
186
  function _sfc_render292(_ctx, _cache, $props, $setup, $data, $options) {
244
187
  return openBlock(), createElementBlock("svg", _hoisted_1292, _hoisted_3291);
245
188
  }
246
- var zoom_in_default = /* @__PURE__ */ export_helper_default(zoom_in_vue_vue_type_script_lang_default, [["render", _sfc_render292], ["__file", "zoom-in.vue"]]);
247
-
248
- var _export_sfc = (sfc, props) => {
249
- const target = sfc.__vccOpts || sfc;
250
- for (const [key, val] of props) {
251
- target[key] = val;
252
- }
253
- return target;
254
- };
189
+ var zoom_in_default = /* @__PURE__ */export_helper_default(zoom_in_vue_vue_type_script_lang_default, [["render", _sfc_render292], ["__file", "zoom-in.vue"]]);
255
190
 
256
191
  const restFetch = new RestFetch({
257
192
  baseURL: ""
258
193
  });
259
- const _sfc_main$1 = defineComponent({
194
+ var script$1 = defineComponent({
260
195
  components: {
261
196
  ElProgress,
262
197
  ElIcon,
@@ -293,10 +228,14 @@ const _sfc_main$1 = defineComponent({
293
228
  emits: {
294
229
  "remove": (e) => e
295
230
  },
296
- setup(props, { emit }) {
231
+ setup(props, {
232
+ emit
233
+ }) {
297
234
  const nsUpload = useNamespace("upload");
298
235
  const nsIcon = useNamespace("icon");
299
- const { t } = useLocale();
236
+ const {
237
+ t
238
+ } = useLocale();
300
239
  const handleRemove = (file = props.file) => {
301
240
  emit("remove", file);
302
241
  };
@@ -323,8 +262,9 @@ const _sfc_main$1 = defineComponent({
323
262
  };
324
263
  }
325
264
  });
265
+
326
266
  const _hoisted_1$1 = ["src"];
327
- function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
267
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
328
268
  const _component_Document = resolveComponent("Document");
329
269
  const _component_el_icon = resolveComponent("el-icon");
330
270
  const _component_Download = resolveComponent("Download");
@@ -334,160 +274,179 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
334
274
  const _component_Close = resolveComponent("Close");
335
275
  const _component_zoom_in = resolveComponent("zoom-in");
336
276
  const _component_Delete = resolveComponent("Delete");
337
- return openBlock(), createElementBlock(Fragment, null, [
338
- createCommentVNode(" picture "),
339
- _ctx.listType === "picture" || _ctx.file.status !== "uploading" && _ctx.listType === "picture-card" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
340
- /\.(svg|png|jpg|jpeg)$/.test(_ctx.file.name) ? (openBlock(), createElementBlock("img", {
277
+ return openBlock(), createElementBlock(
278
+ Fragment,
279
+ null,
280
+ [createCommentVNode(" picture "), _ctx.listType === "picture" || _ctx.file.status !== "uploading" && _ctx.listType === "picture-card" ? (openBlock(), createElementBlock(
281
+ Fragment,
282
+ {
283
+ key: 0
284
+ },
285
+ [/\.(svg|png|jpg|jpeg)$/.test(_ctx.file.name) ? (openBlock(), createElementBlock("img", {
341
286
  key: 0,
342
287
  class: normalizeClass(_ctx.nsUpload.be("list", "item-thumbnail")),
343
288
  src: _ctx.file.url,
344
289
  alt: ""
345
- }, null, 10, _hoisted_1$1)) : (openBlock(), createBlock(_component_Document, { key: 1 }))
346
- ], 64)) : createCommentVNode("v-if", true),
347
- createCommentVNode(" text "),
348
- _ctx.listType !== "picture" && (_ctx.file.status === "uploading" || _ctx.listType !== "picture-card") ? (openBlock(), createElementBlock("div", {
349
- key: 1,
350
- class: normalizeClass(_ctx.nsUpload.be("list", "item-info"))
351
- }, [
352
- createElementVNode("a", {
353
- class: normalizeClass(_ctx.nsUpload.be("list", "item-name")),
354
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.onPreview(_ctx.file), ["prevent"]))
355
- }, [
356
- createVNode(_component_el_icon, {
290
+ }, null, 10, _hoisted_1$1)) : (openBlock(), createBlock(_component_Document, {
291
+ key: 1
292
+ }))],
293
+ 64
294
+ /* STABLE_FRAGMENT */
295
+ )) : createCommentVNode("v-if", true), createCommentVNode(" text "), _ctx.listType !== "picture" && (_ctx.file.status === "uploading" || _ctx.listType !== "picture-card") ? (openBlock(), createElementBlock(
296
+ "div",
297
+ {
298
+ key: 1,
299
+ class: normalizeClass(_ctx.nsUpload.be("list", "item-info"))
300
+ },
301
+ [createElementVNode(
302
+ "a",
303
+ {
304
+ class: normalizeClass(_ctx.nsUpload.be("list", "item-name")),
305
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.onPreview(_ctx.file), ["prevent"]))
306
+ },
307
+ [createVNode(_component_el_icon, {
357
308
  class: normalizeClass(_ctx.nsIcon.m("document"))
358
309
  }, {
359
- default: withCtx(() => [
360
- createVNode(_component_Document)
361
- ]),
310
+ default: withCtx(() => [createVNode(_component_Document)]),
362
311
  _: 1
363
- }, 8, ["class"]),
364
- createVNode(_component_el_icon, {
365
- class: normalizeClass([
366
- _ctx.nsIcon.m("download"),
367
- _ctx.nsIcon.m("download-primary")
368
- ]),
312
+ /* STABLE */
313
+ }, 8, ["class"]), createVNode(_component_el_icon, {
314
+ class: normalizeClass([_ctx.nsIcon.m("download"), _ctx.nsIcon.m("download-primary")]),
369
315
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.handleDownload(_ctx.file))
370
316
  }, {
371
- default: withCtx(() => [
372
- createVNode(_component_Download)
373
- ]),
317
+ default: withCtx(() => [createVNode(_component_Download)]),
374
318
  _: 1
375
- }, 8, ["class"]),
376
- createElementVNode("span", {
377
- class: normalizeClass(_ctx.nsUpload.be("list", "item-file-name"))
378
- }, toDisplayString(_ctx.file.name), 3)
379
- ], 2),
380
- _ctx.file.status === "uploading" ? (openBlock(), createBlock(_component_el_progress, {
319
+ /* STABLE */
320
+ }, 8, ["class"]), createElementVNode(
321
+ "span",
322
+ {
323
+ class: normalizeClass(_ctx.nsUpload.be("list", "item-file-name"))
324
+ },
325
+ toDisplayString(_ctx.file.name),
326
+ 3
327
+ /* TEXT, CLASS */
328
+ )],
329
+ 2
330
+ /* CLASS */
331
+ ), _ctx.file.status === "uploading" ? (openBlock(), createBlock(_component_el_progress, {
381
332
  key: 0,
382
333
  type: _ctx.listType === "picture-card" ? "circle" : "line",
383
334
  "stroke-width": _ctx.listType === "picture-card" ? 6 : 2,
384
335
  percentage: Number(_ctx.file.percentage),
385
336
  style: normalizeStyle(_ctx.listType === "picture-card" ? "" : "margin-top: 0.5rem")
386
- }, null, 8, ["type", "stroke-width", "percentage", "style"])) : createCommentVNode("v-if", true)
387
- ], 2)) : createCommentVNode("v-if", true),
388
- createElementVNode("label", {
389
- class: normalizeClass(_ctx.nsUpload.be("list", "item-status-label"))
390
- }, [
391
- _ctx.listType === "text" ? (openBlock(), createBlock(_component_el_icon, {
337
+ }, null, 8, ["type", "stroke-width", "percentage", "style"])) : createCommentVNode("v-if", true)],
338
+ 2
339
+ /* CLASS */
340
+ )) : createCommentVNode("v-if", true), createElementVNode(
341
+ "label",
342
+ {
343
+ class: normalizeClass(_ctx.nsUpload.be("list", "item-status-label"))
344
+ },
345
+ [_ctx.listType === "text" ? (openBlock(), createBlock(_component_el_icon, {
392
346
  key: 0,
393
- class: normalizeClass([
394
- _ctx.nsIcon.m("upload-success"),
395
- _ctx.nsIcon.m("circle-check")
396
- ])
347
+ class: normalizeClass([_ctx.nsIcon.m("upload-success"), _ctx.nsIcon.m("circle-check")])
397
348
  }, {
398
- default: withCtx(() => [
399
- createVNode(_component_circle_check)
400
- ]),
349
+ default: withCtx(() => [createVNode(_component_circle_check)]),
401
350
  _: 1
351
+ /* STABLE */
402
352
  }, 8, ["class"])) : ["picture-card", "picture"].includes(_ctx.listType) ? (openBlock(), createBlock(_component_el_icon, {
403
353
  key: 1,
404
354
  class: normalizeClass([_ctx.nsIcon.m("upload-success"), _ctx.nsIcon.m("check")])
405
355
  }, {
406
- default: withCtx(() => [
407
- createVNode(_component_Check)
408
- ]),
356
+ default: withCtx(() => [createVNode(_component_Check)]),
409
357
  _: 1
410
- }, 8, ["class"])) : createCommentVNode("v-if", true)
411
- ], 2),
412
- !_ctx.disabled ? (openBlock(), createBlock(_component_el_icon, {
358
+ /* STABLE */
359
+ }, 8, ["class"])) : createCommentVNode("v-if", true)],
360
+ 2
361
+ /* CLASS */
362
+ ), !_ctx.disabled ? (openBlock(), createBlock(_component_el_icon, {
413
363
  key: 2,
414
364
  class: normalizeClass(_ctx.nsIcon.m("close")),
415
365
  onClick: _cache[2] || (_cache[2] = ($event) => _ctx.handleRemove(_ctx.file))
416
366
  }, {
417
- default: withCtx(() => [
418
- createVNode(_component_Close)
419
- ]),
367
+ default: withCtx(() => [createVNode(_component_Close)]),
420
368
  _: 1
421
- }, 8, ["class"])) : createCommentVNode("v-if", true),
422
- createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),
423
- createCommentVNode(" This is a bug which needs to be fixed "),
424
- createCommentVNode(" TODO: Fix the incorrect navigation interaction "),
425
- createCommentVNode(` <i v-if="!disabled" :class="nsIcon.m('close-tip')">{{
369
+ /* STABLE */
370
+ }, 8, ["class"])) : createCommentVNode("v-if", true), createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"), createCommentVNode(" This is a bug which needs to be fixed "), createCommentVNode(" TODO: Fix the incorrect navigation interaction "), createCommentVNode(` <i v-if="!disabled" :class="nsIcon.m('close-tip')">{{
426
371
  t('el.upload.deleteTip')
427
- }}</i> `),
428
- createCommentVNode(" picture-card "),
429
- _ctx.listType === "picture-card" ? (openBlock(), createElementBlock("span", {
430
- key: 3,
431
- class: normalizeClass(_ctx.nsUpload.be("list", "item-actions"))
432
- }, [
433
- _ctx.preview ? (openBlock(), createElementBlock("span", {
434
- key: 0,
435
- class: normalizeClass(_ctx.nsUpload.be("list", "item-preview")),
436
- onClick: _cache[3] || (_cache[3] = ($event) => _ctx.onPreview(_ctx.file))
437
- }, [
438
- createVNode(_component_el_icon, {
372
+ }}</i> `), createCommentVNode(" picture-card "), _ctx.listType === "picture-card" ? (openBlock(), createElementBlock(
373
+ "span",
374
+ {
375
+ key: 3,
376
+ class: normalizeClass(_ctx.nsUpload.be("list", "item-actions"))
377
+ },
378
+ [_ctx.preview ? (openBlock(), createElementBlock(
379
+ "span",
380
+ {
381
+ key: 0,
382
+ class: normalizeClass(_ctx.nsUpload.be("list", "item-preview")),
383
+ onClick: _cache[3] || (_cache[3] = ($event) => _ctx.onPreview(_ctx.file))
384
+ },
385
+ [createVNode(_component_el_icon, {
439
386
  class: normalizeClass(_ctx.nsIcon.m("zoom-in"))
440
387
  }, {
441
- default: withCtx(() => [
442
- createVNode(_component_zoom_in)
443
- ]),
388
+ default: withCtx(() => [createVNode(_component_zoom_in)]),
444
389
  _: 1
445
- }, 8, ["class"])
446
- ], 2)) : createCommentVNode("v-if", true),
447
- createCommentVNode(" \u4E0B\u8F7D "),
448
- createElementVNode("span", {
449
- class: normalizeClass(_ctx.nsUpload.be("list", "item-download")),
450
- onClick: _cache[4] || (_cache[4] = ($event) => _ctx.handleDownload(_ctx.file))
451
- }, [
452
- createVNode(_component_el_icon, {
390
+ /* STABLE */
391
+ }, 8, ["class"])],
392
+ 2
393
+ /* CLASS */
394
+ )) : createCommentVNode("v-if", true), createCommentVNode(" \u4E0B\u8F7D "), createElementVNode(
395
+ "span",
396
+ {
397
+ class: normalizeClass(_ctx.nsUpload.be("list", "item-download")),
398
+ onClick: _cache[4] || (_cache[4] = ($event) => _ctx.handleDownload(_ctx.file))
399
+ },
400
+ [createVNode(_component_el_icon, {
453
401
  class: normalizeClass(_ctx.nsIcon.m("download"))
454
402
  }, {
455
- default: withCtx(() => [
456
- createVNode(_component_Download)
457
- ]),
403
+ default: withCtx(() => [createVNode(_component_Download)]),
458
404
  _: 1
459
- }, 8, ["class"])
460
- ], 2),
461
- !_ctx.disabled ? (openBlock(), createElementBlock("span", {
462
- key: 1,
463
- class: normalizeClass(_ctx.nsUpload.be("list", "item-delete")),
464
- onClick: _cache[5] || (_cache[5] = ($event) => _ctx.handleRemove(_ctx.file))
465
- }, [
466
- createVNode(_component_el_icon, {
405
+ /* STABLE */
406
+ }, 8, ["class"])],
407
+ 2
408
+ /* CLASS */
409
+ ), !_ctx.disabled ? (openBlock(), createElementBlock(
410
+ "span",
411
+ {
412
+ key: 1,
413
+ class: normalizeClass(_ctx.nsUpload.be("list", "item-delete")),
414
+ onClick: _cache[5] || (_cache[5] = ($event) => _ctx.handleRemove(_ctx.file))
415
+ },
416
+ [createVNode(_component_el_icon, {
467
417
  class: normalizeClass(_ctx.nsIcon.m("delete"))
468
418
  }, {
469
- default: withCtx(() => [
470
- createVNode(_component_Delete)
471
- ]),
419
+ default: withCtx(() => [createVNode(_component_Delete)]),
472
420
  _: 1
473
- }, 8, ["class"])
474
- ], 2)) : createCommentVNode("v-if", true)
475
- ], 2)) : createCommentVNode("v-if", true)
476
- ], 64);
421
+ /* STABLE */
422
+ }, 8, ["class"])],
423
+ 2
424
+ /* CLASS */
425
+ )) : createCommentVNode("v-if", true)],
426
+ 2
427
+ /* CLASS */
428
+ )) : createCommentVNode("v-if", true)],
429
+ 64
430
+ /* STABLE_FRAGMENT */
431
+ );
477
432
  }
478
- var FileVue = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "file.vue"]]);
479
433
 
480
- const _sfc_main = defineComponent({
434
+ script$1.render = render$1;
435
+ script$1.__file = "upload/src/file.vue";
436
+
437
+ var script = defineComponent({
481
438
  name: "VkfUpload",
482
439
  components: {
483
440
  VkfFormItem,
484
441
  ElUpload,
485
- FileVue,
442
+ FileVue: script$1,
486
443
  ElLink
487
444
  },
488
445
  emits,
489
446
  props,
490
- setup(props2, { emit }) {
447
+ setup(props2, {
448
+ emit
449
+ }) {
491
450
  const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
492
451
  const coreBindProps = createUploadBindProps(props2, ["disabled", "fileList", "beforeUpload", "onSuccess"]);
493
452
  const uploadRef = shallowRef();
@@ -529,19 +488,25 @@ const _sfc_main = defineComponent({
529
488
  handleRemove,
530
489
  readonly,
531
490
  onSuccess,
491
+ // onProgress,
532
492
  beforeUpload
533
493
  };
534
494
  }
535
495
  });
536
- const _hoisted_1 = { class: "el-upload__tip" };
537
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
496
+
497
+ const _hoisted_1 = {
498
+ class: "el-upload__tip"
499
+ };
500
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
538
501
  const _component_ElLink = resolveComponent("ElLink");
539
502
  const _component_FileVue = resolveComponent("FileVue");
540
503
  const _component_ElUpload = resolveComponent("ElUpload");
541
504
  const _component_VkfFormItem = resolveComponent("VkfFormItem");
542
- return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
543
- default: withCtx(() => [
544
- createVNode(_component_ElUpload, mergeProps({
505
+ return openBlock(), createBlock(
506
+ _component_VkfFormItem,
507
+ normalizeProps(guardReactiveProps(_ctx.formItemBindProps)),
508
+ {
509
+ default: withCtx(() => [createVNode(_component_ElUpload, mergeProps({
545
510
  class: ["vkf-upload", {
546
511
  "is-readonly": _ctx.readonly,
547
512
  "is-empty": _ctx.fileList?.length === 0,
@@ -555,54 +520,64 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
555
520
  "before-upload": _ctx.beforeUpload,
556
521
  disabled: _ctx.readonly || _ctx.disabled
557
522
  }), createSlots({
558
- file: withCtx(({ file }) => [
559
- createVNode(_component_FileVue, {
560
- file,
561
- listType: _ctx.listType,
562
- disabled: _ctx.readonly || _ctx.disabled,
563
- onPreview: _ctx.onPreview,
564
- preview: _ctx.preview,
565
- onRemove: _ctx.handleRemove
566
- }, null, 8, ["file", "listType", "disabled", "onPreview", "preview", "onRemove"])
567
- ]),
568
- default: withCtx(() => [
569
- renderSlot(_ctx.$slots, "default", {}, () => [
570
- createVNode(_component_ElLink, { type: "primary" }, {
571
- default: withCtx(() => [
572
- createTextVNode("+ \u9009\u62E9\u6587\u4EF6")
573
- ]),
574
- _: 1
575
- })
576
- ])
577
- ]),
523
+ file: withCtx(({
524
+ file
525
+ }) => [createVNode(_component_FileVue, {
526
+ file,
527
+ listType: _ctx.listType,
528
+ disabled: _ctx.readonly || _ctx.disabled,
529
+ onPreview: _ctx.onPreview,
530
+ preview: _ctx.preview,
531
+ onRemove: _ctx.handleRemove
532
+ }, null, 8, ["file", "listType", "disabled", "onPreview", "preview", "onRemove"])]),
533
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(_component_ElLink, {
534
+ type: "primary"
535
+ }, {
536
+ default: withCtx(() => [createTextVNode("+ \u9009\u62E9\u6587\u4EF6")]),
537
+ _: 1
538
+ /* STABLE */
539
+ })])]),
578
540
  _: 2
579
- }, [
580
- _ctx.tip ? {
581
- name: "tip",
582
- fn: withCtx(() => [
583
- createElementVNode("div", _hoisted_1, toDisplayString(_ctx.tip), 1)
584
- ]),
585
- key: "0"
586
- } : void 0
587
- ]), 1040, ["class", "fileList", "on-success", "before-upload", "disabled"]),
588
- createElementVNode("span", {
589
- class: normalizeClass(["vkf-upload-empty-tip", {
590
- "is-readonly": _ctx.readonly,
591
- "is-empty": _ctx.fileList?.length === 0
592
- }])
593
- }, "\u6682\u65E0", 2)
594
- ]),
595
- _: 3
596
- }, 16);
541
+ /* DYNAMIC */
542
+ }, [_ctx.tip ? {
543
+ name: "tip",
544
+ fn: withCtx(() => [createElementVNode(
545
+ "div",
546
+ _hoisted_1,
547
+ toDisplayString(_ctx.tip),
548
+ 1
549
+ /* TEXT */
550
+ )]),
551
+ key: "0"
552
+ } : void 0]), 1040, ["class", "fileList", "on-success", "before-upload", "disabled"]), createElementVNode(
553
+ "span",
554
+ {
555
+ class: normalizeClass(["vkf-upload-empty-tip", {
556
+ "is-readonly": _ctx.readonly,
557
+ "is-empty": _ctx.fileList?.length === 0
558
+ }])
559
+ },
560
+ "\u6682\u65E0",
561
+ 2
562
+ /* CLASS */
563
+ )]),
564
+ _: 3
565
+ /* FORWARDED */
566
+ },
567
+ 16
568
+ /* FULL_PROPS */
569
+ );
597
570
  }
598
- var VkfUpload = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
571
+
572
+ script.render = render;
573
+ script.__file = "upload/src/index.vue";
599
574
 
600
575
  var types = /*#__PURE__*/Object.freeze({
601
576
  __proto__: null
602
577
  });
603
578
 
604
- VkfUpload.install = (app) => {
605
- app.component(VkfUpload.name, VkfUpload);
579
+ script.install = (app) => {
580
+ app.component(script.name, script);
606
581
  };
607
582
 
608
- export { VkfUpload, ctx as _VkfUploadCtx, types as __VkfUpload, VkfUpload as default };
583
+ export { script as VkfUpload, ctx as _VkfUploadCtx, types as __VkfUpload, script as default };