chunk-2d0a3c6b.51105022.js 2.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a3c6b"],{"042c":function(t,a,e){"use strict";e.r(a);var o=function(){var t=this,a=t._self._c;return a("a-card",[a("draggable",{staticStyle:{display:"inline-block"},attrs:{options:{animation:300}},on:{end:t.end},model:{value:t.dataSource,callback:function(a){t.dataSource=a},expression:"dataSource"}},[t._l(t.dataSource,(function(t,e){return[a("div",{key:e,staticStyle:{float:"left",width:"150px",height:"150px","margin-right":"10px",margin:"0 8px 8px 0"}},[a("div",{staticStyle:{width:"100%",height:"100%",position:"relative",padding:"8px",border:"1px solid #d9d9d9","border-radius":"4px"}},[a("img",{staticStyle:{width:"100%"},attrs:{src:t.filePath,preview:"index"}})])])]})),a("a-button",{staticStyle:{"margin-top":"115px"},attrs:{type:"primary"},on:{click:t.sureChange}},[t._v("确定")])],2),a("br"),a("a-row",[a("a-col",{attrs:{span:12}},[a("p",[t._v("拖拽前json数据:")]),a("textarea",{staticStyle:{width:"780px"},attrs:{rows:"25"}},[t._v(t._s(t.oldDateSource))])]),a("a-col",{attrs:{span:12}},[a("p",[t._v("拖拽后json数据:")]),a("textarea",{staticStyle:{width:"780px"},attrs:{rows:"25"}},[t._v(t._s(t.newDateSource))])])],1)],1)},i=[],c=e("b76a"),r=e.n(c),s=e("290c"),n=e("da05"),d={name:"ImgDragSort",components:{ACol:n["b"],ARow:s["a"],draggable:r.a},data:function(){return{description:"图片拖拽排序",spinning:!1,dataSource:[{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/upload/test/8f22cd945be44388bacbf0b88cf86cfa.png"},{id:"444",sort:4,filePath:"https://static.jeecg.com/upload/test/u8891206113801177793fm27gp0_1588149704459.jpg"}],oldDateSource:[],newDateSource:[]}},created:function(){this.oldDateSource=this.dataSource},methods:{end:function(t){},sureChange:function(){for(var t=0;t<this.dataSource.length;t++)this.dataSource[t].sort=t;this.newDateSource=this.dataSource}}},p=d,l=e("2877"),u=Object(l["a"])(p,o,i,!1,null,"5bc1c203",null);a["default"]=u.exports}}]);