You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
981 B
JavaScript
2 lines
981 B
JavaScript
import{h as i}from"./header_detail-056c2476.js";import{d,N as p,r as m,g as t,c as a,e as f,j as u,F as h,k,P as y,_ as g}from"./index-93dfb385.js";const v={class:"header_detail"},x=["src"],D=["onClick"],C=d({name:"HeaderDetails",__name:"headerDetails",emits:["selectPostion"],setup(P,{emit:o}){const n=p(()=>e=>({top:`${e.top}px`,left:`${e.left}px`})),l=m([{key:"scalp",name:"头皮",top:67,left:447},{key:"right_ear",name:"耳部",top:145,left:77},{key:"right_eye",name:"眼睛",top:366,left:60},{key:"mouth",name:"口",top:286,left:612},{key:"right_side_of_face",name:"面部",top:529,left:62},{key:"neck",name:"颈部",top:547,left:570}]),r=o,_=e=>{r("selectPostion",e.key)};return(e,B)=>(t(),a("div",v,[f("img",{class:"header_detail_img",src:u(i),alt:""},null,8,x),(t(!0),a(h,null,k(l.value,(s,c)=>(t(),a("div",{onClick:$=>_(s),class:"header_detail_item",style:y(n.value(s)),key:c},null,12,D))),128))]))}});const I=g(C,[["__scopeId","data-v-3d607ed7"]]);export{I as default};
|