t-th.js 813 B

1
  1. "use strict";const o=require("../../common/vendor.js"),n={props:{align:String},data(){return{thBorder:"1",borderColor:"#d0dee5",fontSize:"15",color:"#3b4246",thAlign:"center"}},inject:["table","tr"],created(){this.thBorder=this.table.border,this.borderColor=this.table.borderColor,this.fontSize=this.tr.fontSize,this.color=this.tr.color,this.align?this.thAlign=this.align:this.thAlign=this.tr.align},computed:{thAlignCpd(){let e="";switch(this.thAlign){case"left":e="flex-start";break;case"center":e="center";break;case"right":e="flex-end";break;default:e="center";break}return e}}};function i(e,c,l,h,t,r){return{a:t.thBorder+"px",b:t.borderColor,c:t.fontSize+"px",d:t.color,e:r.thAlignCpd}}const s=o._export_sfc(n,[["render",i],["__file","E:/psy_web_share/components/t-table/t-th.vue"]]);tt.createComponent(s);