| 1 |
- import{d as w,f as i,ag as l,aq as y,ar as D,k as a,aD as e,G as c,at as s,u as p,au as _}from"./vue-vendor-Be68asQ6.js";import{d as k}from"./vuedraggable.umd-CvnwfRLh.js";import{a as P}from"./index-BFfnEkVs.js";import"./antd-vue-vendor-DcqS7Wvq.js";import"./vxe-table-vendor-DHF2TRpV.js";const V={class:"imgDiv"},C=["src"],S={rows:"25",style:{width:"780px"}},b={rows:"25",style:{width:"780px"}},B=w({__name:"ImgDragSort",setup(I){const d=[{id:"000",sort:0,filePath:"https://static.jeecg.com/upload/test/1_1588149743473.jpg"},{id:"111",sort:1,filePath:"https://static.jeecg.com/upload/test/u27356337152749454924fm27gp0_1588149731821.jpg"},{id:"222",sort:2,filePath:"https://static.jeecg.com/upload/test/u24454681402491956848fm27gp0_1588149712663.jpg"},{id:"333",sort:3,filePath:"https://static.jeecg.com/temp/国炬软件logo_1606575029126.png"},{id:"444",sort:4,filePath:"https://static.jeecg.com/upload/test/u8891206113801177793fm27gp0_1588149704459.jpg"}],n=i(d),f=i(d),u=i([]);function g(o){}function v(){for(let o=0;o<p(n).length;o++)n.value[o].sort=o;u.value=p(n)}return(o,t)=>{const x=l("a-button"),h=l("a-divider"),m=l("a-col"),j=l("a-row");return D(),y("div",null,[a(p(k),{onEnd:g,modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=r=>n.value=r),"item-key":"id",style:{display:"flex"}},{item:e(({element:r})=>[s("div",V,[s("img",{src:r.filePath,preview:"index"},null,8,C)])]),footer:e(()=>[a(x,{onClick:v,type:"primary",style:{"margin-top":"100px"}},{default:e(()=>t[1]||(t[1]=[c("确定")])),_:1})]),_:1},8,["modelValue"]),a(h,null,{default:e(()=>t[2]||(t[2]=[c("json数据")])),_:1}),a(j,null,{default:e(()=>[a(m,{span:12},{default:e(()=>[t[3]||(t[3]=s("p",null,"拖拽前:",-1)),s("textarea",S,_(f.value),1)]),_:1}),a(m,{span:12},{default:e(()=>[t[4]||(t[4]=s("p",null,"拖拽后:",-1)),s("textarea",b,_(u.value),1)]),_:1})]),_:1})])}}}),T=P(B,[["__scopeId","data-v-2e06862b"]]);export{T as default};
|