1 |
- import{m as s,h as l,r as o,S as r}from"./index.56449854.js";import{a}from"./status.3ccd5ebb.js";function u(){return{columns:s([{label:"\u771F\u5B9E\u59D3\u540D",prop:"nickname"},{label:"\u7528\u6237\u540D\u79F0",prop:"username"},{label:"\u72B6\u6001",prop:"status",minWidth:80,cellRenderer:({row:e,props:i})=>l(o("el-tag"),{size:"small",type:(a.find(t=>t.value==e.status+"")||{}).type||"info",effect:"plain"},{default:()=>[(a.find(t=>t.value==e.status+"")||{}).label||"--"]})},{label:"\u521B\u5EFA\u65F6\u95F4",width:160,prop:"addtime",formatter:({addtime:e})=>r(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:145,slot:"operation"}])}}export{u as useColumns};
|