index.2d005e3b.js 1.0 KB

1
  1. import{d as s,c as e,k as r}from"./vendor.9f3c6e4d.js";var t="./assets/icon_empty.df5db7bf.png",a="./assets/icon_no_live.fcb0eb56.png",n="./assets/icon_teacher_cert.ee709a8f.png",i="./assets/icon_music_cert.a65c8b91.png",l=s({name:"col-empty",props:{message:{type:String,default:"\u6682\u65E0\u6570\u636E"},buttonText:{type:String,default:"\u53BB\u9996\u9875"},buttonVisibility:{type:Boolean,default:!1},type:{type:String,default:"empty"},onDetail:{type:Function,default:()=>{}}},computed:{icon(){switch(this.type){case"empty":return t;case"live":return a;case"teacherCert":return n;case"musicCert":return i;default:return t}}},render(){return e("div",{class:"w-full h-full text-center flex items-center justify-center flex-col"},[e("img",{src:this.icon,class:"w-64 m-auto"},null),e("p",{class:"text-base text-[#999999] pt-4 pb-6"},[this.message]),this.buttonVisibility&&e(r,{type:"primary",class:"rounded-sm !px-12",round:!0,style:{height:"48px"},onClick:()=>{this.onDetail()}},{default:()=>[this.buttonText]})])}});export{l as C};