index.6fbb4569.js 844 B

1
  1. import{d as s,j as t}from"./index.e6d6174e.js";import{C as n}from"./index.af99cf22.js";import{i as u}from"./icon_student.bbb32387.js";const d="_student_z69gd_1",a="_studentImg_z69gd_6",i="_subject_z69gd_14",o="_studentName_z69gd_23";var e={student:d,studentImg:a,subject:i,studentName:o},p=s({name:"student",props:{item:{type:Object,default:{}},onClick:{type:Function,default:m=>{}},border:{type:Boolean,default:!0}},render(){return t(n,{center:!0,class:e.student,border:this.border,onClick:()=>{this.onClick(this.item)}},{default:()=>[this.$slots.default&&this.$slots.default()],icon:()=>t("img",{src:this.item.avatar||u,class:e.studentImg},null),title:()=>t("div",{class:e.info},[t("p",{class:e.studentName},[this.item.userName]),t("p",null,[this.item.subjectName&&t("span",{class:e.subject},[this.item.subjectName])])])})}});export{p as S};