import{S as c}from"./sortable.esm-679e0872.js";import{e as s}from"./index-5df52834.js";import{a as u}from"./data-3da52ac2.js";function b(){const e=Vue.ref(s(u,!0)),n=o=>{o.preventDefault(),Vue.nextTick(()=>{const r=document.querySelector(".el-table__body-wrapper tbody");c.create(r,{animation:300,handle:".drag-btn",onEnd:({newIndex:t,oldIndex:a})=>{const l=e.value.splice(a,1)[0];e.value.splice(t,0,l)}})})};return{columns:[{label:"ID",prop:"id",cellRenderer:({row:o})=>Vue.createVNode("div",{class:"flex items-center"},[Vue.createVNode(Vue.resolveComponent("iconify-icon-online"),{icon:"icon-park-outline:drag",class:"drag-btn cursor-grab",onMouseenter:r=>n(r)},null),Vue.createVNode("p",{class:"ml-[16px]"},[o.id])])},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}],dataList:e}}export{b as useColumns};
