iking-web-ui-pro 0.0.3 → 0.0.5
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.
|
@@ -1513,7 +1513,7 @@ const O6 = (e, s) => {
|
|
|
1513
1513
|
v(n(u3), {
|
|
1514
1514
|
name: "iksvg_yidong",
|
|
1515
1515
|
bg: "",
|
|
1516
|
-
size:
|
|
1516
|
+
size: 40
|
|
1517
1517
|
}),
|
|
1518
1518
|
o(
|
|
1519
1519
|
"span",
|
|
@@ -1559,7 +1559,7 @@ const O6 = (e, s) => {
|
|
|
1559
1559
|
};
|
|
1560
1560
|
}
|
|
1561
1561
|
});
|
|
1562
|
-
const be = /* @__PURE__ */ O6(ze, [["__scopeId", "data-v-
|
|
1562
|
+
const be = /* @__PURE__ */ O6(ze, [["__scopeId", "data-v-17747b77"]]), Ve = f3(be);
|
|
1563
1563
|
export {
|
|
1564
1564
|
Ve as IkUploadFile,
|
|
1565
1565
|
Ve as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(k,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus"),require("iking-utils")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","iking-utils"],e):(k=typeof globalThis<"u"?globalThis:k||self,e(k.index={},k.Vue,k["element-plus"],k["iking-utils"]))})(this,function(k,e,d,z){"use strict";const I=(t,l)=>{if(t.install=o=>{for(const i of[t,...Object.values(l??{})])o.component(i.name,i)},l)for(const[o,i]of Object.entries(l))t[o]=i;return t};/*! Element Plus Icons Vue v2.3.1 */var P=e.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),S=P,v=e.defineComponent({name:"Delete",__name:"delete",setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),N=v,e3=e.defineComponent({name:"Download",__name:"download",setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),D=e3,t3=e.defineComponent({name:"QuestionFilled",__name:"question-filled",setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),o3=t3,l3=e.defineComponent({name:"Refresh",__name:"refresh",setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),n3=l3,c3=e.defineComponent({name:"Upload",__name:"upload",setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),a3=c3,s3=e.defineComponent({name:"View",__name:"view",setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),M=s3,i3=e.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),r3=i3;const d3={key:0,t:"1686300037564",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7515",width:"200",height:"200"},m3=[e.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#029EF7","p-id":"7516"},null,-1),e.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),e.createElementVNode("path",{d:"M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",fill:"#FFFFFF","p-id":"7518"},null,-1)],p3={key:1,t:"1686300059786",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7671",width:"200",height:"200"},h3=[e.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#50CD89","p-id":"7672"},null,-1),e.createElementVNode("path",{d:"M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",fill:"#FFF7F7","p-id":"7673"},null,-1),e.createElementVNode("path",{d:"M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",fill:"#FFFFFF","p-id":"7674"},null,-1),e.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)],f3={key:2,t:"1686301531714",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9067",width:"200",height:"200"},_3=[e.createElementVNode("path",{d:"M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",fill:"#FFA621","p-id":"9068"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"9069"},null,-1)],g3={key:3,t:"1686300141125",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8137",width:"200",height:"200"},k3=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",fill:"#F1416C","p-id":"8138"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8139"},null,-1)],u3={key:4,t:"1686300157181",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8292",width:"200",height:"200"},w3=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",fill:"#029EF7","p-id":"8293"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8294"},null,-1)],y3={key:5,t:"1686300180947",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8447",width:"200",height:"200"},B3=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",fill:"#F1416C","p-id":"8448"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8449"},null,-1)],V3={key:6,t:"1686300195363",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8602",width:"200",height:"200"},x3=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",fill:"#029EF7","p-id":"8603"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8604"},null,-1)],E3={key:7,t:"1686300209288",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8757",width:"200",height:"200"},C3=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",fill:"#FFA621","p-id":"8758"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8759"},null,-1)],z3={key:8,t:"1686300225262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8912",width:"200",height:"200"},N3=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",fill:"#FFA621","p-id":"8913"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8914"},null,-1)],$3={key:9,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},b3=[e.createElementVNode("path",{d:"M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",fill:"#00BD76","p-id":"4337"},null,-1),e.createElementVNode("path",{d:"M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",fill:"#FFFFFF",opacity:".9","p-id":"4338"},null,-1),e.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)],H=e.defineComponent({__name:"FileIcon",props:{type:{type:String,default:"unknow"}},setup(t){return(l,o)=>t.type==="unknow"?(e.openBlock(),e.createElementBlock("svg",d3,m3)):t.type==="image"?(e.openBlock(),e.createElementBlock("svg",p3,h3)):t.type==="zip"?(e.openBlock(),e.createElementBlock("svg",f3,_3)):t.type==="ppt"?(e.openBlock(),e.createElementBlock("svg",g3,k3)):t.type==="word"?(e.openBlock(),e.createElementBlock("svg",u3,w3)):t.type==="pdf"?(e.openBlock(),e.createElementBlock("svg",y3,B3)):t.type==="txt"?(e.openBlock(),e.createElementBlock("svg",V3,x3)):t.type==="audio"?(e.openBlock(),e.createElementBlock("svg",E3,C3)):t.type==="video"?(e.openBlock(),e.createElementBlock("svg",z3,N3)):t.type==="excal"?(e.openBlock(),e.createElementBlock("svg",$3,b3)):e.createCommentVNode("v-if",!0)}}),F3=typeof btoa=="function",$=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const U=typeof TextEncoder=="function"?new TextEncoder:void 0,I3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",V=Array.prototype.slice.call(I3);(t=>{let l={};return t.forEach((o,i)=>l[o]=i),l})(V);const u=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const S3=t=>t.replace(/=/g,"").replace(/[+\/]/g,l=>l=="+"?"-":"_"),A=F3?t=>btoa(t):$?t=>Buffer.from(t,"binary").toString("base64"):t=>{let l,o,i,c,s="";const _=t.length%3;for(let h=0;h<t.length;){if((o=t.charCodeAt(h++))>255||(i=t.charCodeAt(h++))>255||(c=t.charCodeAt(h++))>255)throw new TypeError("invalid character found");l=o<<16|i<<8|c,s+=V[l>>18&63]+V[l>>12&63]+V[l>>6&63]+V[l&63]}return _?s.slice(0,_-3)+"===".substring(_):s},D3=$?t=>Buffer.from(t).toString("base64"):t=>{let o=[];for(let i=0,c=t.length;i<c;i+=4096)o.push(u.apply(null,t.subarray(i,i+4096)));return A(o.join(""))},M3=t=>{if(t.length<2){var l=t.charCodeAt(0);return l<128?t:l<2048?u(192|l>>>6)+u(128|l&63):u(224|l>>>12&15)+u(128|l>>>6&63)+u(128|l&63)}else{var l=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return u(240|l>>>18&7)+u(128|l>>>12&63)+u(128|l>>>6&63)+u(128|l&63)}},H3=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,U3=t=>t.replace(H3,M3),L=$?t=>Buffer.from(t,"utf8").toString("base64"):U?t=>D3(U.encode(t)):t=>A(U3(t)),A3=(t,l=!1)=>l?S3(L(t)):L(t),L3=["src"],T3=e.defineComponent({__name:"IKPreviewFile",props:{modelValue:{type:Boolean,default:!1},kkUrl:{required:!0,type:String,default:""},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},fileName:{type:String,default:""}},setup(t){const l=t,o=e.ref(null),i=e.computed(()=>!l.kkUrl||!l.url?"":`${l.kkUrl}${encodeURIComponent(A3(`${l.loadUrl}${l.url}${l.fileName?`&fullfilename=${l.fileName}`:""}`))}`),c=e.ref(l.modelValue);return e.watch(()=>l.modelValue,s=>{c.value=s}),(s,_)=>(e.openBlock(),e.createBlock(e.unref(d.ElDialog),{fullscreen:"",modelValue:c.value,"onUpdate:modelValue":_[0]||(_[0]=h=>c.value=h),"destroy-on-close":"","append-to-body":"","modal-class":"ik-file-preview-modal",onClose:_[1]||(_[1]=h=>s.$emit("update:modelValue",!1)),class:"ik-file-preview"},{default:e.withCtx(()=>[e.createElementVNode("iframe",{ref_key:"freamRef",ref:o,"cross-origin":"",src:i.value,frameborder:"0",allowfullscreen:"",seamless:""},null,8,L3)]),_:1},8,["modelValue"]))}}),Z6="",j3=(t,l)=>{const o=t.__vccOpts||t;for(const[i,c]of l)o[i]=c;return o},O3={class:"inline-block ik-svg-icon ik-icon line-height-[0] inline-flex justify-center"},R3={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},q3=["xlink:href"],W3=["src"],K3={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},X3=["xlink:href"],Y3=["src"],T=I(e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},opacity:{default:.5},size:{default:""},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"0"},warning:{type:Boolean},notip:{type:Boolean,default:!1},title:{}},setup(t){const l=t,o=e.computed(()=>{var c;return/^http?:\/\//.test(l.name)?"img":/i-[^:]+:[^:]+/.test(l.name)?"unocss":l.name.startsWith("iksig")?"iksig":(c=l.name)!=null&&c.includes(":")?"iconify":"svg"}),i=e.computed(()=>{const c=[];if(l.flip)switch(l.flip){case"horizontal":c.push("rotateY(180deg)");break;case"vertical":c.push("rotateX(180deg)");break;case"both":c.push("rotateX(180deg)"),c.push("rotateY(180deg)");break}return l.rotate&&c.push(`rotate(${l.rotate%360}deg)`),{...l.color&&{color:l.color},...l.size&&{fontSize:typeof l.size=="number"?`${l.size}px`:l.size},...c.length&&{transform:c.join(" ")},padding:l.padding,...l.color&&o.value!=="iksig"?{"--ik-color-icon-dark":l.color,"--ik-color-icon-light":z.ikColor.setOpacity(l.color,l.opacity||.4)}:{}}});return(c,s)=>{const _=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("span",O3,[c.notip||!c.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition",{[c.name]:o.value==="unocss","show-bg":c.showBg||c.bg,default:c.size==="default",small:c.size==="small",big:c.size==="big",warning:c.warning}]),style:e.normalizeStyle(i.value)},[o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${c.name}`),style:e.normalizeStyle(i.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",R3,[e.createElementVNode("use",{"xlink:href":`#${c.name}`},null,8,q3)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:c.name,class:"h-[1em] w-[1em]"},null,8,W3)):e.createCommentVNode("v-if",!0)],6)):(e.openBlock(),e.createBlock(_,{key:1,content:c.title},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition",{[c.name]:o.value==="unocss","show-bg":c.showBg||c.bg,default:c.size==="default",small:c.size==="small",big:c.size==="big",warning:c.warning}]),style:e.normalizeStyle(i.value)},[o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${c.name}`),style:e.normalizeStyle(i.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",K3,[e.createElementVNode("use",{"xlink:href":`#${c.name}`},null,8,X3)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:c.name,class:"h-[1em] w-[1em]"},null,8,Y3)):e.createCommentVNode("v-if",!0)],6)]),_:1},8,["content"]))])}}})),b=t=>t%1===0?t.toString():t.toFixed(2),p=(t,l)=>{var c,s,_,h,E;const o=(c=t==null?void 0:t.response)!=null&&c.data?j((_=(s=t==null?void 0:t.response)==null?void 0:s.data)==null?void 0:_.suffix):((h=t.raw)==null?void 0:h.type)||j(t[l.suffix]),i=((E=t.raw)==null?void 0:E.name)||t[l.name];return o!=null&&o.includes("sheet")||o==="excal"?"excal":o!=null&&o.includes("zip")||o==="zip"||o==="application/x-compressed"?"zip":o!=null&&o.includes("image")||o==="image"?"image":o!=null&&o.includes("video")||o==="video"?"video":o!=null&&o.includes("audio")||o==="audio"?"audio":o!=null&&o.includes("pdf")||o==="pdf"?"pdf":o!=null&&o.includes("text")||o==="txt"?"txt":o!=null&&o.includes("word")||o==="word"?"word":i!=null&&i.includes("ppt")||o==="ppt"?"ppt":"unknow"},j=t=>{const l=t==null?void 0:t.toLocaleLowerCase();switch(l!=null&&l.startsWith(".")?l:`.${l}`){case".doc":case".docx":case".docxf":case".docm":case".dot":case".dotm":case".dotx":case".epub":case".fodt":case".htm":case".html":case".mht":case".odt":case".ott":case".rtf":case".txt":case".djvu":case".oxps":case".oform":case".fb2":case".xml":case".xps":return"word";case".csv":case".xls":case".xlsx":case".fods":case".ods":case".ots":case".xlsb":case".xlsm":case".xlt":case".xltm":case".xltx":return"excal";case".fodp":case".odp":case".otp":case".pot":case".potm":case".potx":case".pps":case".ppsm":case".ppsx":case".ppt":case".pptm":case".pptx":return"ppt";case".zip":case".rar":case".7z":case".apz":case".ar":case".bz":case".car":case".dar":case".cpgz":case".f":case".ha":case".hbc":case".hbc2":case".hbe":case".hpk":case".hyp":return"zip";case".png":case".jpg":case".jpeg":case".bmp":case".gif":case".webp":case".psd":case".svg":case".tiff":return"image";case".avi":case".wmv":case".mpeg":case".mp4":case".mpm4v":case".mov":case".asf":case".flv":case".f4v":case".rmvb":case".rm":case".3gp":case".vob":return"video";case"audio":return"audio";case".txt":return"txt";case".pdf":return"pdf";case t:case"":return"unknow"}},Q3={class:"ik-flie-list"},Z3={class:"name"},G3={key:1},J3=["src"],P3={class:"file-icon"},v3={class:"file-name-loading"},e6={class:"file-name"},t6={key:0},o6={key:0,class:"file-size"},l6={class:"name"},n6={class:"file-name-loading"},c6={class:"file-name"},a6={class:"file-size"},s6={class:"operate-btn"},i6={class:"card"},r6={class:"title"},d6={class:"ik-flie-list"},m6={class:"name"},p6={key:1},h6=["src"],f6={class:"file-icon"},_6={class:"file-name-loading"},g6={class:"file-name"},k6={key:0},u6={key:0,class:"file-size"},w6=e.defineComponent({__name:"index",props:{title:{type:String,default:"上传文件"},action:{type:String,default:""},type:{type:String,default:"button"},headers:{type:Object,default:()=>({})},loadUrl:{type:String,default:""},limit:{type:Number,default:1},size:{type:Number,default:50},accept:{type:String,default:"*"},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""},limitText:{type:String,default:""},modelValue:{type:Array,default:()=>[]},defaultFileds:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})},preview:{type:Boolean,default:!1},customIconData:{type:Object,default:()=>({})},customIconFields:{type:Object,default:()=>({type:"type",icon:"icon"})},onlinePreviewUrl:{type:String,default:""}},emits:["delete","exceed","success","error","outSize"],setup(t,{emit:l}){const o=t,i=l,s={...{name:"name",url:"url",suffix:"suffix"},...o.defaultFileds},_=e.computed(()=>o.size),h=e.ref(null),E=e.ref(null),g=e.ref(o.modelValue);e.watch(()=>o.modelValue,a=>{g.value=a},{deep:!0});const x=e.ref([]),R=e.ref(!1),F=e.ref(!1),B=e.ref(null),q=(a,r)=>{g.value=z._.cloneDeep(r)},W=a=>{const r=a.size/1024/1024;if(!(r<_.value)){i("outSize"),d.ElMessage({message:`上传文件大小(${r.toFixed(4)}MB)超出允许最大值(${o.size}MB),请重新选择`,type:"warning",showClose:!0,duration:5e3});const w=g.value.findIndex(y=>y.uid===a.uid);return g.value.splice(w,1),!1}return!0},K=()=>!1,y6=(a,r)=>{var f,w;a.status="ready",r!==void 0&&x.value.splice(r,1),(f=h.value)==null||f.handleStart(a.raw),(w=h.value)==null||w.submit()},X=(a,r)=>{var n,m;const f=g.value.length,w=o.limit-f;let y=0;for(;y<w&&y<a.length;)(n=h.value)==null||n.handleStart(a[y]),(m=h.value)==null||m.submit(),y++;d.ElMessage({message:(o==null?void 0:o.limitText)||`最大可上传${o.limit}个文件,已忽略超出文件`,type:"warning",showClose:!0,duration:5e3}),i("exceed",a)},Y=(a,r,f)=>{i("success",a,r,f)},Q=(a,r,f)=>{x.value.push(r),i("error",a,r,f)},Z=a=>{a&&p(a,s)==="video"||a&&p(a,s)==="image"?(B.value={...a,url:a[s.url].startsWith("http")?a[s.url]:`${o.loadUrl}${a[s.url]}`},F.value=!0):window.open(o.loadUrl+a[s.url])},G=a=>{z.ikFile.downloadByOnlineUrl(a[s.url],a[s.name])},B6=(a,r=!1)=>{var f;(f=h.value)==null||f.abort(a)},C=a=>{var r;a.status!=="success"&&B6(a),(r=h.value)==null||r.handleRemove(a),g.value=g.value.filter(f=>f.uid!==a.uid),i("delete",a)},V6=(a,r)=>{x.value.splice(r,1)};return(a,r)=>{var w,y;const f=e.resolveComponent("el-image-viewer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[t.preview?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.type==="button"?(e.openBlock(),e.createBlock(e.unref(d.ElUpload),e.mergeProps({key:0,"file-list":g.value,"onUpdate:fileList":r[0]||(r[0]=n=>g.value=n),class:"ik-file-upload"},a.$attrs,{accept:t.accept,action:t.action,ref_key:"refUpload",ref:h,"on-change":q,"before-upload":W,"before-remove":K,"on-exceed":X,multiple:t.multiple,headers:t.headers,limit:t.limit,"on-success":Y,"on-error":Q}),{trigger:e.withCtx(()=>[a.$slots.trigger?e.renderSlot(a.$slots,"trigger",{key:0},void 0,!0):(e.openBlock(),e.createBlock(e.unref(d.ElButton),{key:1,type:"primary",disabled:g.value.length===t.limit,icon:e.unref(a3)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1},8,["disabled","icon"]))]),file:e.withCtx(({file:n})=>[e.createElementVNode("div",Q3,[e.createElementVNode("div",Z3,[!a.$slots.fileIcon&&(!t.customIconData[e.unref(p)(n,s)]||!t.customIconData[e.unref(p)(n,s)][t.customIconFields.icon])?(e.openBlock(),e.createBlock(H,{key:0,type:e.unref(p)(n,s)},null,8,["type"])):!a.$slots.fileIcon&&t.customIconData[e.unref(p)(n,s)]&&t.customIconData[e.unref(p)(n,s)][t.customIconFields.icon]?(e.openBlock(),e.createElementBlock("div",G3,[t.customIconData[e.unref(p)(n,s)][t.customIconFields.type]==="img"?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.customIconData[e.unref(p)(n,s)][t.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,J3)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([t.customIconData[e.unref(p)(n,s)][t.customIconFields.icon],"file-icon-size"])},null,2))])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",P3,[e.renderSlot(a.$slots,"fileIcon",{file:n},void 0,!0)]),e.createElementVNode("div",v3,[e.createElementVNode("p",e6,[e.createTextVNode(e.toDisplayString(n[s.name]||n.name)+" ",1),n.percentage&&n.percentage!==100?(e.openBlock(),e.createElementBlock("span",t6,"("+e.toDisplayString(n.percentage)+"%)",1)):e.createCommentVNode("v-if",!0)]),n.percentage===100?(e.openBlock(),e.createElementBlock("p",o6,e.toDisplayString(e.unref(b)(n.size/1024/1024))+"MB ",1)):e.createCommentVNode("v-if",!0),n.percentage&&n.percentage!==100?(e.openBlock(),e.createBlock(e.unref(d.ElProgress),{key:1,"text-inside":"",percentage:n.percentage,color:"var(--el-color-primary)","striped-flow":"",striped:"","show-text":!1},null,8,["percentage"])):e.createCommentVNode("v-if",!0)])]),t.preview?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.preview||n.percentage===100?(e.openBlock(),e.createBlock(e.unref(d.ElIcon),{key:0,title:"预览",class:"primary"},{default:e.withCtx(()=>[e.createVNode(e.unref(M),{onClick:m=>Z(n)},null,8,["onClick"])]),_:2},1024)):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(d.ElIcon),{title:"下载",class:"primary"},{default:e.withCtx(()=>[e.createVNode(e.unref(D),{onClick:m=>G(n)},null,8,["onClick"])]),_:2},1024)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.status==="success"?(e.openBlock(),e.createBlock(e.unref(d.ElIcon),{key:0,title:"删除",class:"error"},{default:e.withCtx(()=>[e.createVNode(e.unref(N),{onClick:m=>C(n)},null,8,["onClick"])]),_:2},1024)):(e.openBlock(),e.createBlock(e.unref(d.ElIcon),{key:1,title:"取消上传"},{default:e.withCtx(()=>[e.createVNode(e.unref(S),{onClick:m=>C(n)},null,8,["onClick"])]),_:2},1024))],64))])]),default:e.withCtx(()=>{var n;return[!t.preview&&t.tip?(e.openBlock(),e.createBlock(e.unref(d.ElTooltip),{key:0,effect:"dark",content:o.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:e.withCtx(()=>[e.createVNode(e.unref(d.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(o3))]),_:1})]),_:1},8,["content"])):e.createCommentVNode("v-if",!0),(n=x.value)!=null&&n.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(x.value,(m,J)=>(e.openBlock(),e.createElementBlock("div",{class:"ik-error-flie-list",key:m.uid},[e.createElementVNode("div",l6,[e.createVNode(e.unref(d.ElIcon),{size:32,class:"info",style:{"vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(e.unref(r3))]),_:1}),e.createElementVNode("div",n6,[e.createElementVNode("p",c6,e.toDisplayString(m[s.name]||m.name),1),e.createElementVNode("p",a6,e.toDisplayString(e.unref(b)(m.size/1024/1024))+"MB ",1)])]),e.withDirectives(e.createElementVNode("div",s6,[e.createVNode(e.unref(d.ElIcon),{style:{"vertical-align":"middle"},onClick:x6=>y6(m,J),title:"重新上传",class:"primary"},{default:e.withCtx(()=>[e.createVNode(e.unref(n3))]),_:2},1032,["onClick"]),e.createVNode(e.unref(d.ElIcon),{class:"error",onClick:x6=>V6(m,J),title:"删除"},{default:e.withCtx(()=>[e.createVNode(e.unref(N))]),_:2},1032,["onClick"])],512),[[e.vShow,(m==null?void 0:m.status)==="fail"]])]))),128)):e.createCommentVNode("v-if",!0)]}),_:3},16,["file-list","accept","action","multiple","headers","limit"])):(e.openBlock(),e.createBlock(e.unref(d.ElUpload),e.mergeProps({key:1,"file-list":g.value,"onUpdate:fileList":r[1]||(r[1]=n=>g.value=n),class:"ik-file-pload-card"},a.$attrs,{accept:t.accept,action:t.action,ref_key:"refUpload",ref:h,"on-change":q,"before-upload":W,"before-remove":K,"on-exceed":X,multiple:t.multiple,headers:t.headers,limit:t.limit,"on-success":Y,"on-error":Q}),{file:e.withCtx(({file:n})=>[e.createElementVNode("div",d6,[e.createElementVNode("div",m6,[!a.$slots.fileIcon&&(!t.customIconData[e.unref(p)(n,s)]||!t.customIconData[e.unref(p)(n,s)][t.customIconFields.icon])?(e.openBlock(),e.createBlock(H,{key:0,type:e.unref(p)(n,s)},null,8,["type"])):!a.$slots.fileIcon&&t.customIconData[e.unref(p)(n,s)]&&t.customIconData[e.unref(p)(n,s)][t.customIconFields.icon]?(e.openBlock(),e.createElementBlock("div",p6,[t.customIconData[e.unref(p)(n,s)][t.customIconFields.type]==="img"?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.customIconData[e.unref(p)(n,s)][t.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,h6)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([t.customIconData[e.unref(p)(n,s)][t.customIconFields.icon],"file-icon-size"])},null,2))])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",f6,[e.renderSlot(a.$slots,"fileIcon",{file:n},void 0,!0)]),e.createElementVNode("div",_6,[e.createElementVNode("p",g6,[e.createTextVNode(e.toDisplayString(n[s.name]||n.name)+" ",1),n.percentage&&n.percentage!==100?(e.openBlock(),e.createElementBlock("span",k6,"("+e.toDisplayString(n.percentage)+"%)",1)):e.createCommentVNode("v-if",!0)]),n.percentage===100?(e.openBlock(),e.createElementBlock("p",u6,e.toDisplayString(e.unref(b)(n.size/1024/1024))+"MB ",1)):e.createCommentVNode("v-if",!0),n.percentage&&n.percentage!==100?(e.openBlock(),e.createBlock(e.unref(d.ElProgress),{key:1,"text-inside":"",percentage:n.percentage,color:"var(--el-color-primary)","striped-flow":"",striped:"","show-text":!1},null,8,["percentage"])):e.createCommentVNode("v-if",!0)])]),t.preview?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.preview||n.percentage===100?(e.openBlock(),e.createBlock(e.unref(d.ElIcon),{key:0,title:"预览",class:"primary"},{default:e.withCtx(()=>[e.createVNode(e.unref(M),{onClick:m=>Z(n)},null,8,["onClick"])]),_:2},1024)):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(d.ElIcon),{title:"下载",class:"primary"},{default:e.withCtx(()=>[e.createVNode(e.unref(D),{onClick:m=>G(n)},null,8,["onClick"])]),_:2},1024)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.status==="success"?(e.openBlock(),e.createBlock(e.unref(d.ElIcon),{key:0,title:"删除",class:"error"},{default:e.withCtx(()=>[e.createVNode(e.unref(N),{onClick:m=>C(n)},null,8,["onClick"])]),_:2},1024)):(e.openBlock(),e.createBlock(e.unref(d.ElIcon),{key:1,title:"取消上传"},{default:e.withCtx(()=>[e.createVNode(e.unref(S),{onClick:m=>C(n)},null,8,["onClick"])]),_:2},1024))],64))])]),default:e.withCtx(()=>[e.createElementVNode("div",i6,[e.createElementVNode("div",r6,[e.createVNode(e.unref(T),{name:"iksvg_yidong",bg:"",size:48}),e.createElementVNode("span",null,e.toDisplayString(t.title),1)]),e.createVNode(e.unref(T),{name:"iksvg_daoru",bg:"",size:40,padding:"8px"})])]),_:3},16,["file-list","accept","action","multiple","headers","limit"]))],64)),e.createVNode(T3,{visible:R.value,"onUpdate:visible":r[2]||(r[2]=n=>R.value=n),file:B.value,fileType:B.value&&e.unref(p)(B.value,s),defaultFields:s},null,8,["visible","file","fileType"]),(w=B.value)!=null&&w.url&&F.value?(e.openBlock(),e.createBlock(f,{key:1,onClose:r[3]||(r[3]=n=>(B.value=null,F.value=!1)),ref_key:"previewImgRef",ref:E,"url-list":[(y=B.value)==null?void 0:y.url]},null,8,["url-list"])):e.createCommentVNode("v-if",!0)],64)}}}),J6="",P6="",O=I(j3(w6,[["__scopeId","data-v-5bc2d189"]]));k.IkUploadFile=O,k.default=O,Object.defineProperties(k,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(k,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus"),require("iking-utils")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","iking-utils"],e):(k=typeof globalThis<"u"?globalThis:k||self,e(k.index={},k.Vue,k["element-plus"],k["iking-utils"]))})(this,function(k,e,d,z){"use strict";const I=(t,l)=>{if(t.install=o=>{for(const i of[t,...Object.values(l??{})])o.component(i.name,i)},l)for(const[o,i]of Object.entries(l))t[o]=i;return t};/*! Element Plus Icons Vue v2.3.1 */var P=e.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),S=P,v=e.defineComponent({name:"Delete",__name:"delete",setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),N=v,e3=e.defineComponent({name:"Download",__name:"download",setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),D=e3,t3=e.defineComponent({name:"QuestionFilled",__name:"question-filled",setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),o3=t3,l3=e.defineComponent({name:"Refresh",__name:"refresh",setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),n3=l3,c3=e.defineComponent({name:"Upload",__name:"upload",setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),a3=c3,s3=e.defineComponent({name:"View",__name:"view",setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),M=s3,i3=e.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(l,o)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),r3=i3;const d3={key:0,t:"1686300037564",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7515",width:"200",height:"200"},m3=[e.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#029EF7","p-id":"7516"},null,-1),e.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),e.createElementVNode("path",{d:"M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",fill:"#FFFFFF","p-id":"7518"},null,-1)],p3={key:1,t:"1686300059786",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7671",width:"200",height:"200"},h3=[e.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#50CD89","p-id":"7672"},null,-1),e.createElementVNode("path",{d:"M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",fill:"#FFF7F7","p-id":"7673"},null,-1),e.createElementVNode("path",{d:"M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",fill:"#FFFFFF","p-id":"7674"},null,-1),e.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)],f3={key:2,t:"1686301531714",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9067",width:"200",height:"200"},_3=[e.createElementVNode("path",{d:"M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",fill:"#FFA621","p-id":"9068"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"9069"},null,-1)],g3={key:3,t:"1686300141125",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8137",width:"200",height:"200"},k3=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",fill:"#F1416C","p-id":"8138"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8139"},null,-1)],u3={key:4,t:"1686300157181",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8292",width:"200",height:"200"},w3=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",fill:"#029EF7","p-id":"8293"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8294"},null,-1)],y3={key:5,t:"1686300180947",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8447",width:"200",height:"200"},B3=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",fill:"#F1416C","p-id":"8448"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8449"},null,-1)],V3={key:6,t:"1686300195363",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8602",width:"200",height:"200"},x3=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",fill:"#029EF7","p-id":"8603"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8604"},null,-1)],E3={key:7,t:"1686300209288",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8757",width:"200",height:"200"},C3=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",fill:"#FFA621","p-id":"8758"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8759"},null,-1)],z3={key:8,t:"1686300225262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8912",width:"200",height:"200"},N3=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",fill:"#FFA621","p-id":"8913"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8914"},null,-1)],$3={key:9,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},b3=[e.createElementVNode("path",{d:"M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",fill:"#00BD76","p-id":"4337"},null,-1),e.createElementVNode("path",{d:"M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",fill:"#FFFFFF",opacity:".9","p-id":"4338"},null,-1),e.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)],H=e.defineComponent({__name:"FileIcon",props:{type:{type:String,default:"unknow"}},setup(t){return(l,o)=>t.type==="unknow"?(e.openBlock(),e.createElementBlock("svg",d3,m3)):t.type==="image"?(e.openBlock(),e.createElementBlock("svg",p3,h3)):t.type==="zip"?(e.openBlock(),e.createElementBlock("svg",f3,_3)):t.type==="ppt"?(e.openBlock(),e.createElementBlock("svg",g3,k3)):t.type==="word"?(e.openBlock(),e.createElementBlock("svg",u3,w3)):t.type==="pdf"?(e.openBlock(),e.createElementBlock("svg",y3,B3)):t.type==="txt"?(e.openBlock(),e.createElementBlock("svg",V3,x3)):t.type==="audio"?(e.openBlock(),e.createElementBlock("svg",E3,C3)):t.type==="video"?(e.openBlock(),e.createElementBlock("svg",z3,N3)):t.type==="excal"?(e.openBlock(),e.createElementBlock("svg",$3,b3)):e.createCommentVNode("v-if",!0)}}),F3=typeof btoa=="function",$=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const U=typeof TextEncoder=="function"?new TextEncoder:void 0,I3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",V=Array.prototype.slice.call(I3);(t=>{let l={};return t.forEach((o,i)=>l[o]=i),l})(V);const u=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const S3=t=>t.replace(/=/g,"").replace(/[+\/]/g,l=>l=="+"?"-":"_"),A=F3?t=>btoa(t):$?t=>Buffer.from(t,"binary").toString("base64"):t=>{let l,o,i,c,s="";const _=t.length%3;for(let h=0;h<t.length;){if((o=t.charCodeAt(h++))>255||(i=t.charCodeAt(h++))>255||(c=t.charCodeAt(h++))>255)throw new TypeError("invalid character found");l=o<<16|i<<8|c,s+=V[l>>18&63]+V[l>>12&63]+V[l>>6&63]+V[l&63]}return _?s.slice(0,_-3)+"===".substring(_):s},D3=$?t=>Buffer.from(t).toString("base64"):t=>{let o=[];for(let i=0,c=t.length;i<c;i+=4096)o.push(u.apply(null,t.subarray(i,i+4096)));return A(o.join(""))},M3=t=>{if(t.length<2){var l=t.charCodeAt(0);return l<128?t:l<2048?u(192|l>>>6)+u(128|l&63):u(224|l>>>12&15)+u(128|l>>>6&63)+u(128|l&63)}else{var l=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return u(240|l>>>18&7)+u(128|l>>>12&63)+u(128|l>>>6&63)+u(128|l&63)}},H3=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,U3=t=>t.replace(H3,M3),L=$?t=>Buffer.from(t,"utf8").toString("base64"):U?t=>D3(U.encode(t)):t=>A(U3(t)),A3=(t,l=!1)=>l?S3(L(t)):L(t),L3=["src"],T3=e.defineComponent({__name:"IKPreviewFile",props:{modelValue:{type:Boolean,default:!1},kkUrl:{required:!0,type:String,default:""},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},fileName:{type:String,default:""}},setup(t){const l=t,o=e.ref(null),i=e.computed(()=>!l.kkUrl||!l.url?"":`${l.kkUrl}${encodeURIComponent(A3(`${l.loadUrl}${l.url}${l.fileName?`&fullfilename=${l.fileName}`:""}`))}`),c=e.ref(l.modelValue);return e.watch(()=>l.modelValue,s=>{c.value=s}),(s,_)=>(e.openBlock(),e.createBlock(e.unref(d.ElDialog),{fullscreen:"",modelValue:c.value,"onUpdate:modelValue":_[0]||(_[0]=h=>c.value=h),"destroy-on-close":"","append-to-body":"","modal-class":"ik-file-preview-modal",onClose:_[1]||(_[1]=h=>s.$emit("update:modelValue",!1)),class:"ik-file-preview"},{default:e.withCtx(()=>[e.createElementVNode("iframe",{ref_key:"freamRef",ref:o,"cross-origin":"",src:i.value,frameborder:"0",allowfullscreen:"",seamless:""},null,8,L3)]),_:1},8,["modelValue"]))}}),Z6="",j3=(t,l)=>{const o=t.__vccOpts||t;for(const[i,c]of l)o[i]=c;return o},O3={class:"inline-block ik-svg-icon ik-icon line-height-[0] inline-flex justify-center"},R3={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},q3=["xlink:href"],W3=["src"],K3={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},X3=["xlink:href"],Y3=["src"],T=I(e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},opacity:{default:.5},size:{default:""},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"0"},warning:{type:Boolean},notip:{type:Boolean,default:!1},title:{}},setup(t){const l=t,o=e.computed(()=>{var c;return/^http?:\/\//.test(l.name)?"img":/i-[^:]+:[^:]+/.test(l.name)?"unocss":l.name.startsWith("iksig")?"iksig":(c=l.name)!=null&&c.includes(":")?"iconify":"svg"}),i=e.computed(()=>{const c=[];if(l.flip)switch(l.flip){case"horizontal":c.push("rotateY(180deg)");break;case"vertical":c.push("rotateX(180deg)");break;case"both":c.push("rotateX(180deg)"),c.push("rotateY(180deg)");break}return l.rotate&&c.push(`rotate(${l.rotate%360}deg)`),{...l.color&&{color:l.color},...l.size&&{fontSize:typeof l.size=="number"?`${l.size}px`:l.size},...c.length&&{transform:c.join(" ")},padding:l.padding,...l.color&&o.value!=="iksig"?{"--ik-color-icon-dark":l.color,"--ik-color-icon-light":z.ikColor.setOpacity(l.color,l.opacity||.4)}:{}}});return(c,s)=>{const _=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("span",O3,[c.notip||!c.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition",{[c.name]:o.value==="unocss","show-bg":c.showBg||c.bg,default:c.size==="default",small:c.size==="small",big:c.size==="big",warning:c.warning}]),style:e.normalizeStyle(i.value)},[o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${c.name}`),style:e.normalizeStyle(i.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",R3,[e.createElementVNode("use",{"xlink:href":`#${c.name}`},null,8,q3)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:c.name,class:"h-[1em] w-[1em]"},null,8,W3)):e.createCommentVNode("v-if",!0)],6)):(e.openBlock(),e.createBlock(_,{key:1,content:c.title},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition",{[c.name]:o.value==="unocss","show-bg":c.showBg||c.bg,default:c.size==="default",small:c.size==="small",big:c.size==="big",warning:c.warning}]),style:e.normalizeStyle(i.value)},[o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${c.name}`),style:e.normalizeStyle(i.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",K3,[e.createElementVNode("use",{"xlink:href":`#${c.name}`},null,8,X3)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:c.name,class:"h-[1em] w-[1em]"},null,8,Y3)):e.createCommentVNode("v-if",!0)],6)]),_:1},8,["content"]))])}}})),b=t=>t%1===0?t.toString():t.toFixed(2),p=(t,l)=>{var c,s,_,h,E;const o=(c=t==null?void 0:t.response)!=null&&c.data?j((_=(s=t==null?void 0:t.response)==null?void 0:s.data)==null?void 0:_.suffix):((h=t.raw)==null?void 0:h.type)||j(t[l.suffix]),i=((E=t.raw)==null?void 0:E.name)||t[l.name];return o!=null&&o.includes("sheet")||o==="excal"?"excal":o!=null&&o.includes("zip")||o==="zip"||o==="application/x-compressed"?"zip":o!=null&&o.includes("image")||o==="image"?"image":o!=null&&o.includes("video")||o==="video"?"video":o!=null&&o.includes("audio")||o==="audio"?"audio":o!=null&&o.includes("pdf")||o==="pdf"?"pdf":o!=null&&o.includes("text")||o==="txt"?"txt":o!=null&&o.includes("word")||o==="word"?"word":i!=null&&i.includes("ppt")||o==="ppt"?"ppt":"unknow"},j=t=>{const l=t==null?void 0:t.toLocaleLowerCase();switch(l!=null&&l.startsWith(".")?l:`.${l}`){case".doc":case".docx":case".docxf":case".docm":case".dot":case".dotm":case".dotx":case".epub":case".fodt":case".htm":case".html":case".mht":case".odt":case".ott":case".rtf":case".txt":case".djvu":case".oxps":case".oform":case".fb2":case".xml":case".xps":return"word";case".csv":case".xls":case".xlsx":case".fods":case".ods":case".ots":case".xlsb":case".xlsm":case".xlt":case".xltm":case".xltx":return"excal";case".fodp":case".odp":case".otp":case".pot":case".potm":case".potx":case".pps":case".ppsm":case".ppsx":case".ppt":case".pptm":case".pptx":return"ppt";case".zip":case".rar":case".7z":case".apz":case".ar":case".bz":case".car":case".dar":case".cpgz":case".f":case".ha":case".hbc":case".hbc2":case".hbe":case".hpk":case".hyp":return"zip";case".png":case".jpg":case".jpeg":case".bmp":case".gif":case".webp":case".psd":case".svg":case".tiff":return"image";case".avi":case".wmv":case".mpeg":case".mp4":case".mpm4v":case".mov":case".asf":case".flv":case".f4v":case".rmvb":case".rm":case".3gp":case".vob":return"video";case"audio":return"audio";case".txt":return"txt";case".pdf":return"pdf";case t:case"":return"unknow"}},Q3={class:"ik-flie-list"},Z3={class:"name"},G3={key:1},J3=["src"],P3={class:"file-icon"},v3={class:"file-name-loading"},e6={class:"file-name"},t6={key:0},o6={key:0,class:"file-size"},l6={class:"name"},n6={class:"file-name-loading"},c6={class:"file-name"},a6={class:"file-size"},s6={class:"operate-btn"},i6={class:"card"},r6={class:"title"},d6={class:"ik-flie-list"},m6={class:"name"},p6={key:1},h6=["src"],f6={class:"file-icon"},_6={class:"file-name-loading"},g6={class:"file-name"},k6={key:0},u6={key:0,class:"file-size"},w6=e.defineComponent({__name:"index",props:{title:{type:String,default:"上传文件"},action:{type:String,default:""},type:{type:String,default:"button"},headers:{type:Object,default:()=>({})},loadUrl:{type:String,default:""},limit:{type:Number,default:1},size:{type:Number,default:50},accept:{type:String,default:"*"},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""},limitText:{type:String,default:""},modelValue:{type:Array,default:()=>[]},defaultFileds:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})},preview:{type:Boolean,default:!1},customIconData:{type:Object,default:()=>({})},customIconFields:{type:Object,default:()=>({type:"type",icon:"icon"})},onlinePreviewUrl:{type:String,default:""}},emits:["delete","exceed","success","error","outSize"],setup(t,{emit:l}){const o=t,i=l,s={...{name:"name",url:"url",suffix:"suffix"},...o.defaultFileds},_=e.computed(()=>o.size),h=e.ref(null),E=e.ref(null),g=e.ref(o.modelValue);e.watch(()=>o.modelValue,a=>{g.value=a},{deep:!0});const x=e.ref([]),R=e.ref(!1),F=e.ref(!1),B=e.ref(null),q=(a,r)=>{g.value=z._.cloneDeep(r)},W=a=>{const r=a.size/1024/1024;if(!(r<_.value)){i("outSize"),d.ElMessage({message:`上传文件大小(${r.toFixed(4)}MB)超出允许最大值(${o.size}MB),请重新选择`,type:"warning",showClose:!0,duration:5e3});const w=g.value.findIndex(y=>y.uid===a.uid);return g.value.splice(w,1),!1}return!0},K=()=>!1,y6=(a,r)=>{var f,w;a.status="ready",r!==void 0&&x.value.splice(r,1),(f=h.value)==null||f.handleStart(a.raw),(w=h.value)==null||w.submit()},X=(a,r)=>{var n,m;const f=g.value.length,w=o.limit-f;let y=0;for(;y<w&&y<a.length;)(n=h.value)==null||n.handleStart(a[y]),(m=h.value)==null||m.submit(),y++;d.ElMessage({message:(o==null?void 0:o.limitText)||`最大可上传${o.limit}个文件,已忽略超出文件`,type:"warning",showClose:!0,duration:5e3}),i("exceed",a)},Y=(a,r,f)=>{i("success",a,r,f)},Q=(a,r,f)=>{x.value.push(r),i("error",a,r,f)},Z=a=>{a&&p(a,s)==="video"||a&&p(a,s)==="image"?(B.value={...a,url:a[s.url].startsWith("http")?a[s.url]:`${o.loadUrl}${a[s.url]}`},F.value=!0):window.open(o.loadUrl+a[s.url])},G=a=>{z.ikFile.downloadByOnlineUrl(a[s.url],a[s.name])},B6=(a,r=!1)=>{var f;(f=h.value)==null||f.abort(a)},C=a=>{var r;a.status!=="success"&&B6(a),(r=h.value)==null||r.handleRemove(a),g.value=g.value.filter(f=>f.uid!==a.uid),i("delete",a)},V6=(a,r)=>{x.value.splice(r,1)};return(a,r)=>{var w,y;const f=e.resolveComponent("el-image-viewer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[t.preview?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.type==="button"?(e.openBlock(),e.createBlock(e.unref(d.ElUpload),e.mergeProps({key:0,"file-list":g.value,"onUpdate:fileList":r[0]||(r[0]=n=>g.value=n),class:"ik-file-upload"},a.$attrs,{accept:t.accept,action:t.action,ref_key:"refUpload",ref:h,"on-change":q,"before-upload":W,"before-remove":K,"on-exceed":X,multiple:t.multiple,headers:t.headers,limit:t.limit,"on-success":Y,"on-error":Q}),{trigger:e.withCtx(()=>[a.$slots.trigger?e.renderSlot(a.$slots,"trigger",{key:0},void 0,!0):(e.openBlock(),e.createBlock(e.unref(d.ElButton),{key:1,type:"primary",disabled:g.value.length===t.limit,icon:e.unref(a3)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1},8,["disabled","icon"]))]),file:e.withCtx(({file:n})=>[e.createElementVNode("div",Q3,[e.createElementVNode("div",Z3,[!a.$slots.fileIcon&&(!t.customIconData[e.unref(p)(n,s)]||!t.customIconData[e.unref(p)(n,s)][t.customIconFields.icon])?(e.openBlock(),e.createBlock(H,{key:0,type:e.unref(p)(n,s)},null,8,["type"])):!a.$slots.fileIcon&&t.customIconData[e.unref(p)(n,s)]&&t.customIconData[e.unref(p)(n,s)][t.customIconFields.icon]?(e.openBlock(),e.createElementBlock("div",G3,[t.customIconData[e.unref(p)(n,s)][t.customIconFields.type]==="img"?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.customIconData[e.unref(p)(n,s)][t.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,J3)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([t.customIconData[e.unref(p)(n,s)][t.customIconFields.icon],"file-icon-size"])},null,2))])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",P3,[e.renderSlot(a.$slots,"fileIcon",{file:n},void 0,!0)]),e.createElementVNode("div",v3,[e.createElementVNode("p",e6,[e.createTextVNode(e.toDisplayString(n[s.name]||n.name)+" ",1),n.percentage&&n.percentage!==100?(e.openBlock(),e.createElementBlock("span",t6,"("+e.toDisplayString(n.percentage)+"%)",1)):e.createCommentVNode("v-if",!0)]),n.percentage===100?(e.openBlock(),e.createElementBlock("p",o6,e.toDisplayString(e.unref(b)(n.size/1024/1024))+"MB ",1)):e.createCommentVNode("v-if",!0),n.percentage&&n.percentage!==100?(e.openBlock(),e.createBlock(e.unref(d.ElProgress),{key:1,"text-inside":"",percentage:n.percentage,color:"var(--el-color-primary)","striped-flow":"",striped:"","show-text":!1},null,8,["percentage"])):e.createCommentVNode("v-if",!0)])]),t.preview?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.preview||n.percentage===100?(e.openBlock(),e.createBlock(e.unref(d.ElIcon),{key:0,title:"预览",class:"primary"},{default:e.withCtx(()=>[e.createVNode(e.unref(M),{onClick:m=>Z(n)},null,8,["onClick"])]),_:2},1024)):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(d.ElIcon),{title:"下载",class:"primary"},{default:e.withCtx(()=>[e.createVNode(e.unref(D),{onClick:m=>G(n)},null,8,["onClick"])]),_:2},1024)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.status==="success"?(e.openBlock(),e.createBlock(e.unref(d.ElIcon),{key:0,title:"删除",class:"error"},{default:e.withCtx(()=>[e.createVNode(e.unref(N),{onClick:m=>C(n)},null,8,["onClick"])]),_:2},1024)):(e.openBlock(),e.createBlock(e.unref(d.ElIcon),{key:1,title:"取消上传"},{default:e.withCtx(()=>[e.createVNode(e.unref(S),{onClick:m=>C(n)},null,8,["onClick"])]),_:2},1024))],64))])]),default:e.withCtx(()=>{var n;return[!t.preview&&t.tip?(e.openBlock(),e.createBlock(e.unref(d.ElTooltip),{key:0,effect:"dark",content:o.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:e.withCtx(()=>[e.createVNode(e.unref(d.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(o3))]),_:1})]),_:1},8,["content"])):e.createCommentVNode("v-if",!0),(n=x.value)!=null&&n.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(x.value,(m,J)=>(e.openBlock(),e.createElementBlock("div",{class:"ik-error-flie-list",key:m.uid},[e.createElementVNode("div",l6,[e.createVNode(e.unref(d.ElIcon),{size:32,class:"info",style:{"vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(e.unref(r3))]),_:1}),e.createElementVNode("div",n6,[e.createElementVNode("p",c6,e.toDisplayString(m[s.name]||m.name),1),e.createElementVNode("p",a6,e.toDisplayString(e.unref(b)(m.size/1024/1024))+"MB ",1)])]),e.withDirectives(e.createElementVNode("div",s6,[e.createVNode(e.unref(d.ElIcon),{style:{"vertical-align":"middle"},onClick:x6=>y6(m,J),title:"重新上传",class:"primary"},{default:e.withCtx(()=>[e.createVNode(e.unref(n3))]),_:2},1032,["onClick"]),e.createVNode(e.unref(d.ElIcon),{class:"error",onClick:x6=>V6(m,J),title:"删除"},{default:e.withCtx(()=>[e.createVNode(e.unref(N))]),_:2},1032,["onClick"])],512),[[e.vShow,(m==null?void 0:m.status)==="fail"]])]))),128)):e.createCommentVNode("v-if",!0)]}),_:3},16,["file-list","accept","action","multiple","headers","limit"])):(e.openBlock(),e.createBlock(e.unref(d.ElUpload),e.mergeProps({key:1,"file-list":g.value,"onUpdate:fileList":r[1]||(r[1]=n=>g.value=n),class:"ik-file-pload-card"},a.$attrs,{accept:t.accept,action:t.action,ref_key:"refUpload",ref:h,"on-change":q,"before-upload":W,"before-remove":K,"on-exceed":X,multiple:t.multiple,headers:t.headers,limit:t.limit,"on-success":Y,"on-error":Q}),{file:e.withCtx(({file:n})=>[e.createElementVNode("div",d6,[e.createElementVNode("div",m6,[!a.$slots.fileIcon&&(!t.customIconData[e.unref(p)(n,s)]||!t.customIconData[e.unref(p)(n,s)][t.customIconFields.icon])?(e.openBlock(),e.createBlock(H,{key:0,type:e.unref(p)(n,s)},null,8,["type"])):!a.$slots.fileIcon&&t.customIconData[e.unref(p)(n,s)]&&t.customIconData[e.unref(p)(n,s)][t.customIconFields.icon]?(e.openBlock(),e.createElementBlock("div",p6,[t.customIconData[e.unref(p)(n,s)][t.customIconFields.type]==="img"?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.customIconData[e.unref(p)(n,s)][t.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,h6)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([t.customIconData[e.unref(p)(n,s)][t.customIconFields.icon],"file-icon-size"])},null,2))])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",f6,[e.renderSlot(a.$slots,"fileIcon",{file:n},void 0,!0)]),e.createElementVNode("div",_6,[e.createElementVNode("p",g6,[e.createTextVNode(e.toDisplayString(n[s.name]||n.name)+" ",1),n.percentage&&n.percentage!==100?(e.openBlock(),e.createElementBlock("span",k6,"("+e.toDisplayString(n.percentage)+"%)",1)):e.createCommentVNode("v-if",!0)]),n.percentage===100?(e.openBlock(),e.createElementBlock("p",u6,e.toDisplayString(e.unref(b)(n.size/1024/1024))+"MB ",1)):e.createCommentVNode("v-if",!0),n.percentage&&n.percentage!==100?(e.openBlock(),e.createBlock(e.unref(d.ElProgress),{key:1,"text-inside":"",percentage:n.percentage,color:"var(--el-color-primary)","striped-flow":"",striped:"","show-text":!1},null,8,["percentage"])):e.createCommentVNode("v-if",!0)])]),t.preview?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.preview||n.percentage===100?(e.openBlock(),e.createBlock(e.unref(d.ElIcon),{key:0,title:"预览",class:"primary"},{default:e.withCtx(()=>[e.createVNode(e.unref(M),{onClick:m=>Z(n)},null,8,["onClick"])]),_:2},1024)):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(d.ElIcon),{title:"下载",class:"primary"},{default:e.withCtx(()=>[e.createVNode(e.unref(D),{onClick:m=>G(n)},null,8,["onClick"])]),_:2},1024)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.status==="success"?(e.openBlock(),e.createBlock(e.unref(d.ElIcon),{key:0,title:"删除",class:"error"},{default:e.withCtx(()=>[e.createVNode(e.unref(N),{onClick:m=>C(n)},null,8,["onClick"])]),_:2},1024)):(e.openBlock(),e.createBlock(e.unref(d.ElIcon),{key:1,title:"取消上传"},{default:e.withCtx(()=>[e.createVNode(e.unref(S),{onClick:m=>C(n)},null,8,["onClick"])]),_:2},1024))],64))])]),default:e.withCtx(()=>[e.createElementVNode("div",i6,[e.createElementVNode("div",r6,[e.createVNode(e.unref(T),{name:"iksvg_yidong",bg:"",size:40}),e.createElementVNode("span",null,e.toDisplayString(t.title),1)]),e.createVNode(e.unref(T),{name:"iksvg_daoru",bg:"",size:40,padding:"8px"})])]),_:3},16,["file-list","accept","action","multiple","headers","limit"]))],64)),e.createVNode(T3,{visible:R.value,"onUpdate:visible":r[2]||(r[2]=n=>R.value=n),file:B.value,fileType:B.value&&e.unref(p)(B.value,s),defaultFields:s},null,8,["visible","file","fileType"]),(w=B.value)!=null&&w.url&&F.value?(e.openBlock(),e.createBlock(f,{key:1,onClose:r[3]||(r[3]=n=>(B.value=null,F.value=!1)),ref_key:"previewImgRef",ref:E,"url-list":[(y=B.value)==null?void 0:y.url]},null,8,["url-list"])):e.createCommentVNode("v-if",!0)],64)}}}),J6="",P6="",O=I(j3(w6,[["__scopeId","data-v-17747b77"]]));k.IkUploadFile=O,k.default=O,Object.defineProperties(k,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ik-file-preview-modal{z-index:9000!important}.ik-file-preview.el-dialog{width:100vw;height:100vh;margin:0;background:transparent}.ik-file-preview.el-dialog .el-dialog__header{position:absolute;right:-13px;top:-5px;padding:0;background-color:transparent}.ik-file-preview.el-dialog .el-dialog__header .el-dialog__headerbtn{font-size:30px}.ik-file-preview.el-dialog .el-dialog__header .el-dialog__headerbtn .el-dialog__close{color:var(--el-color-primary-light-9);transition:all .25s linear}.ik-file-preview.el-dialog .el-dialog__header .el-dialog__headerbtn .el-dialog__close:hover{color:var(--el-color-danger);transform:rotate(90deg)}.ik-file-preview.el-dialog .el-dialog__body{width:100%;height:100%;max-height:100%;padding:0;overflow:hidden}.ik-file-preview.el-dialog .el-dialog__body iframe{border-width:0;width:calc(100% - 40px);height:calc(100% - 40px);padding:20px;margin:20px;box-sizing:border-box}.ik-file-preview.el-dialog .el-dialog__body iframe .viewer-open,.ik-file-preview.el-dialog .el-dialog__body iframe body{background-color:transparent}.ik-file-preview.el-dialog .el-dialog__body iframe body iframe{border-radius:4px}._ik_web_ui_file-help-tooltip{z-index:9999!important}.tip[data-v-
|
|
1
|
+
.ik-file-preview-modal{z-index:9000!important}.ik-file-preview.el-dialog{width:100vw;height:100vh;margin:0;background:transparent}.ik-file-preview.el-dialog .el-dialog__header{position:absolute;right:-13px;top:-5px;padding:0;background-color:transparent}.ik-file-preview.el-dialog .el-dialog__header .el-dialog__headerbtn{font-size:30px}.ik-file-preview.el-dialog .el-dialog__header .el-dialog__headerbtn .el-dialog__close{color:var(--el-color-primary-light-9);transition:all .25s linear}.ik-file-preview.el-dialog .el-dialog__header .el-dialog__headerbtn .el-dialog__close:hover{color:var(--el-color-danger);transform:rotate(90deg)}.ik-file-preview.el-dialog .el-dialog__body{width:100%;height:100%;max-height:100%;padding:0;overflow:hidden}.ik-file-preview.el-dialog .el-dialog__body iframe{border-width:0;width:calc(100% - 40px);height:calc(100% - 40px);padding:20px;margin:20px;box-sizing:border-box}.ik-file-preview.el-dialog .el-dialog__body iframe .viewer-open,.ik-file-preview.el-dialog .el-dialog__body iframe body{background-color:transparent}.ik-file-preview.el-dialog .el-dialog__body iframe body iframe{border-radius:4px}._ik_web_ui_file-help-tooltip{z-index:9999!important}.tip[data-v-17747b77]{margin-left:15px}.ik-flie-list[data-v-17747b77]{display:flex;align-items:center;font-size:12px;background-color:var(--ik-color-bg-page, #f5f8fa);padding:8px 20px;justify-content:space-between;border-radius:6px;cursor:pointer}.ik-flie-list[data-v-17747b77]:hover{background-color:var(--ik-menu-active-bg, #eaeef2)}.ik-flie-list i[data-v-17747b77]{font-size:18px}.ik-flie-list .file-img-icon[data-v-17747b77]{width:28px;height:32px;border-radius:4px;margin-right:4px;position:relative;top:2px}.ik-flie-list .file-icon-size[data-v-17747b77]{font-size:28px}.ik-flie-list .file-icon[data-v-17747b77]{display:inline}.ik-flie-list .file-icon[data-v-17747b77]:empty{display:none}.ik-flie-list .name[data-v-17747b77]{display:flex;align-items:center;flex:1}.ik-flie-list .name .file-name-loading[data-v-17747b77]{margin-left:10px;position:relative;flex:1;margin-right:20px}.ik-flie-list .name .file-name-loading p[data-v-17747b77]:first-child{margin-bottom:2px}.ik-flie-list .name .file-name-loading[data-v-17747b77] .el-progress{top:-15px}.ik-flie-list .name .file-name-loading[data-v-17747b77] .el-progress .el-progress-bar .el-progress-bar__outer{height:48px!important;border-radius:0!important;opacity:.4}.ik-flie-list .name .file-name-loading[data-v-17747b77] .el-progress .el-progress-bar .el-progress-bar__outer .el-progress-bar__inner{border-radius:0}.ik-flie-list svg[data-v-17747b77]{width:32px;height:32px}.error[data-v-17747b77]{margin-left:10px;vertical-align:middle}.error[data-v-17747b77]:hover{color:var(--el-color-error)}.primary[data-v-17747b77]:hover{color:var(--el-color-primary)!important;cursor:pointer}.error[data-v-17747b77]:hover{color:var(--ik-error, #f1416c);cursor:pointer}.ik-error-flie-list[data-v-17747b77]{display:flex;align-items:center;font-size:12px;padding:8px 20px;justify-content:space-between;border-radius:6px;background:var(--el-color-error-light-8)!important;margin:5px 0}.ik-error-flie-list .name[data-v-17747b77]{display:flex;align-items:center;flex:1}.ik-error-flie-list .name .file-name-loading[data-v-17747b77]{margin-left:10px;position:relative;flex:1;margin-right:20px}.ik-error-flie-list .name .file-name-loading p[data-v-17747b77]:first-child{margin-bottom:2px}.ik-error-flie-list i[data-v-17747b77]{font-size:18px}.ik-error-flie-list .info[data-v-17747b77]{color:var(--ik-error, #f1416c)}.ik-file-upload.preview[data-v-17747b77] .el-upload{display:none}.ik-file-upload .el-icon[data-v-17747b77]{margin-left:8px;color:var(--el-color-info)}.ik-file-upload .el-icon[data-v-17747b77]:hover{color:var(--el-color-primary, #409eff)}.ik-file-upload .el-icon._ik_web_ui_file_help_icon[data-v-17747b77]{top:5px}.ik-file-upload p[data-v-17747b77]{margin:0;padding:0}.ik-file-pload-card[data-v-17747b77]{background-color:var(--ik-color-bg-page);padding:var(--ik-margin-m-24) var(--ik-margin-s-20);display:flex;border-radius:var(--ik-border-radius-l);flex-direction:column;border:1px solid transparent;transition:all .25s}.ik-file-pload-card[data-v-17747b77]:hover{--ik-color-icon-dark: var(--ik-color-tag-primary);--ik-color-icon-light: var(--ik-color-icon-light-hover);background-color:var(--ik-color-bg-page-content);border:1px solid var(--ik-theme-color)}.ik-file-pload-card:hover .ik-flie-list[data-v-17747b77]{background-color:var(--ik-color-bg-page)}.ik-file-pload-card[data-v-17747b77] .el-upload{width:100%}.ik-file-pload-card[data-v-17747b77] .el-upload .card{width:100%;display:flex;justify-content:space-between;align-items:center}.ik-file-pload-card[data-v-17747b77] .el-upload .card .title{display:flex;align-items:center;font-size:var(--ik-font-size-t5)}.ik-file-pload-card[data-v-17747b77] .el-upload .card .title span{padding-left:8px}.ik-file-pload-card .ik-flie-list[data-v-17747b77]{padding:var(--ik-margin-s-20);background-color:var(--ik-color-bg-page-content);margin-top:var(--ik-margin-s-16);transition:background-color .25s;will-change:background-color}.ik-file-pload-card .ik-flie-list[data-v-17747b77]:hover{background-color:var(--ik-color-bg-button-secondary-hover)}
|
package/dist/index.es.js
CHANGED
|
@@ -13355,7 +13355,7 @@ const n7 = De(iu), l_ = {
|
|
|
13355
13355
|
A(w(Ve), {
|
|
13356
13356
|
name: "iksvg_yidong",
|
|
13357
13357
|
bg: "",
|
|
13358
|
-
size:
|
|
13358
|
+
size: 40
|
|
13359
13359
|
}),
|
|
13360
13360
|
y(
|
|
13361
13361
|
"span",
|
|
@@ -13401,7 +13401,7 @@ const n7 = De(iu), l_ = {
|
|
|
13401
13401
|
};
|
|
13402
13402
|
}
|
|
13403
13403
|
});
|
|
13404
|
-
const b2 = /* @__PURE__ */ re(y2, [["__scopeId", "data-v-
|
|
13404
|
+
const b2 = /* @__PURE__ */ re(y2, [["__scopeId", "data-v-17747b77"]]), i7 = De(b2), w2 = {}, A2 = {
|
|
13405
13405
|
t: "1686214149488",
|
|
13406
13406
|
class: "icon",
|
|
13407
13407
|
viewBox: "0 0 1024 1024",
|