🔧:build SSR dist and deploy

This commit is contained in:
NEO 2024-04-28 00:48:29 +08:00
parent 76c26901d7
commit c59ad6aedb
465 changed files with 214127 additions and 2 deletions

View file

@ -0,0 +1 @@
import{d as x,G as D,r as i,j as h,D as b,E as o,q as p,H as k,M as w,m as B,l as C,z as N,N as U,ak as f,K as I}from"./chunk-449c23a2.js";import{a as d}from"./chunk-a740628f.js";const j=["onDrop"],E=["multiple","accept"],V={"op-70":""},$=o("div",{"my-4":"","w-full":"",flex:"","items-center":"","justify-center":"","op-70":""},[o("div",{class:"h-1px max-w-100px flex-1 bg-gray-300 op-50"}),o("div",{class:"mx-2 text-gray-400"}," or "),o("div",{class:"h-1px max-w-100px flex-1 bg-gray-300 op-50"})],-1),M=x({__name:"c-file-upload",props:{multiple:{type:Boolean,default:!1},accept:{default:void 0},title:{default:"Drag and drop files here, or click to select files"}},emits:["filesUpload","fileUpload"],setup(c,{emit:l}){const u=c,{multiple:s}=D(u),r=i(!1),a=i(null);function m(){a.value?.click()}function g(e){const t=e.target.files;n(t)}function v(e){e.preventDefault();const t=e.dataTransfer?.files;n(t)}function n(e){if(!(d.isNil(e)||d.isEmpty(e))){if(s.value){l("filesUpload",Array.from(e));return}l("fileUpload",e[0])}}return(e,t)=>{const y=I;return h(),b("div",{class:U(["flex flex-col cursor-pointer items-center justify-center border-2px border-gray-300 border-opacity-50 rounded-lg border-dashed p-8 transition-colors",{"border-primary border-opacity-100":p(r)}]),onClick:m,onDrop:f(v,["prevent"]),onDragover:t[0]||(t[0]=f(()=>{},["prevent"])),onDragenter:t[1]||(t[1]=_=>r.value=!0),onDragleave:t[2]||(t[2]=_=>r.value=!1)},[o("input",{ref_key:"fileInput",ref:a,type:"file",class:"hidden",multiple:p(s),accept:e.accept,onChange:g},null,40,E),k(e.$slots,"default",{},()=>[o("span",V,w(e.title),1),$,B(y,null,{default:C(()=>[N(" Browse files ")]),_:1})])],42,j)}}});export{M as _};