import{b as s,T as m,a as c}from"./index-434d719f.js";import{h as p}from"./controllerUrls-941681c3.js";import d from"./popupForm-88e29cf3.js";import{f as b,a4 as f,ai as _}from"./index-ba596ae9.js";import{h as u,y as h,B as g,p as l,l as k,k as a,M as w,a4 as y,q as n,t as v,as as T}from"./vue-a39e6937.js";import"./index-7e56a0fa.js";import"./index-f0d8af94.js";import"./validate-4ecec794.js";const M={class:"default-main ba-table-box"},q=u({name:"user/rule"}),A=u({...q,setup(x){const{t:e}=b(),o=h(),t=new s(new f(p),{expandAll:!0,column:[{type:"selection",align:"center",operator:!1},{label:e("auth.menu.title"),prop:"title",align:"left",width:"200"},{label:e("auth.menu.Icon"),prop:"icon",align:"center",width:"60",render:"icon",default:"el-icon-Minus"},{label:e("auth.menu.name"),prop:"name",align:"center","show-overflow-tooltip":!0},{label:e("auth.menu.type"),prop:"type",align:"center",render:"tag",custom:{menu:"danger",menu_dir:"success",route:"info"},replaceValue:{menu:e("user.rule.Member center menu items"),menu_dir:e("user.rule.Member center menu contents"),route:e("user.rule.Normal routing"),nav:e("user.rule.Top bar menu items"),button:e("user.rule.Page button"),nav_user_menu:e("user.rule.Top bar user dropdown")}},{label:e("state"),prop:"status",align:"center",width:"80",render:"switch"},{label:e("updatetime"),prop:"updatetime",align:"center",width:"160",render:"datetime"},{label:e("createtime"),prop:"createtime",align:"center",width:"160",render:"datetime"},{label:e("operate"),align:"center",width:"130",render:"buttons",buttons:_()}],dblClickNotEditColumn:[void 0,"status"]},{defaultItems:{type:"route",menu_type:"tab",extend:"none",no_login_valid:"0",keepalive:0,status:"1",icon:"el-icon-Minus"}},{requestEdit:()=>{t.form.items&&!t.form.items.icon&&(t.form.items.icon="el-icon-Minus")},onSubmit:()=>{t.form.items.type=="route"?t.form.items.menu_type="tab":["menu","menu_dir","nav_user_menu"].includes(t.form.items.type)&&(t.form.items.no_login_valid="0")}});return T("baTable",t),g(()=>{var r;t.table.ref=o.value,t.mount(),(r=t.getIndex())==null||r.then(()=>{t.dragSort()})}),(r,B)=>{const i=v("el-alert");return l(),k("div",M,[a(t).table.remark?(l(),w(i,{key:0,class:"ba-table-alert",title:a(t).table.remark,type:"info","show-icon":""},null,8,["title"])):y("",!0),n(m,{buttons:["refresh","add","edit","delete","unfold","quickSearch","columnDisplay"],"quick-search-placeholder":a(e)("quick Search Placeholder",{fields:a(e)("auth.menu.Rule title")})},null,8,["quick-search-placeholder"]),n(c,{ref_key:"tableRef",ref:o,pagination:!1},null,512),n(d)])}}});export{A as default};