import{_ as a,r as e,b as l,c as t,d as s,e as d,k as n,h as o,F as u,X as r,Z as i,$ as c}from"./index.1701946211972.js";const g=a=>(i("data-v-47847896"),a=a(),c(),a),p={class:"p-4 flex"},m={class:"ml-auto"},v={class:"relative image-uploadBtn"},f=g((()=>d("span",null,"上传图片",-1))),_=g((()=>d("div",{class:"bg-gray-600 mx-4 rounded-lg",style:{height:"calc(100vh - 140px)"}},null,-1)));var b=a({__name:"index",setup(a){const i=e("1"),c=a=>{try{const e=a.target.files[0],l=new FileReader;l.onload=a=>{var e;const l=new Image;l.src=null==(e=null==a?void 0:a.target)?void 0:e.result,l.onload=()=>{renderImg(l)}},l.readAsDataURL(e)}catch(e){}};return(a,e)=>{const g=l("el-radio-button"),b=l("el-radio-group");return t(),s(u,null,[d("div",p,[n(b,{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=a=>i.value=a),size:"default"},{default:o((()=>[n(g,{label:"1"},{default:o((()=>[r("图片压缩")])),_:1}),n(g,{label:"2"},{default:o((()=>[r("尺寸调整")])),_:1}),n(g,{label:"3"},{default:o((()=>[r("图片裁剪")])),_:1})])),_:1},8,["modelValue"]),d("div",m,[d("div",v,[f,d("input",{type:"file",onChange:c,accept:"image/png, image/jpeg, image/jpg"},null,32)])])]),_],64)}}},[["__scopeId","data-v-47847896"]]);export{b as default};
