import{C as i}from"./index-CAzgmO3A.js";import{r as d,f as p,g as e,h as u,w as m,t as l,o as c}from"./index-5k_MqT6o.js";const V={__name:"index",setup(g){const t=d([{id:1,name:"项目1",description:"这是第一个项目"},{id:2,name:"项目2",description:"这是第二个项目"},{id:3,name:"项目3",description:"这是第三个项目"},{id:4,name:"项目4",description:"这是第四个项目"}]),r=s=>{};return(s,n)=>(c(),p("div",null,[n[1]||(n[1]=e("h2",null,"可拖拽排序列表",-1)),u(i,{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=a=>t.value=a),onChange:r},{item:m(({item:a,index:o})=>[e("span",null,l(o+1)+".",1),e("strong",null,l(a.name),1),e("span",null,l(a.description),1)]),_:1},8,["modelValue"]),e("pre",null,"当前顺序: "+l(JSON.stringify(t.value,null,2)),1)]))}};export{V as default};
