@king-one/antdv 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/es/components/index.mjs +22 -18
- package/dist/es/components/plus-upload/apis/plus-upload.api.mjs +21 -0
- package/dist/es/components/plus-upload/hook/useExtractPlusUpload.mjs +55 -0
- package/dist/es/components/plus-upload/hook/usePlusUpload.mjs +23 -0
- package/dist/es/components/plus-upload/images/pdf-icon.png.mjs +4 -0
- package/dist/es/components/plus-upload/images/word-icon.png.mjs +4 -0
- package/dist/es/components/plus-upload/images/xls-icon.png.mjs +4 -0
- package/dist/es/components/plus-upload/index.mjs +9 -0
- package/dist/es/components/plus-upload/src/plus-upload.vue.mjs +4 -0
- package/dist/es/components/plus-upload/src/plus-upload.vue2.mjs +165 -0
- package/dist/es/components/plus-upload/src/types.mjs +25 -0
- package/dist/es/components/plus-upload/style/index.mjs +2 -0
- package/dist/es/components/pro-overlay/index.mjs +9 -0
- package/dist/es/components/pro-overlay/src/pro-overlay.vue.mjs +4 -0
- package/dist/es/components/pro-overlay/src/pro-overlay.vue2.mjs +34 -0
- package/dist/es/components/pro-overlay/style/index.mjs +2 -0
- package/dist/es/components/pro-upload/src/gd-upload.mjs +48 -43
- package/dist/es/components/pro-upload/src/hooks/useUpload.mjs +1 -1
- package/dist/es/index.mjs +24 -20
- package/dist/lib/components/index.js +1 -1
- package/dist/lib/components/plus-upload/apis/plus-upload.api.js +1 -0
- package/dist/lib/components/plus-upload/hook/useExtractPlusUpload.js +1 -0
- package/dist/lib/components/plus-upload/hook/usePlusUpload.js +1 -0
- package/dist/lib/components/plus-upload/images/pdf-icon.png.js +1 -0
- package/dist/lib/components/plus-upload/images/word-icon.png.js +1 -0
- package/dist/lib/components/plus-upload/images/xls-icon.png.js +1 -0
- package/dist/lib/components/plus-upload/index.js +1 -0
- package/dist/lib/components/plus-upload/src/plus-upload.vue.js +1 -0
- package/dist/lib/components/plus-upload/src/plus-upload.vue2.js +1 -0
- package/dist/lib/components/plus-upload/src/types.js +1 -0
- package/dist/lib/components/plus-upload/style/index.js +1 -0
- package/dist/lib/components/pro-overlay/index.js +1 -0
- package/dist/lib/components/pro-overlay/src/pro-overlay.vue.js +1 -0
- package/dist/lib/components/pro-overlay/src/pro-overlay.vue2.js +1 -0
- package/dist/lib/components/pro-overlay/style/index.js +1 -0
- package/dist/lib/components/pro-upload/src/gd-upload.js +1 -1
- package/dist/lib/components/pro-upload/src/hooks/useUpload.js +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/theme-chalk/fonts/iconfont.ttf +0 -0
- package/dist/theme-chalk/fonts/iconfont.woff +0 -0
- package/dist/theme-chalk/fonts/iconfont.woff2 +0 -0
- package/dist/theme-chalk/fonts//345/275/222/346/241/243.zip +0 -0
- package/dist/theme-chalk/icon.css +1 -1
- package/dist/theme-chalk/index.css +1 -1
- package/dist/theme-chalk/plus-upload.css +1 -0
- package/dist/theme-chalk/pro-overlay.css +1 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/plus-upload/apis/plus-upload.api.d.ts +14 -0
- package/dist/types/components/plus-upload/hook/useExtractPlusUpload.d.ts +7 -0
- package/dist/types/components/plus-upload/hook/usePlusUpload.d.ts +6 -0
- package/dist/types/components/plus-upload/index.d.ts +169 -0
- package/dist/types/components/plus-upload/src/plus-upload.vue.d.ts +87 -0
- package/dist/types/components/plus-upload/src/types.d.ts +44 -0
- package/dist/types/components/pro-overlay/index.d.ts +21 -0
- package/dist/types/components/pro-overlay/src/pro-overlay.vue.d.ts +19 -0
- package/dist/types/components/pro-upload/src/hooks/useUpload.d.ts +1 -1
- package/dist/types/components/pro-upload/src/types.d.ts +4 -0
- package/global.d.ts +2 -0
- package/package.json +1 -1
package/dist/es/index.mjs
CHANGED
|
@@ -10,15 +10,15 @@ import { KProModal as g } from "./components/pro-modal/index.mjs";
|
|
|
10
10
|
import { TitleProps as C } from "./components/pro-title/src/types.mjs";
|
|
11
11
|
import { KProTitle as b } from "./components/pro-title/index.mjs";
|
|
12
12
|
import { scrollbarProps as F } from "./components/scroll-bar/src/types.mjs";
|
|
13
|
-
import { KScrollBar as
|
|
14
|
-
import { CoverScrollbarProps as
|
|
15
|
-
import { KCoverScrollBar as
|
|
16
|
-
import { KScaleVirtualList as
|
|
13
|
+
import { KScrollBar as v } from "./components/scroll-bar/index.mjs";
|
|
14
|
+
import { CoverScrollbarProps as U } from "./components/cover-scroll-bar/src/types.mjs";
|
|
15
|
+
import { KCoverScrollBar as w } from "./components/cover-scroll-bar/index.mjs";
|
|
16
|
+
import { KScaleVirtualList as B } from "./components/scale-virtual-list/index.mjs";
|
|
17
17
|
import { proTagProps as L } from "./components/pro-tag/src/types.mjs";
|
|
18
|
-
import { KProTag as
|
|
19
|
-
import { PickerApiEnum as
|
|
20
|
-
import { KProPicker as
|
|
21
|
-
import { ProAreaProps as
|
|
18
|
+
import { KProTag as h } from "./components/pro-tag/index.mjs";
|
|
19
|
+
import { PickerApiEnum as q, ProPickerProps as z } from "./components/pro-picker/src/types.mjs";
|
|
20
|
+
import { KProPicker as G } from "./components/pro-picker/index.mjs";
|
|
21
|
+
import { ProAreaProps as J } from "./components/pro-area/src/types.mjs";
|
|
22
22
|
import { useProArea as Q } from "./components/pro-area/hooks/use-pro-area.mjs";
|
|
23
23
|
import { KProArea as W } from "./components/pro-area/index.mjs";
|
|
24
24
|
import { ProSignatureProps as Y } from "./components/pro-signature/src/types.mjs";
|
|
@@ -31,29 +31,33 @@ import { KProUpload as xr } from "./components/pro-upload/index.mjs";
|
|
|
31
31
|
import { useProContractView as lr } from "./components/pro-contract-view/hooks/use-contract-view.mjs";
|
|
32
32
|
import { KProContractView as ir } from "./components/pro-contract-view/index.mjs";
|
|
33
33
|
import { default as ur } from "./components/pro-loading/src/pro-loading.mjs";
|
|
34
|
-
import {
|
|
34
|
+
import { KPlusUpload as cr } from "./components/plus-upload/index.mjs";
|
|
35
|
+
import { KProOverlay as Tr } from "./components/pro-overlay/index.mjs";
|
|
36
|
+
import { useProForm as Sr, useProFormInit as Cr } from "./hooks/useProForm.mjs";
|
|
35
37
|
export {
|
|
36
|
-
|
|
38
|
+
U as CoverScrollbarProps,
|
|
37
39
|
u as KCollapseTranstion,
|
|
38
|
-
|
|
40
|
+
w as KCoverScrollBar,
|
|
39
41
|
a as KForm,
|
|
40
42
|
l as KFormItem,
|
|
41
43
|
tr as KIcon,
|
|
44
|
+
cr as KPlusUpload,
|
|
42
45
|
W as KProArea,
|
|
43
46
|
ir as KProContractView,
|
|
44
47
|
g as KProModal,
|
|
45
|
-
|
|
48
|
+
Tr as KProOverlay,
|
|
49
|
+
G as KProPicker,
|
|
46
50
|
_ as KProSignature,
|
|
47
51
|
er as KProTable,
|
|
48
|
-
|
|
52
|
+
h as KProTag,
|
|
49
53
|
b as KProTitle,
|
|
50
54
|
xr as KProUpload,
|
|
51
55
|
ur as KProloading,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
B as KScaleVirtualList,
|
|
57
|
+
v as KScrollBar,
|
|
58
|
+
q as PickerApiEnum,
|
|
59
|
+
J as ProAreaProps,
|
|
60
|
+
z as ProPickerProps,
|
|
57
61
|
Y as ProSignatureProps,
|
|
58
62
|
C as TitleProps,
|
|
59
63
|
i as collapseProps,
|
|
@@ -64,8 +68,8 @@ export {
|
|
|
64
68
|
F as scrollbarProps,
|
|
65
69
|
Q as useProArea,
|
|
66
70
|
lr as useProContractView,
|
|
67
|
-
|
|
68
|
-
|
|
71
|
+
Sr as useProForm,
|
|
72
|
+
Cr as useProFormInit,
|
|
69
73
|
c as useProModal,
|
|
70
74
|
d as useProModalInit,
|
|
71
75
|
rr as useProTable,
|
|
@@ -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("./cover-scroll-bar/index.js"),K=require("./scale-virtual-list/index.js"),
|
|
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("./cover-scroll-bar/index.js"),K=require("./scale-virtual-list/index.js"),a=require("./pro-tag/index.js"),l=require("./pro-picker/index.js"),c=require("./pro-area/index.js"),s=require("./pro-signature/index.js"),u=require("./pro-table/index.js"),d=require("./icon/index.js"),P=require("./pro-upload/index.js"),q=require("./pro-contract-view/index.js");require("./pro-loading/index.js");const x=require("./plus-upload/index.js"),$=require("./pro-overlay/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.KCoverScrollBar=t.KCoverScrollBar;exports.KScaleVirtualList=K.KScaleVirtualList;exports.KProTag=a.KProTag;exports.KProPicker=l.KProPicker;exports.KProArea=c.KProArea;exports.KProSignature=s.KProSignature;exports.KProTable=u.KProTable;exports.KIcon=d.KIcon;exports.KProUpload=P.KProUpload;exports.KProContractView=q.KProContractView;exports.KPlusUpload=x.KPlusUpload;exports.KProOverlay=$.KProOverlay;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={getUploadUrl:l=>globalThis.$http.get("/file/aio/upload/url",l),uploadFileApi:(l,t)=>globalThis.$http.post(l,t,{headers:{"Content-Type":"multipart/form-data"}}),deleteFileApi:l=>globalThis.$http.delete("/file/aio",l),getDownloadUrlApi:l=>globalThis.$http.post("/file/aio/download/url",l),downloadFileApi:(l,t)=>globalThis.$http.get(l,t),getFileDetailApi:l=>globalThis.$http.post("/aio/batch/info",l)};exports.plusUploadApis=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../images/pdf-icon.png.js"),n=require("../images/xls-icon.png.js"),c=require("../images/word-icon.png.js");function r(){const s={docx:["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword"],doc:["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword"],xls:["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],xlsx:["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],jpg:["image/jpg"],pdf:["application/pdf"],png:["image/png"],jpeg:["image/jpeg"],gif:["image/gif"]},o=e=>{const t=e.split(".");return t[t.length-1]};return{getFileType:o,getFileUrl:(e,t)=>{switch(o(e)){case"doc":return c.default;case"docx":return c.default;case"xls":return n.default;case"xlsx":return n.default;case"pdf":return a.default;default:return t}},hasPrivew:e=>!(e==="doc"||e==="docx"||e==="xls"||e==="xlsx"||e==="pdf"),AcceptValidates:s}}exports.useExtractPlusUpload=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../apis/plus-upload.api.js");function p(){const l=async a=>await t.plusUploadApis.getDownloadUrlApi(a);return{uploadFile:async(a,s)=>{const i=(await t.plusUploadApis.getUploadUrl({params:{business:a}})).data,o=new FormData;o.append("file",s);const{data:e}=await t.plusUploadApis.uploadFileApi(i,o),{data:r}=await l([e.id]);return{id:e.id,url:r[e.id],name:e.originName}},getImgUrl:l,removeFile:async a=>(await t.plusUploadApis.deleteFileApi({params:{fileId:a}}),!0)}}exports.usePlusUpload=p;
|
|
@@ -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,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 t=require("../utils/install.js");require("./src/plus-upload.vue.js");require("./style/index.js");const u=require("./src/plus-upload.vue2.js"),e=t.withInstall(u.default);exports.KPlusUpload=e;exports.default=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./plus-upload.vue2.js");exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("ant-design-vue"),x=require("../../../hooks/use-namespace/index.js");require("../../index.js");const z=require("../hook/useExtractPlusUpload.js"),E=require("../hook/usePlusUpload.js"),I=require("./types.js"),p=require("../../icon/index.js"),L=require("../../pro-overlay/index.js"),S={key:0},T=e.defineComponent({__name:"plus-upload",props:e.mergeModels(I.PlusUpLoadProps,{fileList:{type:Array,required:!0},fileListModifiers:{}}),emits:["update:fileList"],setup(f){const s=f,{uploadFile:k,removeFile:h}=E.usePlusUpload(),m=e.ref(),d=e.ref(!1),{b:C,e:i,em:_}=x.useNamespace("plus-upload"),{getFileUrl:w,AcceptValidates:g,hasPrivew:V}=z.useExtractPlusUpload(),b=e.computed(()=>s.acceptType?s.acceptType.map(l=>`.${l}`).join(","):"*"),n=e.useModel(f,"fileList"),q=async(l,a)=>{if(s.beforeUpload){const u=s.beforeUpload(l,a);if(u instanceof Promise){if(await u===!1)return!1}else if(!u)return!1}let t=[];s.acceptType&&s.acceptType.forEach(u=>{const y=g[u];t=[...t,...y]});const{type:o,size:U}=l;return!t.includes(o)&&t.length>0?(r.message.warning("上传格式错误"),!1):s.maxSize&&s.maxSize<U?(r.message.warning("文件过大,请选择其他文件上传"),!1):!0},c=e.ref(!1),B=async l=>{var a;c.value=!0;try{const t=await k(s.business,l.file);(a=n.value)==null||a.push(t),c.value=!1}catch{c.value=!1}},v=e.computed(()=>n.value&&n.value.length>0?n.value.map(l=>{const{id:a,name:t,url:o}=l;return{uid:a,name:t,url:w(t,o)}}):[]);function N(l){m.value=l.url,d.value=!0}async function P(l){await h(l.uid);const a=n.value.findIndex(t=>t.id===l.uid);n.value.splice(a,1)}return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(C)())},[e.createVNode(e.unref(r.Upload),{"file-list":v.value,accept:b.value,"list-type":"picture-card","before-upload":q,"custom-request":B},{itemRender:e.withCtx(({file:t})=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(i)("file-item"))},[e.createVNode(e.unref(L.KProOverlay),null,{action:e.withCtx(()=>[e.unref(V)(t.fileType)?(e.openBlock(),e.createBlock(e.unref(p.KIcon),{key:0,name:"eye",class:e.normalizeClass(e.unref(i)("icon-eye")),onClick:o=>N(t)},null,8,["class","onClick"])):e.createCommentVNode("v-if",!0),l.disabled?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(e.unref(p.KIcon),{key:1,name:"delete",class:e.normalizeClass(e.unref(i)("icon-delete")),onClick:o=>P(t)},null,8,["class","onClick"]))]),default:e.withCtx(()=>[e.createVNode(e.unref(r.Image),{class:"object-contain",width:84,height:84,preview:!1,src:t.url},null,8,["src"])]),_:2},1024)],2)]),default:e.withCtx(()=>[(!l.limit||v.value.length<l.limit)&&!l.disabled?(e.openBlock(),e.createElementBlock("div",S,[c.value?(e.openBlock(),e.createBlock(e.unref(r.Spin),{key:0})):(e.openBlock(),e.createBlock(e.unref(p.KIcon),{key:1,name:"plus",class:e.normalizeClass(e.unref(i)("icon-plus"))},null,8,["class"]))])):e.createCommentVNode("v-if",!0)]),_:1},8,["file-list","accept"]),e.renderSlot(l.$slots,"tips"),e.createElementVNode("div",{class:e.normalizeClass(e.unref(i)("preview"))},[e.createVNode(e.unref(r.ImagePreviewGroup),{preview:{visible:d.value,onVisibleChange:t=>d.value=t}},{default:e.withCtx(()=>[e.createVNode(e.unref(r.Image),{src:m.value},null,8,["src"])]),_:1},8,["preview"])],2)],2))}});exports.default=T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../utils/install.js");const r={beforeUpload:{type:e.definePropType(Function)},business:{type:e.definePropType(String),required:!0},limit:{type:e.definePropType(Number)},disabled:{type:e.definePropType(Boolean)},maxSize:{type:e.definePropType(Number)},acceptType:{type:e.definePropType(Array)}};exports.PlusUpLoadProps=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require("../../base/style/index.js");require("@king-one/antdv/dist/theme-chalk/plus-upload.css");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../utils/install.js");require("./src/pro-overlay.vue.js");require("./style/index.js");const t=require("./src/pro-overlay.vue2.js"),e=r.withInstall(t.default);exports.KProOverlay=e;exports.default=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./pro-overlay.vue2.js");exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../../../hooks/use-namespace/index.js"),l=e.defineComponent({name:"ProOverlay",__name:"pro-overlay",setup(a){const{b:r,e:t}=s.useNamespace("pro-overlay"),n=e.computed(()=>[r()]);return(o,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value)},[e.renderSlot(o.$slots,"default"),e.createElementVNode("div",{class:e.normalizeClass(e.unref(t)("content"))},[e.renderSlot(o.$slots,"action")],2)],2))}});exports.default=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require("../../base/style/index.js");require("@king-one/antdv/dist/theme-chalk/pro-overlay.css");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),p=require("ant-design-vue"),w=require("../../../hooks/use-namespace/index.js"),F=require("../../icon/index.js"),V=require("./props.js"),d=require("./utils/index.js");require("./hooks/index.js");const L=require("./file-list.js"),$=require("./hooks/useUpload.js"),C=a.defineComponent({name:"GdUpload",props:V.UploadComponentProps,emits:{"update:fileList":e=>!0,"upload-success":e=>e,change:e=>e,"upload-error":e=>e},setup(e,{emit:r,expose:I}){const{b:h}=w.useNamespace("pro-upload"),l=a.ref([]),f=a.ref(!1),{uploadFile:x,getFileDetails:v,getImgUrl:y}=$.useUpload(e.http),N=a.computed(()=>{if(e.disabled||l.value.length===e.maxCount)return!0}),b=async(t,i)=>{var o;if(e.beforeUpload){const m=e.beforeUpload(t,i);if(m instanceof Promise){if(await m===!1)return!1}else if(!m)return!1}const{name:s,size:n}=t,c=d.getFileExtension(s),u=n/1024/1024;return e.accept&&e.accept.length>0&&!e.accept.includes(c)?(p.message.warning(`只能上传${(o=e.accept)==null?void 0:o.join(".")}后缀的文件!`),!1):u>e.maxSize?(p.message.warning(`上传的文件不能大于${e.maxSize}M!`),!1):!0},U=async t=>{try{const{file:i}=t;f.value=!0;const s=await x({business:e.business,file:i});if(f.value=!1,!s)return;const n=d.getFileExtension(s.originName),c=d.getUploadIcon(n);if(c==="img"){const o=await d.getBase64(i);l.value.push({icon:o,id:s.id,type:c,spining:!1,fileName:t.file.name})}else l.value.push({icon:c,id:s.id,type:c,spining:!1,fileName:t.file.name});const u=l.value.map(o=>({fileName:o.fileName,type:o.type,id:o.id}));r("update:fileList",u),r("upload-success",u)}catch(i){f.value=!1,r("upload-error",i)}},g=async t=>{const i=t==null?void 0:t.map(n=>n.id);if((i==null?void 0:i.length)===0)return;const s=await v(i);for(const n of s.data){const c=d.getFileExtension(n.originName),u=d.getUploadIcon(c);if(u==="img"){const o=await y([n.id]);l.value.push({id:n.id,icon:o[n.id],fileName:n.originName,spining:!1,type:u})}else l.value.push({id:n.id,icon:u,fileName:n.originName,spining:!1,type:u})}};a.watch(()=>l.value,t=>{const i=t.map(s=>({fileName:s.fileName,type:s.type,id:s.id}));r("update:fileList",i),r("change",i)},{deep:!0}),a.onMounted(async()=>{g(e.fileList)});const q=t=>{l.value=t};return defineExpose({updateFileList:g,setFileList:q}),()=>{var t;return a.createVNode("div",{class:h(),style:{display:"flex",flexWrap:"wrap",alignContent:"space-between"}},[a.createVNode(L.default,{http:e.http,itemWidth:e.itemWidth,itemHeight:e.itemHeight,list:l.value,"onUpdate:list":i=>l.value=i},null,8,["http","itemWidth","itemHeight","list","onUpdate:list"]),l.value.length<(e.maxCount??20)?a.createVNode(p.Upload,{accept:(t=e.accept)==null?void 0:t.join(","),disabled:N.value,customRequest:U,beforeUpload:b,style:{marginTop:"5px"}},{default:()=>a.createVNode(p.Spin,{spinning:f.value},{default:()=>[a.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"}},[a.createVNode(F.KIcon,{name:"upload-icon",color:"#3296fa",size:32},null)],4)]},8,["spinning"]),itemRender:()=>a.createVNode(a.Fragment,null,null),_:1},8,["accept","disabled","customRequest","beforeUpload"]):a.createVNode(a.Fragment,null,null)],2)}}});exports.default=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=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 n=e.data,i=new FormData;i.append("file",s.file);const l=await r.uploadFileApi(n,i);l.status===0?(o.message.success("文件上传成功~"),a(l.data)):(o.message.error(l.msg),t(l))}else o.message.error(e.msg),t(e)}catch(e){console.log(e),o.message.error("文件上传失败,请联系管理员进行查看!"),t(e)}}),downloadFile:s=>new Promise(async(a,t)=>{try{const e=s[0],n=await r.getDownloadUrlApi(s);if(n.status===0){const i=n.data[e];window.open(i),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,t)=>{r.getFileDetailApi({fileIds:s}).then(e=>{e.status===0?a(e):(o.message.error(e.msg),t(e))}).catch(e=>{o.message.error(e),t(e)})}),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=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 n=e.data,i=new FormData;i.append("file",s.file);const l=await r.uploadFileApi(n,i);l.status===0?(o.message.success("文件上传成功~"),a(l.data)):(o.message.error(l.msg),t(l))}else o.message.error(e.msg),t(e)}catch(e){console.log(e),o.message.error("文件上传失败,请联系管理员进行查看!"),t(e)}}),downloadFile:s=>new Promise(async(a,t)=>{try{const e=s[0],n=await r.getDownloadUrlApi(s);if(n.status===0){const i=n.data[e];window.open(i),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,t)=>{r.getFileDetailApi({fileIds:s}).then(e=>{e.status===0?a(e):(o.message.error(e.msg),t(e))}).catch(e=>{o.message.error(e),t(e)})}),removeFile:async s=>await r.deleteFileApi({params:{fileId:s}})}}exports.useUpload=d;
|
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"),n=require("./components/collapse-transtion/src/types.js"),u=require("./components/collapse-transtion/index.js"),o=require("./components/pro-modal/hooks/useProModal.js"),P=require("./components/pro-modal/index.js"),a=require("./components/pro-title/src/types.js"),
|
|
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"),n=require("./components/collapse-transtion/src/types.js"),u=require("./components/collapse-transtion/index.js"),o=require("./components/pro-modal/hooks/useProModal.js"),P=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/cover-scroll-bar/src/types.js"),K=require("./components/cover-scroll-bar/index.js"),q=require("./components/scale-virtual-list/index.js"),$=require("./components/pro-tag/src/types.js"),m=require("./components/pro-tag/index.js"),s=require("./components/pro-picker/src/types.js"),T=require("./components/pro-picker/index.js"),x=require("./components/pro-area/src/types.js"),S=require("./components/pro-area/hooks/use-pro-area.js"),g=require("./components/pro-area/index.js"),y=require("./components/pro-signature/src/types.js"),b=require("./components/pro-signature/index.js"),C=require("./components/pro-table/hooks/use-pro-table.js"),f=require("./components/pro-table/index.js"),I=require("./components/icon/index.js"),A=require("./components/pro-upload/src/hooks/useUpload.js"),F=require("./components/pro-upload/index.js"),M=require("./components/pro-contract-view/hooks/use-contract-view.js"),v=require("./components/pro-contract-view/index.js"),U=require("./components/pro-loading/src/pro-loading.js"),V=require("./components/plus-upload/index.js"),k=require("./components/pro-overlay/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=n.collapseProps;exports.KCollapseTranstion=u.KCollapseTranstion;exports.useProModal=o.useProModal;exports.useProModalInit=o.useProModalInit;exports.KProModal=P.KProModal;exports.TitleProps=a.TitleProps;exports.KProTitle=l.KProTitle;exports.scrollbarProps=c.scrollbarProps;exports.KScrollBar=p.KScrollBar;exports.CoverScrollbarProps=d.CoverScrollbarProps;exports.KCoverScrollBar=K.KCoverScrollBar;exports.KScaleVirtualList=q.KScaleVirtualList;exports.proTagProps=$.proTagProps;exports.KProTag=m.KProTag;exports.PickerApiEnum=s.PickerApiEnum;exports.ProPickerProps=s.ProPickerProps;exports.KProPicker=T.KProPicker;exports.ProAreaProps=x.ProAreaProps;exports.useProArea=S.useProArea;exports.KProArea=g.KProArea;exports.ProSignatureProps=y.ProSignatureProps;exports.KProSignature=b.KProSignature;exports.useProTable=C.useProTable;exports.KProTable=f.KProTable;exports.KIcon=I.KIcon;exports.useUpload=A.useUpload;exports.KProUpload=F.KProUpload;exports.useProContractView=M.useProContractView;exports.KProContractView=v.KProContractView;exports.KProloading=U.default;exports.KPlusUpload=V.KPlusUpload;exports.KProOverlay=k.KProOverlay;exports.useProForm=i.useProForm;exports.useProFormInit=i.useProFormInit;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=
|
|
1
|
+
@font-face{font-family:iconfont;src:url(fonts/iconfont.woff2?t=10368) format("woff2"),url(fonts/iconfont.woff?t=99963) format("woff"),url(fonts/iconfont.ttf?t=51165) 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-plus:before{content:"\e614"}.icon-king-xsl:before{content:"\e602"}.icon-king-word:before{content:"\e622"}.icon-king-eye:before{content:"\e78f"}.icon-king-PDF:before{content:"\e60a"}.icon-king-delete:before{content:"\e63c"}.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:80vh;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=
|
|
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:80vh;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=74468) format("woff2"),url(fonts/iconfont.woff?t=92395) format("woff"),url(fonts/iconfont.ttf?t=71257) 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-plus:before{content:"\e614"}.icon-king-xsl:before{content:"\e602"}.icon-king-word:before{content:"\e622"}.icon-king-eye:before{content:"\e78f"}.icon-king-PDF:before{content:"\e60a"}.icon-king-delete:before{content:"\e63c"}.icon-king-upload-icon:before{content:"\e617"}.icon-king-title-icon:before{content:"\e680"}.king-cover-scrollbar{height:100%;width:100%;overflow:hidden;position:relative}.king-cover-scrollbar .king-cover-scrollbar-container{height:100%;width:100%;overflow:scroll;scrollbar-width:none}.king-cover-scrollbar .king-cover-scrollbar-rail{width:5px;top:2px;bottom:2px;position:absolute}.king-cover-scrollbar .king-cover-scrollbar-rail__scrollbar--vertical{position:absolute;border-radius:5px;width:100%;cursor:pointer}.king-pro-contract-view{position:relative;display:flex}.king-pro-contract-view .king-pro-contract-view__content{flex:1}.king-pro-contract-view .king-pro-contract-view__content-item{border:1px solid #f0f0f0;position:relative;box-shadow:0 2px 10px 0 rgba(0,0,0,.1)}.king-pro-contract-view>.ant-spin{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.king-pro-overlay{position:relative;cursor:pointer;display:inline-block}.king-pro-overlay .king-pro-overlay__content{transition:all .2s linear;opacity:0;position:absolute;display:flex;align-items:center;justify-content:center;inset:0}.king-pro-overlay:hover .king-pro-overlay__content{opacity:1;background:rgba(0,0,0,.5)}.king-plus-upload .king-plus-upload__icon-plus{font-size:32px!important}.king-plus-upload .king-plus-upload__icon-eye{font-size:16px!important;margin-right:5px;color:#fff!important}.king-plus-upload .king-plus-upload__icon-delete{font-size:16px!important;margin-right:5px;color:#fff!important}.king-plus-upload .king-plus-upload__file-item{width:102px;height:102px;display:flex;align-items:center;justify-content:center;border:1px solid #cbcdd3;border-radius:3px}.king-plus-upload .king-plus-upload__preview{overflow:hidden}.king-plus-upload .ant-upload:hover .king-plus-upload__icon-plus{color:#1677ff!important}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.king-plus-upload .king-plus-upload__icon-plus{font-size:32px!important}.king-plus-upload .king-plus-upload__icon-eye{font-size:16px!important;margin-right:5px;color:#fff!important}.king-plus-upload .king-plus-upload__icon-delete{font-size:16px!important;margin-right:5px;color:#fff!important}.king-plus-upload .king-plus-upload__file-item{width:102px;height:102px;display:flex;align-items:center;justify-content:center;border:1px solid #cbcdd3;border-radius:3px}.king-plus-upload .king-plus-upload__preview{overflow:hidden}.king-plus-upload .ant-upload:hover .king-plus-upload__icon-plus{color:#1677ff!important}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.king-pro-overlay{position:relative;cursor:pointer;display:inline-block}.king-pro-overlay .king-pro-overlay__content{transition:all .2s linear;opacity:0;position:absolute;display:flex;align-items:center;justify-content:center;inset:0}.king-pro-overlay:hover .king-pro-overlay__content{opacity:1;background:rgba(0,0,0,.5)}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from 'axios';
|
|
2
|
+
export declare const plusUploadApis: {
|
|
3
|
+
getUploadUrl: (config?: AxiosRequestConfig) => Promise<any>;
|
|
4
|
+
uploadFileApi: (url: string, config: any) => Promise<any>;
|
|
5
|
+
deleteFileApi: (config: AxiosRequestConfig) => Promise<any>;
|
|
6
|
+
getDownloadUrlApi: (config: any) => Promise<any>;
|
|
7
|
+
downloadFileApi: (url: string, config: AxiosRequestConfig<{
|
|
8
|
+
fileId: string;
|
|
9
|
+
ticket: string;
|
|
10
|
+
}>) => Promise<any>;
|
|
11
|
+
getFileDetailApi: (config: {
|
|
12
|
+
fileIds: string[];
|
|
13
|
+
}) => Promise<any>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PlusUploadTypes } from '../src/types';
|
|
2
|
+
export declare function useExtractPlusUpload(): {
|
|
3
|
+
getFileType: (name: string) => PlusUploadTypes["AcceptType"];
|
|
4
|
+
getFileUrl: (name: string, url: string) => string;
|
|
5
|
+
hasPrivew: (fileType: PlusUploadTypes["AcceptType"]) => boolean;
|
|
6
|
+
AcceptValidates: Record<"pdf" | "xls" | "docx" | "doc" | "xlsx" | "jpg" | "jpeg" | "png" | "gif", string[]>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RcFile } from 'ant-design-vue/es/vc-upload/interface';
|
|
2
|
+
export declare function usePlusUpload(): {
|
|
3
|
+
uploadFile: (business: string, file: RcFile) => Promise<any>;
|
|
4
|
+
getImgUrl: (ids: string[]) => Promise<any>;
|
|
5
|
+
removeFile: (fileId: string) => Promise<boolean>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { SFCWithInstall } from '../utils/install';
|
|
2
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
3
|
+
import { FileType } from 'ant-design-vue/es/upload/interface';
|
|
4
|
+
export declare const KPlusUpload: SFCWithInstall<{
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
6
|
+
beforeUpload: {
|
|
7
|
+
readonly type: PropType<((file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>) | undefined>;
|
|
8
|
+
};
|
|
9
|
+
business: {
|
|
10
|
+
readonly type: PropType<string>;
|
|
11
|
+
readonly required: true;
|
|
12
|
+
};
|
|
13
|
+
limit: {
|
|
14
|
+
readonly type: PropType<number>;
|
|
15
|
+
};
|
|
16
|
+
disabled: {
|
|
17
|
+
readonly type: PropType<boolean>;
|
|
18
|
+
};
|
|
19
|
+
maxSize: {
|
|
20
|
+
readonly type: PropType<number>;
|
|
21
|
+
};
|
|
22
|
+
acceptType: {
|
|
23
|
+
readonly type: PropType<("pdf" | "xls" | "docx" | "doc" | "xlsx" | "jpg" | "jpeg" | "png" | "gif")[]>;
|
|
24
|
+
};
|
|
25
|
+
fileList: {
|
|
26
|
+
type: PropType<{
|
|
27
|
+
id: string;
|
|
28
|
+
url: string;
|
|
29
|
+
name: string;
|
|
30
|
+
}[]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
}>> & {
|
|
34
|
+
"onUpdate:fileList"?: ((value: {
|
|
35
|
+
id: string;
|
|
36
|
+
url: string;
|
|
37
|
+
name: string;
|
|
38
|
+
}[]) => any) | undefined;
|
|
39
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
40
|
+
"update:fileList": (value: {
|
|
41
|
+
id: string;
|
|
42
|
+
url: string;
|
|
43
|
+
name: string;
|
|
44
|
+
}[]) => void;
|
|
45
|
+
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
46
|
+
beforeUpload: {
|
|
47
|
+
readonly type: PropType<((file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>) | undefined>;
|
|
48
|
+
};
|
|
49
|
+
business: {
|
|
50
|
+
readonly type: PropType<string>;
|
|
51
|
+
readonly required: true;
|
|
52
|
+
};
|
|
53
|
+
limit: {
|
|
54
|
+
readonly type: PropType<number>;
|
|
55
|
+
};
|
|
56
|
+
disabled: {
|
|
57
|
+
readonly type: PropType<boolean>;
|
|
58
|
+
};
|
|
59
|
+
maxSize: {
|
|
60
|
+
readonly type: PropType<number>;
|
|
61
|
+
};
|
|
62
|
+
acceptType: {
|
|
63
|
+
readonly type: PropType<("pdf" | "xls" | "docx" | "doc" | "xlsx" | "jpg" | "jpeg" | "png" | "gif")[]>;
|
|
64
|
+
};
|
|
65
|
+
fileList: {
|
|
66
|
+
type: PropType<{
|
|
67
|
+
id: string;
|
|
68
|
+
url: string;
|
|
69
|
+
name: string;
|
|
70
|
+
}[]>;
|
|
71
|
+
required: true;
|
|
72
|
+
};
|
|
73
|
+
}>> & {
|
|
74
|
+
"onUpdate:fileList"?: ((value: {
|
|
75
|
+
id: string;
|
|
76
|
+
url: string;
|
|
77
|
+
name: string;
|
|
78
|
+
}[]) => any) | undefined;
|
|
79
|
+
}, {}, true, {}, {}, {
|
|
80
|
+
P: {};
|
|
81
|
+
B: {};
|
|
82
|
+
D: {};
|
|
83
|
+
C: {};
|
|
84
|
+
M: {};
|
|
85
|
+
Defaults: {};
|
|
86
|
+
}, Readonly< ExtractPropTypes<{
|
|
87
|
+
beforeUpload: {
|
|
88
|
+
readonly type: PropType<((file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>) | undefined>;
|
|
89
|
+
};
|
|
90
|
+
business: {
|
|
91
|
+
readonly type: PropType<string>;
|
|
92
|
+
readonly required: true;
|
|
93
|
+
};
|
|
94
|
+
limit: {
|
|
95
|
+
readonly type: PropType<number>;
|
|
96
|
+
};
|
|
97
|
+
disabled: {
|
|
98
|
+
readonly type: PropType<boolean>;
|
|
99
|
+
};
|
|
100
|
+
maxSize: {
|
|
101
|
+
readonly type: PropType<number>;
|
|
102
|
+
};
|
|
103
|
+
acceptType: {
|
|
104
|
+
readonly type: PropType<("pdf" | "xls" | "docx" | "doc" | "xlsx" | "jpg" | "jpeg" | "png" | "gif")[]>;
|
|
105
|
+
};
|
|
106
|
+
fileList: {
|
|
107
|
+
type: PropType<{
|
|
108
|
+
id: string;
|
|
109
|
+
url: string;
|
|
110
|
+
name: string;
|
|
111
|
+
}[]>;
|
|
112
|
+
required: true;
|
|
113
|
+
};
|
|
114
|
+
}>> & {
|
|
115
|
+
"onUpdate:fileList"?: ((value: {
|
|
116
|
+
id: string;
|
|
117
|
+
url: string;
|
|
118
|
+
name: string;
|
|
119
|
+
}[]) => any) | undefined;
|
|
120
|
+
}, {}, {}, {}, {}, {}>;
|
|
121
|
+
__isFragment?: never;
|
|
122
|
+
__isTeleport?: never;
|
|
123
|
+
__isSuspense?: never;
|
|
124
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
125
|
+
beforeUpload: {
|
|
126
|
+
readonly type: PropType<((file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>) | undefined>;
|
|
127
|
+
};
|
|
128
|
+
business: {
|
|
129
|
+
readonly type: PropType<string>;
|
|
130
|
+
readonly required: true;
|
|
131
|
+
};
|
|
132
|
+
limit: {
|
|
133
|
+
readonly type: PropType<number>;
|
|
134
|
+
};
|
|
135
|
+
disabled: {
|
|
136
|
+
readonly type: PropType<boolean>;
|
|
137
|
+
};
|
|
138
|
+
maxSize: {
|
|
139
|
+
readonly type: PropType<number>;
|
|
140
|
+
};
|
|
141
|
+
acceptType: {
|
|
142
|
+
readonly type: PropType<("pdf" | "xls" | "docx" | "doc" | "xlsx" | "jpg" | "jpeg" | "png" | "gif")[]>;
|
|
143
|
+
};
|
|
144
|
+
fileList: {
|
|
145
|
+
type: PropType<{
|
|
146
|
+
id: string;
|
|
147
|
+
url: string;
|
|
148
|
+
name: string;
|
|
149
|
+
}[]>;
|
|
150
|
+
required: true;
|
|
151
|
+
};
|
|
152
|
+
}>> & {
|
|
153
|
+
"onUpdate:fileList"?: ((value: {
|
|
154
|
+
id: string;
|
|
155
|
+
url: string;
|
|
156
|
+
name: string;
|
|
157
|
+
}[]) => any) | undefined;
|
|
158
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
159
|
+
"update:fileList": (value: {
|
|
160
|
+
id: string;
|
|
161
|
+
url: string;
|
|
162
|
+
name: string;
|
|
163
|
+
}[]) => void;
|
|
164
|
+
}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
165
|
+
$slots: {
|
|
166
|
+
tips?(_: {}): any;
|
|
167
|
+
};
|
|
168
|
+
})>;
|
|
169
|
+
export default KPlusUpload;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { PropType, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
import { FileType } from 'ant-design-vue/es/upload/interface';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
tips?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: DefineComponent<{
|
|
13
|
+
beforeUpload: {
|
|
14
|
+
readonly type: PropType<((file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>) | undefined>;
|
|
15
|
+
};
|
|
16
|
+
business: {
|
|
17
|
+
readonly type: PropType<string>;
|
|
18
|
+
readonly required: true;
|
|
19
|
+
};
|
|
20
|
+
limit: {
|
|
21
|
+
readonly type: PropType<number>;
|
|
22
|
+
};
|
|
23
|
+
disabled: {
|
|
24
|
+
readonly type: PropType<boolean>;
|
|
25
|
+
};
|
|
26
|
+
maxSize: {
|
|
27
|
+
readonly type: PropType<number>;
|
|
28
|
+
};
|
|
29
|
+
acceptType: {
|
|
30
|
+
readonly type: PropType<("pdf" | "xls" | "docx" | "doc" | "xlsx" | "jpg" | "jpeg" | "png" | "gif")[]>;
|
|
31
|
+
};
|
|
32
|
+
fileList: {
|
|
33
|
+
type: PropType<{
|
|
34
|
+
id: string;
|
|
35
|
+
url: string;
|
|
36
|
+
name: string;
|
|
37
|
+
}[]>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
41
|
+
"update:fileList": (value: {
|
|
42
|
+
id: string;
|
|
43
|
+
url: string;
|
|
44
|
+
name: string;
|
|
45
|
+
}[]) => void;
|
|
46
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
47
|
+
beforeUpload: {
|
|
48
|
+
readonly type: PropType<((file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>) | undefined>;
|
|
49
|
+
};
|
|
50
|
+
business: {
|
|
51
|
+
readonly type: PropType<string>;
|
|
52
|
+
readonly required: true;
|
|
53
|
+
};
|
|
54
|
+
limit: {
|
|
55
|
+
readonly type: PropType<number>;
|
|
56
|
+
};
|
|
57
|
+
disabled: {
|
|
58
|
+
readonly type: PropType<boolean>;
|
|
59
|
+
};
|
|
60
|
+
maxSize: {
|
|
61
|
+
readonly type: PropType<number>;
|
|
62
|
+
};
|
|
63
|
+
acceptType: {
|
|
64
|
+
readonly type: PropType<("pdf" | "xls" | "docx" | "doc" | "xlsx" | "jpg" | "jpeg" | "png" | "gif")[]>;
|
|
65
|
+
};
|
|
66
|
+
fileList: {
|
|
67
|
+
type: PropType<{
|
|
68
|
+
id: string;
|
|
69
|
+
url: string;
|
|
70
|
+
name: string;
|
|
71
|
+
}[]>;
|
|
72
|
+
required: true;
|
|
73
|
+
};
|
|
74
|
+
}>> & {
|
|
75
|
+
"onUpdate:fileList"?: ((value: {
|
|
76
|
+
id: string;
|
|
77
|
+
url: string;
|
|
78
|
+
name: string;
|
|
79
|
+
}[]) => any) | undefined;
|
|
80
|
+
}, {}, {}>;
|
|
81
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
82
|
+
export default _default;
|
|
83
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
84
|
+
new (): {
|
|
85
|
+
$slots: S;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { FileType } from 'ant-design-vue/es/upload/interface';
|
|
3
|
+
declare enum AcceptTypeEnum {
|
|
4
|
+
docx = "docx",
|
|
5
|
+
doc = "doc",
|
|
6
|
+
xls = "xls",
|
|
7
|
+
xlsx = "xlsx",
|
|
8
|
+
jpg = "jpg",
|
|
9
|
+
jpeg = "jpeg",
|
|
10
|
+
png = "png",
|
|
11
|
+
gif = "gif",
|
|
12
|
+
pdf = "pdf"
|
|
13
|
+
}
|
|
14
|
+
export type PlusUploadTypes = {
|
|
15
|
+
AcceptType: keyof typeof AcceptTypeEnum;
|
|
16
|
+
AcceptValidates: Record<PlusUploadTypes['AcceptType'], string[]>;
|
|
17
|
+
values: {
|
|
18
|
+
id: string;
|
|
19
|
+
url: string;
|
|
20
|
+
name: string;
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
23
|
+
export declare const PlusUpLoadProps: {
|
|
24
|
+
readonly beforeUpload: {
|
|
25
|
+
readonly type: PropType<((file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>) | undefined>;
|
|
26
|
+
};
|
|
27
|
+
readonly business: {
|
|
28
|
+
readonly type: PropType<string>;
|
|
29
|
+
readonly required: true;
|
|
30
|
+
};
|
|
31
|
+
readonly limit: {
|
|
32
|
+
readonly type: PropType<number>;
|
|
33
|
+
};
|
|
34
|
+
readonly disabled: {
|
|
35
|
+
readonly type: PropType<boolean>;
|
|
36
|
+
};
|
|
37
|
+
readonly maxSize: {
|
|
38
|
+
readonly type: PropType<number>;
|
|
39
|
+
};
|
|
40
|
+
readonly acceptType: {
|
|
41
|
+
readonly type: PropType<("pdf" | "xls" | "docx" | "doc" | "xlsx" | "jpg" | "jpeg" | "png" | "gif")[]>;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export {};
|