← Back
Editing: index253.js
import{_ as e}from"./index93.js?v=1765440387";import{j as s,k as a,e as t}from"./utils-lib.js?v=1765440387";import{c as l,s as o,p as n,a5 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=1765440387";import{aK as k}from"./store.js?v=1765440387";import"./__commonjsHelpers__.js?v=1765440387";import"./files.js?v=1765440387";import"./validator.js?v=1765440387";import"./index94.js?v=1765440387";import"./column.js?v=1765440387";import"./store2.js?v=1765440387";import"./index91.js?v=1765440387";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:$,temporaryFocus:q,temporaryEnter:A,goBack:E,filePathJump:G,watchTableData:M,getDirList:O,$reset:N}=l;return n(()=>{O()}),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(E)&&u(E)(...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(G)(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(q),onBlur:u($),onKeyup:l[1]||(l[1]=g(e=>u(A)(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(O)())})])]),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