import{_ as e,m as a,r as s,h as t,e as l,c as o,g as i,b as n,w as d,a2 as c,F as u,l as r,t as m,a3 as p}from"./index-vtcwYVzc.js";const v=a({props:{viewColumns:{type:Array,default:()=>[]}},components:{draggable:VueDraggableNext},data:()=>({}),setup:(e,a)=>({dragOptions:s({animation:200,group:"description",disabled:!1,ghostClass:"ghost"}),componentData:s({tag:"ul",type:"transition-group"})})}),g={class:"view-column-index"},w={class:"view-column-left"},h={class:"view-column-right"};const f=e(v,[["render",function(e,a,s,v,f,x){const y=t("el-alert"),b=t("el-checkbox"),_=t("draggable");return l(),o(u,null,[i(y,{title:"拖动列名可调整表格列显示顺序",type:"success","show-icon":!1}),a[1]||(a[1]=n("div",{class:"view-column view-column-title"},[n("div",{class:"view-column-index"},"#"),n("div",{class:"view-column-left"},"列名"),n("div",{class:"view-column-right"},"是否显示")],-1)),i(_,p({class:"list-group",tag:"transition-group","component-data":e.componentData,list:e.viewColumns},e.dragOptions,{"item-key":"order"}),{default:d((()=>[i(c,{class:"drag-center-item"},{default:d((()=>[(l(!0),o(u,null,r(e.viewColumns,((e,s)=>(l(),o("div",{class:"view-column",key:s},[n("div",g,m(s+1),1),n("div",w,m(e.title),1),n("div",h,[i(b,{modelValue:e.show,"onUpdate:modelValue":a=>e.show=a},{default:d((()=>a[0]||(a[0]=[n("div",{style:{height:"100%",width:"250px"}},null,-1)]))),_:2},1032,["modelValue","onUpdate:modelValue"])])])))),128))])),_:1})])),_:1},16,["component-data","list"])],64)}],["__scopeId","data-v-12390022"]]);export{f as default};
