← Back
Editing: index252.js
import{l as e,al as l}from"./utils-lib.js?v=VERSION_NUMBER";import{_ as a}from"./index112.js?v=VERSION_NUMBER";import{c as o,s as t,p as n,a4 as s,G as i,q as r,v as m,e as d,A as c,y as p,x as u,B as f,H as x,z as g,P as b,D as h,T as _,aA as j}from"./base-lib.js?v=VERSION_NUMBER";import{_ as C}from"./index103.js?v=VERSION_NUMBER";import{_ as v}from"./index102.js?v=VERSION_NUMBER";import{a8 as y}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 k={class:"flex flex-col p-16px lib-box"},T={class:"flex flex-col p-[1rem] lib-box"},V={class:"flex flex-col text-[1.4rem]"},z={class:"ml-2rem"},D={class:"flex justify-end"},L={class:"flex flex-col p-[1rem] lib-box"},U=o({__name:"index",setup(o){const U=y(),{activeName:w,tableColumn:S,loading:A,formatData:F,subLoad:H,btnText:q,logTableColumn:B,tableData:E}=t(U),{addFile:G,openFile:N,goConversion:P,handleSelectionChange:$,handleTabEvent:I,getData:J,init:K,$reset:M}=U;return n(K),s(M),(o,t)=>{const n=h,s=e,y=v,U=_,K=C,M=j,O=a,Q=l,R=i("bt-loading");return r(),m("div",k,[d(Q,{modelValue:u(w),"onUpdate:modelValue":t[4]||(t[4]=e=>b(w)?w.value=e:null),type:"card",onChange:u(I)},{default:c((()=>[d(M,{label:"格式转换",name:"conver",lazy:""},{default:c((()=>[p("div",T,[d(K,null,{"header-left":c((()=>[d(n,{onClick:u(G),type:"primary"},{default:c((()=>t[5]||(t[5]=[f("添加")]))),_:1},8,["onClick"])])),content:c((()=>[x(d(s,{ref:"scanTable",height:"34rem","max-height":340,column:u(S),onSelectionChange:u($),description:"列表为空",data:u(F).fileList},null,8,["column","onSelectionChange","data"]),[[R,u(A)],[R,"正在获取文件,请稍候...","title"]])])),"footer-left":c((()=>[p("div",V,[p("span",null,[t[6]||(t[6]=f("保存路径:")),p("span",z,g(u(F).path),1),d(y,{name:"file-dir",size:"1.8",onClick:u(N),class:"ml-[1rem] cursor-pointer inline-block"},null,8,["onClick"])]),d(U,{class:"mt-[1rem]",modelValue:u(F).del,"onUpdate:modelValue":t[0]||(t[0]=e=>u(F).del=e)},{default:c((()=>t[7]||(t[7]=[f("是否删除源文件")]))),_:1},8,["modelValue"])])])),_:1}),p("div",D,[d(n,{onClick:u(P),loading:u(H),type:"primary"},{default:c((()=>[f(g(u(q)),1)])),_:1},8,["onClick","loading"])])])])),_:1}),d(M,{label:"操作日志",name:"log",lazy:""},{default:c((()=>[p("div",L,[d(K,null,{content:c((()=>[d(s,{ref:"scanTable",height:"34rem","max-height":340,column:u(B),description:"列表为空",data:u(E).fileList},null,8,["column","data"])])),"footer-right":c((()=>[d(O,{page:u(E).p,"onUpdate:page":t[1]||(t[1]=e=>u(E).p=e),row:u(E).limit,"onUpdate:row":t[2]||(t[2]=e=>u(E).limit=e),total:u(E).fileList.length,onChange:t[3]||(t[3]=e=>u(J)())},null,8,["page","row","total"])])),_:1})])])),_:1})])),_:1},8,["modelValue","onChange"])])}}});export{U as default};
Save File
Cancel