import{_ as e,q as a,k as s,c as t,b as l,j as o,d as i,w as n,T as d,F as c,n as u,i as r,R as m,m as p}from"./index-DuyQv-rd.js";const v=a({props:{viewColumns:{type:Array,default:()=>[]}},components:{draggable:VueDraggableNext},data:()=>({}),setup:(e,a)=>({dragOptions:p({animation:200,group:"description",disabled:!1,ghostClass:"ghost"}),componentData:p({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,p,v,f,x){const y=s("el-alert"),b=s("el-checkbox"),_=s("draggable");return l(),t(c,null,[o(y,{title:"拖动列名可调整表格列显示顺序",type:"success","show-icon":!1}),a[1]||(a[1]=i("div",{class:"view-column view-column-title"},[i("div",{class:"view-column-index"},"#"),i("div",{class:"view-column-left"},"列名"),i("div",{class:"view-column-right"},"是否显示")],-1)),o(_,m({class:"list-group",tag:"transition-group","component-data":e.componentData,list:e.viewColumns},e.dragOptions,{"item-key":"order"}),{default:n((()=>[o(d,{class:"drag-center-item"},{default:n((()=>[(l(!0),t(c,null,u(e.viewColumns,((e,s)=>(l(),t("div",{class:"view-column",key:s},[i("div",g,r(s+1),1),i("div",w,r(e.title),1),i("div",h,[o(b,{modelValue:e.show,"onUpdate:modelValue":a=>e.show=a},{default:n((()=>a[0]||(a[0]=[i("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};
