@king-one/antdv 1.0.93 → 1.0.95

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 (64) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/es/components/index.mjs +8 -6
  3. package/dist/es/components/pro-upload/index.mjs +11 -0
  4. package/dist/es/components/pro-upload/src/assets/images/audio-icon.png.mjs +4 -0
  5. package/dist/es/components/pro-upload/src/assets/images/materials-icon.png.mjs +4 -0
  6. package/dist/es/components/pro-upload/src/assets/images/pdf-icon.png.mjs +4 -0
  7. package/dist/es/components/pro-upload/src/assets/images/ppt-icon.png.mjs +4 -0
  8. package/dist/es/components/pro-upload/src/assets/images/video-icon.png.mjs +4 -0
  9. package/dist/es/components/pro-upload/src/assets/images/word-icon.png.mjs +4 -0
  10. package/dist/es/components/pro-upload/src/assets/images/xls-icon.png.mjs +4 -0
  11. package/dist/es/components/pro-upload/src/assets/images/zip-icon.png.mjs +4 -0
  12. package/dist/es/components/pro-upload/src/data.mjs +49 -0
  13. package/dist/es/components/pro-upload/src/file-list.mjs +145 -0
  14. package/dist/es/components/pro-upload/src/gd-upload.mjs +164 -0
  15. package/dist/es/components/pro-upload/src/hooks/index.mjs +6 -0
  16. package/dist/es/components/pro-upload/src/hooks/useHttp.mjs +23 -0
  17. package/dist/es/components/pro-upload/src/hooks/useUpload.mjs +50 -0
  18. package/dist/es/components/pro-upload/src/props.mjs +47 -0
  19. package/dist/es/components/pro-upload/src/types.mjs +1 -0
  20. package/dist/es/components/pro-upload/src/utils/index.mjs +33 -0
  21. package/dist/es/components/pro-upload/style/index.mjs +2 -0
  22. package/dist/es/index.mjs +31 -27
  23. package/dist/lib/components/index.js +1 -1
  24. package/dist/lib/components/pro-upload/index.js +1 -0
  25. package/dist/lib/components/pro-upload/src/assets/images/audio-icon.png.js +1 -0
  26. package/dist/lib/components/pro-upload/src/assets/images/materials-icon.png.js +1 -0
  27. package/dist/lib/components/pro-upload/src/assets/images/pdf-icon.png.js +1 -0
  28. package/dist/lib/components/pro-upload/src/assets/images/ppt-icon.png.js +1 -0
  29. package/dist/lib/components/pro-upload/src/assets/images/video-icon.png.js +1 -0
  30. package/dist/lib/components/pro-upload/src/assets/images/word-icon.png.js +1 -0
  31. package/dist/lib/components/pro-upload/src/assets/images/xls-icon.png.js +1 -0
  32. package/dist/lib/components/pro-upload/src/assets/images/zip-icon.png.js +1 -0
  33. package/dist/lib/components/pro-upload/src/data.js +1 -0
  34. package/dist/lib/components/pro-upload/src/file-list.js +1 -0
  35. package/dist/lib/components/pro-upload/src/gd-upload.js +1 -0
  36. package/dist/lib/components/pro-upload/src/hooks/index.js +1 -0
  37. package/dist/lib/components/pro-upload/src/hooks/useHttp.js +1 -0
  38. package/dist/lib/components/pro-upload/src/hooks/useUpload.js +1 -0
  39. package/dist/lib/components/pro-upload/src/props.js +1 -0
  40. package/dist/lib/components/pro-upload/src/types.js +1 -0
  41. package/dist/lib/components/pro-upload/src/utils/index.js +1 -0
  42. package/dist/lib/components/pro-upload/style/index.js +1 -0
  43. package/dist/lib/index.js +1 -1
  44. package/dist/theme-chalk/fonts/iconfont.ttf +0 -0
  45. package/dist/theme-chalk/fonts/iconfont.woff +0 -0
  46. package/dist/theme-chalk/fonts/iconfont.woff2 +0 -0
  47. package/dist/theme-chalk/icon.css +1 -1
  48. package/dist/theme-chalk/index.css +1 -1
  49. package/dist/theme-chalk/pro-upload.css +1 -0
  50. package/dist/types/components/index.d.ts +1 -0
  51. package/dist/types/components/pro-upload/index.d.ts +109 -0
  52. package/dist/types/components/pro-upload/src/data.d.ts +9 -0
  53. package/dist/types/components/pro-upload/src/file-list.d.ts +46 -0
  54. package/dist/types/components/pro-upload/src/gd-upload.d.ts +105 -0
  55. package/dist/types/components/pro-upload/src/hooks/index.d.ts +2 -0
  56. package/dist/types/components/pro-upload/src/hooks/resType.d.ts +35 -0
  57. package/dist/types/components/pro-upload/src/hooks/useHttp.d.ts +15 -0
  58. package/dist/types/components/pro-upload/src/hooks/useUpload.d.ts +11 -0
  59. package/dist/types/components/pro-upload/src/props.d.ts +46 -0
  60. package/dist/types/components/pro-upload/src/types.d.ts +61 -0
  61. package/dist/types/components/pro-upload/src/utils/emitter.d.ts +7 -0
  62. package/dist/types/components/pro-upload/src/utils/index.d.ts +30 -0
  63. package/global.d.ts +1 -0
  64. package/package.json +4 -2
package/dist/es/index.mjs CHANGED
@@ -2,7 +2,7 @@ import o from "./installer.mjs";
2
2
  import "./components/index.mjs";
3
3
  import "./hooks/index.mjs";
4
4
  import { definePropType as f, formItemProps as P } from "./components/form/component/form.mjs";
5
- import { KForm as a, KFormItem as s } from "./components/form/index.mjs";
5
+ import { KForm as a, KFormItem as l } from "./components/form/index.mjs";
6
6
  import { collapseProps as i } from "./components/collapse-transtion/src/types.mjs";
7
7
  import { KCollapseTranstion as u } from "./components/collapse-transtion/index.mjs";
8
8
  import { useProModal as c, useProModalInit as T } from "./components/pro-modal/hooks/useProModal.mjs";
@@ -10,50 +10,54 @@ import { KProModal as g } from "./components/pro-modal/index.mjs";
10
10
  import { TitleProps as A } from "./components/pro-title/src/types.mjs";
11
11
  import { KProTitle as S } from "./components/pro-title/index.mjs";
12
12
  import { scrollbarProps as k } from "./components/scroll-bar/src/types.mjs";
13
- import { KScrollBar as y } from "./components/scroll-bar/index.mjs";
14
- import { KScaleVirtualList as C } from "./components/scale-virtual-list/index.mjs";
15
- import { proTagProps as L } from "./components/pro-tag/src/types.mjs";
16
- import { KProTag as h } from "./components/pro-tag/index.mjs";
17
- import { PickerApiEnum as q, ProPickerProps as v } from "./components/pro-picker/src/types.mjs";
18
- import { KProPicker as z } from "./components/pro-picker/index.mjs";
19
- import { ProAreaProps as G } from "./components/pro-area/src/types.mjs";
20
- import { useProArea as J } from "./components/pro-area/hooks/use-pro-area.mjs";
21
- import { KProArea as O } from "./components/pro-area/index.mjs";
22
- import { ProSignatureProps as R } from "./components/pro-signature/src/types.mjs";
13
+ import { KScrollBar as U } from "./components/scroll-bar/index.mjs";
14
+ import { KScaleVirtualList as B } from "./components/scale-virtual-list/index.mjs";
15
+ import { proTagProps as E } from "./components/pro-tag/src/types.mjs";
16
+ import { KProTag as V } from "./components/pro-tag/index.mjs";
17
+ import { PickerApiEnum as j, ProPickerProps as q } from "./components/pro-picker/src/types.mjs";
18
+ import { KProPicker as w } from "./components/pro-picker/index.mjs";
19
+ import { ProAreaProps as D } from "./components/pro-area/src/types.mjs";
20
+ import { useProArea as H } from "./components/pro-area/hooks/use-pro-area.mjs";
21
+ import { KProArea as N } from "./components/pro-area/index.mjs";
22
+ import { ProSignatureProps as Q } from "./components/pro-signature/src/types.mjs";
23
23
  import { KProSignature as W } from "./components/pro-signature/index.mjs";
24
24
  import { useProTable as Y } from "./components/pro-table/hooks/use-pro-table.mjs";
25
25
  import { KProTable as _ } from "./components/pro-table/index.mjs";
26
26
  import { KIcon as rr } from "./components/icon/index.mjs";
27
- import { useProForm as er, useProFormInit as pr } from "./hooks/useProForm.mjs";
27
+ import { useUpload as er } from "./components/pro-upload/src/hooks/useUpload.mjs";
28
+ import { KProUpload as tr } from "./components/pro-upload/index.mjs";
29
+ import { useProForm as fr, useProFormInit as Pr } from "./hooks/useProForm.mjs";
28
30
  export {
29
31
  u as KCollapseTranstion,
30
32
  a as KForm,
31
- s as KFormItem,
33
+ l as KFormItem,
32
34
  rr as KIcon,
33
- O as KProArea,
35
+ N as KProArea,
34
36
  g as KProModal,
35
- z as KProPicker,
37
+ w as KProPicker,
36
38
  W as KProSignature,
37
39
  _ as KProTable,
38
- h as KProTag,
40
+ V as KProTag,
39
41
  S as KProTitle,
40
- C as KScaleVirtualList,
41
- y as KScrollBar,
42
- q as PickerApiEnum,
43
- G as ProAreaProps,
44
- v as ProPickerProps,
45
- R as ProSignatureProps,
42
+ tr as KProUpload,
43
+ B as KScaleVirtualList,
44
+ U as KScrollBar,
45
+ j as PickerApiEnum,
46
+ D as ProAreaProps,
47
+ q as ProPickerProps,
48
+ Q as ProSignatureProps,
46
49
  A as TitleProps,
47
50
  i as collapseProps,
48
51
  o as default,
49
52
  f as definePropType,
50
53
  P as formItemProps,
51
- L as proTagProps,
54
+ E as proTagProps,
52
55
  k as scrollbarProps,
53
- J as useProArea,
54
- er as useProForm,
55
- pr as useProFormInit,
56
+ H as useProArea,
57
+ fr as useProForm,
58
+ Pr as useProFormInit,
56
59
  c as useProModal,
57
60
  T as useProModalInit,
58
- Y as useProTable
61
+ Y as useProTable,
62
+ er as useUpload
59
63
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./form/index.js"),e=require("./collapse-transtion/index.js"),o=require("./pro-modal/index.js"),i=require("./pro-title/index.js"),n=require("./scroll-bar/index.js"),t=require("./scale-virtual-list/index.js"),K=require("./pro-tag/index.js"),a=require("./pro-picker/index.js"),c=require("./pro-area/index.js"),l=require("./pro-signature/index.js"),s=require("./pro-table/index.js"),u=require("./icon/index.js");exports.KForm=r.KForm;exports.KFormItem=r.KFormItem;exports.KCollapseTranstion=e.KCollapseTranstion;exports.KProModal=o.KProModal;exports.KProTitle=i.KProTitle;exports.KScrollBar=n.KScrollBar;exports.KScaleVirtualList=t.KScaleVirtualList;exports.KProTag=K.KProTag;exports.KProPicker=a.KProPicker;exports.KProArea=c.KProArea;exports.KProSignature=l.KProSignature;exports.KProTable=s.KProTable;exports.KIcon=u.KIcon;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./form/index.js"),e=require("./collapse-transtion/index.js"),o=require("./pro-modal/index.js"),i=require("./pro-title/index.js"),n=require("./scroll-bar/index.js"),t=require("./scale-virtual-list/index.js"),K=require("./pro-tag/index.js"),a=require("./pro-picker/index.js"),c=require("./pro-area/index.js"),l=require("./pro-signature/index.js"),s=require("./pro-table/index.js"),u=require("./icon/index.js"),d=require("./pro-upload/index.js");exports.KForm=r.KForm;exports.KFormItem=r.KFormItem;exports.KCollapseTranstion=e.KCollapseTranstion;exports.KProModal=o.KProModal;exports.KProTitle=i.KProTitle;exports.KScrollBar=n.KScrollBar;exports.KScaleVirtualList=t.KScaleVirtualList;exports.KProTag=K.KProTag;exports.KProPicker=a.KProPicker;exports.KProArea=c.KProArea;exports.KProSignature=l.KProSignature;exports.KProTable=s.KProTable;exports.KIcon=u.KIcon;exports.KProUpload=d.KProUpload;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../utils/install.js"),o=require("./src/gd-upload.js"),r=require("./src/hooks/useUpload.js");require("./style/index.js");require("./src/types.js");const e=l.withInstall(o.default);exports.useUpload=r.useUpload;exports.KProUpload=e;exports.default=e;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAAXNSR0IArs4c6QAAARdQTFRFAAAAgICATbNmXa5oV61pWa5nZLd4Wa5nV69pWK1oWa1pdLuBWa1oV6xoWa1nl8yhWK1oWK1oWK1pWK1oWK1oWK1ofsCLWK1oWa1pWa5pWq5qW65qW69rX7BuX7FvYbFwYrJxZLNzZbN0a7Z5bbd7brh8b7h9cbl/crp/crqAfsCKfsCLf7+KgMGMgcGNg8KPhsSSiMSTjseZjsiZj8iakcicksmck8qdlMuemM2ims2kn9Con9CpodGqpNKtptOuqdWxrNa0rte2r9e3sdm5s9m6tNq7ut3Bu97CvN7Dv9/FwuHIxePL1uva3e7g5fLn5fLo5vPo5/Pp6fTr7/fx8vnz8/n0+Pz5+v37/P79/f79/v/+////2h4NpQAAABd0Uk5TAAIKFjg5QEhJUWRlZ3h5pqqxyOTl/v6Y+Q+ZAAABb0lEQVRYw+3YWU/CQBSGYcoighRZxEGlKCLuO+6KuGvdV1A8//93eGXSStM503MuGjPvLcmTNFzMyReJ6EJfLJ4clDWA51KFkpA3OozkojmBavkGJxp5gQRtnJgRaBAlGiMKIEZMCBUQIabVQLloKoJSMasKykR1UCIGAP3FIKCvGAj0E4OBPiIeXLRRIh6ctVEiHqyco0Q8KGYuMaICKKylrR1n20PK4PRJze/nrDK4Bp2WxQsCfFyvT7GCAADd53k+sAcAneMyH1jf3F2pcH7yBPefokEN/h+w2ry4vTpqcIHjB+8AAPD9xANWH8ARA3gHvOACMIMtbvDM5fXGyOC+C3ylP6O1rhM8ZXiXDx3ei8Xx0Lc/f73HOs/l0Lj/AgB42ysLrlNkcrW5MSe7nrLE60uDGtRgeEGTApqkmcWjNGkI8ijhNVUVg3tFgzSm9ZehzX195Q3aIPm3XJQ4mboqFVLkUddRMh7TQ3j4+wEO58C7yvIMGgAAAABJRU5ErkJggg==";exports.default=A;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAAXNSR0IArs4c6QAAAVlQTFRFAAAA////zMzMxdHRv83WwM7Xt8fPv83VwM7VwM3WwszWscLNwc3VwczXwszXo7XDws7Xwc3Xwc3Wwc3Wwc3WsL/Mwc3Wkae5lqu8mKy9pbfFpbjFprjGr77Lr7/LtsXPt8XQvsrUwMzVwc3Wws7Wws7Xw87Xw8/Xw8/YxM/YxNDYxdDYxdDZxdHZxtHax9LayNLaydPbydTbytTcytXcy9XczNbdztfez9jfz9nf0Nng0drg0trh09zi1d3k19/l2N/l2eDm2uHm3eTp3uTp3uXp3+Xq3+bq4Obq4efr4ufs4ujs4+js4+jt5Ont5uvu5uvv5+zv6Ozw6e3w6e3x6u7x6+/x7PDy7fDz7fHz7vH07/L08PP18fP28fT28vT28vX28/X38/b39ff49vj59/n6+Pn6+Pr7+fr7+vv7+vv8+/z8+/z9/Pz9/f39/f3+/v7+/v7/////+G2N+AAAABd0Uk5TAAIKFjg5QEhJUWRlZ3h5pqqxyOTl/v6Y+Q+ZAAAB9ElEQVRYw+3Y50/CQBgGcJYiKMhQca+KoCi4wC2KCxRRVBQUFzhRFPr/f5BS2p6C9PpeY0zs84nnkv6S9q4leVUqJX8+Wp2+SSyN+JzB1kGJp70Vk9NYKKz0O/BEtZXCBfHEFgofxBHVbVJADLGBkgSKi0aJoKhokgqKiWbJoIgIAOuLELCuCALriTCwjggEfxah4I8iPjjgwBLxweEuLBEfpAY7cUQJIDXU19uDpruZEKyKWQF/B9yjyykWC4U0u+LcvMu/pFag4C0txM0szGXYcuiUBxzNci0iDxjhWzEgC/go1H05QDdSz+UAnUg9k+WWs0LdlgUM8e3VJ885vODaOuzY3CCgi1nwHJd/v20A35Tg1TWXaGVp+egyGZ5SPl/SwOUI8mnx74ZL2ZokACdy9BZfnPfslicIwBhN5/lTvMkdoiUw6C+ULo9Xii/PgRkwmCpfP8+WuHDOQ0Bwlb38ulwCyIuTc4FAbhPoINMWEfDdAwL5TXgaY2pSAHdAt+zlN4H9V5otcPXBBQKRTfiYZhaiXF0D7bIXeWZ0jFkZf2ZLGnawRw4SQhbY9/DktJT4jPL5UsB/DJpIQBPRmKVGjESDoBppqDWqssM9u5pomFadFrJxX1WsarKB5PdYNIQj0y/psBmIh7pI9DqtMgj/+/kEf9qaY5Zd/A0AAAAASUVORK5CYII=";exports.default=A;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAAXNSR0IArs4c6QAAAZJQTFRFAAAA/4CA5k1N6FFR7VJS7VFR50xM7VFR7lBQ7E9P7U9P40RE7k9P7lFR7FBQ3D093T097VBQ7lFR7VBQ7VFR7VBQ5ERE7VBQ1DAw1jMz2DU13j093z4+3z8/40ND5ERE50hI6ElJ605O7U9P7VBQ7VFR7VNT7VRU7lVV7lZW7ldX7lhY7lpa7ltb7l5e72Bg72Ji72Nj72Vl8Glp8Gtr8G5u8HFx8XJy8XNz8XR08XZ28Xd38Xl58Xt78n5+8n9/8oGB8oSE84aG84iI84mJ84qK84uL846O9JCQ9JKS9JWV9JeX9JiY9Zyc9aGh9aKi9qWl9qam9qen9qmp9qur962t97Gx97S0+La2+Li4+Lu7+Ly8+L29+cDA+cPD+cXF+cfH+cjI+cnJ+szM+tDQ+tHR+tLS+9TU+9XV+9fX+9nZ+9zc+93d/N3d/N7e/N/f/OHh/OLi/OPj/OTk/OXl/Obm/enp/erq/ezs/e/v/vHx/vX1/vb2/vf3/vj4/vn5/vr6//r6//z8//39//7+////fqc24AAAABh0Uk5TAAIKFjg5QEhJUWRlZ3h5pqaqscjk5f7+s+mK+gAAAeRJREFUWMPt2ElTE0Ech2HCIovsoMSdpRNAIBgVQRGVRVkUFMQ9CCoQjBu4E4ziOO/39qZoQqan+18Uh3mPc3guPVXd9SsoCNr3FRWXlnl1QJ8rb2hS3h2u1eQK65RWp8J6Yqhe6YJ6YqXSB3XE0CE/oIZYonyB3mKFT9BTrPILeonVvsFwjTSYXzQB84pGYD7RDMwjGoK7i6bgrqI+2BzWEvXBtqNaoj6oWo7oiD5A1XryxLGdHT9oCWZVHYB7Dg7OjEYkwXEXHkmCn/iCExMEf3EDLgmCX7mc4aoguMKcS58gOEsaugTBc8B70f8wBQ9FweswLgoOwVpEEkwAtwTBrgzw7awcOIGThHfdYuAqCz0fYa1TCByAfnV+C15M3U2srr+8F7MEl0gqpYb502bMCuxzGVFnpp4DkHk2+8Rl0gp8ijP/hu3lmQtD68BW2mXQAozfd+Hn4nCnUkpFp5Pb4DyIGIPxxw68vtnz90v7wMVu41OO3vkBfD4tdev1puA7XJO6RqNvydxOkxC7l6/AwiapDjEw7gKvegVfDmMbH+bbg9dXAAag4YiRoyqrmSVHFVZDUI5Kck1VjeZeY8hqTMuu0m7uy6o+ZDdI/l9doeVk+k9NDeXWo+6OSouLgiF8//cbrfdfjbEnmicAAAAASUVORK5CYII=";exports.default=A;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAAXNSR0IArs4c6QAAAVlQTFRFAAAA/4CA5oBm83Rd8XZg8nRi63Bc8XVg8Xdi73Ri8HVh5mpb8Hdh8Hdi8HZh2lxW3F5W8HZi8XZh8Hdh8Hdh8XZh5GdZ8HZhz05O01JQ01RR3V9W3WBW3l9W5GdZ5Gda6G1d6W5d7nNg7nRg8HZh8Hdi8Hhj8Hlk8Hll8Hpl8Hpm8Xxo8YBs8YFt8YFu8op48ox68418849+85B/85OC85SD85SE85WF85aG9J2O9aCR9aGT9aKU9aOU9aSX9aWY9aaZ9qmb9qmc9qqc9q6h97Kn97Sp97Wp97ar97qw+Luw+Lyy+L2z+MC3+MK5+cS7+cW8+ca9+cnB+crC+cvE+s/I+tHK+tLL+tTN+tbP+9jS+9rU+9rV+9/a/ODb/Ofk/enm/evo/e3q/e3r/e7r/e7s/e/s/u/t/vPx/vTz/vXz/vf2/vn4/vr5//v7//z7//39//7+////u7h9hAAAABh0Uk5TAAIKFjg5QEhJUWRlZ3h5pqaqscjk5f7+s+mK+gAAAbFJREFUWMPt2EdPAkEchnGqCIIKWLBiGUSxYO+9gtgAxd4rAirv9z94MBtBkP3vzpgYss8F5vI7bWY3r06n9e8zmiyVclXQOau7kcnXUEvkDE5GyuuhiXoXo4I00c7oIEXU1ysBCaKZKQLlRZtCUFZ0KAXlxGrFoKdGNFhaVAOWFFWBpUR1YAlRJfi7SAfbPSSRDnZ4SCId7G4miXSQdTZRRAUg6/K2tuXWUsUJFlStgRr4p+B6IpEYD8yFYrHITJ8IMA7g5BUAgFS4Xwz43d2IYBCpUV7wCADwsL26dPAEAI8DnOANgOymjzHGAvsAsMcJ3gKISocdAO+D/OC8dPBfA1gTCLIQgEOR4CSAc5HgNIBLkeACgGOR4CmAMD+4IR0msgDG+MHn4Nf/4SSAK84H+wIAMltDzBfcfQOQnRJ0OSQzX78hwbdNRMj1lZK4+zkxF+zi8tn9R/blZKVX0CtgnjHm7xH0kornPdgaWJ5gNJ1Oz2qfc+UCOnhAB9fMUiQb1xBUJHOxqapOvVen5xrTCrPzzX0FufR8g+TPnAbOyTSvRreVe9TNyWIyakP4/+8TxTRt+W83Y4oAAAAASUVORK5CYII=";exports.default=A;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAAXNSR0IArs4c6QAAASBQTFRFAAAAgID/gJnmgIvze43tfY/th5fvfI7teo/ue47vfY/tkqLwfI3ue47ufI3urLfzrLf0fI7vfI/ufI7ufI7ufI/ufI7umqjyfI7ufY7ufY/ufpDufpHvf5DugZLvgZPvgpPvg5TvhJXvhZbvh5jviZnwjJzwjZzxjp3wjp7wk6HxlaPxl6Xymafymajxmqfymqjxn6zzoa7zp7Pzp7P0qLTzqbX0qrX0q7f0rbj0r7r1s771tL71tsD1uML2vsf3wMj3wcn3wsv3w8z3xc34xs74ydH4ytH4zdT4z9X51dv619363uL73uP74OT74+f75ej86ez86+788PL98fP98/T99Pb+9fb+9/j++Pn++/v++/z//f3//f7//v//////S9S9WQAAABh0Uk5TAAIKFjg5QEhJUWRlZ3h5pqaqscjk5f7+s+mK+gAAAWFJREFUWMPt2OdSwkAYhWFCEUGCUsQVe++9V1SUWLArds/934V/0WSy3+5+P6LmvYBnJpNkkzmRSFjgi8WTrbJa6FyqUBLyujqIXDQnSC3WaKKVF0TQoYkZQQZJotWpAFLEhFABCWJaDZSLtiIoFbOqoFNrZwYlogboL+qAvqIW6CfqgT4iHZx3SCIdnHRIIh3sPSCJdFBMHFFEBVAMLKysN7fWZgi6yv4ZcKT+dDLMCe4CaGyX+cAKAOBmjhnE59kYLwi87PfxgsDdMjMIXEwxg3g7HOQFgYcNZhC4mmEG8XFc5gWBzYCD71XeS65Ps96U+1XWx+a10s/6YJ+Ps756t0ush8PzXg/rAXs6ynrAXs+yfQJ2ADxudTN+Ri8b1aH/9ecQgiEYgr8PtE1A22hm8ShtNAR5lPCaqor6XtEyGtPcZczmPld5y2yQ/FkuajiZfqtUSBmPuk0l47FwCA9+X4J951cauqMxAAAAAElFTkSuQmCC";exports.default=A;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAAXNSR0IArs4c6QAAAUFQTFRFAAAAgID/TZnmRpfcSZbbSJjbSJPXSpjYSZbZSJfZSpbZSZLUSJfaSJfZSpjZS4nRSpjaSZfaSZbZSZfZSZfZSZfZSo/USZLWSZbYSZbZSZfZSorQSorRSovRSo7TSo7USo/TSpLWSpfZSpjZS4DLS4LMS4PNTZnaT5raU53bVJ3bVZ7cVp7cWaDcW6HdXKLdXqPdZqffaKngaangaqrgcq7hcq/idbDigLbkgrjlibvmibvni73njL3njL7njr7nj7/okMDokcDoksHpl8PpmMTpmsXqncfqosrrosrso8rspsztrM/trdDurtHus9TvttXwudfwxN3zxN7zyeDzyeD0zuP10OT10eT12en32+r32+v43Ov43ez45/H65/L67PT77vb87/X88Pb88ff88/j89/v9+fz+/P3+/v7/////pdH5rwAAABd0Uk5TAAIKFjg5QEhJUWRlZ3h5pqqxyOTl/v6Y+Q+ZAAACNElEQVRYw+3YWVMTQRiFYcIiggRZxOW4kyg7hMUEFAVlh1E2BUJYogGSvP//B3gxCUYTk57uG6rIuepvqvLUdE+6u+praKjnxqepufVurdwx59p6+lQ7D+8bco1dMsqrqJkY6pYpaCZ2yBw0EUMPgoAGYosCgbXF9oBgTTEcFKwldgYGa4gWYHXRBqwqWoHVRDuwimgJ/l80B19EjURz8FHUSDQHH781Es1BvX5jIgYA9eTl82eleXrPESxLZx2sg7cUHEun08nKv06m0+mx4G94DMxU8maAY4sprwObhXH/l6Wlz/2FYhNYtwCngJPCOAGQKBQnwJTNRzkDYv5wB2DHH8eAM6uv/A1YkSQNXAJcDkiSVoCvVmACOJIkzQHAnCTpqGT2wcBIBnKjkrTng3uSNJqDTMTuj70LzEsazsLFBWSHJc0Du5Y7ZRbYl7QIbG8Di5L2gVlLcPAKrgb9VYvH/RUtPrPby/7bTOThXDqH/MT1W9uB/nqtAVvSFrB2va524EgOMpFTYFKaBE4jGciN2B9fh8AnICVJKeAjcOhwHi4DSWBVklYLxbIDGANykB+XpPE85P7sb7sTOwXAgV8cQHH61uAGAAt+sQDAhhM4DZAd8ouhLMC02yX1E/heLH4AvxxvvQ+e570rFnHP897XL/o6eLvBsAsYdmqzVEi7UyOoQloqtap67b3ekFMzrTwdbu2+snSH3BqS/6ar0bFl+lf6etqcm7olaW1uqjfCb35+A7DU9hhMVFm4AAAAAElFTkSuQmCC";exports.default=A;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAAXNSR0IArs4c6QAAANVQTFRFAAAAgP+ATcyAUcWATcSATMV9SL98TsOATcR+T8N+T8SASbt3T8R+T8N/TsR+RLJyRLRyTsWATsR/TsSATsSATsR/SLp3TsSAPahpP6trP6xsRLRyRbRzRbVzR7l3R7p2SLl3Sr56TcJ+TsN+TsR/T8SAUcWBUcWCUsWCU8aDX8qLYsuOas2TbM6VcM+YcdCZc9CadtGcd9Kdmd21nN63n9+6oeC7xezVxuzWye3Yyu3Yyu3ZzO7aze7b3vTn5/fu6Pfu6vjw8/v29fz39vz49/z5////oSQCEgAAABh0Uk5TAAIKFjg5QEhJUWRlZ3h5pqaqscjk5f7+s+mK+gAAAZdJREFUWMPt2NlSwjAUBmDKIoKAsih1Fw20KLK54m7FvP8jyWKnTZfknBwuYKb/XXvxTTM5aTt/KpVk7ZPJ5rdV2YJzhXqTqXOwB+TSVQbKmQkTjRqDgjCxxOAgRDT2MSBAzDEUqBaLSFAplrGgSqygQXN31aBc1AGlohYoE/VAiagJxotw8MIEiXCwZYJEOHh1BBLhIGsdQkQEyC7PT4/9OdkhgqFUEjABNwnsPHbFG/aDRQE7T/xNEO0X/mzpgzOPC+LM45EiEOz9cEG0X+fX01v9JQ8FcfF8fDqibIpflHiIsfFEmYeZQ1dsyzzUYLvivcTDnRRPjPWQR88V70arOsvDwDxSQet6Kb53VwNak88blYgBrQnnShEBzj3OP9pyEQ4uvd+xuzMxIhj0PLkIBf2eVASCoicToS9YR/D+Raenv+SBI3gL0elTNmXwPQ6cwq8+bWzs0Icr+RVJwI0CyxSwTKpZIlIkFUERyUVVVQ19r2GQyrRwSrS6L5SaQSskg6mmiZWpkGa9QC51fclnM0kRvv75A85oP1/N37GpAAAAAElFTkSuQmCC";exports.default=A;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAAXNSR0IArs4c6QAAASBQTFRFAAAA//+A/8xN88VG9sRE9sVI879A9MNH9cRG9cVO9sNF9cRF7b0999mN9cRF9MNG9MRG++ex47Q547U59cVG88RH9MRG9MRG9MRG67w+9MRG26ww3Kwx3a4y37A04LA15bY55rY55rc55rc657g76Lk76ro97Ls/7Lw/78BB8cFE88NF88NG9MRG9MRH9MVI9MVJ9MVK9MZL9MZN9MdO9cdP9cdQ9cdR9chT9clV9cpX9cpZ9ctb9ctc9s5l9s9n9s9o9s9p9tBs9tFv99Jy99N099Z/+NiE+NqK+NqL+NqM+d2U+d+c+eCc+eCe+eGi+uGh+uKk+uOm+uOo+uOp+uSp+uSr++m6/O3H/fLW/fTc/vfn/vns/vrw//34/////xldWQAAABt0Uk5TAAIKFjg5QEhJS1FkZWVneHl9pqaqscjk5f7+Q09RjgAAAYxJREFUWMPt2FdTwkAQwHFCEQUFVIoSe1c8FEPsYouo2Hsn3/9buCqMUZLcbrwHRu7/kpl7+E1mbpOH9flkTV8gGG7/VUc31GU5aMNzkXSWNaSb0L3loL8XyfmTzK4GcErFiUqKYUGcGGN4ECMqfQ7gQhm6eITWvkGEGGJunX+85qYF5ItRIsgV41SQJyacrPwWdPoKbfwE1R5voO0tI0QvoKuIB2dUlIgHZ1WU6AgWzqCrW2ildjKIEhPosWGTKkYkgPPDGJEAsrkhhEgBWW58gCs6gsUqdLcM5S2nuemJsZF6o51/GhubEv8LXHqAro8hTQxod8sSpIHaE3SzDxVaZQ6Fg9ozdLkHFeQcNhW4XYGKAkEmcGxaEFys1FsV+C1/titB7+BRqVQ6EAka8FhvIVAzzRPDMMqmuSPo03upXXJVFwQaX+Lbobifg6brelH+DyVIXWJwipPXLJyi5EUQp5Ddqirj3csolGUaohhp3ccvpZAWktySftrK1L1sOkJd6roVDgbkIrz5ewdmb+AGVjQC7gAAAABJRU5ErkJggg==";exports.default=A;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./assets/images/audio-icon.png.js"),u=require("./assets/images/materials-icon.png.js"),l=require("./assets/images/pdf-icon.png.js"),r=require("./assets/images/ppt-icon.png.js"),a=require("./assets/images/video-icon.png.js"),o=require("./assets/images/xls-icon.png.js"),t=require("./assets/images/zip-icon.png.js"),c=require("./assets/images/word-icon.png.js"),i={audio:{url:e.default,value:[".mp3",".wav",".wma",".ogg",".aac",".flac"]},materials:{url:u.default,value:[]},pdf:{url:l.default,value:[".pdf"]},ppt:{url:r.default,value:[".ppt",".pptx"]},video:{url:a.default,value:[".mp4",".m3u8",".rmvb",".avi",".swf",".3gp",".mkv",".flv"]},xls:{url:o.default,value:[".xls",".xlsx",".xlsb",".csv",".et"]},zip:{url:t.default,value:[".zip",".rar"]},docx:{url:c.default,value:[".doc",".docx"]},img:{value:[".gif",".jpg",".jpeg",".png",".bmp",".webp"],url:"img"}};exports.iconTypes=i;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),n=require("ant-design-vue"),s=require("@ant-design/icons-vue");require("./hooks/index.js");const g=require("./hooks/useHttp.js"),h=require("./hooks/useUpload.js"),x=t.defineComponent({props:{http:{type:[Object,Function],default:()=>({})},itemWidth:{type:Number,default:80},itemHeight:{type:Number,default:80},list:{type:Array,default:[]}},emits:["update:list"],setup(i,{emit:d}){const{deleteFileApi:a}=g.useHttp(i.http),{downloadFile:r}=h.useUpload(i.http),o=t.ref(i.list),c=async e=>{try{const l=await a({params:{fileId:e.id}});l.status===0?(n.message.success("文件删除成功~"),o.value=o.value.filter(u=>e.id!==u.id),d("update:list",o.value)):n.message.error(l.msg)}catch(l){console.log(l)}},p=async e=>{e.spining=!0,await r([e.id])&&(e.spining=!1)};return()=>t.createVNode(t.Fragment,null,[o.value.map(e=>t.createVNode("div",{style:{marginTop:"5px"}},[t.createVNode("div",{style:{display:"flex",position:"relative",border:"1px solid #ccc",marginRight:"15px",boxSizing:"border-box",borderRadius:"4px"}},[t.createVNode("div",{style:{borderRadius:"0px 4px 0px 50px",position:"absolute",top:"0",right:"0",width:"15px",height:"15px",background:"black",zIndex:1e3,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},onClick:()=>c(e)},[t.createVNode(s.CloseOutlined,{style:{fontSize:"8px",color:"white",paddingBottom:"4px"}},null)],8,["onClick"]),e.type!=="img"?t.createVNode(s.DownloadOutlined,{style:{position:"absolute",zIndex:1e3,bottom:"6px",left:"6px",fontSize:"16px",color:"#cccccc",cursor:"pointer"},onClick:()=>p(e)},null,8,["onClick"]):"",t.createVNode("div",null,[e.type==="img"?t.createVNode(n.Image,{src:e.icon,style:{minWidth:"80px",minHeight:"80px",width:`${i.itemWidth}px`,height:`${i.itemHeight}px`,display:"block"}},null,8,["src","style"]):t.createVNode(n.Spin,{spinning:e.spining},{default:()=>[t.createVNode("div",{style:{minWidth:"80px",minHeight:"80px",width:`${i.itemWidth}px`,height:`${i.itemHeight}px`,display:"flex",alignItems:"center",justifyContent:"center"}},[t.createVNode("img",{src:e.icon,style:{width:`${i.itemWidth-40}px`,height:`${i.itemHeight-40}px`}},null,12,["src"])],4)]},8,["spinning"])])]),t.createVNode("div",{style:{width:`${i.itemWidth}px`,minWidth:"80px",fontSize:"12px",color:"#ccc",textAlign:"center",paddingTop:"4px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},[t.createVNode(n.Tooltip,{placement:"left",title:e.fileName},{default:()=>[e.fileName]},8,["title"])],4)]))])}});exports.default=x;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),f=require("ant-design-vue"),q=require("../../../hooks/use-namespace/index.js"),w=require("../../icon/index.js"),V=require("./props.js"),d=require("./utils/index.js");require("./hooks/index.js");const F=require("./file-list.js"),L=require("./hooks/useUpload.js"),$=t.defineComponent({name:"GdUpload",props:V.UploadComponentProps,emits:{"update:fileList":e=>!0,"upload-success":e=>e,change:e=>e},setup(e,{emit:r,expose:g}){const{b:h}=q.useNamespace("pro-upload"),l=t.ref([]),p=t.ref(!1),{uploadFile:x,getFileDetails:N,getImgUrl:v}=L.useUpload(e.http),y=t.computed(()=>{if(e.disabled||l.value.length===e.maxCount)return!0}),b=i=>{var o;const{name:n,size:s}=i,a=d.getFileExtension(n),u=s/1024/1024;return e.accept&&e.accept.length>0&&!e.accept.includes(a)?(f.message.warning(`只能上传${(o=e.accept)==null?void 0:o.join(".")}后缀的文件!`),!1):u>e.maxSize?(f.message.warning(`上传的文件不能大于${e.maxSize}M!`),!1):!0},U=async i=>{const{file:n}=i;p.value=!0;const s=await x({business:e.business,file:n});if(p.value=!1,!s)return;const a=d.getFileExtension(s.originName),u=d.getUploadIcon(a);if(u==="img"){const c=await d.getBase64(n);l.value.push({icon:c,id:s.id,type:u,spining:!1,fileName:i.file.name})}else l.value.push({icon:u,id:s.id,type:u,spining:!1,fileName:i.file.name});const o=l.value.map(c=>({fileName:c.fileName,type:c.type,id:c.id}));r("update:fileList",o),r("upload-success",o)},m=async i=>{const n=i==null?void 0:i.map(a=>a.id);if((n==null?void 0:n.length)===0)return;const s=await N(n);for(const a of s.data){const u=d.getFileExtension(a.originName),o=d.getUploadIcon(u);if(o==="img"){const c=await v([a.id]);l.value.push({id:a.id,icon:c[a.id],fileName:a.originName,spining:!1,type:o})}else l.value.push({id:a.id,icon:o,fileName:a.originName,spining:!1,type:o})}};return t.watch(()=>l.value,i=>{const n=i.map(s=>({fileName:s.fileName,type:s.type,id:s.id}));r("update:fileList",n),r("change",n)},{deep:!0}),t.onMounted(async()=>{m(e.fileList)}),g({updateFileList:m}),()=>{var i;return t.createVNode("div",{class:h(),style:{display:"flex",flexWrap:"wrap",alignContent:"space-between"}},[t.createVNode(F.default,{http:e.http,itemWidth:e.itemWidth,itemHeight:e.itemHeight,list:l.value,"onUpdate:list":n=>l.value=n},null,8,["http","itemWidth","itemHeight","list","onUpdate:list"]),l.value.length<(e.maxCount??20)?t.createVNode(f.Upload,{accept:(i=e.accept)==null?void 0:i.join(","),disabled:y.value,customRequest:U,beforeUpload:b,style:{marginTop:"5px"}},{default:()=>t.createVNode(f.Spin,{spinning:p.value},{default:()=>[t.createVNode("div",{style:{width:`${e.itemWidth}px`,height:`${e.itemHeight}px`,minWidth:"80px",minHeight:"80px",cursor:"pointer",border:"1px dashed #3296fa",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"5px"}},[t.createVNode(w.KIcon,{name:"upload-icon",color:"#3296fa",size:32},null)],4)]},8,["spinning"]),itemRender:()=>t.createVNode(t.Fragment,null,null),_:1},8,["accept","disabled","customRequest","beforeUpload"]):t.createVNode(t.Fragment,null,null)],2)}}});exports.default=$;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./useHttp.js"),t=require("./useUpload.js");exports.useHttp=e.useHttp;exports.useUpload=t.useUpload;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(l){return{getUploadUrl:e=>l.get("/file/aio/upload/url",e),uploadFileApi:(e,o)=>l.post(e,o,{headers:{"Content-Type":"multipart/form-data"}}),deleteFileApi:e=>l.delete("/file/aio",e),getDownloadUrlApi:e=>l.post("/file/aio/download/url",e),downloadFileApi:(e,o)=>l.get(e,o),getFileDetailApi:e=>l.post("/aio/batch/info",e)}}exports.useHttp=i;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("ant-design-vue"),c=require("./useHttp.js");function d(u){const r=c.useHttp(u);return{uploadFile:s=>new Promise(async(a,t)=>{try{const e=await r.getUploadUrl({params:{business:s.business}});if(e.status===0){const o=e.data,n=new FormData;n.append("file",s.file);const i=await r.uploadFileApi(o,n);i.status===0?(l.message.success("文件上传成功~"),a(i.data)):(l.message.error(i.msg),t(i.msg))}else l.message.error(e.msg),t(e.msg)}catch(e){console.log(e),l.message.error("文件上传失败,请联系管理员进行查看!"),t(e)}}),downloadFile:s=>new Promise(async(a,t)=>{try{const e=s[0],o=await r.getDownloadUrlApi(s);if(o.status===0){const n=o.data[e];window.open(n),a(!0)}a(!1)}catch(e){t(e)}}),getImgUrl:s=>new Promise(async(a,t)=>{const e=await r.getDownloadUrlApi(s);e.status===0?a(e.data):t(e)}),getFileDetails:async s=>new Promise(async a=>{const t=await r.getFileDetailApi({fileIds:s});return a(t)})}}exports.useUpload=d;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={uploadName:{type:String},business:{type:String,required:!0},proxyPrefix:{type:String},fileList:{type:Array,required:!0,default:()=>[]},accept:{type:Array},disabled:{type:Boolean,default:!1},maxSize:{type:Number,default:10},maxCount:{type:Number,default:6},http:{type:[Object,Function],required:!0},itemWidth:{type:Number,default:80},itemHeight:{type:Number,default:80}};exports.UploadComponentProps=e;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../data.js");function c(n){const e=n.lastIndexOf(".");return e!==-1?`.${n.substring(e+1)}`:""}function i(n){const[e,t]=n.split("?"),o=t?Object.fromEntries(new URLSearchParams(t)):{};return{path:e,params:o}}function s(n){for(const e in a.iconTypes)for(let t=0;t<a.iconTypes[e].value.length;t++)if(a.iconTypes[e].value[t]===n)return a.iconTypes[e].url;return a.iconTypes.materials.url}function l(n){return new Promise((e,t)=>{const o=new FileReader;o.readAsDataURL(n),o.onload=()=>e(o.result),o.onerror=r=>t(r)})}function u(n,e,t){const o=new Blob([n],{type:t}),r=document.createElement("a");r.href=URL.createObjectURL(o),r.download=e,r.click(),URL.revokeObjectURL(r.href)}exports.getBase64=l;exports.getDownloadFile=u;exports.getFileExtension=c;exports.getUploadIcon=s;exports.parseUrl=i;
@@ -0,0 +1 @@
1
+ "use strict";require("../../base/style/index.js");require("@king-one/antdv/dist/theme-chalk/pro-upload.css");
package/dist/lib/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./installer.js");require("./components/index.js");require("./hooks/index.js");const r=require("./components/form/component/form.js"),e=require("./components/form/index.js"),P=require("./components/collapse-transtion/src/types.js"),u=require("./components/collapse-transtion/index.js"),o=require("./components/pro-modal/hooks/useProModal.js"),n=require("./components/pro-modal/index.js"),a=require("./components/pro-title/src/types.js"),l=require("./components/pro-title/index.js"),c=require("./components/scroll-bar/src/types.js"),p=require("./components/scroll-bar/index.js"),q=require("./components/scale-virtual-list/index.js"),d=require("./components/pro-tag/src/types.js"),K=require("./components/pro-tag/index.js"),s=require("./components/pro-picker/src/types.js"),m=require("./components/pro-picker/index.js"),T=require("./components/pro-area/src/types.js"),$=require("./components/pro-area/hooks/use-pro-area.js"),x=require("./components/pro-area/index.js"),b=require("./components/pro-signature/src/types.js"),g=require("./components/pro-signature/index.js"),y=require("./components/pro-table/hooks/use-pro-table.js"),I=require("./components/pro-table/index.js"),S=require("./components/icon/index.js"),i=require("./hooks/useProForm.js");exports.default=t.default;exports.definePropType=r.definePropType;exports.formItemProps=r.formItemProps;exports.KForm=e.KForm;exports.KFormItem=e.KFormItem;exports.collapseProps=P.collapseProps;exports.KCollapseTranstion=u.KCollapseTranstion;exports.useProModal=o.useProModal;exports.useProModalInit=o.useProModalInit;exports.KProModal=n.KProModal;exports.TitleProps=a.TitleProps;exports.KProTitle=l.KProTitle;exports.scrollbarProps=c.scrollbarProps;exports.KScrollBar=p.KScrollBar;exports.KScaleVirtualList=q.KScaleVirtualList;exports.proTagProps=d.proTagProps;exports.KProTag=K.KProTag;exports.PickerApiEnum=s.PickerApiEnum;exports.ProPickerProps=s.ProPickerProps;exports.KProPicker=m.KProPicker;exports.ProAreaProps=T.ProAreaProps;exports.useProArea=$.useProArea;exports.KProArea=x.KProArea;exports.ProSignatureProps=b.ProSignatureProps;exports.KProSignature=g.KProSignature;exports.useProTable=y.useProTable;exports.KProTable=I.KProTable;exports.KIcon=S.KIcon;exports.useProForm=i.useProForm;exports.useProFormInit=i.useProFormInit;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./installer.js");require("./components/index.js");require("./hooks/index.js");const r=require("./components/form/component/form.js"),e=require("./components/form/index.js"),u=require("./components/collapse-transtion/src/types.js"),P=require("./components/collapse-transtion/index.js"),o=require("./components/pro-modal/hooks/useProModal.js"),n=require("./components/pro-modal/index.js"),a=require("./components/pro-title/src/types.js"),l=require("./components/pro-title/index.js"),c=require("./components/scroll-bar/src/types.js"),p=require("./components/scroll-bar/index.js"),d=require("./components/scale-virtual-list/index.js"),q=require("./components/pro-tag/src/types.js"),K=require("./components/pro-tag/index.js"),s=require("./components/pro-picker/src/types.js"),m=require("./components/pro-picker/index.js"),T=require("./components/pro-area/src/types.js"),$=require("./components/pro-area/hooks/use-pro-area.js"),x=require("./components/pro-area/index.js"),b=require("./components/pro-signature/src/types.js"),g=require("./components/pro-signature/index.js"),y=require("./components/pro-table/hooks/use-pro-table.js"),I=require("./components/pro-table/index.js"),S=require("./components/icon/index.js"),A=require("./components/pro-upload/src/hooks/useUpload.js"),F=require("./components/pro-upload/index.js"),i=require("./hooks/useProForm.js");exports.default=t.default;exports.definePropType=r.definePropType;exports.formItemProps=r.formItemProps;exports.KForm=e.KForm;exports.KFormItem=e.KFormItem;exports.collapseProps=u.collapseProps;exports.KCollapseTranstion=P.KCollapseTranstion;exports.useProModal=o.useProModal;exports.useProModalInit=o.useProModalInit;exports.KProModal=n.KProModal;exports.TitleProps=a.TitleProps;exports.KProTitle=l.KProTitle;exports.scrollbarProps=c.scrollbarProps;exports.KScrollBar=p.KScrollBar;exports.KScaleVirtualList=d.KScaleVirtualList;exports.proTagProps=q.proTagProps;exports.KProTag=K.KProTag;exports.PickerApiEnum=s.PickerApiEnum;exports.ProPickerProps=s.ProPickerProps;exports.KProPicker=m.KProPicker;exports.ProAreaProps=T.ProAreaProps;exports.useProArea=$.useProArea;exports.KProArea=x.KProArea;exports.ProSignatureProps=b.ProSignatureProps;exports.KProSignature=g.KProSignature;exports.useProTable=y.useProTable;exports.KProTable=I.KProTable;exports.KIcon=S.KIcon;exports.useUpload=A.useUpload;exports.KProUpload=F.KProUpload;exports.useProForm=i.useProForm;exports.useProFormInit=i.useProFormInit;
Binary file
@@ -1 +1 @@
1
- @font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=61393) format("woff2"),url(fonts/iconfont.woff?t=71579) format("woff"),url(fonts/iconfont.ttf?t=50218) format("truetype")}.king-icon{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-king-title-icon:before{content:"\e680"}
1
+ @font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=33377) format("woff2"),url(fonts/iconfont.woff?t=22202) format("woff"),url(fonts/iconfont.ttf?t=27849) format("truetype")}.king-icon{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-king-upload-icon:before{content:"\e617"}.icon-king-title-icon:before{content:"\e680"}
@@ -1 +1 @@
1
- :root{--king-color-white:#ffffff;--king-color-primary:#409eff;--king-color-success:#67c23a;--king-color-warning:#e6a23c;--king-color-danger:#f56c6c;--king-color-error:#f56c6c;--king-color-info:#909399;--king-transition-duration:0.3s}.king-button--primary{--king-button-text-color:var(--king-color-primary)}.king-button--success{--king-button-text-color:var(--king-color-success)}.king-button--warning{--king-button-text-color:var(--king-color-warning)}.king-button--danger{--king-button-text-color:var(--king-color-danger)}.king-button--error{--king-button-text-color:var(--king-color-error)}.king-button--info{--king-button-text-color:var(--king-color-info)}.king-button{color:var(--king-button-text-color)}.king-scrollbar{overflow:hidden;position:relative;z-index:auto;height:100%;width:100%}.king-scrollbar .king-scrollbar-container{width:100%;overflow:scroll;height:100%;min-height:inherit;max-height:inherit;scrollbar-width:none}.king-scrollbar .king-scrollbar-content{width:-moz-fit-content;width:fit-content}.king-scrollbar .king-scrollbar-rail{position:absolute}.king-scrollbar .king-scrollbar-rail--vertical{right:0;width:5px;top:2px;bottom:2px;right:4px}.king-scrollbar .king-scrollbar-rail--horizontal{bottom:2px;height:5px;left:2px;right:2px}.king-scrollbar .king-scrollbar-rail__scrollbar--vertical{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-scrollbar .king-scrollbar-rail__scrollbar--horizontal{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;height:100%;cursor:pointer}.v-vl-items{width:-moz-fit-content;width:fit-content}.king-scale-virtual-list{width:100%;height:100%}.king-scale-virtual-list .king-scale-virtual-list-container{margin:0 auto;position:relative}.king-scale-virtual-list .king-scale-vittual-wrapper{width:-moz-fit-content;width:fit-content;margin:0 auto;position:absolute;left:50%}.king-pro-title{border-bottom:1px solid #ccc;font-weight:500;display:flex;align-items:center}.king-pro-title .icon{margin-right:10px}.king-pro-title--unborder{border:none}.king-pro-modal .ant-modal-content{padding:0}.king-pro-modal .ant-modal-header{height:56px;padding-left:32px;padding-right:24px;display:flex;justify-content:space-between;align-items:center;background:#f1f7ff;border-bottom:1px solid #e6e8ea}.king-pro-modal .ant-modal-body{padding:10px 20px;max-height:65vh;overflow:auto}.king-pro-modal .ant-modal-footer{height:56px;display:flex;padding:0 16px;justify-content:flex-end;align-items:center;border-top:1px solid #e6e8ea}.king-pro-modal .ant-modal-title{flex:1}.king-pro-modal .pro-modal-title{cursor:move;width:100%}.king-pro-area-select{width:100%}@font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=35755) format("woff2"),url(fonts/iconfont.woff?t=34854) format("woff"),url(fonts/iconfont.ttf?t=39008) format("truetype")}.king-icon{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-king-title-icon:before{content:"\e680"}
1
+ :root{--king-color-white:#ffffff;--king-color-primary:#409eff;--king-color-success:#67c23a;--king-color-warning:#e6a23c;--king-color-danger:#f56c6c;--king-color-error:#f56c6c;--king-color-info:#909399;--king-transition-duration:0.3s}.king-button--primary{--king-button-text-color:var(--king-color-primary)}.king-button--success{--king-button-text-color:var(--king-color-success)}.king-button--warning{--king-button-text-color:var(--king-color-warning)}.king-button--danger{--king-button-text-color:var(--king-color-danger)}.king-button--error{--king-button-text-color:var(--king-color-error)}.king-button--info{--king-button-text-color:var(--king-color-info)}.king-button{color:var(--king-button-text-color)}.king-scrollbar{overflow:hidden;position:relative;z-index:auto;height:100%;width:100%}.king-scrollbar .king-scrollbar-container{width:100%;overflow:scroll;height:100%;min-height:inherit;max-height:inherit;scrollbar-width:none}.king-scrollbar .king-scrollbar-content{width:-moz-fit-content;width:fit-content}.king-scrollbar .king-scrollbar-rail{position:absolute}.king-scrollbar .king-scrollbar-rail--vertical{right:0;width:5px;top:2px;bottom:2px;right:4px}.king-scrollbar .king-scrollbar-rail--horizontal{bottom:2px;height:5px;left:2px;right:2px}.king-scrollbar .king-scrollbar-rail__scrollbar--vertical{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-scrollbar .king-scrollbar-rail__scrollbar--horizontal{background:rgba(0,0,0,.25);position:absolute;border-radius:5px;height:100%;cursor:pointer}.v-vl-items{width:-moz-fit-content;width:fit-content}.king-scale-virtual-list{width:100%;height:100%}.king-scale-virtual-list .king-scale-virtual-list-container{margin:0 auto;position:relative}.king-scale-virtual-list .king-scale-vittual-wrapper{width:-moz-fit-content;width:fit-content;margin:0 auto;position:absolute;left:50%}.king-pro-title{border-bottom:1px solid #ccc;font-weight:500;display:flex;align-items:center}.king-pro-title .icon{margin-right:10px}.king-pro-title--unborder{border:none}.king-pro-modal .ant-modal-content{padding:0}.king-pro-modal .ant-modal-header{height:56px;padding-left:32px;padding-right:24px;display:flex;justify-content:space-between;align-items:center;background:#f1f7ff;border-bottom:1px solid #e6e8ea}.king-pro-modal .ant-modal-body{padding:10px 20px;max-height:65vh;overflow:auto}.king-pro-modal .ant-modal-footer{height:56px;display:flex;padding:0 16px;justify-content:flex-end;align-items:center;border-top:1px solid #e6e8ea}.king-pro-modal .ant-modal-title{flex:1}.king-pro-modal .pro-modal-title{cursor:move;width:100%}.king-pro-area-select{width:100%}@font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=33926) format("woff2"),url(fonts/iconfont.woff?t=71799) format("woff"),url(fonts/iconfont.ttf?t=62284) format("truetype")}.king-icon{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-king-upload-icon:before{content:"\e617"}.icon-king-title-icon:before{content:"\e680"}
@@ -0,0 +1 @@
1
+ .king-pro-upload .ant-image{height:100%!important}.king-pro-upload .ant-image .ant-image-img{height:100%!important}
@@ -10,3 +10,4 @@ export * from './pro-area';
10
10
  export * from './pro-signature';
11
11
  export * from './pro-table';
12
12
  export * from './icon';
13
+ export * from './pro-upload';
@@ -0,0 +1,109 @@
1
+ import { useUpload } from './src/hooks/useUpload';
2
+ import { SFCWithInstall } from '../utils/install';
3
+ import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
4
+ import { UploadPropsType, FileListType } from './src/types';
5
+ export * from './src/types';
6
+ export { useUpload };
7
+ export declare const KProUpload: SFCWithInstall<DefineComponent<{
8
+ uploadName: {
9
+ type: StringConstructor;
10
+ };
11
+ business: {
12
+ type: StringConstructor;
13
+ required: boolean;
14
+ };
15
+ proxyPrefix: {
16
+ type: PropType< UploadPropsType["proxyPrefix"]>;
17
+ };
18
+ fileList: {
19
+ type: PropType< UploadPropsType["fileList"]>;
20
+ required: boolean;
21
+ default: () => never[];
22
+ };
23
+ accept: {
24
+ type: PropType< UploadPropsType["accept"]>;
25
+ };
26
+ disabled: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ maxSize: {
31
+ type: PropType< UploadPropsType["maxSize"]>;
32
+ default: number;
33
+ };
34
+ maxCount: {
35
+ type: NumberConstructor;
36
+ default: number;
37
+ };
38
+ http: {
39
+ type: PropType< UploadPropsType["http"]>;
40
+ required: boolean;
41
+ };
42
+ itemWidth: {
43
+ type: PropType< UploadPropsType["itemWidth"]>;
44
+ default: number;
45
+ };
46
+ itemHeight: {
47
+ type: PropType< UploadPropsType["itemHeight"]>;
48
+ default: number;
49
+ };
50
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
51
+ 'update:fileList': (val: FileListType[]) => true;
52
+ 'upload-success': (fileList: FileListType[]) => FileListType[];
53
+ change: (fileList: FileListType[]) => FileListType[];
54
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
55
+ uploadName: {
56
+ type: StringConstructor;
57
+ };
58
+ business: {
59
+ type: StringConstructor;
60
+ required: boolean;
61
+ };
62
+ proxyPrefix: {
63
+ type: PropType< UploadPropsType["proxyPrefix"]>;
64
+ };
65
+ fileList: {
66
+ type: PropType< UploadPropsType["fileList"]>;
67
+ required: boolean;
68
+ default: () => never[];
69
+ };
70
+ accept: {
71
+ type: PropType< UploadPropsType["accept"]>;
72
+ };
73
+ disabled: {
74
+ type: BooleanConstructor;
75
+ default: boolean;
76
+ };
77
+ maxSize: {
78
+ type: PropType< UploadPropsType["maxSize"]>;
79
+ default: number;
80
+ };
81
+ maxCount: {
82
+ type: NumberConstructor;
83
+ default: number;
84
+ };
85
+ http: {
86
+ type: PropType< UploadPropsType["http"]>;
87
+ required: boolean;
88
+ };
89
+ itemWidth: {
90
+ type: PropType< UploadPropsType["itemWidth"]>;
91
+ default: number;
92
+ };
93
+ itemHeight: {
94
+ type: PropType< UploadPropsType["itemHeight"]>;
95
+ default: number;
96
+ };
97
+ }>> & {
98
+ onChange?: ((fileList: FileListType[]) => any) | undefined;
99
+ "onUpdate:fileList"?: ((val: FileListType[]) => any) | undefined;
100
+ "onUpload-success"?: ((fileList: FileListType[]) => any) | undefined;
101
+ }, {
102
+ itemWidth: number | undefined;
103
+ itemHeight: number | undefined;
104
+ disabled: boolean;
105
+ fileList: object[];
106
+ maxSize: number | undefined;
107
+ maxCount: number;
108
+ }, {}>>;
109
+ export default KProUpload;
@@ -0,0 +1,9 @@
1
+ export type IconTypesKey = 'audio' | 'materials' | 'pdf' | 'ppt' | 'video' | 'xls' | 'zip' | 'img' | 'docx';
2
+ type IconTypes = Record<IconTypesKey, {
3
+ url: any;
4
+ value: string[];
5
+ }> & {
6
+ [key: string]: any;
7
+ };
8
+ export declare const iconTypes: IconTypes;
9
+ export {};
@@ -0,0 +1,46 @@
1
+ import { PropType, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+ import { AxiosInstance } from 'axios';
3
+ import { FileListType } from './types';
4
+ declare const _default: DefineComponent<{
5
+ http: {
6
+ type: PropType<AxiosInstance | object | Function>;
7
+ default: () => {};
8
+ };
9
+ itemWidth: {
10
+ type: NumberConstructor;
11
+ default: number;
12
+ };
13
+ itemHeight: {
14
+ type: NumberConstructor;
15
+ default: number;
16
+ };
17
+ list: {
18
+ type: PropType<FileListType[]>;
19
+ default: never[];
20
+ };
21
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:list"[], "update:list", PublicProps, Readonly< ExtractPropTypes<{
22
+ http: {
23
+ type: PropType<AxiosInstance | object | Function>;
24
+ default: () => {};
25
+ };
26
+ itemWidth: {
27
+ type: NumberConstructor;
28
+ default: number;
29
+ };
30
+ itemHeight: {
31
+ type: NumberConstructor;
32
+ default: number;
33
+ };
34
+ list: {
35
+ type: PropType<FileListType[]>;
36
+ default: never[];
37
+ };
38
+ }>> & {
39
+ "onUpdate:list"?: ((...args: any[]) => any) | undefined;
40
+ }, {
41
+ itemWidth: number;
42
+ itemHeight: number;
43
+ list: FileListType[];
44
+ http: object | Function | AxiosInstance;
45
+ }, {}>;
46
+ export default _default;
@@ -0,0 +1,105 @@
1
+ import { FileListType, UploadPropsType } from './types';
2
+ import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
3
+ declare const _default: DefineComponent<{
4
+ uploadName: {
5
+ type: StringConstructor;
6
+ };
7
+ business: {
8
+ type: StringConstructor;
9
+ required: boolean;
10
+ };
11
+ proxyPrefix: {
12
+ type: PropType< UploadPropsType["proxyPrefix"]>;
13
+ };
14
+ fileList: {
15
+ type: PropType< UploadPropsType["fileList"]>;
16
+ required: boolean;
17
+ default: () => never[];
18
+ };
19
+ accept: {
20
+ type: PropType< UploadPropsType["accept"]>;
21
+ };
22
+ disabled: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ maxSize: {
27
+ type: PropType< UploadPropsType["maxSize"]>;
28
+ default: number;
29
+ };
30
+ maxCount: {
31
+ type: NumberConstructor;
32
+ default: number;
33
+ };
34
+ http: {
35
+ type: PropType< UploadPropsType["http"]>;
36
+ required: boolean;
37
+ };
38
+ itemWidth: {
39
+ type: PropType< UploadPropsType["itemWidth"]>;
40
+ default: number;
41
+ };
42
+ itemHeight: {
43
+ type: PropType< UploadPropsType["itemHeight"]>;
44
+ default: number;
45
+ };
46
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
47
+ 'update:fileList': (val: FileListType[]) => true;
48
+ 'upload-success': (fileList: FileListType[]) => FileListType[];
49
+ change: (fileList: FileListType[]) => FileListType[];
50
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
51
+ uploadName: {
52
+ type: StringConstructor;
53
+ };
54
+ business: {
55
+ type: StringConstructor;
56
+ required: boolean;
57
+ };
58
+ proxyPrefix: {
59
+ type: PropType< UploadPropsType["proxyPrefix"]>;
60
+ };
61
+ fileList: {
62
+ type: PropType< UploadPropsType["fileList"]>;
63
+ required: boolean;
64
+ default: () => never[];
65
+ };
66
+ accept: {
67
+ type: PropType< UploadPropsType["accept"]>;
68
+ };
69
+ disabled: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ maxSize: {
74
+ type: PropType< UploadPropsType["maxSize"]>;
75
+ default: number;
76
+ };
77
+ maxCount: {
78
+ type: NumberConstructor;
79
+ default: number;
80
+ };
81
+ http: {
82
+ type: PropType< UploadPropsType["http"]>;
83
+ required: boolean;
84
+ };
85
+ itemWidth: {
86
+ type: PropType< UploadPropsType["itemWidth"]>;
87
+ default: number;
88
+ };
89
+ itemHeight: {
90
+ type: PropType< UploadPropsType["itemHeight"]>;
91
+ default: number;
92
+ };
93
+ }>> & {
94
+ onChange?: ((fileList: FileListType[]) => any) | undefined;
95
+ "onUpdate:fileList"?: ((val: FileListType[]) => any) | undefined;
96
+ "onUpload-success"?: ((fileList: FileListType[]) => any) | undefined;
97
+ }, {
98
+ itemWidth: number | undefined;
99
+ itemHeight: number | undefined;
100
+ disabled: boolean;
101
+ fileList: object[];
102
+ maxSize: number | undefined;
103
+ maxCount: number;
104
+ }, {}>;
105
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export * from './useHttp';
2
+ export * from './useUpload';
@@ -0,0 +1,35 @@
1
+ export type ResponseType<T = any> = {
2
+ data: T;
3
+ msg: string;
4
+ status: number | string;
5
+ token: any;
6
+ traceId: any;
7
+ };
8
+ /**
9
+ * 获取上传url的type
10
+ */
11
+ export type GetUrlType = ResponseType;
12
+ export type UploadFileResType = {
13
+ id: string;
14
+ originName: string;
15
+ size: number;
16
+ type: string;
17
+ md5: string;
18
+ business: string;
19
+ storeName: string;
20
+ savePath: string;
21
+ multiStorage: boolean;
22
+ };
23
+ export type UploadFileType = ResponseType<UploadFileResType>;
24
+ export type FileDetailType = ResponseType<{
25
+ id: string;
26
+ originName: string;
27
+ size: number;
28
+ type: string;
29
+ md5: string;
30
+ permanentTicket: string;
31
+ status: string;
32
+ business: string;
33
+ createTime: string;
34
+ multiStorage: boolean;
35
+ }[]>;
@@ -0,0 +1,15 @@
1
+ import { AxiosRequestConfig, AxiosInstance } from 'axios';
2
+ import { GetUrlType, UploadFileType, ResponseType, FileDetailType } from './resType';
3
+ export declare function useHttp(http: AxiosInstance): {
4
+ getUploadUrl: (config?: AxiosRequestConfig) => Promise<GetUrlType>;
5
+ uploadFileApi: (url: string, config: any) => Promise<UploadFileType>;
6
+ deleteFileApi: (config: AxiosRequestConfig) => Promise<ResponseType>;
7
+ getDownloadUrlApi: (config: any) => Promise<ResponseType<string[]>>;
8
+ downloadFileApi: (url: string, config: AxiosRequestConfig<{
9
+ fileId: string;
10
+ ticket: string;
11
+ }>) => Promise<any>;
12
+ getFileDetailApi: (config: {
13
+ fileIds: string[];
14
+ }) => Promise<FileDetailType>;
15
+ };
@@ -0,0 +1,11 @@
1
+ import { AxiosInstance } from 'axios';
2
+ import { IUploadFileConfig } from '../types';
3
+ import { UploadFileResType, FileDetailType } from './resType';
4
+ export declare function useUpload(httpConfig: AxiosInstance): {
5
+ uploadFile: (config: IUploadFileConfig) => Promise< UploadFileResType>;
6
+ downloadFile: (config: string[]) => Promise<boolean>;
7
+ getImgUrl: (config: string[]) => Promise<string[]>;
8
+ getFileDetails: (config: string[]) => Promise<ReturnType<(config: {
9
+ fileIds: string[];
10
+ }) => Promise< FileDetailType>>>;
11
+ };