"use strict";(self["webpackChunkmi_wifi_agent"]=self["webpackChunkmi_wifi_agent"]||[]).push([[1173],{559:function(e,t,l){l.r(t),l.d(t,{default:function(){return b}});var a=l(641),r=l(2644);const i={class:"left-panel"};function s(e,t,l,s,n,o){const p=(0,a.g2)("el-button"),b=(0,a.g2)("el-header"),d=(0,a.g2)("el-table-column"),u=(0,a.g2)("el-tag"),c=(0,a.g2)("el-progress"),f=(0,a.g2)("scTable"),g=(0,a.g2)("el-main"),w=(0,a.g2)("el-container");return(0,a.uX)(),(0,a.Wv)(w,null,{default:(0,a.k6)((()=>[(0,a.bF)(b,null,{default:(0,a.k6)((()=>[(0,a.Lk)("div",i,[(0,a.bF)(p,{type:"primary",icon:"el-icon-plus"}),(0,a.bF)(p,{type:"danger",plain:"",icon:"el-icon-delete"})])])),_:1}),(0,a.bF)(g,{class:"nopadding"},{default:(0,a.k6)((()=>[(0,a.bF)(f,{ref:"table",apiObj:n.list.apiObj,"row-key":"id",stripe:""},{default:(0,a.k6)((()=>[(0,a.bF)(d,{type:"selection",width:"50"}),(0,a.bF)(d,{label:"姓名",prop:"name",width:"150"}),(0,a.bF)(d,{label:"性别",prop:"sex",width:"150",filters:n.sexFilters,"filter-method":o.filterHandler},{default:(0,a.k6)((e=>["男"==e.row.sex?((0,a.uX)(),(0,a.Wv)(u,{key:0},{default:(0,a.k6)((()=>[(0,a.eW)((0,r.v_)(e.row.sex),1)])),_:2},1024)):(0,a.Q3)("",!0),"女"==e.row.sex?((0,a.uX)(),(0,a.Wv)(u,{key:1,type:"success"},{default:(0,a.k6)((()=>[(0,a.eW)((0,r.v_)(e.row.sex),1)])),_:2},1024)):(0,a.Q3)("",!0)])),_:1},8,["filters","filter-method"]),(0,a.bF)(d,{label:"邮箱",prop:"email",width:"250"}),(0,a.bF)(d,{label:"评分",prop:"num",width:"150",sortable:""}),(0,a.bF)(d,{label:"进度",prop:"progress",width:"250",sortable:""},{default:(0,a.k6)((e=>[(0,a.bF)(c,{percentage:e.row.progress},null,8,["percentage"])])),_:1}),(0,a.bF)(d,{label:"注册时间",prop:"datetime",width:"150",sortable:""})])),_:1},8,["apiObj"])])),_:1})])),_:1})}var n={name:"tableBase",data(){return{sexFilters:[{text:"男",value:"男"},{text:"女",value:"女"}],list:{apiObj:this.$API.demo.list}}},methods:{filterHandler(e,t,l){const a=l["property"];return t[a]===e}}},o=l(6262);const p=(0,o.A)(n,[["render",s]]);var b=p}}]);