iking-web-ui-pro 0.2.3 → 0.2.4

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.
@@ -1 +1 @@
1
- (function(k,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(k=typeof globalThis<"u"?globalThis:k||self,e(k.index={},k.vue))})(this,function(k,e){"use strict";const v=(t,n)=>{if(t.install=o=>{for(const i of[t,...Object.values(n??{})])o.component(i.name,i)},n)for(const[o,i]of Object.entries(n))t[o]=i;return t};function O(t,n,o,i){function r(a){return a instanceof o?a:new o(function(p){p(a)})}return new(o||(o=Promise))(function(a,p){function h(f){try{s(i.next(f))}catch(u){p(u)}}function _(f){try{s(i.throw(f))}catch(u){p(u)}}function s(f){f.done?a(f.value):r(f.value).then(h,_)}s((i=i.apply(t,n||[])).next())})}function V(t,n){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,p;return p={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function h(s){return function(f){return _([s,f])}}function _(s){if(i)throw new TypeError("Generator is already executing.");for(;p&&(p=0,s[0]&&(o=0)),o;)try{if(i=1,r&&(a=s[0]&2?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){o=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(s[0]===6&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(t,o)}catch(f){s=[6,f],r=0}finally{i=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var T=function(t,n){return O(void 0,void 0,void 0,function(){return V(this,function(o){return[2,new Promise(function(i,r){try{if(window.DocsAPI)return i(null);var a=document.getElementById(n);if(a)var p=setInterval(function(){var _=a.getAttribute("loading");if(!_){if(clearInterval(p),window.DocsAPI)return i(null);var s=b(n,t,i,r);a.remove(),document.body.appendChild(s)}},500);else{var h=b(n,t,i,r);document.body.appendChild(h)}}catch(_){console.error(_)}})]})})},b=function(t,n,o,i){var r=document.createElement("script");return r.id=t,r.type="text/javascript",r.src=n,r.async=!0,r.onload=function(){r.removeAttribute("loading"),o(null)},r.onerror=function(a){r.removeAttribute("loading"),i(a)},r.setAttribute("loading",""),r},C=e.defineComponent({name:"DocumentEditor",props:{id:{type:String,required:!0},documentServerUrl:{type:String,required:!0},config:{type:Object,required:!0},document_fileType:String,document_title:String,documentType:String,editorConfig_lang:String,height:String,type:String,width:String,onLoadComponentError:Function,events_onAppReady:Function,events_onDocumentStateChange:Function,events_onMetaChange:Function,events_onDocumentReady:Function,events_onInfo:Function,events_onWarning:Function,events_onError:Function,events_onRequestSharingSettings:Function,events_onRequestRename:Function,events_onMakeActionLink:Function,events_onRequestInsertImage:Function,events_onRequestSaveAs:Function,events_onRequestMailMergeRecipients:Function,events_onRequestCompareFile:Function,events_onRequestEditRights:Function,events_onRequestHistory:Function,events_onRequestHistoryClose:Function,events_onRequestHistoryData:Function,events_onRequestRestore:Function,events_onRequestSelectSpreadsheet:Function,events_onRequestSelectDocument:Function},mounted:function(){var t=this,n=this.documentServerUrl;n.endsWith("/")||(n+="/");var o="".concat(n,"web-apps/apps/api/documents/api.js");T(o,"onlyoffice-api-script").then(function(){return t.onLoad()}).catch(function(){t.onError(-2)})},unmounted:function(){var t,n=this.id||"";!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances[n]&&(window.DocEditor.instances[n].destroyEditor(),window.DocEditor.instances[n]=void 0)},watch:{config:{handler:function(t,n){this.onChangeProps()},deep:!0},document_fileType:function(t,n){this.onChangeProps()},document_title:function(t,n){this.onChangeProps()},documentType:function(t,n){this.onChangeProps()},editorConfig_lang:function(t,n){this.onChangeProps()},height:function(t,n){this.onChangeProps()},type:function(t,n){this.onChangeProps()},width:function(t,n){this.onChangeProps()}},methods:{onLoad:function(){var t,n;try{var o=this.id||"";if(window.DocsAPI||this.onError(-3),!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances[o]){console.log("Skip loading. Instance already exists",o);return}!((n=window==null?void 0:window.DocEditor)===null||n===void 0)&&n.instances||(window.DocEditor={instances:{}});var i=Object.assign({document:{fileType:this.document_fileType,title:this.document_title},documentType:this.documentType,editorConfig:{lang:this.editorConfig_lang},events:{onAppReady:this.onAppReady,onDocumentStateChange:this.events_onDocumentStateChange,onMetaChange:this.events_onMetaChange,onDocumentReady:this.events_onDocumentReady,onInfo:this.events_onInfo,onWarning:this.events_onWarning,onError:this.events_onError,onRequestSharingSettings:this.events_onRequestSharingSettings,onRequestRename:this.events_onRequestRename,onMakeActionLink:this.events_onMakeActionLink,onRequestInsertImage:this.events_onRequestInsertImage,onRequestSaveAs:this.events_onRequestSaveAs,onRequestMailMergeRecipients:this.events_onRequestMailMergeRecipients,onRequestCompareFile:this.events_onRequestCompareFile,onRequestEditRights:this.events_onRequestEditRights,onRequestHistory:this.events_onRequestHistory,onRequestHistoryClose:this.events_onRequestHistoryClose,onRequestHistoryData:this.events_onRequestHistoryData,onRequestRestore:this.events_onRequestRestore,onRequestSelectSpreadsheet:this.events_onRequestSelectSpreadsheet,onRequestSelectDocument:this.events_onRequestSelectDocument},height:this.height,type:this.type,width:this.width},this.config||{}),r=window.DocsAPI.DocEditor(o,i);window.DocEditor.instances[o]=r}catch(a){console.error(a),this.onError(-1)}},onError:function(t){var n;switch(t){case-2:n="Error load DocsAPI from "+this.documentServerUrl;break;case-3:n="DocsAPI is not defined";break;default:n="Unknown error loading component",t=-1}typeof this.onLoadComponentError>"u"?console.error(n):this.onLoadComponentError(t,n)},onAppReady:function(){var t=this.id||"";this.events_onAppReady(window.DocEditor.instances[t])},onChangeProps:function(){var t,n=this.id||"";!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances[n]&&(window.DocEditor.instances[n].destroyEditor(),window.DocEditor.instances[n]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const I=["id"];function q(t,n,o,i,r,a){return e.openBlock(),e.createElementBlock("div",{id:t.id},null,8,I)}C.render=q,C.__file="src/components/DocumentEditor.vue";const N=e.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"}},setup(t){const n=t,o=e.ref({width:"100%",height:"100%",...n.configOptions||{}}),i=()=>{console.info("文档加载完成",n.configOptions)};return(r,a)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:n.officeHeight})},[e.createVNode(e.unref(C),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":t.documentServerUrl,config:o.value,events_onDocumentReady:i},null,8,["id","document-server-url","config"])],4))}}),se="",S=(t,n)=>{const o=t.__vccOpts||t;for(const[i,r]of n)o[i]=r;return o},x=v(S(N,[["__scopeId","data-v-fe959cd8"]])),B=t=>(e.pushScopeId("data-v-af8d674c"),t=t(),e.popScopeId(),t),F={class:"template-data"},A={class:"operate-btn"},P=["onClick"],$=["onClick"],L={class:"m-12 point"},M={class:"flex"},H=["onClick"],j=B(()=>e.createElementVNode("i",{class:"icon-icon_particulars iconfont tips"},null,-1)),U=B(()=>e.createElementVNode("p",null,"鼠标右键选择操作的数据类型",-1)),z={class:"flex data-block"},K={class:"operate-btn"},W=["onClick"],G=["onClick"],J={class:"operate-btn"},X=["onClick"],Q=["onClick"],Y=["onClick"],Z=["onClick"],ee=e.defineComponent({__name:"templateOfficeData",props:{data:{type:Array,default:()=>[]},isShowTitleOperate:{type:Boolean,default:!1},isShowContentOperate:{type:Boolean,default:!1},defaultProps:{type:Object,default:()=>{}}},emits:["handleTitleEdit","handleTitleDel","handleGetTitleData","handleDataBlockEdit","handleDataBlockDel","handleChooseDataBlock","handleDifferentTypeDataBlock"],setup(t,{emit:n}){const o=t,i=n,r=c=>{i("handleTitleEdit",c)},a=c=>{i("handleTitleDel",c)},p=c=>{i("handleGetTitleData",c)},h=c=>{i("handleDataBlockEdit",c)},_=c=>{i("handleDataBlockDel",c)},s=(c,y)=>{for(const g of m.value)g.children.forEach(d=>d.isChoose=!1);y.isChoose=!0,i("handleChooseDataBlock",c,y)},f=(c,y)=>{i("handleDifferentTypeDataBlock",c,y)},u=c=>{let y=c.map(g=>({name:g[o.defaultProps.name],children:g[o.defaultProps.children].map(d=>({childName:d[o.defaultProps.childName],childId:d[o.defaultProps.childId]}))}));m.value=y},m=e.ref(o.data);return e.watch(()=>o.data,c=>{u(c)},{immediate:!0}),document.addEventListener("contextmenu",c=>{o.isShowTitleOperate&&c.preventDefault()}),(c,y)=>{const g=e.resolveComponent("el-popover");return e.openBlock(),e.createElementBlock("div",F,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(d,E)=>(e.openBlock(),e.createElementBlock("div",{key:E,class:"mt-4"},[t.isShowTitleOperate?(e.openBlock(),e.createBlock(g,{key:0,"popper-class":"sort-popper",placement:"right",width:"60",trigger:"contextmenu"},{reference:e.withCtx(()=>[e.createElementVNode("span",L,e.toDisplayString(d.name),1)]),default:e.withCtx(()=>[e.createElementVNode("div",A,[e.createElementVNode("p",{class:"point",style:{margin:"0"},onClick:l=>r(d)},"编辑",8,P),e.createElementVNode("p",{style:{color:"var(--ik-error)",margin:"0"},class:"point",onClick:l=>a(d)}," 删除 ",8,$)])]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 不能操作的标题 "),e.createElementVNode("div",M,[e.createElementVNode("p",{class:"mb-2 point",onClick:l=>p(d)},e.toDisplayString(d.name),9,H),d.resultType==="LIST"?(e.openBlock(),e.createBlock(g,{key:0,placement:"right",width:210,trigger:"hover"},{reference:e.withCtx(()=>[j]),default:e.withCtx(()=>[U]),_:1})):e.createCommentVNode("v-if",!0)])],2112)),e.createCommentVNode(" 标题下的内容 "),e.createElementVNode("div",z,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.children,(l,D)=>(e.openBlock(),e.createElementBlock("div",{key:D,style:{"flex-grow":"1"}},[o.isShowContentOperate&&d.resultType==="LIST"?(e.openBlock(),e.createBlock(g,{key:0,"popper-class":"operate-popper",placement:"bottom-end",width:"60",trigger:"contextmenu"},{reference:e.withCtx(()=>[e.createElementVNode("p",{class:e.normalizeClass([{"choose-item":l.isChoose},"item-block"]),title:"鼠标右键选择操作的数据类型"},e.toDisplayString(l.chileName),3)]),default:e.withCtx(()=>[e.createElementVNode("div",K,[e.createElementVNode("p",{class:"point",style:{margin:"0"},onClick:w=>f(l,"TABLE")},"表格",8,W),e.createElementVNode("p",{class:"point",style:{margin:"0"},onClick:w=>f(l,"LIST")},"列表",8,G)])]),_:2},1024)):e.createCommentVNode("v-if",!0),o.isShowContentOperate?(e.openBlock(),e.createBlock(g,{key:1,"popper-class":"operate-popper",placement:"bottom-end",width:"60",trigger:"contextmenu"},{reference:e.withCtx(()=>[e.createElementVNode("p",{class:e.normalizeClass([{"choose-item":l.isChoose},"item-block"]),onClick:w=>s(d,l)},e.toDisplayString(l.childName),11,Y)]),default:e.withCtx(()=>[e.createElementVNode("div",J,[e.createElementVNode("p",{class:"point",style:{margin:"0"},onClick:w=>h(l)},"编辑",8,X),e.createElementVNode("p",{style:{color:"var(--ik-error)",cursor:"pointer",margin:"0"},onClick:w=>_(l)}," 删除 ",8,Q)])]),_:2},1024)):(e.openBlock(),e.createElementBlock("p",{key:2,class:e.normalizeClass([{"choose-item":l.isChoose},"item-block"]),onClick:w=>s(d,l)},e.toDisplayString(l.childName),11,Z))]))),128))])]))),128))])}}}),ce="",te=S(ee,[["__scopeId","data-v-af8d674c"]]),ne={class:"template-config"},oe={class:"template-config-data"},ie={class:"template-panel"},ae=e.defineComponent({__name:"IkTemplateOfficeConfig",props:{title:{type:String,default:"模板配置"},visible:{type:Boolean,default:!1},onlyOfficeConfig:{type:Object,default:()=>{}},isShowTabs:{type:Boolean,default:!0},isShowSearchCondition:{type:Boolean,default:!0},tabsData:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},documentServerUrl:{type:String,default:""},jwtToken:{type:String,default:""},contentHeight:{type:String,default:"650px"},defaultProps:{type:Object,default:()=>{}},isShowTitleOperate:{type:Boolean,default:!1},isShowContentOperate:{type:Boolean,default:!1}},emits:["handleSearchDataBlock","handleClickBlockData"],setup(t,{expose:n,emit:o}){e.useCssVars(u=>({f1632ab6:t.contentHeight}));const i=t,r=o,a=e.ref(i.tabsData[0].id),p=u=>{h.value="",a.value=u,u&&r("handleSearchDataBlock","",a.value)},h=e.ref(""),_=()=>{r("handleSearchDataBlock",h.value,a.value)},s=(u,m)=>{r("handleClickBlockData",u,m)};return n({handleSendMessage:u=>{window[0][0].postMessage(JSON.stringify({type:"INSERT_TEXT",text:u}),"*")}}),(u,m)=>{const c=e.resolveComponent("el-tab-pane"),y=e.resolveComponent("el-tabs"),g=e.resolveComponent("el-input"),d=e.resolveComponent("el-col"),E=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",ne,[e.createVNode(E,{gutter:10},{default:e.withCtx(()=>[e.createVNode(d,{span:6},{default:e.withCtx(()=>[e.createElementVNode("div",oe,[i.isShowTabs?(e.openBlock(),e.createBlock(y,{key:0,modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=l=>a.value=l),onTabClick:m[1]||(m[1]=l=>p(l.props.name))},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tabsData,(l,D)=>(e.openBlock(),e.createBlock(c,{key:D,label:l.label,name:l.id},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):e.createCommentVNode("v-if",!0),i.isShowSearchCondition?(e.openBlock(),e.createBlock(g,{key:1,modelValue:h.value,"onUpdate:modelValue":m[2]||(m[2]=l=>h.value=l),placeholder:"请输入关键字",clearable:"",onInput:m[3]||(m[3]=l=>_())},null,8,["modelValue"])):e.createCommentVNode("v-if",!0),e.createVNode(te,{data:i.tableData,type:a.value,defaultProps:i.defaultProps,onHandleChooseDataBlock:s,isShowTitleOperate:i.isShowTitleOperate,isShowContentOperate:i.isShowContentOperate},null,8,["data","type","defaultProps","isShowTitleOperate","isShowContentOperate"])])]),_:1}),e.createVNode(d,{span:18},{default:e.withCtx(()=>[e.createElementVNode("div",ie,[i.visible?(e.openBlock(),e.createBlock(e.unref(x),{key:0,"config-options":i.onlyOfficeConfig,documentServerUrl:i.documentServerUrl,token:i.jwtToken},null,8,["config-options","documentServerUrl","token"])):e.createCommentVNode("v-if",!0)])]),_:1})]),_:1})])}}}),de="",R=v(S(ae,[["__scopeId","data-v-d31d0157"]]));k.IkTemplateOfficeConfig=R,k.default=R,Object.defineProperties(k,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(k,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(k=typeof globalThis<"u"?globalThis:k||self,e(k.index={},k.vue))})(this,function(k,e){"use strict";const v=(t,n)=>{if(t.install=o=>{for(const i of[t,...Object.values(n??{})])o.component(i.name,i)},n)for(const[o,i]of Object.entries(n))t[o]=i;return t};function O(t,n,o,i){function r(a){return a instanceof o?a:new o(function(p){p(a)})}return new(o||(o=Promise))(function(a,p){function h(f){try{s(i.next(f))}catch(u){p(u)}}function _(f){try{s(i.throw(f))}catch(u){p(u)}}function s(f){f.done?a(f.value):r(f.value).then(h,_)}s((i=i.apply(t,n||[])).next())})}function V(t,n){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,p;return p={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function h(s){return function(f){return _([s,f])}}function _(s){if(i)throw new TypeError("Generator is already executing.");for(;p&&(p=0,s[0]&&(o=0)),o;)try{if(i=1,r&&(a=s[0]&2?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){o=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(s[0]===6&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(t,o)}catch(f){s=[6,f],r=0}finally{i=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var T=function(t,n){return O(void 0,void 0,void 0,function(){return V(this,function(o){return[2,new Promise(function(i,r){try{if(window.DocsAPI)return i(null);var a=document.getElementById(n);if(a)var p=setInterval(function(){var _=a.getAttribute("loading");if(!_){if(clearInterval(p),window.DocsAPI)return i(null);var s=b(n,t,i,r);a.remove(),document.body.appendChild(s)}},500);else{var h=b(n,t,i,r);document.body.appendChild(h)}}catch(_){console.error(_)}})]})})},b=function(t,n,o,i){var r=document.createElement("script");return r.id=t,r.type="text/javascript",r.src=n,r.async=!0,r.onload=function(){r.removeAttribute("loading"),o(null)},r.onerror=function(a){r.removeAttribute("loading"),i(a)},r.setAttribute("loading",""),r},C=e.defineComponent({name:"DocumentEditor",props:{id:{type:String,required:!0},documentServerUrl:{type:String,required:!0},config:{type:Object,required:!0},document_fileType:String,document_title:String,documentType:String,editorConfig_lang:String,height:String,type:String,width:String,onLoadComponentError:Function,events_onAppReady:Function,events_onDocumentStateChange:Function,events_onMetaChange:Function,events_onDocumentReady:Function,events_onInfo:Function,events_onWarning:Function,events_onError:Function,events_onRequestSharingSettings:Function,events_onRequestRename:Function,events_onMakeActionLink:Function,events_onRequestInsertImage:Function,events_onRequestSaveAs:Function,events_onRequestMailMergeRecipients:Function,events_onRequestCompareFile:Function,events_onRequestEditRights:Function,events_onRequestHistory:Function,events_onRequestHistoryClose:Function,events_onRequestHistoryData:Function,events_onRequestRestore:Function,events_onRequestSelectSpreadsheet:Function,events_onRequestSelectDocument:Function},mounted:function(){var t=this,n=this.documentServerUrl;n.endsWith("/")||(n+="/");var o="".concat(n,"web-apps/apps/api/documents/api.js");T(o,"onlyoffice-api-script").then(function(){return t.onLoad()}).catch(function(){t.onError(-2)})},unmounted:function(){var t,n=this.id||"";!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances[n]&&(window.DocEditor.instances[n].destroyEditor(),window.DocEditor.instances[n]=void 0)},watch:{config:{handler:function(t,n){this.onChangeProps()},deep:!0},document_fileType:function(t,n){this.onChangeProps()},document_title:function(t,n){this.onChangeProps()},documentType:function(t,n){this.onChangeProps()},editorConfig_lang:function(t,n){this.onChangeProps()},height:function(t,n){this.onChangeProps()},type:function(t,n){this.onChangeProps()},width:function(t,n){this.onChangeProps()}},methods:{onLoad:function(){var t,n;try{var o=this.id||"";if(window.DocsAPI||this.onError(-3),!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances[o]){console.log("Skip loading. Instance already exists",o);return}!((n=window==null?void 0:window.DocEditor)===null||n===void 0)&&n.instances||(window.DocEditor={instances:{}});var i=Object.assign({document:{fileType:this.document_fileType,title:this.document_title},documentType:this.documentType,editorConfig:{lang:this.editorConfig_lang},events:{onAppReady:this.onAppReady,onDocumentStateChange:this.events_onDocumentStateChange,onMetaChange:this.events_onMetaChange,onDocumentReady:this.events_onDocumentReady,onInfo:this.events_onInfo,onWarning:this.events_onWarning,onError:this.events_onError,onRequestSharingSettings:this.events_onRequestSharingSettings,onRequestRename:this.events_onRequestRename,onMakeActionLink:this.events_onMakeActionLink,onRequestInsertImage:this.events_onRequestInsertImage,onRequestSaveAs:this.events_onRequestSaveAs,onRequestMailMergeRecipients:this.events_onRequestMailMergeRecipients,onRequestCompareFile:this.events_onRequestCompareFile,onRequestEditRights:this.events_onRequestEditRights,onRequestHistory:this.events_onRequestHistory,onRequestHistoryClose:this.events_onRequestHistoryClose,onRequestHistoryData:this.events_onRequestHistoryData,onRequestRestore:this.events_onRequestRestore,onRequestSelectSpreadsheet:this.events_onRequestSelectSpreadsheet,onRequestSelectDocument:this.events_onRequestSelectDocument},height:this.height,type:this.type,width:this.width},this.config||{}),r=window.DocsAPI.DocEditor(o,i);window.DocEditor.instances[o]=r}catch(a){console.error(a),this.onError(-1)}},onError:function(t){var n;switch(t){case-2:n="Error load DocsAPI from "+this.documentServerUrl;break;case-3:n="DocsAPI is not defined";break;default:n="Unknown error loading component",t=-1}typeof this.onLoadComponentError>"u"?console.error(n):this.onLoadComponentError(t,n)},onAppReady:function(){var t=this.id||"";this.events_onAppReady(window.DocEditor.instances[t])},onChangeProps:function(){var t,n=this.id||"";!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances[n]&&(window.DocEditor.instances[n].destroyEditor(),window.DocEditor.instances[n]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const I=["id"];function q(t,n,o,i,r,a){return e.openBlock(),e.createElementBlock("div",{id:t.id},null,8,I)}C.render=q,C.__file="src/components/DocumentEditor.vue";const N=e.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"}},setup(t){const n=t,o=e.ref({width:"100%",height:"100%",...n.configOptions||{},...n.configOptions}),i=()=>{console.info("文档加载完成",n.configOptions)};return(r,a)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:n.officeHeight})},[e.createVNode(e.unref(C),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":t.documentServerUrl,config:o.value,events_onDocumentReady:i},null,8,["id","document-server-url","config"])],4))}}),se="",S=(t,n)=>{const o=t.__vccOpts||t;for(const[i,r]of n)o[i]=r;return o},x=v(S(N,[["__scopeId","data-v-98d51ef9"]])),B=t=>(e.pushScopeId("data-v-af8d674c"),t=t(),e.popScopeId(),t),F={class:"template-data"},A={class:"operate-btn"},P=["onClick"],$=["onClick"],L={class:"m-12 point"},M={class:"flex"},H=["onClick"],j=B(()=>e.createElementVNode("i",{class:"icon-icon_particulars iconfont tips"},null,-1)),U=B(()=>e.createElementVNode("p",null,"鼠标右键选择操作的数据类型",-1)),z={class:"flex data-block"},K={class:"operate-btn"},W=["onClick"],G=["onClick"],J={class:"operate-btn"},X=["onClick"],Q=["onClick"],Y=["onClick"],Z=["onClick"],ee=e.defineComponent({__name:"templateOfficeData",props:{data:{type:Array,default:()=>[]},isShowTitleOperate:{type:Boolean,default:!1},isShowContentOperate:{type:Boolean,default:!1},defaultProps:{type:Object,default:()=>{}}},emits:["handleTitleEdit","handleTitleDel","handleGetTitleData","handleDataBlockEdit","handleDataBlockDel","handleChooseDataBlock","handleDifferentTypeDataBlock"],setup(t,{emit:n}){const o=t,i=n,r=c=>{i("handleTitleEdit",c)},a=c=>{i("handleTitleDel",c)},p=c=>{i("handleGetTitleData",c)},h=c=>{i("handleDataBlockEdit",c)},_=c=>{i("handleDataBlockDel",c)},s=(c,y)=>{for(const g of m.value)g.children.forEach(d=>d.isChoose=!1);y.isChoose=!0,i("handleChooseDataBlock",c,y)},f=(c,y)=>{i("handleDifferentTypeDataBlock",c,y)},u=c=>{let y=c.map(g=>({name:g[o.defaultProps.name],children:g[o.defaultProps.children].map(d=>({childName:d[o.defaultProps.childName],childId:d[o.defaultProps.childId]}))}));m.value=y},m=e.ref(o.data);return e.watch(()=>o.data,c=>{u(c)},{immediate:!0}),document.addEventListener("contextmenu",c=>{o.isShowTitleOperate&&c.preventDefault()}),(c,y)=>{const g=e.resolveComponent("el-popover");return e.openBlock(),e.createElementBlock("div",F,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(d,E)=>(e.openBlock(),e.createElementBlock("div",{key:E,class:"mt-4"},[t.isShowTitleOperate?(e.openBlock(),e.createBlock(g,{key:0,"popper-class":"sort-popper",placement:"right",width:"60",trigger:"contextmenu"},{reference:e.withCtx(()=>[e.createElementVNode("span",L,e.toDisplayString(d.name),1)]),default:e.withCtx(()=>[e.createElementVNode("div",A,[e.createElementVNode("p",{class:"point",style:{margin:"0"},onClick:l=>r(d)},"编辑",8,P),e.createElementVNode("p",{style:{color:"var(--ik-error)",margin:"0"},class:"point",onClick:l=>a(d)}," 删除 ",8,$)])]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 不能操作的标题 "),e.createElementVNode("div",M,[e.createElementVNode("p",{class:"mb-2 point",onClick:l=>p(d)},e.toDisplayString(d.name),9,H),d.resultType==="LIST"?(e.openBlock(),e.createBlock(g,{key:0,placement:"right",width:210,trigger:"hover"},{reference:e.withCtx(()=>[j]),default:e.withCtx(()=>[U]),_:1})):e.createCommentVNode("v-if",!0)])],2112)),e.createCommentVNode(" 标题下的内容 "),e.createElementVNode("div",z,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.children,(l,D)=>(e.openBlock(),e.createElementBlock("div",{key:D,style:{"flex-grow":"1"}},[o.isShowContentOperate&&d.resultType==="LIST"?(e.openBlock(),e.createBlock(g,{key:0,"popper-class":"operate-popper",placement:"bottom-end",width:"60",trigger:"contextmenu"},{reference:e.withCtx(()=>[e.createElementVNode("p",{class:e.normalizeClass([{"choose-item":l.isChoose},"item-block"]),title:"鼠标右键选择操作的数据类型"},e.toDisplayString(l.chileName),3)]),default:e.withCtx(()=>[e.createElementVNode("div",K,[e.createElementVNode("p",{class:"point",style:{margin:"0"},onClick:w=>f(l,"TABLE")},"表格",8,W),e.createElementVNode("p",{class:"point",style:{margin:"0"},onClick:w=>f(l,"LIST")},"列表",8,G)])]),_:2},1024)):e.createCommentVNode("v-if",!0),o.isShowContentOperate?(e.openBlock(),e.createBlock(g,{key:1,"popper-class":"operate-popper",placement:"bottom-end",width:"60",trigger:"contextmenu"},{reference:e.withCtx(()=>[e.createElementVNode("p",{class:e.normalizeClass([{"choose-item":l.isChoose},"item-block"]),onClick:w=>s(d,l)},e.toDisplayString(l.childName),11,Y)]),default:e.withCtx(()=>[e.createElementVNode("div",J,[e.createElementVNode("p",{class:"point",style:{margin:"0"},onClick:w=>h(l)},"编辑",8,X),e.createElementVNode("p",{style:{color:"var(--ik-error)",cursor:"pointer",margin:"0"},onClick:w=>_(l)}," 删除 ",8,Q)])]),_:2},1024)):(e.openBlock(),e.createElementBlock("p",{key:2,class:e.normalizeClass([{"choose-item":l.isChoose},"item-block"]),onClick:w=>s(d,l)},e.toDisplayString(l.childName),11,Z))]))),128))])]))),128))])}}}),ce="",te=S(ee,[["__scopeId","data-v-af8d674c"]]),ne={class:"template-config"},oe={class:"template-config-data"},ie={class:"template-panel"},ae=e.defineComponent({__name:"IkTemplateOfficeConfig",props:{title:{type:String,default:"模板配置"},visible:{type:Boolean,default:!1},onlyOfficeConfig:{type:Object,default:()=>{}},isShowTabs:{type:Boolean,default:!0},isShowSearchCondition:{type:Boolean,default:!0},tabsData:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},documentServerUrl:{type:String,default:""},jwtToken:{type:String,default:""},contentHeight:{type:String,default:"650px"},defaultProps:{type:Object,default:()=>{}},isShowTitleOperate:{type:Boolean,default:!1},isShowContentOperate:{type:Boolean,default:!1}},emits:["handleSearchDataBlock","handleClickBlockData"],setup(t,{expose:n,emit:o}){e.useCssVars(u=>({f1632ab6:t.contentHeight}));const i=t,r=o,a=e.ref(i.tabsData[0].id),p=u=>{h.value="",a.value=u,u&&r("handleSearchDataBlock","",a.value)},h=e.ref(""),_=()=>{r("handleSearchDataBlock",h.value,a.value)},s=(u,m)=>{r("handleClickBlockData",u,m)};return n({handleSendMessage:u=>{window[0][0].postMessage(JSON.stringify({type:"INSERT_TEXT",text:u}),"*")}}),(u,m)=>{const c=e.resolveComponent("el-tab-pane"),y=e.resolveComponent("el-tabs"),g=e.resolveComponent("el-input"),d=e.resolveComponent("el-col"),E=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",ne,[e.createVNode(E,{gutter:10},{default:e.withCtx(()=>[e.createVNode(d,{span:6},{default:e.withCtx(()=>[e.createElementVNode("div",oe,[i.isShowTabs?(e.openBlock(),e.createBlock(y,{key:0,modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=l=>a.value=l),onTabClick:m[1]||(m[1]=l=>p(l.props.name))},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tabsData,(l,D)=>(e.openBlock(),e.createBlock(c,{key:D,label:l.label,name:l.id},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):e.createCommentVNode("v-if",!0),i.isShowSearchCondition?(e.openBlock(),e.createBlock(g,{key:1,modelValue:h.value,"onUpdate:modelValue":m[2]||(m[2]=l=>h.value=l),placeholder:"请输入关键字",clearable:"",onInput:m[3]||(m[3]=l=>_())},null,8,["modelValue"])):e.createCommentVNode("v-if",!0),e.createVNode(te,{data:i.tableData,type:a.value,defaultProps:i.defaultProps,onHandleChooseDataBlock:s,isShowTitleOperate:i.isShowTitleOperate,isShowContentOperate:i.isShowContentOperate},null,8,["data","type","defaultProps","isShowTitleOperate","isShowContentOperate"])])]),_:1}),e.createVNode(d,{span:18},{default:e.withCtx(()=>[e.createElementVNode("div",ie,[i.visible?(e.openBlock(),e.createBlock(e.unref(x),{key:0,"config-options":i.onlyOfficeConfig,documentServerUrl:i.documentServerUrl,token:i.jwtToken},null,8,["config-options","documentServerUrl","token"])):e.createCommentVNode("v-if",!0)])]),_:1})]),_:1})])}}}),de="",R=v(S(ae,[["__scopeId","data-v-d31d0157"]]));k.IkTemplateOfficeConfig=R,k.default=R,Object.defineProperties(k,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,4 +1,4 @@
1
- import { defineComponent as F, openBlock as s, createElementBlock as h, createElementVNode as c, computed as L, mergeModels as Q, useModel as i3, ref as R, reactive as A3, watch as g3, nextTick as t3, resolveComponent as J, Fragment as O, createBlock as k, createCommentVNode as _, createVNode as A, unref as u, withCtx as y, normalizeClass as $, normalizeStyle as U, createTextVNode as q, toDisplayString as C, h as y3, mergeProps as n3, createSlots as v3, renderSlot as M, renderList as w3, withDirectives as _3, vShow as k3, pushScopeId as z3, popScopeId as b3 } from "vue";
1
+ import { defineComponent as F, openBlock as s, createElementBlock as h, createElementVNode as c, computed as L, mergeModels as Q, useModel as i3, ref as R, reactive as A3, watch as g3, nextTick as t3, resolveComponent as J, Fragment as O, createBlock as z, createCommentVNode as k, createVNode as A, unref as u, withCtx as y, normalizeClass as $, normalizeStyle as U, createTextVNode as q, toDisplayString as C, h as y3, mergeProps as n3, createSlots as v3, renderSlot as M, renderList as w3, withDirectives as _3, vShow as k3, pushScopeId as z3, popScopeId as b3 } from "vue";
2
2
  import { ElUpload as c3, ElButton as F3, ElProgress as r3, ElTooltip as d3, ElIcon as H, ElMessage as Y } from "element-plus";
3
3
  import { buildUUID as C3, ikColor as x3, ikFile as B3 } from "iking-utils-pro";
4
4
  const P = (e, t) => {
@@ -96,7 +96,7 @@ var S3 = /* @__PURE__ */ F({
96
96
  ]));
97
97
  }
98
98
  }), q3 = U3;
99
- const z = (e, t) => {
99
+ const b = (e, t) => {
100
100
  var a, l, w, m;
101
101
  const o = (a = e == null ? void 0 : e.response) != null && a.data ? p3((w = (l = e == null ? void 0 : e.response) == null ? void 0 : l.data) == null ? void 0 : w.suffix) : ((m = e.raw) == null ? void 0 : m.type) || p3(e[t.suffix]), r = o == null ? void 0 : o.toLowerCase(), n = {
102
102
  sheet: "excel",
@@ -706,7 +706,7 @@ const z = (e, t) => {
706
706
  }
707
707
  },
708
708
  setup(e) {
709
- const t = e, o = L(() => t.file ? z(t.file, t.fields) : t.type);
709
+ const t = e, o = L(() => t.file ? b(t.file, t.fields) : t.type);
710
710
  return (r, n) => o.value === "image" ? (s(), h("svg", j3, Q3)) : o.value === "zip" ? (s(), h("svg", J3, X3)) : o.value === "ppt" ? (s(), h("svg", Y3, n6)) : o.value === "word" ? (s(), h("svg", o6, l6)) : o.value === "pdf" ? (s(), h("svg", a6, d6)) : o.value === "txt" ? (s(), h("svg", u6, f6)) : o.value === "audio" ? (s(), h("svg", v6, g6)) : o.value === "video" ? (s(), h("svg", y6, k6)) : o.value === "excel" ? (s(), h("svg", z6, x6)) : o.value === "exe" ? (s(), h("svg", B6, $6)) : o.value === "json" ? (s(), h("svg", R6, O6)) : (s(), h("svg", U6, j6));
711
711
  }
712
712
  }), K = (e, t) => {
@@ -764,12 +764,12 @@ const z = (e, t) => {
764
764
  }), w = (d) => {
765
765
  var g, x, S, D, V, W, T;
766
766
  try {
767
- const b = ((g = d == null ? void 0 : d.response) == null ? void 0 : g.data) || d, j = b[r.value.url] || (b == null ? void 0 : b.id) || b.attachmentId, E = (x = b[r.value.suffix] || b.attachmentSuffix) == null ? void 0 : x.toLowerCase(), G = b[r.value.name] || (b == null ? void 0 : b.attachmentName);
767
+ const _ = ((g = d == null ? void 0 : d.response) == null ? void 0 : g.data) || d, j = _[r.value.url] || (_ == null ? void 0 : _.id) || _.attachmentId, E = (x = _[r.value.suffix] || _.attachmentSuffix) == null ? void 0 : x.toLowerCase(), G = _[r.value.name] || (_ == null ? void 0 : _.attachmentName) || (_ == null ? void 0 : _.originName);
768
768
  if (a.value = {
769
769
  ...d,
770
770
  name: d[r.value.name],
771
771
  url: o3(t.loadUrl, j)
772
- }, d && z(d, r.value) === "image") {
772
+ }, d && b(d, r.value) === "image") {
773
773
  l.image = !0;
774
774
  return;
775
775
  } else if ((((S = t.onlyOfficeConfig) == null ? void 0 : S.accept) || t.onlyOfficeAccept).includes(E)) {
@@ -795,8 +795,8 @@ const z = (e, t) => {
795
795
  };
796
796
  return;
797
797
  }
798
- } catch (b) {
799
- console.info("预览错误: ", b);
798
+ } catch (_) {
799
+ console.info("预览错误: ", _);
800
800
  }
801
801
  };
802
802
  g3([o, t.file], ([d, g]) => {
@@ -814,15 +814,15 @@ const z = (e, t) => {
814
814
  O,
815
815
  { key: 0 },
816
816
  [
817
- (S = a.value) != null && S.url && l.image ? (s(), k(x, {
817
+ (S = a.value) != null && S.url && l.image ? (s(), z(x, {
818
818
  key: 0,
819
819
  onClose: g[0] || (g[0] = (V) => {
820
820
  a.value = null, l.image = !1;
821
821
  }),
822
822
  ref: "previewImgRef",
823
823
  "url-list": [(D = a.value) == null ? void 0 : D.url]
824
- }, null, 8, ["url-list"])) : _("v-if", !0),
825
- _(" 文档类 "),
824
+ }, null, 8, ["url-list"])) : k("v-if", !0),
825
+ k(" 文档类 "),
826
826
  A(u(le), {
827
827
  modelValue: l.office,
828
828
  "onUpdate:modelValue": g[1] || (g[1] = (V) => l.office = V),
@@ -841,8 +841,7 @@ const z = (e, t) => {
841
841
  default: y(() => [
842
842
  A(u(fe), {
843
843
  "config-options": n.value,
844
- "document-server-url": e.onlyOfficeConfig.serverUrl || e.onlyofficeServer,
845
- mode: "view"
844
+ "document-server-url": e.onlyOfficeConfig.serverUrl || e.onlyofficeServer
846
845
  }, null, 8, ["config-options", "document-server-url"])
847
846
  ]),
848
847
  _: 1
@@ -851,7 +850,7 @@ const z = (e, t) => {
851
850
  ],
852
851
  64
853
852
  /* STABLE_FRAGMENT */
854
- )) : _("v-if", !0);
853
+ )) : k("v-if", !0);
855
854
  };
856
855
  }
857
856
  });
@@ -946,7 +945,7 @@ const W6 = P(P6), N6 = {
946
945
  style: U(r.value)
947
946
  },
948
947
  [
949
- _(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
948
+ k(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
950
949
  o.value === "iksig" ? (s(), h(
951
950
  "i",
952
951
  {
@@ -979,7 +978,7 @@ const W6 = P(P6), N6 = {
979
978
  ],
980
979
  6
981
980
  /* CLASS, STYLE */
982
- )) : (s(), k(l, {
981
+ )) : (s(), z(l, {
983
982
  key: 1,
984
983
  content: n.title,
985
984
  placement: "top"
@@ -1040,7 +1039,7 @@ const W6 = P(P6), N6 = {
1040
1039
  _: 1
1041
1040
  /* STABLE */
1042
1041
  }, 8, ["content"]))
1043
- ])) : (s(), k(w, {
1042
+ ])) : (s(), z(w, {
1044
1043
  key: 1,
1045
1044
  type: ["warning", "error"].includes(n.type) ? "danger" : ""
1046
1045
  }, {
@@ -1081,7 +1080,7 @@ const ee = /* @__PURE__ */ K(Y6, [["__scopeId", "data-v-7d95dbf5"]]), I = P(ee),
1081
1080
  size: 20,
1082
1081
  error: ""
1083
1082
  })
1084
- ])) : (s(), k(u(I), {
1083
+ ])) : (s(), z(u(I), {
1085
1084
  key: 1,
1086
1085
  error: "",
1087
1086
  name: "iksvg_guanbidanchuang",
@@ -1124,7 +1123,7 @@ const oe = /* @__PURE__ */ K(ne, [["__scopeId", "data-v-79f49df8"]]), ie = { cla
1124
1123
  });
1125
1124
  return (l, w) => {
1126
1125
  const m = J("el-dialog");
1127
- return s(), k(m, n3({
1126
+ return s(), z(m, n3({
1128
1127
  modelValue: o.value,
1129
1128
  "onUpdate:modelValue": w[0] || (w[0] = (d) => o.value = d)
1130
1129
  }, l.$attrs, {
@@ -1152,13 +1151,13 @@ const oe = /* @__PURE__ */ K(ne, [["__scopeId", "data-v-79f49df8"]]), ie = { cla
1152
1151
  )
1153
1152
  ])
1154
1153
  ]),
1155
- l.$attrs.showClose ? (s(), k(u(I), {
1154
+ l.$attrs.showClose ? (s(), z(u(I), {
1156
1155
  key: 0,
1157
1156
  onClick: n,
1158
1157
  name: r.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
1159
1158
  class: "absolute! top-[18px] right-[50px] icon-dialog-full",
1160
1159
  title: r.value ? "退出全屏" : "全屏"
1161
- }, null, 8, ["name", "title"])) : _("v-if", !0)
1160
+ }, null, 8, ["name", "title"])) : k("v-if", !0)
1162
1161
  ]),
1163
1162
  default: y(() => [
1164
1163
  M(l.$slots, "default")
@@ -1504,7 +1503,8 @@ const pe = /* @__PURE__ */ F({
1504
1503
  const t = e, o = R({
1505
1504
  width: "100%",
1506
1505
  height: "100%",
1507
- ...t.configOptions || {}
1506
+ ...t.configOptions || {},
1507
+ ...t.configOptions
1508
1508
  }), r = () => {
1509
1509
  console.info("文档加载完成", t.configOptions);
1510
1510
  };
@@ -1527,7 +1527,7 @@ const pe = /* @__PURE__ */ F({
1527
1527
  ));
1528
1528
  }
1529
1529
  });
1530
- const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he), ve = (e) => (z3("data-v-10a62ee9"), e = e(), b3(), e), me = { class: "ik-flie-list" }, Ae = { class: "name" }, ge = { key: 1 }, ye = ["src"], we = { class: "file-icon" }, _e = { class: "file-name-loading" }, ke = { class: "file-name" }, ze = { key: 0 }, be = {
1530
+ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-98d51ef9"]]), fe = P(he), ve = (e) => (z3("data-v-10a62ee9"), e = e(), b3(), e), me = { class: "ik-flie-list" }, Ae = { class: "name" }, ge = { key: 1 }, ye = ["src"], we = { class: "file-icon" }, _e = { class: "file-name-loading" }, ke = { class: "file-name" }, ze = { key: 0 }, be = {
1531
1531
  key: 0,
1532
1532
  class: "file-size"
1533
1533
  }, Fe = { class: "name" }, Ce = { class: "file-name-loading" }, xe = { class: "file-name" }, Be = { class: "file-size" }, Ie = { class: "operate-btn" }, Se = { class: "card" }, De = { class: "title" }, Ve = /* @__PURE__ */ ve(() => /* @__PURE__ */ c(
@@ -1729,7 +1729,7 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
1729
1729
  showClose: !0,
1730
1730
  duration: 5e3
1731
1731
  }), r("exceed", p);
1732
- }, b = (p, f, i) => {
1732
+ }, _ = (p, f, i) => {
1733
1733
  r("success", p, f, i);
1734
1734
  }, j = (p, f, i) => {
1735
1735
  d.value.push(f), r("error", p, f, i);
@@ -1767,11 +1767,11 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
1767
1767
  O,
1768
1768
  null,
1769
1769
  [
1770
- e.preview ? _("v-if", !0) : (s(), h(
1770
+ e.preview ? k("v-if", !0) : (s(), h(
1771
1771
  O,
1772
1772
  { key: 0 },
1773
1773
  [
1774
- e.type === "button" ? (s(), k(u(c3), n3({
1774
+ e.type === "button" ? (s(), z(u(c3), n3({
1775
1775
  key: 0,
1776
1776
  class: "ik-file-upload"
1777
1777
  }, p.$attrs, {
@@ -1788,11 +1788,11 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
1788
1788
  multiple: e.multiple,
1789
1789
  headers: e.headers,
1790
1790
  limit: e.limit,
1791
- "on-success": b,
1791
+ "on-success": _,
1792
1792
  "on-error": j
1793
1793
  }), {
1794
1794
  trigger: y(() => [
1795
- p.$slots.trigger ? M(p.$slots, "trigger", { key: 0 }, void 0, !0) : (s(), k(u(F3), {
1795
+ p.$slots.trigger ? M(p.$slots, "trigger", { key: 0 }, void 0, !0) : (s(), z(u(F3), {
1796
1796
  key: 1,
1797
1797
  disabled: X.value
1798
1798
  }, v3({
@@ -1821,13 +1821,13 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
1821
1821
  file: y(({ file: i }) => [
1822
1822
  c("div", me, [
1823
1823
  c("div", Ae, [
1824
- !p.$slots.fileIcon && (!e.customIconData[u(z)(i, l)] || !e.customIconData[u(z)(i, l)][e.customIconFields.icon]) ? (s(), k(h3, {
1824
+ !p.$slots.fileIcon && (!e.customIconData[u(b)(i, l)] || !e.customIconData[u(b)(i, l)][e.customIconFields.icon]) ? (s(), z(h3, {
1825
1825
  key: 0,
1826
- type: u(z)(i, l)
1827
- }, null, 8, ["type"])) : !p.$slots.fileIcon && e.customIconData[u(z)(i, l)] && e.customIconData[u(z)(i, l)][e.customIconFields.icon] ? (s(), h("div", ge, [
1828
- e.customIconData[u(z)(i, l)][e.customIconFields.type] === "img" ? (s(), h("img", {
1826
+ type: u(b)(i, l)
1827
+ }, null, 8, ["type"])) : !p.$slots.fileIcon && e.customIconData[u(b)(i, l)] && e.customIconData[u(b)(i, l)][e.customIconFields.icon] ? (s(), h("div", ge, [
1828
+ e.customIconData[u(b)(i, l)][e.customIconFields.type] === "img" ? (s(), h("img", {
1829
1829
  key: 0,
1830
- src: e.customIconData[u(z)(i, l)][e.customIconFields.icon],
1830
+ src: e.customIconData[u(b)(i, l)][e.customIconFields.icon],
1831
1831
  alt: "",
1832
1832
  class: "file-img-icon"
1833
1833
  }, null, 8, ye)) : (s(), h(
@@ -1835,7 +1835,7 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
1835
1835
  {
1836
1836
  key: 1,
1837
1837
  class: $([
1838
- e.customIconData[u(z)(i, l)][e.customIconFields.icon],
1838
+ e.customIconData[u(b)(i, l)][e.customIconFields.icon],
1839
1839
  "file-icon-size"
1840
1840
  ])
1841
1841
  },
@@ -1843,7 +1843,7 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
1843
1843
  2
1844
1844
  /* CLASS */
1845
1845
  ))
1846
- ])) : _("v-if", !0),
1846
+ ])) : k("v-if", !0),
1847
1847
  c("div", we, [
1848
1848
  M(p.$slots, "fileIcon", { file: i }, void 0, !0)
1849
1849
  ]),
@@ -1860,7 +1860,7 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
1860
1860
  "(" + C(i.percentage) + "%)",
1861
1861
  1
1862
1862
  /* TEXT */
1863
- )) : _("v-if", !0)
1863
+ )) : k("v-if", !0)
1864
1864
  ]),
1865
1865
  i.status === "success" ? (s(), h(
1866
1866
  "p",
@@ -1868,14 +1868,14 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
1868
1868
  C(u(e3)(i.size / 1024 / 1024)) + "MB ",
1869
1869
  1
1870
1870
  /* TEXT */
1871
- )) : _("v-if", !0),
1872
- i.percentage && i.status === "uploading" ? (s(), k(u(r3), {
1871
+ )) : k("v-if", !0),
1872
+ i.percentage && i.status === "uploading" ? (s(), z(u(r3), {
1873
1873
  key: 1,
1874
1874
  "text-inside": "",
1875
1875
  percentage: i.percentage,
1876
1876
  color: "var(--el-color-primary)",
1877
1877
  "show-text": !1
1878
- }, null, 8, ["percentage"])) : _("v-if", !0)
1878
+ }, null, 8, ["percentage"])) : k("v-if", !0)
1879
1879
  ])
1880
1880
  ]),
1881
1881
  c("div", null, [
@@ -1901,7 +1901,7 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
1901
1901
  ],
1902
1902
  64
1903
1903
  /* STABLE_FRAGMENT */
1904
- )) : (s(), k(u(I), {
1904
+ )) : (s(), z(u(I), {
1905
1905
  key: 1,
1906
1906
  onClick: (v) => N(i),
1907
1907
  error: "",
@@ -1916,7 +1916,7 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
1916
1916
  default: y(() => {
1917
1917
  var i;
1918
1918
  return [
1919
- !e.preview && e.tip ? (s(), k(u(d3), {
1919
+ !e.preview && e.tip ? (s(), z(u(d3), {
1920
1920
  key: 0,
1921
1921
  effect: "dark",
1922
1922
  content: o.tipText || "",
@@ -1936,7 +1936,7 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
1936
1936
  ]),
1937
1937
  _: 1
1938
1938
  /* STABLE */
1939
- }, 8, ["content"])) : _("v-if", !0),
1939
+ }, 8, ["content"])) : k("v-if", !0),
1940
1940
  (i = d.value) != null && i.length ? (s(!0), h(
1941
1941
  O,
1942
1942
  { key: 1 },
@@ -2009,12 +2009,12 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
2009
2009
  ]))),
2010
2010
  128
2011
2011
  /* KEYED_FRAGMENT */
2012
- )) : _("v-if", !0)
2012
+ )) : k("v-if", !0)
2013
2013
  ];
2014
2014
  }),
2015
2015
  _: 3
2016
2016
  /* FORWARDED */
2017
- }, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (s(), k(u(c3), n3({
2017
+ }, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (s(), z(u(c3), n3({
2018
2018
  key: 1,
2019
2019
  "file-list": n.value,
2020
2020
  "onUpdate:fileList": f[1] || (f[1] = (i) => n.value = i),
@@ -2031,20 +2031,20 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
2031
2031
  multiple: e.multiple,
2032
2032
  headers: e.headers,
2033
2033
  limit: e.limit,
2034
- "on-success": b,
2034
+ "on-success": _,
2035
2035
  "on-error": j,
2036
2036
  "on-change": D
2037
2037
  }), {
2038
2038
  file: y(({ file: i }) => [
2039
2039
  c("div", $e, [
2040
2040
  c("div", Re, [
2041
- !p.$slots.fileIcon && (!e.customIconData[u(z)(i, l)] || !e.customIconData[u(z)(i, l)][e.customIconFields.icon]) ? (s(), k(h3, {
2041
+ !p.$slots.fileIcon && (!e.customIconData[u(b)(i, l)] || !e.customIconData[u(b)(i, l)][e.customIconFields.icon]) ? (s(), z(h3, {
2042
2042
  key: 0,
2043
- type: u(z)(i, l)
2044
- }, null, 8, ["type"])) : !p.$slots.fileIcon && e.customIconData[u(z)(i, l)] && e.customIconData[u(z)(i, l)][e.customIconFields.icon] ? (s(), h("div", Me, [
2045
- e.customIconData[u(z)(i, l)][e.customIconFields.type] === "img" ? (s(), h("img", {
2043
+ type: u(b)(i, l)
2044
+ }, null, 8, ["type"])) : !p.$slots.fileIcon && e.customIconData[u(b)(i, l)] && e.customIconData[u(b)(i, l)][e.customIconFields.icon] ? (s(), h("div", Me, [
2045
+ e.customIconData[u(b)(i, l)][e.customIconFields.type] === "img" ? (s(), h("img", {
2046
2046
  key: 0,
2047
- src: e.customIconData[u(z)(i, l)][e.customIconFields.icon],
2047
+ src: e.customIconData[u(b)(i, l)][e.customIconFields.icon],
2048
2048
  alt: "",
2049
2049
  class: "file-img-icon"
2050
2050
  }, null, 8, Ee)) : (s(), h(
@@ -2052,7 +2052,7 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
2052
2052
  {
2053
2053
  key: 1,
2054
2054
  class: $([
2055
- e.customIconData[u(z)(i, l)][e.customIconFields.icon],
2055
+ e.customIconData[u(b)(i, l)][e.customIconFields.icon],
2056
2056
  "file-icon-size"
2057
2057
  ])
2058
2058
  },
@@ -2060,7 +2060,7 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
2060
2060
  2
2061
2061
  /* CLASS */
2062
2062
  ))
2063
- ])) : _("v-if", !0),
2063
+ ])) : k("v-if", !0),
2064
2064
  c("div", He, [
2065
2065
  M(p.$slots, "fileIcon", { file: i }, void 0, !0)
2066
2066
  ]),
@@ -2077,7 +2077,7 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
2077
2077
  "(" + C(i.percentage) + "%)",
2078
2078
  1
2079
2079
  /* TEXT */
2080
- )) : _("v-if", !0)
2080
+ )) : k("v-if", !0)
2081
2081
  ]),
2082
2082
  i.status === "success" ? (s(), h(
2083
2083
  "p",
@@ -2085,21 +2085,21 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
2085
2085
  C(u(e3)(i.size / 1024 / 1024)) + "MB ",
2086
2086
  1
2087
2087
  /* TEXT */
2088
- )) : _("v-if", !0),
2089
- i.percentage && i.status === "uploading" ? (s(), k(u(r3), {
2088
+ )) : k("v-if", !0),
2089
+ i.percentage && i.status === "uploading" ? (s(), z(u(r3), {
2090
2090
  key: 1,
2091
2091
  "text-inside": "",
2092
2092
  percentage: i.percentage,
2093
2093
  color: "var(--el-color-primary)",
2094
2094
  "show-text": !1
2095
- }, null, 8, ["percentage"])) : _("v-if", !0)
2095
+ }, null, 8, ["percentage"])) : k("v-if", !0)
2096
2096
  ])
2097
2097
  ]),
2098
2098
  e.preview ? (s(), h(
2099
2099
  O,
2100
2100
  { key: 1 },
2101
2101
  [
2102
- e.preview || i.percentage === 100 ? (s(), k(
2102
+ e.preview || i.percentage === 100 ? (s(), z(
2103
2103
  u(H),
2104
2104
  {
2105
2105
  key: 0,
@@ -2117,7 +2117,7 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
2117
2117
  },
2118
2118
  1024
2119
2119
  /* DYNAMIC_SLOTS */
2120
- )) : _("v-if", !0),
2120
+ )) : k("v-if", !0),
2121
2121
  A(
2122
2122
  u(H),
2123
2123
  {
@@ -2162,7 +2162,7 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
2162
2162
  ],
2163
2163
  64
2164
2164
  /* STABLE_FRAGMENT */
2165
- )) : (s(), k(u(I), {
2165
+ )) : (s(), z(u(I), {
2166
2166
  key: 1,
2167
2167
  onClick: (v) => N(i),
2168
2168
  error: "",
@@ -2179,20 +2179,20 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
2179
2179
  c("div", De, [
2180
2180
  e.imageMode ? M(p.$slots, "image", { key: 0 }, () => [
2181
2181
  Ve
2182
- ], !0) : e.showIcon ? (s(), k(u(I), {
2182
+ ], !0) : e.showIcon ? (s(), z(u(I), {
2183
2183
  key: 1,
2184
2184
  name: "iksvg_img_shangchuanhetongfujianbeifen",
2185
2185
  type: "primary",
2186
2186
  bg: "",
2187
2187
  size: 40
2188
- })) : _("v-if", !0),
2188
+ })) : k("v-if", !0),
2189
2189
  c("span", null, [
2190
2190
  q(
2191
2191
  C(e.title) + " ",
2192
2192
  1
2193
2193
  /* TEXT */
2194
2194
  ),
2195
- !e.preview && e.tip ? (s(), k(u(d3), {
2195
+ !e.preview && e.tip ? (s(), z(u(d3), {
2196
2196
  key: 0,
2197
2197
  effect: "dark",
2198
2198
  content: o.tipText || "",
@@ -2212,7 +2212,7 @@ const he = /* @__PURE__ */ K(pe, [["__scopeId", "data-v-fe959cd8"]]), fe = P(he)
2212
2212
  ]),
2213
2213
  _: 1
2214
2214
  /* STABLE */
2215
- }, 8, ["content"])) : _("v-if", !0)
2215
+ }, 8, ["content"])) : k("v-if", !0)
2216
2216
  ])
2217
2217
  ]),
2218
2218
  A(u(I), {