comp-hub 0.0.71 → 0.0.72

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.
@@ -0,0 +1 @@
1
+ import{u as c}from"./index.vue_vue_type_script_setup_true_lang-CbOhmZiK.js";import{C as s}from"./index-D_PkB51t.js";import{d as r,i as a,a as n,c as p,b as m,m as i,_ as d}from"./index-Be6ESMP6.js";import"./index.vue_vue_type_script_setup_true_lang-CV2H_QQ-.js";import"./index-BdUOdA-C.js";import"./index-DZEFW1um.js";import"./index.vue_vue_type_script_setup_true_lang-DkD5t-Gc.js";import"./index-BxKlr13c.js";import"./index.vue_vue_type_script_setup_true_lang-Cy12UsU3.js";const l={class:"collect-container"},_=r({__name:"index",setup(f){const o=c();o.setOperate(["download","preview","collect"]),a(()=>{o.getMyCollectList()});const t=o.watchCancelCollectComp(e=>{o.delCompListById(e)});return n(()=>{t==null||t()}),(e,C)=>(m(),p("div",l,[i(s)]))}}),I=d(_,[["__scopeId","data-v-fe625c27"]]);export{I as default};
@@ -0,0 +1 @@
1
+ import{_ as h}from"./index.vue_vue_type_script_setup_true_lang-DkD5t-Gc.js";import{d as l,r as i,l as C,v as V,b as f,n as b,m as k,E as d,f as $,Z as _,a2 as y,h as p,c as w,_ as B}from"./index-Be6ESMP6.js";const F=l({__name:"index",setup(o,{expose:t}){const e=i(!1),n=i(null),r=a=>{e.value=!0,n.value=a},u=()=>{e.value=!1,n.value=null},m="/api/v1/vuefinder/index",v={active:!0,multiple:!1,click:a=>{if(!a.length){d.error("请选择内容");return}if(a[0].type!=="dir"){d.error("只能选择文件夹");return}n.value&&n.value(a[0])}};return t({open:r,close:u}),(a,c)=>{const x=C("VueFinder");return f(),V(h,{modelValue:e.value,"onUpdate:modelValue":c[0]||(c[0]=g=>e.value=g),title:"项目文件夹",width:"50%","show-close":""},{default:b(()=>[k(x,{id:"vuefinder",features:["search"],"max-height":"500px",request:m,"select-button":v})]),_:1},8,["modelValue"])}}}),N=l({__name:"index",setup(o){const t=$();async function s(){const e=await t.isLogin();return e||t.logoutDialog(),e}return(e,n)=>_(e.$slots,"default",{isLogin:s})}}),M=l({__name:"index",props:{itemMinWidth:{type:Number,default:300},gap:{type:Number,default:20}},setup(o){y(r=>({"6a2d4f6c":e.value,c20017fa:s.value}));const t=o,s=p(()=>t.gap+"px"),e=p(()=>t.itemMinWidth+"px"),n=i();return(r,u)=>(f(),w("div",{class:"grid-container",ref_key:"gridContainer",ref:n},[_(r.$slots,"default",{},void 0,!0)],512))}}),W=B(M,[["__scopeId","data-v-91fb69f4"]]);export{W as G,N as _,F as a};
@@ -0,0 +1 @@
1
+ import{d as b,l as f,c as h,b as i,m as n,G as oe,n as d,_ as I,Q as W,v as k,F as V,K as F,q as $,t as D,R,B as v,r as E,i as O,H as le,e as m,S as ae,u as se,h as z,U as ce,V as re,E as N,W as B,g as K,X as ie,Y as ue,Z as de,$ as pe,y as _e,z as me,a0 as fe,o as ve,a1 as Ce,a as ge,p as ye}from"./index-Be6ESMP6.js";import{u as U,_ as he,f as xe,g as we}from"./index.vue_vue_type_script_setup_true_lang-CbOhmZiK.js";import{_ as Se,a as be,G as Ee}from"./index-DZEFW1um.js";import{_ as ke,C as Te,B as ze,T as $e}from"./index-BxKlr13c.js";import{h as G,i as De,j as Ie}from"./index.vue_vue_type_script_setup_true_lang-CV2H_QQ-.js";const Oe={class:"collect"},Ue=b({__name:"index",props:{isCollect:{type:Boolean,default:!1}},emits:["collect"],setup(u,{emit:e}){const t=u,l=e;function c(){l("collect",!t.isCollect)}return(_,a)=>{const y=f("StarFilled"),p=f("el-icon");return i(),h("div",Oe,[n(p,{class:oe(["collect-icon",{"is-collect":u.isCollect}]),onClick:c},{default:d(()=>[n(y)]),_:1},8,["class"])])}}}),Le=I(Ue,[["__scopeId","data-v-f293e498"]]),H=b({__name:"index",props:{title:{type:String,default:""},column:{type:Number,default:3},items:{type:Array,default:()=>[]}},setup(u){const e=W();return(t,l)=>{const c=f("el-descriptions-item"),_=f("el-descriptions");return i(),k(_,R({column:u.column,title:u.title},v(e)),{default:d(()=>[(i(!0),h(V,null,F(u.items,(a,y)=>(i(),k(c,{key:y,label:a.label},{default:d(()=>[$(D(a.value),1)]),_:2},1032,["label"]))),128))]),_:1},16,["column","title"])}}}),Ne={class:"comp-desc-container"},Be=b({__name:"index",props:{desc:{type:String,default:""}},setup(u){const e=E(null),t=E(!1),l=u;return O(async()=>{if(l.desc){await le();const c=e.value;t.value=c.scrollHeight>c.clientHeight}}),(c,_)=>{const a=f("el-popover");return i(),h("div",Ne,[n(a,{disabled:!t.value,content:u.desc,placement:"bottom",width:"300"},{reference:d(()=>[m("p",{ref_key:"paraRef",ref:e},D(u.desc),513)]),_:1},8,["disabled","content"])])}}}),Ve=I(Be,[["__scopeId","data-v-e55fb026"]]),Fe={class:"flex justify-center items-center gap-[5px]"},Pe={class:"text-[12px] text-[#857e7e]"},Re=b({__name:"index",props:{nickname:{type:String,default:""},avatar:{type:String,default:""}},setup(u){const e=u,t=E("");return O(async()=>{if(!e.avatar)return;const l=await ae({objectId:e.avatar});t.value=l.data.signUrl}),(l,c)=>{const _=f("el-avatar");return i(),h("div",Fe,[m("span",Pe,D(u.nickname),1),n(_,{size:15,src:t.value},null,8,["src"])])}}}),Me={class:"rounded-sm flex items-center justify-center flex-col size-full border-1 border-[#ccc] overflow-hidden"},Ae={class:"h-[270px] overflow-hidden w-full"},je={class:"flex flex-1 justify-start gap-[5px]"},Ge={class:"text-left flex-1 flex flex-col w-full overflow-hidden p-[5px] gap-[5px]"},He={class:"flex justify-between"},We={class:"font-medium"},Ke={class:"desc-content flex-1"},Ze={class:"h-[30px] p-[5px] overflow-hidden w-full bg-[#ccc] flex items-center justify-between"},qe={class:"flex gap-[5px]"},Qe={class:"flex"},Xe=b({__name:"index",setup(u){const e=W(),t=U(),{operate:l,afterDelCompFn:c,setCurrentFolder:_,setCurrentEditCompId:a}=t,y=se(),p=E(),w=E([{key:"delete",text:"删除",handler:Q,type:"danger"},{key:"update",text:"更新",handler:X,type:"primary"},{key:"preview",text:"预览",handler:Y,type:"primary"},{key:"download",text:"下载",handler:J,type:"primary"},{key:"collect",text:"收藏",handler:A}]),C=E(""),T=E([]),x={SUCCESS:{DOWNLOAD:"下载成功",DELETE:"删除成功",COLLECT:"收藏成功",UNCOLLECT:"取消收藏"},CONFIRM:{DOWNLOAD:o=>`是否下载组件到【${o}】路径下`,COVER:o=>`组件【${o}】已经下载或者有同名组件,是否覆盖?`,DELETE:o=>`是否删除组件【${o}】,删除组件后会释放占用的组件名称,是否继续?`}},S=z(()=>l.length?l.map(o=>w.value.find(r=>r.key===o)):[]),Z=z(()=>e.previewConfigs.map(o=>{const r=o.path[o.path.length-1].replace(/[/\\]/g,"/"),g=T.value.find(s=>s.path===r);return{entryUrl:g==null?void 0:g.signedUrl}})),M=z(()=>[{label:"下载:",value:e.downloadCount},{label:"收藏:",value:e.collectCount}]),q=z(()=>Object.keys(e.dep).map(r=>{var g,s;return{name:r,version:(s=(g=e.dep)==null?void 0:g[r])==null?void 0:s.version}}));async function Q(){!e.name||await B.confirm(x.CONFIRM.DELETE(e.name),"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"})!=="confirm"||we({compId:e.id}).then(()=>N.success(x.SUCCESS.DELETE)).finally(()=>c==null?void 0:c(e.id))}function X(){e.id&&Ie({compId:e.id}).then(o=>{var r;if(!o.data){N.error("组件不在本地,请先下载后更新");return}_(o.data),a(e.id),(r=t.goUpdateCompFn)==null||r.call(t)})}function Y(){console.log("预览"),y.push({path:`/preview/${e.id}`})}async function J(o){var g;!await o()||(console.log("下载"),await B.confirm("当前选择的版本为:"+C.value+",确认下载吗?","提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"})!=="confirm")||(g=p.value)==null||g.open(j)}async function A(o){await o()&&(console.log("收藏"),xe({compId:e.id,isCollect:!e.isCollect}).then(()=>{var r;N.success(e.isCollect?x.SUCCESS.UNCOLLECT:x.SUCCESS.COLLECT),t.updateCompCollectStatus(e.id,!e.isCollect),e.isCollect?(t.updateCompCollectCount(e.id,e.collectCount-1),(r=t.afterCancelCollectFn)==null||r.call(t,e.id)):t.updateCompCollectCount(e.id,e.collectCount+1)}))}async function j(o){var L;if(await B.confirm(x.CONFIRM.DOWNLOAD(o.path),"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"})!=="confirm")return;const g=await G({compId:e.id,savePath:o.path,compName:e.name,version:C.value}),{isRepeat:s=!1}=g.data;if(s){if(await B.confirm(x.CONFIRM.COVER(e.name),"提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"})!=="confirm")return;await G({compId:e.id,savePath:o.path,compName:e.name,isCover:!0,version:C.value})}N.success(x.SUCCESS.DOWNLOAD),t.updateCompDownloadCount(e.id,e.downloadCount+1),(L=p.value)==null||L.close()}function ee(){const o={objectId:e.objectId,compName:e.name,version:e.version,files:e.files.map(r=>r.path)};De(o).then(r=>{T.value=r.data.signedUrls})}function te(){var o;(o=t.openTerminalFn)==null||o.call(t,e.id)}return O(()=>{ee()}),(o,r)=>{const g=f("el-button");return i(),h("div",Me,[m("div",Ae,[n(he,{previews:Z.value,dep:v(e).dep,bgColor:v(e).bgColor,signedUrls:T.value,autoplay:!0},{compToolBar:d(()=>[m("div",je,[n(g,{color:"#414141",size:"small",onClick:te},{default:d(()=>[...r[1]||(r[1]=[$("终端",-1)])]),_:1}),n(ke,R({modelValue:C.value,"onUpdate:modelValue":r[0]||(r[0]=s=>C.value=s)},v(e)),null,16,["modelValue"])])]),_:1},8,["previews","dep","bgColor","signedUrls"])]),m("div",Ge,[m("div",He,[m("h4",We,D(v(e).name),1),m("div",null,[n(Re,ce(re(v(e).authorId)),null,16)])]),m("div",Ke,[n(Ve,{desc:v(e).desc},null,8,["desc"])]),n(Te,{compDeps:q.value},null,8,["compDeps"])]),m("div",Ze,[m("div",qe,[n(H,{column:1,items:[M.value[0]],size:"small"},null,8,["items"]),n(H,{column:1,items:[M.value[1]],size:"small"},null,8,["items"])]),m("div",Qe,[(i(!0),h(V,null,F(S.value,(s,L)=>(i(),k(Se,{key:L},{default:d(({isLogin:P})=>[(s==null?void 0:s.key)!=="collect"?(i(),k(g,{key:0,title:s==null?void 0:s.text,type:s==null?void 0:s.type,link:"",onClick:ne=>s==null?void 0:s.handler(P)},{default:d(()=>[$(D(s==null?void 0:s.text),1)]),_:2},1032,["title","type","onClick"])):(i(),k(Le,{key:1,class:"pl-[5px]",isCollect:v(e).isCollect,onCollect:ne=>A(P)},null,8,["isCollect","onCollect"]))]),_:2},1024))),128))])]),n(be,{ref_key:"DialogVueFinderRef",ref:p,onDownload:j},null,512)])}}}),Ye=b({__name:"index",setup(u){const e=K({keyword:""}),t=U(),{setQueryState:l,queryState:c}=t,_=()=>{l({...c,keyword:e.keyword})},a=()=>{e.keyword="",l({...c,keyword:""})};return(y,p)=>{const w=f("el-input"),C=f("el-form-item"),T=f("el-button"),x=f("el-form");return i(),k(x,{inline:!0,model:e,"label-width":"auto",size:"small",onSubmit:p[1]||(p[1]=ue(()=>{},["prevent"]))},{default:d(()=>[n(C,{label:"关键词:"},{default:d(()=>[n(w,{modelValue:e.keyword,"onUpdate:modelValue":p[0]||(p[0]=S=>e.keyword=S),modelModifiers:{trim:!0},placeholder:"组件名/组件描述",onKeyup:ie(_,["enter"])},null,8,["modelValue"])]),_:1}),n(C,null,{default:d(()=>[n(T,{type:"primary",onClick:_},{default:d(()=>[...p[2]||(p[2]=[$("查询",-1)])]),_:1}),n(T,{type:"primary",onClick:a},{default:d(()=>[...p[3]||(p[3]=[$("重置",-1)])]),_:1})]),_:1})]),_:1},8,["model"])}}}),Je={class:"empty-status-container"},et=b({__name:"index",props:{isEmpty:{type:Boolean,default:!1}},setup(u){return(e,t)=>{const l=f("el-empty");return i(),h("div",Je,[u.isEmpty?(i(),k(l,{key:1,class:"centered-empty"})):de(e.$slots,"default",{key:0},void 0,!0)])}}}),tt=I(et,[["__scopeId","data-v-ec3e688b"]]),nt={class:"comp-toolbar-container"},ot=b({__name:"index",setup(u){const e=U();return O(()=>{e.currentTag&&pe(e.currentTag)}),(t,l)=>{const c=f("el-radio-button"),_=f("el-radio-group");return i(),h("div",nt,[m("div",null,[n(_,{modelValue:v(e).currentTag,"onUpdate:modelValue":l[0]||(l[0]=a=>v(e).currentTag=a),size:"small",fill:"#6cf",class:"flex gap-3"},{default:d(()=>[(i(!0),h(V,null,F(v(e).tagGroup,a=>(i(),k(c,{key:a.label,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])])}}}),lt=I(ot,[["__scopeId","data-v-9a37a172"]]),at={class:"h-full flex flex-col overflow-hidden"},st={class:"flex-1 overflow-auto"},ct={class:"flex justify-center p-[5px]"},rt=b({__name:"index",setup(u){const e=U(),{paginationState:t,setPaginationState:l}=e,c=z(()=>e.list),_=z(()=>e.listLoading),a=K({total:0,size:"small",background:!0,layout:"total, sizes, prev, pager, next, jumper",pageSizes:[10,20,30]});function y(w){l({...t,pageSize:w})}function p(w){l({...t,page:w})}return(w,C)=>{const T=f("el-pagination"),x=_e("loading");return me((i(),h("div",at,[n(Ye),n(lt),m("div",st,[n(tt,{isEmpty:c.value.length===0&&!_.value},{default:d(()=>[n(Ee,{itemMinWidth:310},{default:d(()=>[(i(!0),h(V,null,F(c.value,S=>(i(),h("div",{key:S.id,class:"h-[400px] overflow-hidden rounded-md"},[n(Xe,R({ref_for:!0},S),null,16)]))),128))]),_:1})]),_:1},8,["isEmpty"])]),m("div",ct,[n(T,{"current-page":v(t).page,"onUpdate:currentPage":C[0]||(C[0]=S=>v(t).page=S),"page-size":v(t).pageSize,"onUpdate:pageSize":C[1]||(C[1]=S=>v(t).pageSize=S),"page-sizes":a.pageSizes,size:a.size,background:a.background,layout:a.layout,total:v(t).total,onSizeChange:y,onCurrentChange:p},null,8,["current-page","page-size","page-sizes","size","background","layout","total"])])])),[[x,_.value]])}}}),it={class:"comp-container"},ut={class:"h-full comp-content rounded-lg p-3"},dt={class:"h-full"},pt=b({__name:"index",setup(u){const e=U();let t=()=>{};const l=E(0),c=E("");function _(){l.value=0}return O(()=>{const a=l.value;a&&fe(a.toString())}),ve(()=>{t=e.watchOpenTerminal(a=>{const y=Number(Ce());l.value=Math.max(y,500),c.value=a})}),ge(()=>{t()}),(a,y)=>{const p=f("el-splitter-panel"),w=f("el-splitter");return i(),h("div",it,[n(w,null,{default:d(()=>[n(p,{min:400},{default:d(()=>[m("div",ut,[n(rt)])]),_:1}),l.value?(i(),k(p,{key:0,size:l.value,"onUpdate:size":y[0]||(y[0]=C=>l.value=C),collapsible:""},{default:d(()=>[m("div",dt,[n(ze,{title:"依赖安装",onClose:_},{default:d(()=>[n($e,{compId:c.value},null,8,["compId"])]),_:1})])]),_:1},8,["size"])):ye("",!0)]),_:1})])}}}),gt=I(pt,[["__scopeId","data-v-7a1b5980"]]);export{gt as C};
@@ -0,0 +1 @@
1
+ import{C as f}from"./index-D_PkB51t.js";import{u as C,b as u}from"./index.vue_vue_type_script_setup_true_lang-CbOhmZiK.js";import{C as _}from"./index-CM_gLieR.js";import{d as w,r as h,i as g,c as v,b as y,m as p,E as i,_ as D}from"./index-Be6ESMP6.js";import"./index-DZEFW1um.js";import"./index.vue_vue_type_script_setup_true_lang-DkD5t-Gc.js";import"./index-BxKlr13c.js";import"./index.vue_vue_type_script_setup_true_lang-Cy12UsU3.js";import"./index.vue_vue_type_script_setup_true_lang-CV2H_QQ-.js";import"./index-BdUOdA-C.js";import"./index.vue_vue_type_script_setup_true_lang-Bm76wsqf.js";const E={class:"mine-container"},L=w({__name:"index",setup(x){const o=C(),{getMyList:n,setOperate:s,watchDelComp:c,watchGoUpdateComp:m,watchUpdateComp:l}=o,a=h();s(["download","preview","update","delete"]);function d({end:e}){o.updateComp().then(()=>{var t,r;i.success("更新成功"),(t=a.value)==null||t.close(),(r=o.afterUpdateCompFn)==null||r.call(o,o.currentEditCompId)}).catch(t=>{console.error(t),i.error("更新失败")}).finally(()=>{e()})}return c(e=>{console.log("删除的组件id",e),o.delCompListById(e)}),l(e=>{console.log("更新的组件id",e),u({compId:e}).then(t=>{o.updateCompListItemById(e,t.data)})}),m(async()=>{var e;o.setCompDialogType("EDIT"),await o.initCurrentCompDep(),(e=a.value)==null||e.open()}),g(()=>{n()}),(e,t)=>(y(),v("div",E,[p(f),p(_,{ref_key:"compPreviewLocalDialogRef",ref:a,onConfirmUpload:d},null,512)]))}}),N=D(L,[["__scopeId","data-v-f5480e74"]]);export{N as default};
@@ -0,0 +1 @@
1
+ import{_ as $,a as S}from"./index-DZEFW1um.js";import{C as X}from"./index-CM_gLieR.js";import{u as N,c as Y,a as L}from"./index.vue_vue_type_script_setup_true_lang-CbOhmZiK.js";import{c as j,a as A}from"./index.vue_vue_type_script_setup_true_lang-CV2H_QQ-.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang-DkD5t-Gc.js";import{d as U,r as p,h as q,v as G,b as v,n as x,e as s,t as J,c as E,p as z,_ as R,u as K,l as Q,m as d,q as W,x as Z,E as m}from"./index-Be6ESMP6.js";import"./index-BdUOdA-C.js";import"./index.vue_vue_type_script_setup_true_lang-Bm76wsqf.js";const ee={class:"before-container"},oe={class:"before-container-content"},te={key:0,class:"item"},ae={key:1,class:"item"},ne=U({__name:"index",setup(O,{expose:C}){const e=N(),l={EXIST:"组件已上传",HOMONYMY:"组件名称重复",NOT_EXIST:"组件不存在",REPEAT:"组件代码重复"},n=p(),f=q(()=>n.value?l==null?void 0:l[n.value]:""),r=p(!1);function h(c){n.value=c,r.value=!0}function _(){r.value=!1}function y(){var c;_(),(c=e.goUpdateCompFn)==null||c.call(e)}return C({open:h,close:_}),(c,t)=>(v(),G(H,{title:"",modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=o=>r.value=o),"show-close":"","append-to-body":"",width:"50%"},{default:x(()=>[s("div",ee,[s("h1",null,J(f.value),1),s("div",oe,[n.value==="EXIST"?(v(),E("div",te,[t[1]||(t[1]=s("p",null,"组件已上传,不可重复上传,若需修改,请发布新版本!",-1)),s("a",{href:"javascript:void(0);",onClick:y},"去更新")])):n.value==="HOMONYMY"?(v(),E("div",ae,[...t[2]||(t[2]=[s("p",null,"该组件名称已被占用,暂无法上传。建议修改组件名(文件夹名称),添加前缀是较为通用的处理方式。",-1)])])):z("",!0)])])]),_:1},8,["modelValue"]))}}),se=R(ne,[["__scopeId","data-v-e6564bd7"]]),le={class:"upload-container"},re={class:"upload-btn-container h-full"},ce={class:"tip-content el-upload__tip"},ie=U({__name:"index",setup(O){const C=K(),e=N(),l=p(),n=p(),f=p(),r=p("");async function h(){var k,w,I,b;const t=(k=e.currentFolder)==null?void 0:k.path,o=(w=e.currentFolder)==null?void 0:w.basename;if(!t||!o){m.error("请先选择组件目录");return}const a=await j({compPath:t});if((b=(I=a.data)==null?void 0:I.children)!=null&&b.length){const{children:B}=a.data,T=B.find(D=>D.name==="comp.json");if(T){const D=await A({filePath:T.path}),{content:F}=D.data,g=JSON.parse(F).__id__;if(g){const M=await Y({compId:g}),{exist:P}=M.data;if(P)return r.value=g,"EXIST"}}}const i=t.split("/").pop(),u=await L({compName:i}),{exist:V}=u.data;return V?"HOMONYMY":"NOT_EXIST"}async function _(t){var i,u;const o=Z.service({fullscreen:!0});e.clearAll(),e.setCurrentFolder(t);const a=await h();a&&(a==="NOT_EXIST"?(e.setCompDialogType("ADD"),e.initPreviewCompList(),await e.initCurrentCompDep(),(i=n.value)==null||i.open()):(u=f.value)==null||u.open(a),o.close())}async function y(t){var o;await t()&&((o=l.value)==null||o.open(_))}function c({end:t}){e.currentEditCompId?e.updateComp().then(()=>{var o,a;m.success("更新成功"),(o=n.value)==null||o.close(),(a=e.afterUpdateCompFn)==null||a.call(e,e.currentEditCompId)}).catch(o=>{console.error(o),m.error("更新失败")}).finally(()=>{t()}):e.uploadComp().then(()=>{var o,a;m.success("上传成功"),(o=n.value)==null||o.close(),(a=l.value)==null||a.close(),C.push({name:"mine"})}).catch(o=>{console.error(o),m.error("上传失败")}).finally(()=>{t()})}return e.watchGoUpdateComp(async()=>{var t;e.clearAll(),e.setCompDialogType("EDIT"),e.setCurrentEditCompId(r.value),await e.initCurrentCompDep(),(t=n.value)==null||t.open()}),(t,o)=>{const a=Q("el-button");return v(),E("div",le,[d($,null,{default:x(({isLogin:i})=>[s("div",re,[s("div",ce,[d(a,{type:"primary",onClick:u=>y(i)},{default:x(()=>[...o[0]||(o[0]=[W("上传组件",-1)])]),_:1},8,["onClick"]),o[1]||(o[1]=s("p",null,"文件夹压缩后不能超过10MB",-1))])])]),_:1}),d(S,{ref_key:"DialogVueFinderRef",ref:l},null,512),d(X,{ref_key:"compPreviewLocalDialogRef",ref:n,onConfirmUpload:c},null,512),d(se,{ref_key:"compUploadBeforeDialogRef",ref:f},null,512)])}}}),ye=R(ie,[["__scopeId","data-v-06cbf0ac"]]);export{ye as default};
@@ -0,0 +1 @@
1
+ import{C as e}from"./index-D_PkB51t.js";import{u as r}from"./index.vue_vue_type_script_setup_true_lang-CbOhmZiK.js";import{d as s,i as a,c,b as p,m as n,_ as i}from"./index-Be6ESMP6.js";import"./index-DZEFW1um.js";import"./index.vue_vue_type_script_setup_true_lang-DkD5t-Gc.js";import"./index-BxKlr13c.js";import"./index.vue_vue_type_script_setup_true_lang-Cy12UsU3.js";import"./index.vue_vue_type_script_setup_true_lang-CV2H_QQ-.js";import"./index-BdUOdA-C.js";const m={class:"share-container"},_=s({__name:"index",setup(d){const o=r(),{setOperate:t}=o;return t(["download","preview","collect"]),a(()=>{o.getList()}),(f,l)=>(p(),c("div",m,[n(e)]))}}),E=i(_,[["__scopeId","data-v-8d7068b7"]]);export{E as default};
@@ -0,0 +1 @@
1
+ import{d as s,r as o,Z as r}from"./index-Be6ESMP6.js";const i=s({__name:"index",setup(l){const e=o(!1);function n(){e.value=!0}function a(){e.value=!1}return(t,u)=>r(t.$slots,"default",{instance:{start:n,end:a},loading:e.value})}});export{i as _};
@@ -0,0 +1 @@
1
+ import{aj as n,d as c,r,o as s,a3 as i,c as m,b as l,Z as d}from"./index-Be6ESMP6.js";async function h(o,e){return n("/api/v1/comp/check",{method:"POST",params:{...o}})}async function y(o,e){return n("/api/v1/comp/compById",{method:"GET",params:{...o}})}async function T(o,e){return n("/api/v1/comp/compFilesOssSignedUrl",{method:"POST",headers:{"Content-Type":"application/json"},data:o})}async function v(o){return n("/api/v1/comp/comphubConfig",{method:"GET"})}async function $(o,e){return n("/api/v1/comp/dep",{method:"GET",params:{...o}})}async function C(o,e){return n("/api/v1/comp/dir",{method:"GET",params:{...o}})}async function g(o,e){return n("/api/v1/comp/download",{method:"POST",headers:{"Content-Type":"application/json"},data:o})}async function j(o,e){return n("/api/v1/comp/file",{method:"GET",params:{...o}})}async function O(o,e){return n("/api/v1/comp/generateCompJson",{method:"POST",headers:{"Content-Type":"application/json"},data:o})}async function S(o){return n("/api/v1/comp/otherConfig",{method:"GET"})}async function b(o){return n("/api/v1/comp/packageJson",{method:"GET"})}async function P(o,e){return n("/api/v1/comp/preBuild",{method:"POST",headers:{"Content-Type":"application/json"},data:o})}async function k(o,e){return n("/api/v1/comp/submit",{method:"POST",headers:{"Content-Type":"application/json"},data:o})}async function E(o,e){return n("/api/v1/comp/update",{method:"POST",headers:{"Content-Type":"application/json"},data:o})}async function G(o,e){return n("/api/v1/comp/updateVersion",{method:"POST",headers:{"Content-Type":"application/json"},data:o})}const _=c({__name:"index",props:{resize:{type:Function}},setup(o){const e=r(null);let t=null;const p=o;return s(()=>{const a=e.value;t=new ResizeObserver(p.resize),t.observe(a)}),i(()=>{console.log("取消元素大小变化监听"),t==null||t.disconnect()}),(a,u)=>(l(),m("div",{ref_key:"elRef",ref:e},[d(a.$slots,"default")],512))}});export{_,j as a,O as b,C as c,h as d,G as e,v as f,S as g,g as h,T as i,y as j,P as k,$ as l,E as m,k as n,b as o};