← Back
Editing: index263.js
import{_ as e}from"./index103.js?v=VERSION_NUMBER";import{k as s,l as a,e as t}from"./utils-lib.js?v=VERSION_NUMBER";import{c as l,s as o,p as n,a4 as i,G as r,q as c,v as p,y as m,x as u,F as d,a_ as f,z as h,C as x,e as b,O as g,P as j,A as v,H as y,J as _}from"./base-lib.js?v=VERSION_NUMBER";import{aK as k}from"./store.js?v=VERSION_NUMBER";import"./__commonjsHelpers__.js?v=VERSION_NUMBER";import"./files.js?v=VERSION_NUMBER";import"./validator.js?v=VERSION_NUMBER";import"./index104.js?v=VERSION_NUMBER";import"./column.js?v=VERSION_NUMBER";import"./store2.js?v=VERSION_NUMBER";import"./index101.js?v=VERSION_NUMBER";const C={class:"p-20px"},w={class:"flex justify-between"},B={class:"file-selector-head flex items-center"},D={ref:"pathInput",class:"file-selector-input overflow-hidden"},F={key:0,ref:"pathUl",class:"absolute h-[2.8rem] z-1 flex"},P=["onClick"],T={class:"truncate max-w-[8rem]"},S=t(l({__name:"index",setup(t){const l=k(),{compData:S,ossTable:V,isTagMode:z,temporaryPath:H,showPathList:I,tableColumns:J,tableData:K,loading:L}=o(l),{handleSelectionChange:U,temporaryBlur:q,temporaryFocus:A,temporaryEnter:E,goBack:G,filePathJump:M,watchTableData:O,getDirList:$,$reset:N}=l;return n((()=>{$()})),i((()=>{N()})),(t,l)=>{const o=s,n=a,i=e,k=r("bt-loading");return c(),p("div",C,[m("div",w,[m("div",B,[m("i",{title:"返回上一层",class:"bt-open-icon svgtofont-el-back",onClick:l[0]||(l[0]=(...e)=>u(G)&&u(G)(...e))}),m("div",D,[u(z)?(c(),p("ul",F,[(c(!0),p(d,null,f(u(I),((e,s)=>(c(),p("li",{key:s,onClick:s=>u(M)(e.path),class:"flex h-full items-center px-4px"},[m("span",T,h(e.title),1),l[4]||(l[4]=m("i",{class:"svgtofont-el-arrow-right ml-4px"},null,-1))],8,P)))),128))],512)):x("",!0),b(o,{width:"40rem",readonly:"",onFocus:u(A),onBlur:u(q),onKeyup:l[1]||(l[1]=g((e=>u(E)(e)),["enter","native"])),modelValue:u(H),"onUpdate:modelValue":l[2]||(l[2]=e=>j(H)?H.value=e:null)},null,8,["onFocus","onBlur","modelValue"])],512),m("i",{title:"刷新",class:"bt-open-icon svgtofont-el-refresh-right",onClick:l[3]||(l[3]=e=>u($)())})])]),b(i,null,{content:v((()=>[y(b(n,{ref_key:"ossTable",ref:V,class:_("oss-table oss-".concat(u(S).type)),column:u(J),data:u(K),onSelectionChange:u(U),"empty-text":"(空)",height:"400","max-height":"400"},null,8,["class","column","data","onSelectionChange"]),[[k,u(L)],[k,"正在加载文件列表,请稍后...","title"]])])),popup:v((()=>l[5]||(l[5]=[]))),_:1})])}}}),[["__scopeId","data-v-907527fe"]]);export{S as default};
Save File
Cancel