index.b836c2fa.js 856 B

1
  1. import{d as s,j as t}from"./ResizeObserver.es.39b48a47.js";import{C as n}from"./index.db115763.js";import{s as u}from"./icon_student.c3c58354.js";const d="_student_z69gd_1",a="_studentImg_z69gd_6",o="_subject_z69gd_14",i="_studentName_z69gd_23";var e={student:d,studentImg:a,subject:o,studentName:i},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};