columns.66eb3fb2.js 1.2 KB

1
  1. import{D as i,w as n,v as t}from"./index.ef4119aa.js";function s(){return{columns:i([{type:"selection",minWidth:55,align:"left",hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",minWidth:60,align:"left",hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u540D\u79F0",prop:"menu_name",minWidth:180,align:"left"},{label:"\u56FE\u6807",prop:"menu_img",minWidth:80,cellRenderer:({row:e,props:l})=>n(t("IconifyIconOnline"),{icon:e.menu_img},null)},{label:"path",prop:"menu_route",minWidth:180,align:"left"},{label:"\u6743\u91CD",prop:"weight",minWidth:60},{label:"\u7C7B\u578B",prop:"menu_type",minWidth:80,cellRenderer:({row:e,props:l})=>n(t("el-tag"),{size:l.size,type:e.menu_type+""=="1"?"success":"danger",effect:"plain"},{default:()=>[e.menu_type+""=="1"?"\u83DC\u5355":"\u9875\u9762"]})},{label:"\u72B6\u6001",prop:"status",minWidth:80,cellRenderer:({row:e,props:l})=>n(t("el-tag"),{size:l.size,type:e.status+""=="1"?"success":"danger",effect:"plain"},{default:()=>[e.status+""=="0"?"\u7981\u7528":"\u542F\u7528"]})},{label:"\u9875\u9762\u8DEF\u5F84",prop:"menu_url",minWidth:180,align:"left"},{label:"\u64CD\u4F5C",fixed:"right",width:180,slot:"operation"}])}}export{s as useColumns};