import{b as i,T as d,a as m}from"./index-434d719f.js";import{f as b,ai as u,a4 as h}from"./index-ba596ae9.js";import{_ as f}from"./popupForm.vue_vue_type_script_setup_true_lang-0bd7c165.js";import{h as p,y as g,B as _,p as s,l as y,k as a,M as w,a4 as k,q as o,t as N,as as E}from"./vue-a39e6937.js";import"./controllerUrls-941681c3.js";import"./index-7e56a0fa.js";import"./index-f0d8af94.js";import"./validate-4ecec794.js";const x={class:"default-main ba-table-box"},R=p({name:"test"}),v=p({...R,setup(A){const{t:e}=b(),l=g(),n=u(["weigh-sort","edit","delete"]),t=new i(new h("/admin/test/"),{pk:"id",column:[{type:"selection",align:"center",operator:!1},{label:e("test.id"),prop:"id",align:"center",width:70,operator:"RANGE",sortable:"custom"},{label:e("test.weigh"),prop:"weigh",align:"center",operator:"RANGE",sortable:"custom"},{label:e("test.status"),prop:"status",align:"center",render:"switch",operator:"=",sortable:!1,replaceValue:{0:e("test.status 0"),1:e("test.status 1")}},{label:e("test.update_time"),prop:"update_time",align:"center",render:"datetime",operator:"RANGE",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("test.create_time"),prop:"create_time",align:"center",render:"datetime",operator:"RANGE",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("test.image"),prop:"image",align:"center",render:"image",operator:!1},{label:e("test.images"),prop:"images",align:"center",render:"images",operator:!1},{label:e("test.radio"),prop:"radio",align:"center",render:"tag",operator:"=",sortable:!1,replaceValue:{opt0:e("test.radio opt0"),opt1:e("test.radio opt1")}},{label:e("test.checkbox"),prop:"checkbox",align:"center",render:"tags",operator:"FIND_IN_SET",sortable:!1,replaceValue:{opt0:e("test.checkbox opt0"),opt1:e("test.checkbox opt1")}},{label:e("test.select"),prop:"select",align:"center",render:"tag",operator:"=",sortable:!1,replaceValue:{opt0:e("test.select opt0"),opt1:e("test.select opt1")}},{label:e("test.selects"),prop:"selects",align:"center",render:"tags",operator:"FIND_IN_SET",sortable:!1,replaceValue:{opt0:e("test.selects opt0"),opt1:e("test.selects opt1")}},{label:e("test.switch"),prop:"switch",align:"center",render:"switch",operator:"=",sortable:!1,replaceValue:{0:e("test.switch 0"),1:e("test.switch 1")}},{label:e("test.float"),prop:"float",align:"center",operator:"RANGE",sortable:!1},{label:e("test.number"),prop:"number",align:"center",operator:"RANGE",sortable:!1},{label:e("test.color"),prop:"color",align:"center",render:"color",operator:!1},{label:e("test.icon"),prop:"icon",align:"center",render:"icon",operator:!1},{label:e("test.city"),prop:"city_text",align:"center",operator:!1},{label:e("test.timestamp"),prop:"timestamp",align:"center",render:"datetime",operator:"RANGE",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("test.year"),prop:"year",align:"center",operator:"RANGE",sortable:"custom"},{label:e("test.datetime"),prop:"datetime",align:"center",operator:"=",sortable:"custom",width:160},{label:e("test.time"),prop:"time",align:"center",operator:"=",sortable:"custom"},{label:e("test.date"),prop:"date",align:"center",operator:"=",sortable:"custom"},{label:e("operate"),align:"center",width:140,render:"buttons",buttons:n,operator:!1}],dblClickNotEditColumn:[void 0,"status","switch"],defaultOrder:{prop:"weigh",order:"desc"}},{defaultItems:{weigh:0,status:"1",radio:"opt0",checkbox:["opt0","opt1"],select:"opt0",switch:"1",float:0,number:0,array:[],timestamp:null,year:null,datetime:null,time:null,date:null,editor:null}});return E("baTable",t),_(()=>{var r;t.table.ref=l.value,t.mount(),(r=t.getIndex())==null||r.then(()=>{t.initSort(),t.dragSort()})}),(r,T)=>{const c=N("el-alert");return s(),y("div",x,[a(t).table.remark?(s(),w(c,{key:0,class:"ba-table-alert",title:a(t).table.remark,type:"info","show-icon":""},null,8,["title"])):k("",!0),o(d,{buttons:["refresh","add","edit","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":a(e)("quick Search Placeholder",{fields:a(e)("test.quick Search Fields")})},null,8,["quick-search-placeholder"]),o(m,{ref_key:"tableRef",ref:l},null,512),o(f)])}}});export{v as default};
