property-8a2fa1d2.js 15 KB

12345
  1. <<<<<<<< HEAD:dist/assets/property-8a2fa1d2.js
  2. import{_ as ct,__tla as mt}from"./ComponentContainerProperty-cce913f8.js";import{eD as ft,eE as dt,eF as ht,d as N,dR as yt,eG as vt,r as D,o as H,c as b,f as o,w as y,n as U,g as Q,F as C,q as S,a as m,au as tt,t as gt,O as xt,j as wt,C as et,_ as at,A as Vt,D as kt,__tla as Dt}from"./index-d75b4e4d.js";import{_ as Ht,__tla as bt}from"./UploadImg-fb25ebf8.js";import{E as zt,__tla as Et}from"./el-text-c041f5cb.js";import{u as Tt,__tla as Ut}from"./util-b439aaf7.js";import{_ as Ct,__tla as It}from"./AppLinkSelectDialog-a3d26909.js";import{_ as Pt,__tla as Ft}from"./Dialog-386bf3a6.js";import{E as Lt,__tla as Ot}from"./el-image-c9652061.js";import{__tla as Xt}from"./el-image-viewer-b9e519ff.js";import{__tla as Gt}from"./el-card-7039354a.js";import{__tla as Mt}from"./index-980ac13f.js";import"./color-6e929987.js";import{__tla as Wt}from"./index-6c07820e.js";import{__tla as Zt}from"./useMessage-ba892ac2.js";import{__tla as $t}from"./Qrcode-49e7d66c.js";import{__tla as jt}from"./IFrame-31274294.js";import{__tla as qt}from"./vuedraggable.umd-f2a069f3.js";import{__tla as At}from"./el-collapse-item-a2f15736.js";import{__tla as Rt}from"./ProductCategorySelect-32db6942.js";import{__tla as Yt}from"./el-tree-select-155921a3.js";import"./tree-0af4953a.js";import{__tla as Bt}from"./category-457bfcfd.js";let lt,Jt=Promise.all([(()=>{try{return mt}catch{}})(),(()=>{try{return Dt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return Ot}catch{}})(),(()=>{try{return Xt}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return Mt}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return Zt}catch{}})(),(()=>{try{return $t}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return Yt}catch{}})(),(()=>{try{return Bt}catch{}})()]).then(async()=>{var ot=Array.prototype.splice;function rt(e,f){var v=[];if(!e||!e.length)return v;var d=-1,l=[],s=e.length;for(f=ht(f);++d<s;){var n=e[d];f(n,d,e)&&(v.push(n),l.push(d))}return function(i,r){for(var p=i?r.length:0,g=p-1;p--;){var _=r[p];if(p==g||_!==z){var z=_;ft(_)?ot.call(i,_,1):dt(i,_)}}}(e,l),v}const T=100;var x=(e=>(e[e.LEFT=0]="LEFT",e[e.TOP=1]="TOP",e[e.WIDTH=2]="WIDTH",e[e.HEIGHT=3]="HEIGHT",e))(x||{});let W,I,Z,$,j,q;W=[{position:"\u5DE6\u4E0A\u89D2",types:[0,1,2,3],style:{left:"-5px",top:"-5px",cursor:"nwse-resize"}},{position:"\u4E0A\u65B9\u4E2D\u95F4",types:[1,3],style:{left:"50%",top:"-5px",cursor:"n-resize",transform:"translateX(-50%)"}},{position:"\u53F3\u4E0A\u89D2",types:[1,2,3],style:{right:"-5px",top:"-5px",cursor:"nesw-resize"}},{position:"\u53F3\u4FA7\u4E2D\u95F4",types:[2],style:{right:"-5px",top:"50%",cursor:"e-resize",transform:"translateX(-50%)"}},{position:"\u53F3\u4E0B\u89D2",types:[2,3],style:{right:"-5px",bottom:"-5px",cursor:"nwse-resize"}},{position:"\u4E0B\u65B9\u4E2D\u95F4",types:[3],style:{left:"50%",bottom:"-5px",cursor:"s-resize",transform:"translateX(-50%)"}},{position:"\u5DE6\u4E0B\u89D2",types:[0,2,3],style:{left:"-5px",bottom:"-5px",cursor:"nesw-resize"}},{position:"\u5DE6\u4FA7\u4E2D\u95F4",types:[0,2],style:{left:"-5px",top:"50%",cursor:"w-resize",transform:"translateX(-50%)"}}],I=(e,f,v)=>{f.stopPropagation();const{clientX:d,clientY:l}=f,{left:s,top:n,width:i,height:r}=e;document.onmousemove=p=>{const g=p.clientX-d,_=p.clientY-l;v(s,n,i,r,g,_)},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null}},Z=["onMousedown","onDblclick"],$={class:"pointer-events-none select-none"},j=["onMousedown"],q=at(N({name:"HotZoneEditDialog",__name:"index",props:{modelValue:yt(),imgUrl:vt().def("")},emits:["update:modelValue"],setup(e,{expose:f,emit:v}){const d=e,l=v,s=D([]),n=D(!1);f({open:()=>{var a;s.value=(a=d.modelValue,(a==null?void 0:a.map(t=>({...t,left:t.left*=2,top:t.top*=2,width:t.width*=2,height:t.height*=2})))||[]),n.value=!0}});const i=D(),r=()=>{s.value.push({width:T,height:T,top:0,left:0})},p=(a,t)=>{t>=0&&t<=i.value.offsetWidth-a.width&&(a.left=t)},g=(a,t)=>{t>=0&&t<=i.value.offsetHeight-a.height&&(a.top=t)},_=(a,t)=>{t>=T&&a.left+t<=i.value.offsetWidth&&(a.width=t)},z=(a,t)=>{t>=T&&a.top+t<=i.value.offsetHeight&&(a.height=t)},P=()=>{n.value=!1},F=()=>{const a=(t=>(t==null?void 0:t.map(w=>({...w,left:w.left/=2,top:w.top/=2,width:w.width/=2,height:w.height/=2})))||[])(s.value);l("update:modelValue",a)},h=D(),A=D(),st=a=>{a&&h.value&&(h.value.name=a.name,h.value.url=a.path)};return(a,t)=>{const w=Lt,L=wt,R=et,nt=Pt,it=Ct;return H(),b(C,null,[o(nt,{modelValue:m(n),"onUpdate:modelValue":t[0]||(t[0]=c=>xt(n)?n.value=c:null),title:"\u8BBE\u7F6E\u70ED\u533A",width:"780",onClose:F},{footer:y(()=>[o(R,{onClick:r,type:"primary",plain:""},{default:y(()=>[o(L,{icon:"ep:plus",class:"mr-5px"}),U(" \u6DFB\u52A0\u70ED\u533A ")]),_:1}),o(R,{onClick:P,type:"primary",plain:""},{default:y(()=>[o(L,{icon:"ep:check",class:"mr-5px"}),U(" \u786E\u5B9A ")]),_:1})]),default:y(()=>[Q("div",{ref_key:"container",ref:i,class:"relative h-full w-750px"},[o(w,{src:e.imgUrl,class:"pointer-events-none h-full w-750px select-none"},null,8,["src"]),(H(!0),b(C,null,S(m(s),(c,pt)=>(H(),b("div",{key:pt,class:"hot-zone",style:tt({width:`${c.width}px`,height:`${c.height}px`,top:`${c.top}px`,left:`${c.left}px`}),onMousedown:k=>((u,O)=>{I(u,O,(V,E,Y,B,X,G)=>{p(u,V+X),g(u,E+G)})})(c,k),onDblclick:k=>{return u=c,h.value=u,void A.value.open(u.url);var u}},[Q("span",$,gt(c.name||"\u53CC\u51FB\u9009\u62E9\u94FE\u63A5"),1),o(L,{icon:"ep:close",class:"delete",size:14,onClick:k=>{return u=c,void rt(s.value,u);var u}},null,8,["onClick"]),(H(!0),b(C,null,S(m(W),(k,u)=>(H(),b("span",{class:"ctrl-dot",key:u,style:tt(k.style),onMousedown:O=>((V,E,Y)=>{I(V,Y,(B,X,G,ut,J,K)=>{E.types.forEach(_t=>{switch(_t){case x.LEFT:p(V,B+J);break;case x.TOP:g(V,X+K);break;case x.WIDTH:{const M=E.types.includes(x.LEFT)?-1:1;_(V,G+J*M)}break;case x.HEIGHT:{const M=E.types.includes(x.TOP)?-1:1;z(V,ut+K*M)}}})})})(c,k,O)},null,44,j))),128))],44,Z))),128))],512)]),_:1},8,["modelValue"]),o(it,{ref_key:"appLinkDialogRef",ref:A,onAppLinkChange:st},null,512)],64)}}}),[["__scopeId","data-v-e60b1a26"],["__file","D:/zx/mall-newfeifan-zx-admin/src/components/DiyEditor/components/mobile/HotZone/components/HotZoneEditDialog/index.vue"]]),lt=at(N({name:"HotZoneProperty",__name:"property",props:{modelValue:{type:Object,required:!0}},emits:["update:modelValue"],setup(e,{emit:f}){const v=e,d=f,{formData:l}=Tt(v.modelValue,d),s=D(),n=()=>{s.value.open()};return(i,r)=>{const p=zt,g=Ht,_=Vt,z=kt,P=et,F=ct;return H(),b(C,null,[o(F,{modelValue:m(l).style,"onUpdate:modelValue":r[1]||(r[1]=h=>m(l).style=h)},{default:y(()=>[o(z,{"label-width":"80px",model:m(l),class:"m-t-8px"},{default:y(()=>[o(_,{label:"\u4E0A\u4F20\u56FE\u7247",prop:"imgUrl"},{default:y(()=>[o(g,{modelValue:m(l).imgUrl,"onUpdate:modelValue":r[0]||(r[0]=h=>m(l).imgUrl=h),height:"50px",width:"auto",class:"min-w-80px"},{tip:y(()=>[o(p,{type:"info",size:"small"},{default:y(()=>[U(" \u63A8\u8350\u5BBD\u5EA6 750")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),o(P,{type:"primary",plain:"",class:"w-full",onClick:n},{default:y(()=>[U(" \u8BBE\u7F6E\u70ED\u533A ")]),_:1})]),_:1},8,["modelValue"]),o(q,{ref_key:"editDialogRef",ref:s,modelValue:m(l).list,"onUpdate:modelValue":r[2]||(r[2]=h=>m(l).list=h),"img-url":m(l).imgUrl},null,8,["modelValue","img-url"])],64)}}}),[["__scopeId","data-v-1dfabffd"],["__file","D:/zx/mall-newfeifan-zx-admin/src/components/DiyEditor/components/mobile/HotZone/property.vue"]])});export{Jt as __tla,lt as default};
  3. ========
  4. import{_ as ct,__tla as mt}from"./ComponentContainerProperty-b53d0ba4.js";import{eD as ft,eE as dt,eF as ht,d as N,dR as yt,eG as vt,r as D,o as H,c as b,f as o,w as y,n as U,g as Q,F as C,q as S,a as m,au as tt,t as gt,O as xt,j as wt,C as et,_ as at,A as Vt,D as kt,__tla as Dt}from"./index-c9fff140.js";import{_ as Ht,__tla as bt}from"./UploadImg-93acf2a6.js";import{E as zt,__tla as Et}from"./el-text-456c3849.js";import{u as Tt,__tla as Ut}from"./util-7746e0b8.js";import{_ as Ct,__tla as It}from"./AppLinkSelectDialog-2e7e59c0.js";import{_ as Pt,__tla as Xt}from"./Dialog-f1f78bbe.js";import{E as Ft,__tla as Lt}from"./el-image-7432aa55.js";import{__tla as Ot}from"./el-image-viewer-0aee2692.js";import{__tla as Wt}from"./el-card-49ad9acd.js";import{__tla as Zt}from"./index-49dc7e06.js";import"./color-6e929987.js";import{__tla as Gt}from"./index-71863882.js";import{__tla as Mt}from"./useMessage-5d45d53a.js";import{__tla as $t}from"./Qrcode-c2d1a305.js";import{__tla as jt}from"./IFrame-0bdfc7b4.js";import{__tla as At}from"./vuedraggable.umd-53f93f2a.js";import{__tla as Rt}from"./el-collapse-item-184db02e.js";import{__tla as qt}from"./ProductCategorySelect-95ec8f3b.js";import{__tla as Yt}from"./el-tree-select-eb40e238.js";import"./tree-0af4953a.js";import{__tla as Bt}from"./category-b1918135.js";let lt,Jt=Promise.all([(()=>{try{return mt}catch{}})(),(()=>{try{return Dt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return Xt}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return Ot}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return Zt}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return Mt}catch{}})(),(()=>{try{return $t}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return Yt}catch{}})(),(()=>{try{return Bt}catch{}})()]).then(async()=>{var ot=Array.prototype.splice;function rt(e,f){var v=[];if(!e||!e.length)return v;var d=-1,l=[],s=e.length;for(f=ht(f);++d<s;){var n=e[d];f(n,d,e)&&(v.push(n),l.push(d))}return function(i,r){for(var p=i?r.length:0,g=p-1;p--;){var _=r[p];if(p==g||_!==z){var z=_;ft(_)?ot.call(i,_,1):dt(i,_)}}}(e,l),v}const T=100;var x=(e=>(e[e.LEFT=0]="LEFT",e[e.TOP=1]="TOP",e[e.WIDTH=2]="WIDTH",e[e.HEIGHT=3]="HEIGHT",e))(x||{});let G,I,M,$,j,A;G=[{position:"\u5DE6\u4E0A\u89D2",types:[0,1,2,3],style:{left:"-5px",top:"-5px",cursor:"nwse-resize"}},{position:"\u4E0A\u65B9\u4E2D\u95F4",types:[1,3],style:{left:"50%",top:"-5px",cursor:"n-resize",transform:"translateX(-50%)"}},{position:"\u53F3\u4E0A\u89D2",types:[1,2,3],style:{right:"-5px",top:"-5px",cursor:"nesw-resize"}},{position:"\u53F3\u4FA7\u4E2D\u95F4",types:[2],style:{right:"-5px",top:"50%",cursor:"e-resize",transform:"translateX(-50%)"}},{position:"\u53F3\u4E0B\u89D2",types:[2,3],style:{right:"-5px",bottom:"-5px",cursor:"nwse-resize"}},{position:"\u4E0B\u65B9\u4E2D\u95F4",types:[3],style:{left:"50%",bottom:"-5px",cursor:"s-resize",transform:"translateX(-50%)"}},{position:"\u5DE6\u4E0B\u89D2",types:[0,2,3],style:{left:"-5px",bottom:"-5px",cursor:"nesw-resize"}},{position:"\u5DE6\u4FA7\u4E2D\u95F4",types:[0,2],style:{left:"-5px",top:"50%",cursor:"w-resize",transform:"translateX(-50%)"}}],I=(e,f,v)=>{f.stopPropagation();const{clientX:d,clientY:l}=f,{left:s,top:n,width:i,height:r}=e;document.onmousemove=p=>{const g=p.clientX-d,_=p.clientY-l;v(s,n,i,r,g,_)},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null}},M=["onMousedown","onDblclick"],$={class:"pointer-events-none select-none"},j=["onMousedown"],A=at(N({name:"HotZoneEditDialog",__name:"index",props:{modelValue:yt(),imgUrl:vt().def("")},emits:["update:modelValue"],setup(e,{expose:f,emit:v}){const d=e,l=v,s=D([]),n=D(!1);f({open:()=>{var a;s.value=(a=d.modelValue,(a==null?void 0:a.map(t=>({...t,left:t.left*=2,top:t.top*=2,width:t.width*=2,height:t.height*=2})))||[]),n.value=!0}});const i=D(),r=()=>{s.value.push({width:T,height:T,top:0,left:0})},p=(a,t)=>{t>=0&&t<=i.value.offsetWidth-a.width&&(a.left=t)},g=(a,t)=>{t>=0&&t<=i.value.offsetHeight-a.height&&(a.top=t)},_=(a,t)=>{t>=T&&a.left+t<=i.value.offsetWidth&&(a.width=t)},z=(a,t)=>{t>=T&&a.top+t<=i.value.offsetHeight&&(a.height=t)},P=()=>{n.value=!1},X=()=>{const a=(t=>(t==null?void 0:t.map(w=>({...w,left:w.left/=2,top:w.top/=2,width:w.width/=2,height:w.height/=2})))||[])(s.value);l("update:modelValue",a)},h=D(),R=D(),st=a=>{a&&h.value&&(h.value.name=a.name,h.value.url=a.path)};return(a,t)=>{const w=Ft,F=wt,q=et,nt=Pt,it=Ct;return H(),b(C,null,[o(nt,{modelValue:m(n),"onUpdate:modelValue":t[0]||(t[0]=c=>xt(n)?n.value=c:null),title:"\u8BBE\u7F6E\u70ED\u533A",width:"780",onClose:X},{footer:y(()=>[o(q,{onClick:r,type:"primary",plain:""},{default:y(()=>[o(F,{icon:"ep:plus",class:"mr-5px"}),U(" \u6DFB\u52A0\u70ED\u533A ")]),_:1}),o(q,{onClick:P,type:"primary",plain:""},{default:y(()=>[o(F,{icon:"ep:check",class:"mr-5px"}),U(" \u786E\u5B9A ")]),_:1})]),default:y(()=>[Q("div",{ref_key:"container",ref:i,class:"relative h-full w-750px"},[o(w,{src:e.imgUrl,class:"pointer-events-none h-full w-750px select-none"},null,8,["src"]),(H(!0),b(C,null,S(m(s),(c,pt)=>(H(),b("div",{key:pt,class:"hot-zone",style:tt({width:`${c.width}px`,height:`${c.height}px`,top:`${c.top}px`,left:`${c.left}px`}),onMousedown:k=>((u,L)=>{I(u,L,(V,E,Y,B,O,W)=>{p(u,V+O),g(u,E+W)})})(c,k),onDblclick:k=>{return u=c,h.value=u,void R.value.open(u.url);var u}},[Q("span",$,gt(c.name||"\u53CC\u51FB\u9009\u62E9\u94FE\u63A5"),1),o(F,{icon:"ep:close",class:"delete",size:14,onClick:k=>{return u=c,void rt(s.value,u);var u}},null,8,["onClick"]),(H(!0),b(C,null,S(m(G),(k,u)=>(H(),b("span",{class:"ctrl-dot",key:u,style:tt(k.style),onMousedown:L=>((V,E,Y)=>{I(V,Y,(B,O,W,ut,J,K)=>{E.types.forEach(_t=>{switch(_t){case x.LEFT:p(V,B+J);break;case x.TOP:g(V,O+K);break;case x.WIDTH:{const Z=E.types.includes(x.LEFT)?-1:1;_(V,W+J*Z)}break;case x.HEIGHT:{const Z=E.types.includes(x.TOP)?-1:1;z(V,ut+K*Z)}}})})})(c,k,L)},null,44,j))),128))],44,M))),128))],512)]),_:1},8,["modelValue"]),o(it,{ref_key:"appLinkDialogRef",ref:R,onAppLinkChange:st},null,512)],64)}}}),[["__scopeId","data-v-e60b1a26"],["__file","D:/zx/mall-newfeifan-zx-admin/src/components/DiyEditor/components/mobile/HotZone/components/HotZoneEditDialog/index.vue"]]),lt=at(N({name:"HotZoneProperty",__name:"property",props:{modelValue:{type:Object,required:!0}},emits:["update:modelValue"],setup(e,{emit:f}){const v=e,d=f,{formData:l}=Tt(v.modelValue,d),s=D(),n=()=>{s.value.open()};return(i,r)=>{const p=zt,g=Ht,_=Vt,z=kt,P=et,X=ct;return H(),b(C,null,[o(X,{modelValue:m(l).style,"onUpdate:modelValue":r[1]||(r[1]=h=>m(l).style=h)},{default:y(()=>[o(z,{"label-width":"80px",model:m(l),class:"m-t-8px"},{default:y(()=>[o(_,{label:"\u4E0A\u4F20\u56FE\u7247",prop:"imgUrl"},{default:y(()=>[o(g,{modelValue:m(l).imgUrl,"onUpdate:modelValue":r[0]||(r[0]=h=>m(l).imgUrl=h),height:"50px",width:"auto",class:"min-w-80px"},{tip:y(()=>[o(p,{type:"info",size:"small"},{default:y(()=>[U(" \u63A8\u8350\u5BBD\u5EA6 750")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),o(P,{type:"primary",plain:"",class:"w-full",onClick:n},{default:y(()=>[U(" \u8BBE\u7F6E\u70ED\u533A ")]),_:1})]),_:1},8,["modelValue"]),o(A,{ref_key:"editDialogRef",ref:s,modelValue:m(l).list,"onUpdate:modelValue":r[2]||(r[2]=h=>m(l).list=h),"img-url":m(l).imgUrl},null,8,["modelValue","img-url"])],64)}}}),[["__scopeId","data-v-1dfabffd"],["__file","D:/zx/mall-newfeifan-zx-admin/src/components/DiyEditor/components/mobile/HotZone/property.vue"]])});export{Jt as __tla,lt as default};
  5. >>>>>>>> 2589804fb89eb98fd6498c1ee41a354dcce32af3:dist/assets/property-9f53e85e.js