← Back
Editing: index249.js
import{c as e,s as l,p as a,q as s,v as o,e as i,A as t,y as m,x as d,B as p,H as r,I as n,Q as u,ag as f,af as c,a9 as b,a7 as _}from"./base-lib.js?v=VERSION_NUMBER";import{k as j,W as x,e as V}from"./utils-lib.js?v=VERSION_NUMBER";import{_ as h}from"./index101.js?v=VERSION_NUMBER";import{_ as v}from"./index107.js?v=VERSION_NUMBER";import{a5 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";const k={class:"flex flex-col p-16px lib-box"},w={class:"flex"},z={class:"flex"},q=V(e({__name:"index",setup(e){const V=y(),{quickFormRef:q,quickForm:F,quickRules:I,disable:U}=l(V),{help:g,openFile:M,init:R}=V;return a(R),(e,l)=>{const a=v,V=f,y=c,R=b,B=j,C=h,H=x,A=_;return s(),o("div",k,[i(a,{type:"warning","show-icon":"",closable:!1},{title:t((()=>l[5]||(l[5]=[m("div",null,"注意:",-1),m("div",null,"1.被拆分成多个文件后,需要将它们合并才能使用",-1),m("div",null,"2.拆分后如果其中一个文件被损坏或丢失,可能会影响整个文件的完整性",-1)]))),_:1}),i(A,{ref_key:"quickFormRef",ref:q,size:"small",model:d(F),rules:d(I),disabled:d(U),"label-width":"8rem",class:"relative w-full p-[1.5rem]","label-position":"right",onSubmit:l[4]||(l[4]=u((()=>{}),["prevent"]))},{default:t((()=>[i(R,{prop:"type",label:"拆分方式"},{default:t((()=>[i(y,{modelValue:d(F).type,"onUpdate:modelValue":l[0]||(l[0]=e=>d(F).type=e)},{default:t((()=>[i(V,{label:"size"},{default:t((()=>l[6]||(l[6]=[p("按大小拆分")]))),_:1}),i(V,{label:"num"},{default:t((()=>l[7]||(l[7]=[p("按数量拆分")]))),_:1})])),_:1},8,["modelValue"])])),_:1}),r(i(R,{prop:"size",label:"大小"},{default:t((()=>[m("div",w,[i(B,{modelValue:d(F).size,"onUpdate:modelValue":l[1]||(l[1]=e=>d(F).size=e),modelModifiers:{number:!0},width:"14rem",type:"number"},{append:t((()=>l[8]||(l[8]=[p(" MB ")]))),unit:t((()=>l[9]||(l[9]=[p("拆分后的每个文件大小 ")]))),_:1},8,["modelValue"])])])),_:1},512),[[n,"size"===d(F).type]]),r(i(R,{prop:"num",label:"数量"},{default:t((()=>[m("div",z,[i(B,{modelValue:d(F).num,"onUpdate:modelValue":l[2]||(l[2]=e=>d(F).num=e),modelModifiers:{number:!0},width:"14rem",type:"number"},{unit:t((()=>l[10]||(l[10]=[p("文件大小 ÷ 数量 = 拆分大小 ")]))),append:t((()=>l[11]||(l[11]=[p("个 ")]))),_:1},8,["modelValue"]),l[12]||(l[12]=m("span",{class:"ml-[2rem]"},null,-1))])])),_:1},512),[[n,"num"===d(F).type]]),i(R,{prop:"path",label:"存放目录"},{default:t((()=>[i(C,{modelValue:d(F).path,"onUpdate:modelValue":l[3]||(l[3]=e=>d(F).path=e),width:"26rem",icon:"icon-file_mode",onIconClick:d(M),placeholder:"请选择目录"},null,8,["modelValue","onIconClick"])])),_:1}),i(H,{options:d(g),"list-style":"disc",class:"pl-2rem mt-2rem"},null,8,["options"])])),_:1},8,["model","rules","disabled"])])}}}),[["__scopeId","data-v-bf15038d"]]);export{q as default};
Save File
Cancel