1 |
- import{d as s,c as e,l as a}from"./vendor.63aa8b19.js";var t="./assets/icon_empty.df5db7bf.png",r="./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 r;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(a,{type:"primary",class:"rounded-sm !px-12",round:!0,style:{height:"48px"},onClick:()=>{this.onDetail()}},{default:()=>[this.buttonText]})])}});export{l as C};
|