12345 |
- <<<<<<<< HEAD:dist/assets/property-6310318c.js
- import{_ as ee,__tla as te}from"./ComponentContainerProperty-cce913f8.js";import{d as G,dR as ae,ag as B,r as R,L as J,o as n,c as p,g as K,F as k,q as D,Z as le,au as N,f as l,a as o,P as Q,n as E,t as oe,j as re,_ as W,v as ue,w as y,A as se,da as ie,D as _e,__tla as me}from"./index-d75b4e4d.js";import{_ as ne,__tla as ce}from"./index-227e8a54.js";import{_ as de,__tla as pe}from"./UploadImg-fb25ebf8.js";import{E as he,__tla as fe}from"./el-text-c041f5cb.js";import{u as ye,__tla as ve}from"./util-b439aaf7.js";import{__tla as be}from"./el-card-7039354a.js";import{__tla as Ve}from"./index-980ac13f.js";import"./color-6e929987.js";import{__tla as xe}from"./AppLinkSelectDialog-a3d26909.js";import{__tla as ge}from"./Dialog-386bf3a6.js";import{__tla as we}from"./ProductCategorySelect-32db6942.js";import{__tla as ze}from"./el-tree-select-155921a3.js";import"./tree-0af4953a.js";import{__tla as ke}from"./category-457bfcfd.js";import{__tla as Ue}from"./index-6c07820e.js";import{__tla as Ce}from"./el-image-viewer-b9e519ff.js";import{__tla as Se}from"./useMessage-ba892ac2.js";import{__tla as Re}from"./Qrcode-49e7d66c.js";import{__tla as Me}from"./IFrame-31274294.js";import{__tla as $e}from"./vuedraggable.umd-f2a069f3.js";import{__tla as De}from"./el-collapse-item-a2f15736.js";let X,Ae=Promise.all([(()=>{try{return te}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return pe}catch{}})(),(()=>{try{return fe}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return $e}catch{}})(),(()=>{try{return De}catch{}})()]).then(async()=>{let A,P,T,F,H,I,L;A=(_,w)=>{const[u,s]=[_.x,w.x].sort(),[e,c]=[_.y,w.y].sort(),V=s+1,x=c+1;return{left:u,right:V,top:e,bottom:x,height:x-e,width:V-u}},P={class:"relative"},T={class:"cube-table"},F=["onClick","onMouseenter"],H=["onClick"],I=["onClick"],L=W(G({name:"MagicCubeEditor",__name:"index",props:{modelValue:ae().isRequired,rows:B.number.def(4),cols:B.number.def(4),cubeSize:B.number.def(75)},emits:["update:modelValue","hotAreaSelected"],setup(_,{emit:w}){const u=_,s=R([]);J(()=>[u.rows,u.cols],()=>{if(s.value=[],u.rows&&u.cols)for(let i=0;i<u.rows;i++){s.value[i]=[];for(let a=0;a<u.cols;a++)s.value[i].push({x:a,y:i,active:!1})}},{immediate:!0});const e=R([]);J(()=>u.modelValue,()=>e.value=u.modelValue||[],{immediate:!0});const c=R(),V=()=>!!c.value,x=w,r=()=>x("update:modelValue",e),U=R(-1),M=(i,a)=>{U.value=a,x("hotAreaSelected",i,a)};function z(){v((i,a,m)=>{m.active&&(m.active=!1)}),c.value=void 0}const v=i=>{for(let a=0;a<s.value.length;a++)for(let m=0;m<s.value[a].length;m++)i(a,m,s.value[a][m])};return(i,a)=>{const m=re;return n(),p("div",P,[K("table",T,[K("tbody",null,[(n(!0),p(k,null,D(o(s),(d,t)=>(n(),p("tr",{key:t},[(n(!0),p(k,null,D(d,(b,h)=>(n(),p("td",{key:h,class:le(["cube",{active:b.active}]),style:N({width:`${_.cubeSize}px`,height:`${_.cubeSize}px`}),onClick:Y=>((j,q)=>{const C=s.value[j][q];if(!V())return c.value=C,void(c.value.active=!0);e.value.push(A(c.value,C)),z();let f=e.value.length-1;M(e.value[f],f),r()})(t,h),onMouseenter:Y=>((j,q)=>{if(!V())return;const C=A(c.value,s.value[j][q]);for(const O of e.value)if(g=C,(f=O).left<g.left+g.width&&f.left+f.width>g.left&&f.top<g.top+g.height&&f.height+f.top>g.top)return void z();var f,g;v((O,je,Z)=>{var S,$;Z.active=(S=C,($=Z).x>=S.left&&$.x<S.right&&$.y>=S.top&&$.y<S.bottom)})})(t,h)},[l(m,{icon:"ep-plus"})],46,F))),128))]))),128))]),(n(!0),p(k,null,D(o(e),(d,t)=>(n(),p("div",{key:t,class:"hot-area",style:N({top:_.cubeSize*d.top+"px",left:_.cubeSize*d.left+"px",height:_.cubeSize*d.height+"px",width:_.cubeSize*d.width+"px"}),onClick:b=>M(d,t),onMouseover:z},[o(U)===t?(n(),p("div",{key:0,class:"btn-delete",onClick:b=>(h=>{e.value.splice(h,1),z(),r()})(t)},[l(m,{icon:"ep:circle-close-filled"})],8,I)):Q("",!0),E(" "+oe(`${d.width}\xD7${d.height}`),1)],44,H))),128))])])}}}),[["__scopeId","data-v-d5b18453"],["__file","D:/zx/mall-newfeifan-zx-admin/src/components/MagicCubeEditor/index.vue"]]),X=W(G({name:"MagicCubeProperty",__name:"property",props:{modelValue:{type:Object,required:!0}},emits:["update:modelValue"],setup(_,{emit:w}){const u=_,s=w,{formData:e}=ye(u.modelValue,s),c=R(-1),V=(x,r)=>{c.value=r};return(x,r)=>{const U=he,M=L,z=de,v=se,i=ne,a=ie,m=_e,d=ee;return n(),ue(d,{modelValue:o(e).style,"onUpdate:modelValue":r[4]||(r[4]=t=>o(e).style=t)},{default:y(()=>[l(m,{"label-width":"80px",model:o(e),class:"m-t-8px"},{default:y(()=>[l(U,{tag:"p"},{default:y(()=>[E(" \u9B54\u65B9\u8BBE\u7F6E ")]),_:1}),l(U,{type:"info",size:"small"},{default:y(()=>[E(" \u6BCF\u683C\u5C3A\u5BF8187 * 187 ")]),_:1}),l(M,{class:"m-y-16px",modelValue:o(e).list,"onUpdate:modelValue":r[0]||(r[0]=t=>o(e).list=t),rows:4,cols:4,onHotAreaSelected:V},null,8,["modelValue"]),(n(!0),p(k,null,D(o(e).list,(t,b)=>(n(),p(k,{key:b},[o(c)===b?(n(),p(k,{key:0},[l(v,{label:"\u4E0A\u4F20\u56FE\u7247",prop:`list[${b}].imgUrl`},{default:y(()=>[l(z,{modelValue:t.imgUrl,"onUpdate:modelValue":h=>t.imgUrl=h,height:"80px",width:"80px"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"]),l(v,{label:"\u94FE\u63A5",prop:`list[${b}].url`},{default:y(()=>[l(i,{modelValue:t.url,"onUpdate:modelValue":h=>t.url=h},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])],64)):Q("",!0)],64))),128)),l(v,{label:"\u4E0A\u5706\u89D2",prop:"borderRadiusTop"},{default:y(()=>[l(a,{modelValue:o(e).borderRadiusTop,"onUpdate:modelValue":r[1]||(r[1]=t=>o(e).borderRadiusTop=t),max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"])]),_:1}),l(v,{label:"\u4E0B\u5706\u89D2",prop:"borderRadiusBottom"},{default:y(()=>[l(a,{modelValue:o(e).borderRadiusBottom,"onUpdate:modelValue":r[2]||(r[2]=t=>o(e).borderRadiusBottom=t),max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"])]),_:1}),l(v,{label:"\u95F4\u9694",prop:"space"},{default:y(()=>[l(a,{modelValue:o(e).space,"onUpdate:modelValue":r[3]||(r[3]=t=>o(e).space=t),max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/components/DiyEditor/components/mobile/MagicCube/property.vue"]])});export{Ae as __tla,X as default};
- ========
- import{_ as ee,__tla as te}from"./ComponentContainerProperty-b53d0ba4.js";import{d as G,dR as ae,ag as P,r as R,L as J,o as n,c as p,g as K,F as k,q as D,Z as le,au as N,f as l,a as o,P as Q,n as q,t as oe,j as re,_ as W,v as ue,w as y,A as se,da as ie,D as _e,__tla as me}from"./index-c9fff140.js";import{_ as ne,__tla as ce}from"./index-21e1f54d.js";import{_ as de,__tla as pe}from"./UploadImg-93acf2a6.js";import{E as he,__tla as fe}from"./el-text-456c3849.js";import{u as ye,__tla as ve}from"./util-7746e0b8.js";import{__tla as be}from"./el-card-49ad9acd.js";import{__tla as Ve}from"./index-49dc7e06.js";import"./color-6e929987.js";import{__tla as xe}from"./AppLinkSelectDialog-2e7e59c0.js";import{__tla as ge}from"./Dialog-f1f78bbe.js";import{__tla as we}from"./ProductCategorySelect-95ec8f3b.js";import{__tla as ze}from"./el-tree-select-eb40e238.js";import"./tree-0af4953a.js";import{__tla as ke}from"./category-b1918135.js";import{__tla as Ue}from"./index-71863882.js";import{__tla as Ce}from"./el-image-viewer-0aee2692.js";import{__tla as Se}from"./useMessage-5d45d53a.js";import{__tla as Re}from"./Qrcode-c2d1a305.js";import{__tla as Me}from"./IFrame-0bdfc7b4.js";import{__tla as $e}from"./vuedraggable.umd-53f93f2a.js";import{__tla as De}from"./el-collapse-item-184db02e.js";let X,Ae=Promise.all([(()=>{try{return te}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return pe}catch{}})(),(()=>{try{return fe}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return $e}catch{}})(),(()=>{try{return De}catch{}})()]).then(async()=>{let A,B,T,F,H,I,L;A=(_,w)=>{const[u,s]=[_.x,w.x].sort(),[e,c]=[_.y,w.y].sort(),V=s+1,x=c+1;return{left:u,right:V,top:e,bottom:x,height:x-e,width:V-u}},B={class:"relative"},T={class:"cube-table"},F=["onClick","onMouseenter"],H=["onClick"],I=["onClick"],L=W(G({name:"MagicCubeEditor",__name:"index",props:{modelValue:ae().isRequired,rows:P.number.def(4),cols:P.number.def(4),cubeSize:P.number.def(75)},emits:["update:modelValue","hotAreaSelected"],setup(_,{emit:w}){const u=_,s=R([]);J(()=>[u.rows,u.cols],()=>{if(s.value=[],u.rows&&u.cols)for(let i=0;i<u.rows;i++){s.value[i]=[];for(let a=0;a<u.cols;a++)s.value[i].push({x:a,y:i,active:!1})}},{immediate:!0});const e=R([]);J(()=>u.modelValue,()=>e.value=u.modelValue||[],{immediate:!0});const c=R(),V=()=>!!c.value,x=w,r=()=>x("update:modelValue",e),U=R(-1),M=(i,a)=>{U.value=a,x("hotAreaSelected",i,a)};function z(){v((i,a,m)=>{m.active&&(m.active=!1)}),c.value=void 0}const v=i=>{for(let a=0;a<s.value.length;a++)for(let m=0;m<s.value[a].length;m++)i(a,m,s.value[a][m])};return(i,a)=>{const m=re;return n(),p("div",B,[K("table",T,[K("tbody",null,[(n(!0),p(k,null,D(o(s),(d,t)=>(n(),p("tr",{key:t},[(n(!0),p(k,null,D(d,(b,h)=>(n(),p("td",{key:h,class:le(["cube",{active:b.active}]),style:N({width:`${_.cubeSize}px`,height:`${_.cubeSize}px`}),onClick:Y=>((E,j)=>{const C=s.value[E][j];if(!V())return c.value=C,void(c.value.active=!0);e.value.push(A(c.value,C)),z();let f=e.value.length-1;M(e.value[f],f),r()})(t,h),onMouseenter:Y=>((E,j)=>{if(!V())return;const C=A(c.value,s.value[E][j]);for(const O of e.value)if(g=C,(f=O).left<g.left+g.width&&f.left+f.width>g.left&&f.top<g.top+g.height&&f.height+f.top>g.top)return void z();var f,g;v((O,Ee,Z)=>{var S,$;Z.active=(S=C,($=Z).x>=S.left&&$.x<S.right&&$.y>=S.top&&$.y<S.bottom)})})(t,h)},[l(m,{icon:"ep-plus"})],46,F))),128))]))),128))]),(n(!0),p(k,null,D(o(e),(d,t)=>(n(),p("div",{key:t,class:"hot-area",style:N({top:_.cubeSize*d.top+"px",left:_.cubeSize*d.left+"px",height:_.cubeSize*d.height+"px",width:_.cubeSize*d.width+"px"}),onClick:b=>M(d,t),onMouseover:z},[o(U)===t?(n(),p("div",{key:0,class:"btn-delete",onClick:b=>(h=>{e.value.splice(h,1),z(),r()})(t)},[l(m,{icon:"ep:circle-close-filled"})],8,I)):Q("",!0),q(" "+oe(`${d.width}\xD7${d.height}`),1)],44,H))),128))])])}}}),[["__scopeId","data-v-d5b18453"],["__file","D:/zx/mall-newfeifan-zx-admin/src/components/MagicCubeEditor/index.vue"]]),X=W(G({name:"MagicCubeProperty",__name:"property",props:{modelValue:{type:Object,required:!0}},emits:["update:modelValue"],setup(_,{emit:w}){const u=_,s=w,{formData:e}=ye(u.modelValue,s),c=R(-1),V=(x,r)=>{c.value=r};return(x,r)=>{const U=he,M=L,z=de,v=se,i=ne,a=ie,m=_e,d=ee;return n(),ue(d,{modelValue:o(e).style,"onUpdate:modelValue":r[4]||(r[4]=t=>o(e).style=t)},{default:y(()=>[l(m,{"label-width":"80px",model:o(e),class:"m-t-8px"},{default:y(()=>[l(U,{tag:"p"},{default:y(()=>[q(" \u9B54\u65B9\u8BBE\u7F6E ")]),_:1}),l(U,{type:"info",size:"small"},{default:y(()=>[q(" \u6BCF\u683C\u5C3A\u5BF8187 * 187 ")]),_:1}),l(M,{class:"m-y-16px",modelValue:o(e).list,"onUpdate:modelValue":r[0]||(r[0]=t=>o(e).list=t),rows:4,cols:4,onHotAreaSelected:V},null,8,["modelValue"]),(n(!0),p(k,null,D(o(e).list,(t,b)=>(n(),p(k,{key:b},[o(c)===b?(n(),p(k,{key:0},[l(v,{label:"\u4E0A\u4F20\u56FE\u7247",prop:`list[${b}].imgUrl`},{default:y(()=>[l(z,{modelValue:t.imgUrl,"onUpdate:modelValue":h=>t.imgUrl=h,height:"80px",width:"80px"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"]),l(v,{label:"\u94FE\u63A5",prop:`list[${b}].url`},{default:y(()=>[l(i,{modelValue:t.url,"onUpdate:modelValue":h=>t.url=h},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])],64)):Q("",!0)],64))),128)),l(v,{label:"\u4E0A\u5706\u89D2",prop:"borderRadiusTop"},{default:y(()=>[l(a,{modelValue:o(e).borderRadiusTop,"onUpdate:modelValue":r[1]||(r[1]=t=>o(e).borderRadiusTop=t),max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"])]),_:1}),l(v,{label:"\u4E0B\u5706\u89D2",prop:"borderRadiusBottom"},{default:y(()=>[l(a,{modelValue:o(e).borderRadiusBottom,"onUpdate:modelValue":r[2]||(r[2]=t=>o(e).borderRadiusBottom=t),max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"])]),_:1}),l(v,{label:"\u95F4\u9694",prop:"space"},{default:y(()=>[l(a,{modelValue:o(e).space,"onUpdate:modelValue":r[3]||(r[3]=t=>o(e).space=t),max:100,min:0,"show-input":"","input-size":"small","show-input-controls":!1},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/components/DiyEditor/components/mobile/MagicCube/property.vue"]])});export{Ae as __tla,X as default};
- >>>>>>>> 2589804fb89eb98fd6498c1ee41a354dcce32af3:dist/assets/property-b29b3e25.js
|