import{w as r,j as l,r as o}from"./index.js";function p(){return{columns:r([{label:"\u540D\u79F0",prop:"menu_name",minWidth:200,align:"left",showOverflowTooltip:!0},{label:"\u56FE\u6807",prop:"menu_img",width:80,showOverflowTooltip:!0,cellRenderer:({row:e})=>l(o("IconifyIconOnline"),{icon:e.menu_img},null)},{label:"path",prop:"menu_route",minWidth:180,showOverflowTooltip:!0,align:"left"},{label:"\u6743\u91CD",prop:"weight",showOverflowTooltip:!0,width:60},{label:"\u7C7B\u578B",prop:"menu_type",minWidth:80,showOverflowTooltip:!0,cellRenderer:({row:e,props:t})=>l(o("el-tag"),{size:"small",type:e.pid+""=="0"?"success":"danger",effect:"plain"},{default:()=>[e.pid+""=="0"?"\u83DC\u5355":"\u9875\u9762"]})},{label:"\u72B6\u6001",prop:"status",minWidth:80,showOverflowTooltip:!0,cellRenderer:({row:e,props:t})=>l(o("el-tag"),{size:"small",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,showOverflowTooltip:!0,align:"left"},{label:"\u64CD\u4F5C",fixed:"right",width:180,showOverflowTooltip:!0,slot:"operation"}])}}export{p as useColumns};
