index.aa0831fc.js 1.3 KB

123
  1. import{c as f,_ as u}from"./index.27cf50e8.js";import{M as a,j as g,a3 as h,am as o,o as v,a as b,_ as e,U as t,b as s,Y as C,u as y,f as x}from"./vue.aade88c7.js";const D={class:"croppers-container layout-pd"},I={class:"cropper-img-warp"},k={class:"mb15 mt15"},w=["src"],E=a({name:"funCropper"}),V=a({...E,setup(j){const n=x(()=>f(()=>import("./index.5ccc513a.js"),["./index.5ccc513a.js","./vue.aade88c7.js","./index.27cf50e8.js","./index.08fb3d47.css","./index.2c21a45a.css"],import.meta.url)),c=g(),r=h({cropperImg:"https://img2.baidu.com/it/u=1978192862,2048448374&fm=253&fmt=auto&app=138&f=JPEG?w=504&h=500"}),p=()=>{c.value.openDialog(r.cropperImg)};return(B,N)=>{const _=o("el-alert"),l=o("ele-Crop"),i=o("el-icon"),m=o("el-button"),d=o("el-card");return v(),b("div",D,[e(d,{shadow:"hover",header:"cropper 图片裁剪"},{default:t(()=>[e(_,{title:"感谢优秀的 `cropperjs`,项目地址:https://github.com/fengyuanchen/cropperjs",type:"success",closable:!1,class:"mb15"}),s("div",I,[s("div",k,[s("img",{class:"cropper-img",src:r.cropperImg},null,8,w)]),e(m,{type:"primary",size:"default",onClick:p},{default:t(()=>[e(i,null,{default:t(()=>[e(l)]),_:1}),C(" 更换头像 ")]),_:1})])]),_:1}),e(y(n),{ref_key:"cropperDialogRef",ref:c},null,512)])}}});const A=u(V,[["__scopeId","data-v-8ef91f4b"]]);export{A as default};
  2. //# sourceMappingURL=index.aa0831fc.js.map