12 |
- ;(function(){System.register(['./vendor-legacy.0948049f.js'],function(exports){'use strict';var defineComponent,createVNode,ElButton;return{setters:[function(module){defineComponent=module.d;createVNode=module.c;ElButton=module.k;}],execute:function execute(){var empty="./assets/icon_empty.df5db7bf.png";var live="./assets/icon_no_live.fcb0eb56.png";var teacherCert="./assets/icon_teacher_cert.ee709a8f.png";var musicCert="./assets/icon_music_cert.a65c8b91.png";var ColEmpty=exports('C',defineComponent({name:'col-empty',props:{message:{type:String,default:'暂无数据'},buttonText:{type:String,default:'去首页'},buttonVisibility:{type:Boolean,default:false},type:{type:String,default:'empty'// 'empty' | 'live' | 'teacherCert' | 'musicCert'
- },onDetail:{type:Function,default:function _default(){}}},computed:{icon:function icon(){switch(this.type){case'empty':return empty;case'live':return live;case'teacherCert':return teacherCert;case'musicCert':return musicCert;default:return empty;}}},render:function render(){var _this=this;return createVNode("div",{"class":"w-full h-full text-center flex items-center justify-center flex-col"},[createVNode("img",{"src":this.icon,"class":"w-64 m-auto"},null),createVNode("p",{"class":"text-base text-[#999999] pt-4 pb-6"},[this.message]),this.buttonVisibility&&createVNode(ElButton,{"type":"primary","class":"rounded-sm !px-12","round":true,"style":{height:'48px'},"onClick":function onClick(){_this.onDetail();}},{default:function _default(){return[_this.buttonText];}})]);}}));}};});})();
|