iking-web-ui-pro 0.2.5 → 0.2.6
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/dist/IKDetailPreviewFiles/ik.index.es.js +409 -406
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKDetailPreviewFiles/style.css +1 -1
- package/dist/IKExpandCollapse/ik.index.es.js +123 -120
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +358 -355
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +142 -139
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +564 -561
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +125 -122
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +252 -249
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +129 -126
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +357 -354
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +196 -193
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +397 -394
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1122 -1119
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +293 -290
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +968 -965
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +148 -145
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +106 -103
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +530 -526
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +269 -266
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/Provider/ik.index.es.js +50 -46
- package/dist/Provider/ik.index.umd.js +5 -5
- package/dist/index.es.js +7052 -7044
- package/dist/index.umd.js +36 -36
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +9 -0
- package/dist/src/components/Provider/index.d.ts +19 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(h,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","iking-utils-pro"],e):(h=typeof globalThis<"u"?globalThis:h||self,e(h.index={},h.vue,h["element-plus"],h["iking-utils-pro"]))})(this,function(h,e,m,w){"use strict";const C=(n,o)=>{if(n.install=r=>{for(const i of[n,...Object.values(o??{})])r.component(i.name,i)},o)for(const[r,i]of Object.entries(o))n[r]=i;return n};/*! Element Plus Icons Vue v2.3.1 */var S=e.defineComponent({name:"Close",__name:"close",setup(n){return(o,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),I=S,L=e.defineComponent({name:"Delete",__name:"delete",setup(n){return(o,r)=>(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"})]))}}),M=L,x=e.defineComponent({name:"Download",__name:"download",setup(n){return(o,r)=>(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"})]))}}),U=x,j=e.defineComponent({name:"Refresh",__name:"refresh",setup(n){return(o,r)=>(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"})]))}}),D=j,T=e.defineComponent({name:"ZoomIn",__name:"zoom-in",setup(n){return(o,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),O=T;const B=(n,o)=>{const r=n.__vccOpts||n;for(const[i,t]of o)r[i]=t;return r},A={},H={t:"1686214149488",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8490",width:"200",height:"200"},F=[e.createElementVNode("path",{d:"M369.569592 512.011256c0-14.328333-11.010775-25.945929-24.591071-25.945929L86.980515 486.065328c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.998005 0C358.55984 537.959232 369.569592 526.341636 369.569592 512.011256z","p-id":"8491"},null,-1),e.createElementVNode("path",{d:"M937.019485 486.064304 679.020456 486.064304c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.999029 0c13.580297 0 24.590048-11.618619 24.590048-25.947975C961.609533 497.682923 950.598758 486.064304 937.019485 486.064304z","p-id":"8492"},null,-1),e.createElementVNode("path",{d:"M512.011768 62.389956c-13.580297 0-24.590048 11.618619-24.590048 25.945929l0 257.170151c0 14.329357 11.010775 25.946952 24.590048 25.946952s24.591071-11.618619 24.591071-25.946952L536.602839 88.335884C536.602839 74.008574 525.591041 62.389956 512.011768 62.389956z","p-id":"8493"},null,-1),e.createElementVNode("path",{d:"M512.011768 652.544967c-13.580297 0-24.590048 11.618619-24.590048 25.946952l0 257.169127c0 14.33038 11.010775 25.947975 24.590048 25.947975s24.591071-11.618619 24.591071-25.947975L536.602839 678.491918C536.602839 664.162562 525.591041 652.544967 512.011768 652.544967z","p-id":"8494"},null,-1),e.createElementVNode("path",{d:"M377.001865 413.125085c4.744048 4.737908 10.818393 7.082302 16.882506 7.082302 6.519484 0 13.039991-2.724041 17.879206-8.134261 9.317203-10.414187 8.885368-26.834158-0.9967-36.678364L228.341057 193.559391c-9.832949-9.830903-25.406646-9.388834-34.760688 1.050935-9.317203 10.414187-8.885368 26.834158 0.9967 36.678364L377.001865 413.125085z","p-id":"8495"},null,-1),e.createElementVNode("path",{d:"M646.997112 610.873892c-9.846252-9.831926-25.419949-9.388834-34.761712 1.051959-9.317203 10.414187-8.885368 26.834158 0.997724 36.678364l182.41354 181.834348c4.743024 4.738931 10.818393 7.083326 16.881482 7.083326 6.520507 0 13.039991-2.723018 17.879206-8.134261 9.317203-10.41521 8.886391-26.834158-0.9967-36.678364L646.997112 610.873892z","p-id":"8496"},null,-1),e.createElementVNode("path",{d:"M630.114606 420.207387c6.064113 0 12.139481-2.344395 16.882506-7.082302l182.425819-181.836395c9.882068-9.844206 10.313903-26.264177 0.9967-36.678364-9.341762-10.43977-24.915459-10.882861-34.760688-1.050935L613.233124 375.394762c-9.882068 9.844206-10.314926 26.264177-0.997724 36.678364C617.074615 417.483346 623.595123 420.207387 630.114606 420.207387z","p-id":"8497"},null,-1),e.createElementVNode("path",{d:"M377.025401 610.873892 194.600605 792.710286c-9.881045 9.844206-10.313903 26.263154-0.9967 36.678364 4.839215 5.411243 11.358699 8.134261 17.879206 8.134261 6.064113 0 12.138458-2.344395 16.881482-7.083326l182.425819-181.834348c9.881045-9.844206 10.313903-26.264177 0.9967-36.678364C402.469909 601.485057 386.872676 601.041966 377.025401 610.873892z","p-id":"8498"},null,-1)];function W(n,o){return e.openBlock(),e.createElementBlock("svg",H,F)}const R=B(A,[["render",W]]),q=n=>{const o=e.inject("loadUrl"),r=e.computed(()=>n.loadUrl||(o==null?void 0:o.value)),i=e.inject("uploadUrl"),t=e.computed(()=>n.action||n.uploadUrl||(i==null?void 0:i.value)),d=e.inject("token"),u=e.computed(()=>n.token||(d==null?void 0:d.value)),g=e.inject("onlyofficeConfig"),V=e.computed(()=>n.onlyofficeConfig||(g==null?void 0:g.value)),f=e.inject("userInfo"),p=e.computed(()=>n.userInfo||(f==null?void 0:f.value));return{cLoadUrl:r,cUploadUrl:t,cToken:u,cOnlyofficeConfig:V,cUserInfo:p}},G={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},J={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},X=["xlink:href"],Y=["src"],Z={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},K=["xlink:href"],Q=["src"],P=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{default:"icon"}},setup(n){const o=n,r=e.computed(()=>{var t,d,u;return/^http?:\/\//.test(o.name)?"img":/i-[^:]+:[^:]+/.test(o.name)?"unocss":(t=o.name)!=null&&t.startsWith("iksig")?"iksig":(d=o.name)!=null&&d.includes(":")?"iconify":(u=o.name)!=null&&u.startsWith("iksvg")?"svg":"i"}),i=e.computed(()=>{const t=[];if(o.flip)switch(o.flip){case"horizontal":t.push("rotateY(180deg)");break;case"vertical":t.push("rotateX(180deg)");break;case"both":t.push("rotateX(180deg)"),t.push("rotateY(180deg)");break}o.rotate&&t.push(`rotate(${o.rotate%360}deg)`);const d={...o.color&&{color:o.color},...o.size&&{fontSize:typeof o.size=="number"?`${o.size}px`:o.size},...t.length&&{transform:t.join(" ")},padding:o.showBg||o.bg?o.padding:0,...o.color&&r.value!=="iksig"?{"--ik-color-icon-dark":o.color,"--ik-color-icon-light":o.colorLight||w.ikColor.setOpacity(o.color,o.opacity)}:{}};return o.width&&(d.width=d.height=typeof o.width=="number"?`${o.width}px`:o.width),d});return(t,d)=>{const u=e.resolveComponent("el-tooltip"),g=e.resolveComponent("el-button");return t.tableIconType==="icon"?(e.openBlock(),e.createElementBlock("span",G,[t.notip||!t.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[t.name]:r.value==="unocss","show-bg":t.showBg||t.bg,default:t.size==="default",small:t.size==="small",big:t.size==="big",warning:t.warning||o.type==="warning",primary:t.primary||o.type==="primary",success:t.success||o.type==="success",error:t.error||o.type==="error",active:t.active,disabled:t.disabled}]),style:e.normalizeStyle(i.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),r.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.name}`),style:e.normalizeStyle(i.value)},null,6)):r.value==="svg"?(e.openBlock(),e.createElementBlock("svg",J,[e.createElementVNode("use",{"xlink:href":`#${t.name}`},null,8,X)])):r.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.name,class:"h-[1em] w-[1em]"},null,8,Y)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.name),style:e.normalizeStyle(i.value)},null,6))],6)):(e.openBlock(),e.createBlock(u,{key:1,content:t.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[t.name]:r.value==="unocss","show-bg":t.showBg||t.bg,default:t.size==="default",small:t.size==="small",big:t.size==="big",warning:t.warning||o.type==="warning",primary:t.primary||o.type==="primary",success:t.success||o.type==="success",error:t.error||o.type==="error",active:t.active}]),style:e.normalizeStyle(i.value)},[r.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.name}`),style:e.normalizeStyle(i.value)},null,6)):r.value==="svg"?(e.openBlock(),e.createElementBlock("svg",Z,[e.createElementVNode("use",{"xlink:href":`#${t.name}`},null,8,K)])):r.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.name,class:"h-[1em] w-[1em]"},null,8,Q)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.name),style:e.normalizeStyle(i.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(g,{key:1,type:["warning","error"].includes(t.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1},8,["type"]))}}}),je="",v=C(B(P,[["__scopeId","data-v-7d95dbf5"]])),z=n=>(e.pushScopeId("data-v-e294305e"),n=n(),e.popScopeId(),n),ee={key:1,class:"upload-btn"},te={class:"tip"},oe={class:"loading-statu"},le={class:"operate-btn"},ne={key:0},ae={class:"el-upload-list el-upload-list--picture-card",style:{float:"left"}},se=["onClick"],re=z(()=>e.createElementVNode("span",{class:"error"},"上传错误",-1)),ie=z(()=>e.createElementVNode("p",null,"点击重新上传",-1)),ce=["src"],de={class:"demo-image__preview"},pe=e.defineComponent({__name:"index",props:e.mergeModels({title:{type:String,default:"上传图片"},loadUrl:{type:String,default:""},action:{type:String,default:""},headers:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},limit:{type:Number,default:50},size:{type:Number,default:50},accept:{type:String,default:"image/*"},fit:{type:String,default:"contain"},preview:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:e.mergeModels(["delete","success"],["update:modelValue"]),setup(n,{emit:o}){const r=n,i=e.useModel(n,"modelValue"),t=l=>Array.isArray(l)?l.map(a=>{var _,k;const s=((_=a.url)==null?void 0:_.startsWith("http"))||((k=a.url)==null?void 0:k.startsWith("blob")),c=(a==null?void 0:a.url)||a;return{...a.url?a:{url:c},__url:s?c:`${u.value}${c}`}}):l?[{url:l,__url:l!=null&&l.startsWith("http")||l!=null&&l.startsWith("blob")?l:`${u.value}${l}`}]:[];e.watch(()=>i.value,l=>{!l||!l.length?p.value=[]:p.value=w._.cloneDeep(t(l))},{deep:!0});const d=o,{cLoadUrl:u,cUploadUrl:g}=q(r),V=e.computed(()=>r.size),f=e.ref(null),p=e.ref(t(i.value)),y=e.ref([]),E=e.ref(!1),N=e.ref(0),me=e.computed(()=>r.tipText||`最多可上传${r.limit}张图片, 每张图片不能超过${r.size}MB`),he=(l,a)=>{},fe=l=>{if(!l.type.includes("image")){m.ElMessage.warning("只允许上传图片!");try{p.value.pop()}catch{}return!1}if(!(l.size/1024/1024<V.value)){m.ElMessage.warning("图片大小超出限制!");try{p.value.pop()}catch{}return!1}return!0},ue=()=>!1,_e=(l,a)=>{var s,c;l.status="ready",a!==void 0&&y.value.splice(a,1),(s=f.value)==null||s.handleStart(l.raw),(c=f.value)==null||c.submit()},ge=(l,a)=>{var k,$;const s=i.value.length,c=r.limit-s;let _=0;for(;_<c&&_<(l==null?void 0:l.length);)(k=f.value)==null||k.handleStart(l==null?void 0:l[_]),($=f.value)==null||$.submit(),_++},ye=(l,a,s)=>{d("success",l,a,s),i.value=p.value.filter(c=>c.status==="success")},ke=(l,a,s)=>{y.value.push({...a,__url:a.url})},we=l=>{var a;E.value=!0,N.value=(a=i.value)==null?void 0:a.findIndex(s=>s.url===l.url)},Be=l=>{w.ikFile.downloadByOnlineUrl(l.__url||l.url,l.name)},Ve=l=>{var a;(a=f.value)==null||a.abort(l)},Ee=l=>{var a;l.status!=="success"&&Ve(l),i.value=(a=p.value)==null?void 0:a.filter(s=>s.uid!==l.uid),d("delete",l)},Ce=(l,a)=>{y.value.splice(a,1)},ze=e.computed(()=>p.value.length+y.value.length<r.limit);return(l,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(m.ElUpload),{class:e.normalizeClass(["ik-image-upload",{preview:n.preview,"hide-upload":!ze.value}]),ref_key:"refUpload",ref:f,"list-type":"picture-card",accept:n.accept,action:e.unref(g),headers:n.headers,data:n.data,"file-list":p.value,"onUpdate:fileList":a[0]||(a[0]=s=>p.value=s),multiple:n.multiple,limit:n.limit,"on-change":he,"before-upload":fe,"before-remove":ue,"on-exceed":ge,"on-success":ye,"on-error":ke,drag:""},e.createSlots({trigger:e.withCtx(()=>[l.$slots.trigger?e.renderSlot(l.$slots,"trigger",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock("div",ee,[e.createVNode(e.unref(m.ElIcon),{size:20},{default:e.withCtx(()=>[e.createVNode(e.unref(v),{name:"iksvg_guanbibeifen"})]),_:1}),e.createElementVNode("span",null,e.toDisplayString(n.title),1)]))]),file:e.withCtx(({file:s})=>[e.createElementVNode("div",{class:e.normalizeClass(["load-list",{loading:s.status==="uploading"}]),"element-loading-background":"var(--ik-upload-bg)"},[e.withDirectives(e.createElementVNode("div",oe,[e.createVNode(R),e.createTextVNode(" 上传"+e.toDisplayString(s.percentage)+"% ",1)],512),[[e.vShow,s.status==="uploading"]]),e.createCommentVNode(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),e.createVNode(e.unref(m.ElImage),{style:{width:"100%",height:"100%"},src:s.__url||s.url,"zoom-rate":1.2,"initial-index":0,fit:"contain"},null,8,["src"]),e.createElementVNode("span",le,[e.createElementVNode("span",null,[e.createVNode(e.unref(m.ElIcon),{onClick:c=>we(s)},{default:e.withCtx(()=>[e.createVNode(e.unref(O))]),_:2},1032,["onClick"])]),e.createElementVNode("span",null,[e.createVNode(e.unref(m.ElIcon),{onClick:c=>Be(s)},{default:e.withCtx(()=>[e.createVNode(e.unref(U))]),_:2},1032,["onClick"])]),n.preview?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",ne,[e.createVNode(e.unref(m.ElIcon),{type:"warning",onClick:c=>Ee(s)},{default:e.withCtx(()=>[e.createVNode(e.unref(M))]),_:2},1032,["onClick"])]))])],2)]),default:e.withCtx(()=>[e.createElementVNode("ul",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(s,c)=>(e.openBlock(),e.createElementBlock("li",{class:"el-upload-list__item",key:s.uid},[e.createElementVNode("span",null,[e.createVNode(e.unref(m.ElIcon),{onClick:_=>Ce(s,c)},{default:e.withCtx(()=>[e.createVNode(e.unref(I))]),_:2},1032,["onClick"])]),e.createElementVNode("div",{class:e.normalizeClass(["load-list",{loading:s.status==="uploading",fail:s.status==="fail"}]),"element-loading-background":"var(--ik-upload-bg)"},[e.withDirectives(e.createElementVNode("div",{class:"loading-statu",onClick:_=>_e(s,c)},[e.createVNode(e.unref(m.ElIcon),{size:24},{default:e.withCtx(()=>[e.createVNode(e.unref(D))]),_:1}),re,ie],8,se),[[e.vShow,s.status==="fail"]]),e.createElementVNode("img",{src:s.__url,alt:"",style:e.normalizeStyle({"object-fit":n.fit})},null,12,ce)],2)]))),128))])]),_:2},[n.tip?{name:"tip",fn:e.withCtx(()=>[e.createElementVNode("span",te,e.toDisplayString(me.value),1)]),key:"0"}:void 0]),1032,["class","accept","action","headers","data","file-list","multiple","limit"]),e.createCommentVNode(" 文件预览 "),e.createElementVNode("div",de,[E.value?(e.openBlock(),e.createBlock(e.unref(m.ElImageViewer),{key:0,"lock-scroll":"","hide-on-click-modal":"",onClose:a[1]||(a[1]=()=>{E.value=!1}),"url-list":t(p.value).map(s=>s.__url),"initial-index":N.value},null,8,["url-list","initial-index"])):e.createCommentVNode("v-if",!0)])],64))}}),Te="",b=C(B(pe,[["__scopeId","data-v-e294305e"]]));h.IkUploadImage=b,h.default=b,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(h,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","iking-utils-pro"],e):(h=typeof globalThis<"u"?globalThis:h||self,e(h.index={},h.vue,h["element-plus"],h["iking-utils-pro"]))})(this,function(h,e,_,B){"use strict";const C=(o,c)=>{if(o.install=r=>{for(const t of[o,...Object.values(c??{})])r.component(t.name,t)},c)for(const[r,t]of Object.entries(c))o[r]=t;return o};/*! Element Plus Icons Vue v2.3.1 */var $=e.defineComponent({name:"Close",__name:"close",setup(o){return(c,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),S=$,I=e.defineComponent({name:"Delete",__name:"delete",setup(o){return(c,r)=>(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"})]))}}),L=I,v=e.defineComponent({name:"Download",__name:"download",setup(o){return(c,r)=>(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"})]))}}),M=v,j=e.defineComponent({name:"Refresh",__name:"refresh",setup(o){return(c,r)=>(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"})]))}}),U=j,D=e.defineComponent({name:"ZoomIn",__name:"zoom-in",setup(o){return(c,r)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),T=D;const V=(o,c)=>{const r=o.__vccOpts||o;for(const[t,d]of c)r[t]=d;return r},O={},A={t:"1686214149488",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8490",width:"200",height:"200"},H=[e.createElementVNode("path",{d:"M369.569592 512.011256c0-14.328333-11.010775-25.945929-24.591071-25.945929L86.980515 486.065328c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.998005 0C358.55984 537.959232 369.569592 526.341636 369.569592 512.011256z","p-id":"8491"},null,-1),e.createElementVNode("path",{d:"M937.019485 486.064304 679.020456 486.064304c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.999029 0c13.580297 0 24.590048-11.618619 24.590048-25.947975C961.609533 497.682923 950.598758 486.064304 937.019485 486.064304z","p-id":"8492"},null,-1),e.createElementVNode("path",{d:"M512.011768 62.389956c-13.580297 0-24.590048 11.618619-24.590048 25.945929l0 257.170151c0 14.329357 11.010775 25.946952 24.590048 25.946952s24.591071-11.618619 24.591071-25.946952L536.602839 88.335884C536.602839 74.008574 525.591041 62.389956 512.011768 62.389956z","p-id":"8493"},null,-1),e.createElementVNode("path",{d:"M512.011768 652.544967c-13.580297 0-24.590048 11.618619-24.590048 25.946952l0 257.169127c0 14.33038 11.010775 25.947975 24.590048 25.947975s24.591071-11.618619 24.591071-25.947975L536.602839 678.491918C536.602839 664.162562 525.591041 652.544967 512.011768 652.544967z","p-id":"8494"},null,-1),e.createElementVNode("path",{d:"M377.001865 413.125085c4.744048 4.737908 10.818393 7.082302 16.882506 7.082302 6.519484 0 13.039991-2.724041 17.879206-8.134261 9.317203-10.414187 8.885368-26.834158-0.9967-36.678364L228.341057 193.559391c-9.832949-9.830903-25.406646-9.388834-34.760688 1.050935-9.317203 10.414187-8.885368 26.834158 0.9967 36.678364L377.001865 413.125085z","p-id":"8495"},null,-1),e.createElementVNode("path",{d:"M646.997112 610.873892c-9.846252-9.831926-25.419949-9.388834-34.761712 1.051959-9.317203 10.414187-8.885368 26.834158 0.997724 36.678364l182.41354 181.834348c4.743024 4.738931 10.818393 7.083326 16.881482 7.083326 6.520507 0 13.039991-2.723018 17.879206-8.134261 9.317203-10.41521 8.886391-26.834158-0.9967-36.678364L646.997112 610.873892z","p-id":"8496"},null,-1),e.createElementVNode("path",{d:"M630.114606 420.207387c6.064113 0 12.139481-2.344395 16.882506-7.082302l182.425819-181.836395c9.882068-9.844206 10.313903-26.264177 0.9967-36.678364-9.341762-10.43977-24.915459-10.882861-34.760688-1.050935L613.233124 375.394762c-9.882068 9.844206-10.314926 26.264177-0.997724 36.678364C617.074615 417.483346 623.595123 420.207387 630.114606 420.207387z","p-id":"8497"},null,-1),e.createElementVNode("path",{d:"M377.025401 610.873892 194.600605 792.710286c-9.881045 9.844206-10.313903 26.263154-0.9967 36.678364 4.839215 5.411243 11.358699 8.134261 17.879206 8.134261 6.064113 0 12.138458-2.344395 16.881482-7.083326l182.425819-181.834348c9.881045-9.844206 10.313903-26.264177 0.9967-36.678364C402.469909 601.485057 386.872676 601.041966 377.025401 610.873892z","p-id":"8498"},null,-1)];function F(o,c){return e.openBlock(),e.createElementBlock("svg",A,H)}const W=V(O,[["render",F]]),R=o=>{const c=e.inject("loadUrl"),r=e.computed(()=>o.loadUrl||(c==null?void 0:c.value)),t=e.inject("uploadUrl"),d=e.computed(()=>o.action||o.uploadUrl||(t==null?void 0:t.value)),p=e.inject("token"),s=e.computed(()=>o.token||(p==null?void 0:p.value)),f=e.inject("onlyofficeConfig"),y=e.computed(()=>o.onlyofficeConfig||(f==null?void 0:f.value)),u=e.inject("userInfo"),m=e.computed(()=>o.userInfo||(u==null?void 0:u.value));return{cLoadUrl:r,cUploadUrl:d,cToken:s,cOnlyofficeConfig:y,cUserInfo:m}},q={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},G={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},J=["xlink:href"],X=["src"],Y={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},Z=["xlink:href"],K=["src"],Q=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{default:"icon"}},setup(o){const c=o,r=e.inject("iconConfig"),t=e.computed(()=>({...(r==null?void 0:r.value)||{},...c})),d=e.computed(()=>{const{name:s}=t.value;return/^http?:\/\//.test(s)?"img":/i-[^:]+:[^:]+/.test(s)?"unocss":s!=null&&s.startsWith("iksig")?"iksig":s!=null&&s.includes(":")?"iconify":s!=null&&s.startsWith("iksvg")?"svg":"i"}),p=e.computed(()=>{const s=[];if(t.value.flip)switch(t.value.flip){case"horizontal":s.push("rotateY(180deg)");break;case"vertical":s.push("rotateX(180deg)");break;case"both":s.push("rotateX(180deg)"),s.push("rotateY(180deg)");break}t.value.rotate&&s.push(`rotate(${t.value.rotate%360}deg)`);const f={...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...s.length&&{transform:s.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&d.value!=="iksig"?{"--ik-color-icon-dark":t.value.color,"--ik-color-icon-light":t.value.colorLight||B.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(f.width=f.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),f});return(s,f)=>{const y=e.resolveComponent("el-tooltip"),u=e.resolveComponent("el-button");return t.value.tableIconType==="icon"?(e.openBlock(),e.createElementBlock("span",q,[t.value.notip||!t.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[s.name]:d.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:t.value.primary||t.value.type==="primary",success:s.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active,disabled:t.value.disabled}]),style:e.normalizeStyle(p.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),d.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(p.value)},null,6)):d.value==="svg"?(e.openBlock(),e.createElementBlock("svg",G,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,J)])):d.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,X)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(p.value)},null,6))],6)):(e.openBlock(),e.createBlock(y,{key:1,content:t.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[s.name]:d.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:s.primary||t.value.type==="primary",success:s.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),style:e.normalizeStyle(p.value)},[d.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(p.value)},null,6)):d.value==="svg"?(e.openBlock(),e.createElementBlock("svg",Y,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,Z)])):d.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,K)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(p.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(u,{key:1,type:["warning","error"].includes(t.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),je="",P=C(V(Q,[["__scopeId","data-v-1be337e4"]])),z=o=>(e.pushScopeId("data-v-e294305e"),o=o(),e.popScopeId(),o),ee={key:1,class:"upload-btn"},te={class:"tip"},le={class:"loading-statu"},oe={class:"operate-btn"},ae={key:0},ne={class:"el-upload-list el-upload-list--picture-card",style:{float:"left"}},se=["onClick"],re=z(()=>e.createElementVNode("span",{class:"error"},"上传错误",-1)),ce=z(()=>e.createElementVNode("p",null,"点击重新上传",-1)),ie=["src"],de={class:"demo-image__preview"},pe=e.defineComponent({__name:"index",props:e.mergeModels({title:{type:String,default:"上传图片"},loadUrl:{type:String,default:""},action:{type:String,default:""},headers:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},limit:{type:Number,default:50},size:{type:Number,default:50},accept:{type:String,default:"image/*"},fit:{type:String,default:"contain"},preview:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:e.mergeModels(["delete","success"],["update:modelValue"]),setup(o,{emit:c}){const r=o,t=e.useModel(o,"modelValue"),d=l=>Array.isArray(l)?l.map(a=>{var g,w;const n=((g=a.url)==null?void 0:g.startsWith("http"))||((w=a.url)==null?void 0:w.startsWith("blob")),i=(a==null?void 0:a.url)||a;return{...a.url?a:{url:i},__url:n?i:`${s.value}${i}`}}):l?[{url:l,__url:l!=null&&l.startsWith("http")||l!=null&&l.startsWith("blob")?l:`${s.value}${l}`}]:[];e.watch(()=>t.value,l=>{!l||!l.length?m.value=[]:m.value=B._.cloneDeep(d(l))},{deep:!0});const p=c,{cLoadUrl:s,cUploadUrl:f}=R(r),y=e.computed(()=>r.size),u=e.ref(null),m=e.ref(d(t.value)),k=e.ref([]),E=e.ref(!1),N=e.ref(0),ue=e.computed(()=>r.tipText||`最多可上传${r.limit}张图片, 每张图片不能超过${r.size}MB`),me=(l,a)=>{},_e=l=>{if(!l.type.includes("image")){_.ElMessage.warning("只允许上传图片!");try{m.value.pop()}catch{}return!1}if(!(l.size/1024/1024<y.value)){_.ElMessage.warning("图片大小超出限制!");try{m.value.pop()}catch{}return!1}return!0},he=()=>!1,fe=(l,a)=>{var n,i;l.status="ready",a!==void 0&&k.value.splice(a,1),(n=u.value)==null||n.handleStart(l.raw),(i=u.value)==null||i.submit()},ge=(l,a)=>{var w,x;const n=t.value.length,i=r.limit-n;let g=0;for(;g<i&&g<(l==null?void 0:l.length);)(w=u.value)==null||w.handleStart(l==null?void 0:l[g]),(x=u.value)==null||x.submit(),g++},ye=(l,a,n)=>{p("success",l,a,n),t.value=m.value.filter(i=>i.status==="success")},ke=(l,a,n)=>{k.value.push({...a,__url:a.url})},we=l=>{var a;E.value=!0,N.value=(a=t.value)==null?void 0:a.findIndex(n=>n.url===l.url)},Be=l=>{B.ikFile.downloadByOnlineUrl(l.__url||l.url,l.name)},Ve=l=>{var a;(a=u.value)==null||a.abort(l)},Ee=l=>{var a;l.status!=="success"&&Ve(l),t.value=(a=m.value)==null?void 0:a.filter(n=>n.uid!==l.uid),p("delete",l)},Ce=(l,a)=>{k.value.splice(a,1)},ze=e.computed(()=>m.value.length+k.value.length<r.limit);return(l,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(_.ElUpload),{class:e.normalizeClass(["ik-image-upload",{preview:o.preview,"hide-upload":!ze.value}]),ref_key:"refUpload",ref:u,"list-type":"picture-card",accept:o.accept,action:e.unref(f),headers:o.headers,data:o.data,"file-list":m.value,"onUpdate:fileList":a[0]||(a[0]=n=>m.value=n),multiple:o.multiple,limit:o.limit,"on-change":me,"before-upload":_e,"before-remove":he,"on-exceed":ge,"on-success":ye,"on-error":ke,drag:""},e.createSlots({trigger:e.withCtx(()=>[l.$slots.trigger?e.renderSlot(l.$slots,"trigger",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock("div",ee,[e.createVNode(e.unref(_.ElIcon),{size:20},{default:e.withCtx(()=>[e.createVNode(e.unref(P),{name:"iksvg_guanbibeifen"})]),_:1}),e.createElementVNode("span",null,e.toDisplayString(o.title),1)]))]),file:e.withCtx(({file:n})=>[e.createElementVNode("div",{class:e.normalizeClass(["load-list",{loading:n.status==="uploading"}]),"element-loading-background":"var(--ik-upload-bg)"},[e.withDirectives(e.createElementVNode("div",le,[e.createVNode(W),e.createTextVNode(" 上传"+e.toDisplayString(n.percentage)+"% ",1)],512),[[e.vShow,n.status==="uploading"]]),e.createCommentVNode(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),e.createVNode(e.unref(_.ElImage),{style:{width:"100%",height:"100%"},src:n.__url||n.url,"zoom-rate":1.2,"initial-index":0,fit:"contain"},null,8,["src"]),e.createElementVNode("span",oe,[e.createElementVNode("span",null,[e.createVNode(e.unref(_.ElIcon),{onClick:i=>we(n)},{default:e.withCtx(()=>[e.createVNode(e.unref(T))]),_:2},1032,["onClick"])]),e.createElementVNode("span",null,[e.createVNode(e.unref(_.ElIcon),{onClick:i=>Be(n)},{default:e.withCtx(()=>[e.createVNode(e.unref(M))]),_:2},1032,["onClick"])]),o.preview?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",ae,[e.createVNode(e.unref(_.ElIcon),{type:"warning",onClick:i=>Ee(n)},{default:e.withCtx(()=>[e.createVNode(e.unref(L))]),_:2},1032,["onClick"])]))])],2)]),default:e.withCtx(()=>[e.createElementVNode("ul",ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(n,i)=>(e.openBlock(),e.createElementBlock("li",{class:"el-upload-list__item",key:n.uid},[e.createElementVNode("span",null,[e.createVNode(e.unref(_.ElIcon),{onClick:g=>Ce(n,i)},{default:e.withCtx(()=>[e.createVNode(e.unref(S))]),_:2},1032,["onClick"])]),e.createElementVNode("div",{class:e.normalizeClass(["load-list",{loading:n.status==="uploading",fail:n.status==="fail"}]),"element-loading-background":"var(--ik-upload-bg)"},[e.withDirectives(e.createElementVNode("div",{class:"loading-statu",onClick:g=>fe(n,i)},[e.createVNode(e.unref(_.ElIcon),{size:24},{default:e.withCtx(()=>[e.createVNode(e.unref(U))]),_:1}),re,ce],8,se),[[e.vShow,n.status==="fail"]]),e.createElementVNode("img",{src:n.__url,alt:"",style:e.normalizeStyle({"object-fit":o.fit})},null,12,ie)],2)]))),128))])]),_:2},[o.tip?{name:"tip",fn:e.withCtx(()=>[e.createElementVNode("span",te,e.toDisplayString(ue.value),1)]),key:"0"}:void 0]),1032,["class","accept","action","headers","data","file-list","multiple","limit"]),e.createCommentVNode(" 文件预览 "),e.createElementVNode("div",de,[E.value?(e.openBlock(),e.createBlock(e.unref(_.ElImageViewer),{key:0,"lock-scroll":"","hide-on-click-modal":"",onClose:a[1]||(a[1]=()=>{E.value=!1}),"url-list":d(m.value).map(n=>n.__url),"initial-index":N.value},null,8,["url-list","initial-index"])):e.createCommentVNode("v-if",!0)])],64))}}),De="",b=C(V(pe,[["__scopeId","data-v-e294305e"]]));h.IkUploadImage=b,h.default=b,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.row-title[data-v-
|
|
1
|
+
@charset "UTF-8";.row-title[data-v-1be337e4]{display:flex}.ik-image-upload[data-v-e294305e]{display:inline-flex;position:relative}.ik-image-upload.hide-upload[data-v-e294305e] .el-upload{display:none}.ik-image-upload .tip[data-v-e294305e]{position:absolute;bottom:-19px;font-size:14px;color:var(--el-color-info)}.ik-image-upload.preview[data-v-e294305e] .el-upload{display:none}.ik-image-upload[data-v-e294305e] .el-upload--picture-card{--el-upload-picture-card-size: 106px;--el-fill-color-lighter: var(--ik-color-bg-page);border-color:transparent;border-style:solid;transition:all .3s}.ik-image-upload[data-v-e294305e] .el-upload--picture-card.el-upload{--el-upload-dragger-padding-horizontal: 36px;margin:0 8px 8px 0}.ik-image-upload[data-v-e294305e] .el-upload--picture-card.el-upload .el-upload-dragger{border:none;background-color:transparent}.ik-image-upload[data-v-e294305e] .el-upload--picture-card.el-upload .el-upload-dragger .el-icon{margin-bottom:5px}.ik-image-upload[data-v-e294305e] .el-upload--picture-card.el-upload:hover{--el-fill-color-lighter: transparent}.ik-image-upload[data-v-e294305e] .el-upload--picture-card.el-upload:hover .upload-btn,.ik-image-upload[data-v-e294305e] .el-upload--picture-card.el-upload:hover .upload-btn i{color:var(--el-color-primary)}.ik-image-upload[data-v-e294305e] .el-upload--picture-card.el-upload .upload-btn{display:flex;flex-direction:column;align-items:center;font-size:14px;color:var(--el-text-color-secondary)}.ik-image-upload[data-v-e294305e] .el-upload--picture-card:hover{--el-fill-color-lighter: var(--ik-color-font-reverse);--ik-color-icon-dark: var(--ik-color-tag-primary);--ik-color-icon-light: var(--ik-color-icon-light-hover);border-color:var(--el-color-primary)}.ik-image-upload[data-v-e294305e] .el-upload-list--picture-card{--el-upload-list-picture-card-size: 106px;flex-direction:row-reverse}.ik-image-upload[data-v-e294305e] .el-upload-list--picture-card .el-upload-list__item{border:none;background-color:var(--el-bg-color-page);overflow:hidden}.ik-image-upload[data-v-e294305e] .el-upload-list--picture-card .el-upload-list__item>span{position:absolute;right:2px;top:3px;z-index:2;background:var(--el-color-error);display:flex;border-radius:50%;padding:3px;font-size:11px;color:#fff;font-weight:600;cursor:pointer;transition:transform .35s}.ik-image-upload[data-v-e294305e] .el-upload-list--picture-card .el-upload-list__item>span:hover{transform:rotate(180deg);opacity:.9}.ik-image-upload .load-list[data-v-e294305e]{--el-upload-picture-card-size: 106px;width:var(--el-upload-picture-card-size);height:var(--el-upload-picture-card-size);overflow:hidden}.ik-image-upload .load-list .loading-statu[data-v-e294305e]{position:absolute;top:0;left:0;color:#fff;width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:0 0 140px 140px var(--el-overlay-color-lighter) inset;z-index:1;border-radius:6px}.ik-image-upload .load-list .loading-statu svg[data-v-e294305e]{width:26px;height:26px;fill:var(--el-color-primary);animation:rotate-e294305e 2s linear infinite}.ik-image-upload .load-list .operate-btn[data-v-e294305e]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:0;height:0;display:flex;align-items:center;justify-content:center;transition:all .35s;border-radius:4px;overflow:hidden}.ik-image-upload .load-list:hover .operate-btn[data-v-e294305e]{box-shadow:0 0 150px 150px var(--el-overlay-color-lighter) inset;color:#fff;font-size:18px;z-index:1;width:100%;height:100%}.ik-image-upload .load-list:hover .operate-btn i[data-v-e294305e]{cursor:pointer;margin:0 5px}.ik-image-upload .load-list:hover .operate-btn i[data-v-e294305e]:hover{color:var(--el-color-primary)}.ik-image-upload .load-list:hover img[data-v-e294305e],.ik-image-upload .load-list.loading img[data-v-e294305e]{filter:blur(2px)}.ik-image-upload .load-list.loading .loading-statu[data-v-e294305e]{box-shadow:0 0 140px 140px var(--el-overlay-color-lighter) inset}.ik-image-upload .load-list.loading .loading-statu svg[data-v-e294305e]{fill:var(--el-color-primary)}.ik-image-upload .load-list.fail img[data-v-e294305e]{filter:blur(0)}.ik-image-upload .load-list.fail .loading-statu[data-v-e294305e]{box-shadow:0 0 140px 140px var(--ik-error-shadow-bg) inset;line-height:2;color:var(--ik-color-font-reverse);border-radius:6px;background:rgba(241,65,109,.3411764706);border:1px dashed #F1416C;cursor:pointer;transition:all .25s}.ik-image-upload .load-list.fail .loading-statu[data-v-e294305e]:hover{background:rgba(241,65,109,.4196078431)}.ik-image-upload .load-list.fail .loading-statu svg[data-v-e294305e]{animation:none}.ik-image-upload .load-list.fail .loading-statu p[data-v-e294305e]{margin:0;padding:0}.ik-image-upload .load-list.fail .loading-statu .el-button.is-link[data-v-e294305e]{color:var(--ik-color-font-reverse)}.ik-image-upload .load-list.fail .loading-statu .el-button.is-link[data-v-e294305e]:hover{color:var(--color-primary)}@keyframes rotate-e294305e{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ik-image-upload .load-list img[data-v-e294305e]{width:100%;height:100%}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Gt, computed as
|
|
1
|
+
import { defineComponent as Gt, computed as z, renderSlot as Bt } from "vue";
|
|
2
2
|
const Qt = (e, t) => {
|
|
3
3
|
if (e.install = (n) => {
|
|
4
4
|
for (const r of [e, ...Object.values(t ?? {})])
|
|
@@ -21,12 +21,12 @@ function Xt(e, t) {
|
|
|
21
21
|
}
|
|
22
22
|
const P = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
23
23
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
24
|
-
const
|
|
24
|
+
const J = () => {
|
|
25
25
|
}, Zt = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
26
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), x = Object.assign, kt = Object.prototype.hasOwnProperty, g = (e, t) => kt.call(e, t), d = Array.isArray,
|
|
26
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), x = Object.assign, kt = Object.prototype.hasOwnProperty, g = (e, t) => kt.call(e, t), d = Array.isArray, B = (e) => Se(e) === "[object Map]", en = (e) => Se(e) === "[object Set]", E = (e) => typeof e == "function", v = (e) => typeof e == "string", ie = (e) => typeof e == "symbol", S = (e) => e !== null && typeof e == "object", tn = (e) => (S(e) || E(e)) && E(e.then) && E(e.catch), nn = Object.prototype.toString, Se = (e) => nn.call(e), Et = (e) => Se(e).slice(8, -1), rn = (e) => Se(e) === "[object Object]", Ke = (e) => v(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, on = (e) => {
|
|
27
27
|
const t = /* @__PURE__ */ Object.create(null);
|
|
28
28
|
return (n) => t[n] || (t[n] = e(n));
|
|
29
|
-
}, sn = on((e) => e.charAt(0).toUpperCase() + e.slice(1)),
|
|
29
|
+
}, sn = on((e) => e.charAt(0).toUpperCase() + e.slice(1)), X = (e, t) => !Object.is(e, t), cn = (e, t, n, r = !1) => {
|
|
30
30
|
Object.defineProperty(e, t, {
|
|
31
31
|
configurable: !0,
|
|
32
32
|
enumerable: !1,
|
|
@@ -205,13 +205,13 @@ function M(e, t, n, r, o, s) {
|
|
|
205
205
|
} else
|
|
206
206
|
switch (n !== void 0 && c.push(i.get(n)), t) {
|
|
207
207
|
case "add":
|
|
208
|
-
d(e) ? Ke(n) && c.push(i.get("length")) : (c.push(i.get(F)),
|
|
208
|
+
d(e) ? Ke(n) && c.push(i.get("length")) : (c.push(i.get(F)), B(e) && c.push(i.get(je)));
|
|
209
209
|
break;
|
|
210
210
|
case "delete":
|
|
211
|
-
d(e) || (c.push(i.get(F)),
|
|
211
|
+
d(e) || (c.push(i.get(F)), B(e) && c.push(i.get(je)));
|
|
212
212
|
break;
|
|
213
213
|
case "set":
|
|
214
|
-
|
|
214
|
+
B(e) && c.push(i.get(F));
|
|
215
215
|
break;
|
|
216
216
|
}
|
|
217
217
|
qe();
|
|
@@ -295,7 +295,7 @@ class bn extends bt {
|
|
|
295
295
|
return l ? !1 : (s.value = r, !0);
|
|
296
296
|
}
|
|
297
297
|
const i = d(t) && Ke(n) ? Number(n) < t.length : g(t, n), c = Reflect.set(t, n, r, o);
|
|
298
|
-
return t === f(o) && (i ?
|
|
298
|
+
return t === f(o) && (i ? X(r, s) && M(t, "set", n, r, s) : M(t, "add", n, r)), c;
|
|
299
299
|
}
|
|
300
300
|
deleteProperty(t, n) {
|
|
301
301
|
const r = g(t, n), o = t[n], s = Reflect.deleteProperty(t, n);
|
|
@@ -334,7 +334,7 @@ const vn = /* @__PURE__ */ new bn(), Sn = /* @__PURE__ */ new vt(), Vn = /* @__P
|
|
|
334
334
|
function ae(e, t, n = !1, r = !1) {
|
|
335
335
|
e = e.__v_raw;
|
|
336
336
|
const o = f(e), s = f(t);
|
|
337
|
-
n || (
|
|
337
|
+
n || (X(t, s) && m(o, "get", t), m(o, "get", s));
|
|
338
338
|
const { has: i } = ye(o), c = r ? Ye : n ? Xe : Qe;
|
|
339
339
|
if (i.call(o, t))
|
|
340
340
|
return c(e.get(t));
|
|
@@ -344,7 +344,7 @@ function ae(e, t, n = !1, r = !1) {
|
|
|
344
344
|
}
|
|
345
345
|
function ue(e, t = !1) {
|
|
346
346
|
const n = this.__v_raw, r = f(n), o = f(e);
|
|
347
|
-
return t || (
|
|
347
|
+
return t || (X(e, o) && m(r, "has", e), m(r, "has", o)), e === o ? n.has(e) : n.has(e) || n.has(o);
|
|
348
348
|
}
|
|
349
349
|
function fe(e, t = !1) {
|
|
350
350
|
return e = e.__v_raw, !t && m(f(e), "iterate", F), Reflect.get(e, "size", e);
|
|
@@ -360,7 +360,7 @@ function ct(e, t) {
|
|
|
360
360
|
let s = r.call(n, e);
|
|
361
361
|
s ? process.env.NODE_ENV !== "production" && St(n, r, e) : (e = f(e), s = r.call(n, e));
|
|
362
362
|
const i = o.call(n, e);
|
|
363
|
-
return n.set(e, t), s ?
|
|
363
|
+
return n.set(e, t), s ? X(t, i) && M(n, "set", e, t, i) : M(n, "add", e, t), this;
|
|
364
364
|
}
|
|
365
365
|
function lt(e) {
|
|
366
366
|
const t = f(this), { has: n, get: r } = ye(t);
|
|
@@ -370,7 +370,7 @@ function lt(e) {
|
|
|
370
370
|
return o && M(t, "delete", e, void 0, s), i;
|
|
371
371
|
}
|
|
372
372
|
function at() {
|
|
373
|
-
const e = f(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ?
|
|
373
|
+
const e = f(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? B(e) ? new Map(e) : new Set(e) : void 0, r = e.clear();
|
|
374
374
|
return t && M(e, "clear", void 0, void 0, n), r;
|
|
375
375
|
}
|
|
376
376
|
function pe(e, t) {
|
|
@@ -381,7 +381,7 @@ function pe(e, t) {
|
|
|
381
381
|
}
|
|
382
382
|
function de(e, t, n) {
|
|
383
383
|
return function(...r) {
|
|
384
|
-
const o = this.__v_raw, s = f(o), i =
|
|
384
|
+
const o = this.__v_raw, s = f(o), i = B(s), c = e === "entries" || e === Symbol.iterator && i, l = e === "keys" && i, a = o[e](...r), h = n ? Ye : t ? Xe : Qe;
|
|
385
385
|
return !t && m(
|
|
386
386
|
s,
|
|
387
387
|
"iterate",
|
|
@@ -792,7 +792,7 @@ function Yn(e, t, n, r = !0) {
|
|
|
792
792
|
let Ne = !1, Fe = !1;
|
|
793
793
|
const b = [];
|
|
794
794
|
let $ = 0;
|
|
795
|
-
const
|
|
795
|
+
const Q = [];
|
|
796
796
|
let y = null, T = 0;
|
|
797
797
|
const Pt = /* @__PURE__ */ Promise.resolve();
|
|
798
798
|
let ke = null;
|
|
@@ -819,17 +819,17 @@ function Tt() {
|
|
|
819
819
|
!Ne && !Fe && (Fe = !0, ke = Pt.then(Mt));
|
|
820
820
|
}
|
|
821
821
|
function $t(e) {
|
|
822
|
-
d(e) ?
|
|
822
|
+
d(e) ? Q.push(...e) : (!y || !y.includes(
|
|
823
823
|
e,
|
|
824
824
|
e.allowRecurse ? T + 1 : T
|
|
825
|
-
)) &&
|
|
825
|
+
)) && Q.push(e), Tt();
|
|
826
826
|
}
|
|
827
827
|
function Xn(e) {
|
|
828
|
-
if (
|
|
829
|
-
const t = [...new Set(
|
|
828
|
+
if (Q.length) {
|
|
829
|
+
const t = [...new Set(Q)].sort(
|
|
830
830
|
(n, r) => se(n) - se(r)
|
|
831
831
|
);
|
|
832
|
-
if (
|
|
832
|
+
if (Q.length = 0, y) {
|
|
833
833
|
y.push(...t);
|
|
834
834
|
return;
|
|
835
835
|
}
|
|
@@ -850,7 +850,7 @@ const se = (e) => e.id == null ? 1 / 0 : e.id, Zn = (e, t) => {
|
|
|
850
850
|
};
|
|
851
851
|
function Mt(e) {
|
|
852
852
|
Fe = !1, Ne = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), b.sort(Zn);
|
|
853
|
-
const t = process.env.NODE_ENV !== "production" ? (n) => jt(e, n) :
|
|
853
|
+
const t = process.env.NODE_ENV !== "production" ? (n) => jt(e, n) : J;
|
|
854
854
|
try {
|
|
855
855
|
for ($ = 0; $ < b.length; $++) {
|
|
856
856
|
const n = b[$];
|
|
@@ -861,7 +861,7 @@ function Mt(e) {
|
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
863
|
} finally {
|
|
864
|
-
$ = 0, b.length = 0, Xn(e), Ne = !1, ke = null, (b.length ||
|
|
864
|
+
$ = 0, b.length = 0, Xn(e), Ne = !1, ke = null, (b.length || Q.length) && Mt(e);
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
867
|
function jt(e, t) {
|
|
@@ -880,7 +880,7 @@ function jt(e, t) {
|
|
|
880
880
|
e.set(t, n + 1);
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
|
-
const
|
|
883
|
+
const Z = /* @__PURE__ */ new Set();
|
|
884
884
|
process.env.NODE_ENV !== "production" && (mt().__VUE_HMR_RUNTIME__ = {
|
|
885
885
|
createRecord: De(kn),
|
|
886
886
|
rerender: De(er),
|
|
@@ -910,13 +910,13 @@ function tr(e, t) {
|
|
|
910
910
|
const r = [...n.instances];
|
|
911
911
|
for (const o of r) {
|
|
912
912
|
const s = ne(o.type);
|
|
913
|
-
|
|
913
|
+
Z.has(s) || (s !== n.initialDef && ut(s, t), Z.add(s)), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (Z.add(s), o.ceReload(t.styles), Z.delete(s)) : o.parent ? (o.parent.effect.dirty = !0, et(o.parent.update)) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
914
914
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
915
915
|
);
|
|
916
916
|
}
|
|
917
917
|
$t(() => {
|
|
918
918
|
for (const o of r)
|
|
919
|
-
|
|
919
|
+
Z.delete(
|
|
920
920
|
ne(o.type)
|
|
921
921
|
);
|
|
922
922
|
});
|
|
@@ -937,15 +937,15 @@ function De(e) {
|
|
|
937
937
|
}
|
|
938
938
|
};
|
|
939
939
|
}
|
|
940
|
-
let
|
|
940
|
+
let q, _e = [];
|
|
941
941
|
function At(e, t) {
|
|
942
942
|
var n, r;
|
|
943
|
-
|
|
943
|
+
q = e, q ? (q.enabled = !0, _e.forEach(({ event: o, args: s }) => q.emit(o, ...s)), _e = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
|
|
944
944
|
window.HTMLElement && // also exclude jsdom
|
|
945
945
|
!((r = (n = window.navigator) == null ? void 0 : n.userAgent) != null && r.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((s) => {
|
|
946
946
|
At(s, t);
|
|
947
947
|
}), setTimeout(() => {
|
|
948
|
-
|
|
948
|
+
q || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, _e = []);
|
|
949
949
|
}, 3e3)) : _e = [];
|
|
950
950
|
}
|
|
951
951
|
let I = null, nr = null;
|
|
@@ -992,7 +992,7 @@ function lr(e, t, {
|
|
|
992
992
|
);
|
|
993
993
|
}, a = C, h = (u) => r === !0 ? u : (
|
|
994
994
|
// for deep: false, only traverse root-level properties
|
|
995
|
-
|
|
995
|
+
Y(u, r === !1 ? 1 : void 0)
|
|
996
996
|
);
|
|
997
997
|
let _, O = !1, R = !1;
|
|
998
998
|
if (V(e) ? (_ = () => e.value, O = Ae(e)) : te(e) ? (_ = () => h(e), O = !0) : d(e) ? (R = !0, O = e.some((u) => te(u) || Ae(u)), _ = () => e.map((u) => {
|
|
@@ -1008,9 +1008,9 @@ function lr(e, t, {
|
|
|
1008
1008
|
a,
|
|
1009
1009
|
3,
|
|
1010
1010
|
[ce]
|
|
1011
|
-
)) : (_ =
|
|
1011
|
+
)) : (_ = J, process.env.NODE_ENV !== "production" && l(e)), t && r) {
|
|
1012
1012
|
const u = _;
|
|
1013
|
-
_ = () =>
|
|
1013
|
+
_ = () => Y(u());
|
|
1014
1014
|
}
|
|
1015
1015
|
let K, ce = (u) => {
|
|
1016
1016
|
K = N.onStop = () => {
|
|
@@ -1018,7 +1018,7 @@ function lr(e, t, {
|
|
|
1018
1018
|
};
|
|
1019
1019
|
}, Ce;
|
|
1020
1020
|
if (zt)
|
|
1021
|
-
if (ce =
|
|
1021
|
+
if (ce = J, t ? n && Ee(t, a, 3, [
|
|
1022
1022
|
_(),
|
|
1023
1023
|
R ? [] : void 0,
|
|
1024
1024
|
ce
|
|
@@ -1026,13 +1026,13 @@ function lr(e, t, {
|
|
|
1026
1026
|
const u = cr();
|
|
1027
1027
|
Ce = u.__watcherHandles || (u.__watcherHandles = []);
|
|
1028
1028
|
} else
|
|
1029
|
-
return
|
|
1029
|
+
return J;
|
|
1030
1030
|
let j = R ? new Array(e.length).fill(ge) : ge;
|
|
1031
1031
|
const A = () => {
|
|
1032
1032
|
if (!(!N.active || !N.dirty))
|
|
1033
1033
|
if (t) {
|
|
1034
1034
|
const u = N.run();
|
|
1035
|
-
(r || O || (R ? u.some((Re, Yt) =>
|
|
1035
|
+
(r || O || (R ? u.some((Re, Yt) => X(Re, j[Yt])) : X(u, j))) && (K && K(), Ee(t, a, 3, [
|
|
1036
1036
|
u,
|
|
1037
1037
|
// pass undefined as the old value when it's changed for the first time
|
|
1038
1038
|
j === ge ? void 0 : R && j[0] === ge ? [] : j,
|
|
@@ -1044,7 +1044,7 @@ function lr(e, t, {
|
|
|
1044
1044
|
A.allowRecurse = !!t;
|
|
1045
1045
|
let le;
|
|
1046
1046
|
o === "sync" ? le = A : o === "post" ? le = () => gt(A, a && a.suspense) : (A.pre = !0, a && (A.id = a.uid), le = () => et(A));
|
|
1047
|
-
const N = new hn(_,
|
|
1047
|
+
const N = new hn(_, J, le), Ie = () => {
|
|
1048
1048
|
N.stop();
|
|
1049
1049
|
};
|
|
1050
1050
|
return process.env.NODE_ENV !== "production" && (N.onTrack = i, N.onTrigger = c), t ? n ? A() : j = N.run() : o === "post" ? gt(
|
|
@@ -1068,21 +1068,21 @@ function ur(e, t) {
|
|
|
1068
1068
|
return r;
|
|
1069
1069
|
};
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1071
|
+
function Y(e, t = 1 / 0, n) {
|
|
1072
1072
|
if (t <= 0 || !S(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
|
|
1073
1073
|
return e;
|
|
1074
1074
|
if (n.add(e), t--, V(e))
|
|
1075
|
-
|
|
1075
|
+
Y(e.value, t, n);
|
|
1076
1076
|
else if (d(e))
|
|
1077
1077
|
for (let r = 0; r < e.length; r++)
|
|
1078
|
-
|
|
1079
|
-
else if (en(e) ||
|
|
1078
|
+
Y(e[r], t, n);
|
|
1079
|
+
else if (en(e) || B(e))
|
|
1080
1080
|
e.forEach((r) => {
|
|
1081
|
-
|
|
1081
|
+
Y(r, t, n);
|
|
1082
1082
|
});
|
|
1083
1083
|
else if (rn(e))
|
|
1084
1084
|
for (const r in e)
|
|
1085
|
-
|
|
1085
|
+
Y(e[r], t, n);
|
|
1086
1086
|
return e;
|
|
1087
1087
|
}
|
|
1088
1088
|
const He = (e) => e ? Rr(e) ? Dr(e) || e.proxy : He(e.parent) : null, re = (
|
|
@@ -1300,7 +1300,7 @@ function gr(e, t) {
|
|
|
1300
1300
|
return n;
|
|
1301
1301
|
}
|
|
1302
1302
|
let _t = null;
|
|
1303
|
-
function
|
|
1303
|
+
function W(e, t) {
|
|
1304
1304
|
if (!C)
|
|
1305
1305
|
process.env.NODE_ENV !== "production" && p("provide() can only be used inside setup().");
|
|
1306
1306
|
else {
|
|
@@ -1322,7 +1322,7 @@ function Er(e, t, n = !1) {
|
|
|
1322
1322
|
process.env.NODE_ENV !== "production" && p("inject() can only be used inside setup() or functional components.");
|
|
1323
1323
|
}
|
|
1324
1324
|
const mr = {}, Lt = (e) => Object.getPrototypeOf(e) === mr, gt = sr, wr = (e) => e.__isTeleport, Ft = Symbol.for("v-fgt"), Nr = Symbol.for("v-txt"), Or = Symbol.for("v-cmt");
|
|
1325
|
-
let
|
|
1325
|
+
let G = null;
|
|
1326
1326
|
function br(e) {
|
|
1327
1327
|
return e ? e.__v_isVNode === !0 : !1;
|
|
1328
1328
|
}
|
|
@@ -1364,13 +1364,13 @@ function Sr(e, t = null, n = null, r = 0, o = null, s = e === Ft ? 0 : 1, i = !1
|
|
|
1364
1364
|
};
|
|
1365
1365
|
return c ? (tt(l, n), s & 128 && e.normalize(l)) : n && (l.shapeFlag |= v(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && p("VNode created with invalid key (NaN). VNode type:", l.type), // avoid a block node from tracking itself
|
|
1366
1366
|
!i && // has current parent block
|
|
1367
|
-
|
|
1367
|
+
G && // presence of a patch flag indicates this node needs patching on updates.
|
|
1368
1368
|
// component nodes also should always be patched, because even if the
|
|
1369
1369
|
// component doesn't need to update, it needs to persist the instance on to
|
|
1370
1370
|
// the next vnode so that it can be properly unmounted later.
|
|
1371
1371
|
(l.patchFlag > 0 || s & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
|
|
1372
1372
|
// vnode should not be considered dynamic due to handler caching.
|
|
1373
|
-
l.patchFlag !== 32 &&
|
|
1373
|
+
l.patchFlag !== 32 && G.push(l), l;
|
|
1374
1374
|
}
|
|
1375
1375
|
const Vr = process.env.NODE_ENV !== "production" ? vr : Ut;
|
|
1376
1376
|
function Ut(e, t = null, n = null, r = 0, o = null, s = !1) {
|
|
@@ -1381,7 +1381,7 @@ function Ut(e, t = null, n = null, r = 0, o = null, s = !1) {
|
|
|
1381
1381
|
!0
|
|
1382
1382
|
/* mergeRef: true */
|
|
1383
1383
|
);
|
|
1384
|
-
return n && tt(c, n), !s &&
|
|
1384
|
+
return n && tt(c, n), !s && G && (c.shapeFlag & 6 ? G[G.indexOf(e)] = c : G.push(c)), c.patchFlag |= -2, c;
|
|
1385
1385
|
}
|
|
1386
1386
|
if (Jt(e) && (e = e.__vccOpts), t) {
|
|
1387
1387
|
t = xr(t);
|
|
@@ -1594,11 +1594,15 @@ const $r = /* @__PURE__ */ Gt({
|
|
|
1594
1594
|
uploadUrl: {
|
|
1595
1595
|
type: String,
|
|
1596
1596
|
default: ""
|
|
1597
|
+
},
|
|
1598
|
+
iconConfig: {
|
|
1599
|
+
type: Object,
|
|
1600
|
+
default: () => null
|
|
1597
1601
|
}
|
|
1598
1602
|
},
|
|
1599
1603
|
setup(e) {
|
|
1600
1604
|
const t = e;
|
|
1601
|
-
return
|
|
1605
|
+
return W("onlyofficeConfig", z(() => t.onlyofficeConfig)), W("token", z(() => t.token)), W("userInfo", z(() => t.userInfo)), W("loadUrl", z(() => t.loadUrl)), W("uploadUrl", z(() => t.uploadUrl)), W("iconConfig", z(() => t.iconConfig)), (n, r) => Bt(n.$slots, "default");
|
|
1602
1606
|
}
|
|
1603
1607
|
}), jr = Qt($r);
|
|
1604
1608
|
export {
|