UNPKG

zwave-js-ui

Version:

Z-Wave Control Panel and MQTT Gateway

2 lines (1 loc) 1.1 kB
import{a2 as r,bl as b,cz as v,bn as m,cs as h,a4 as c,cu as u,cU as f,a6 as g,b as y,U as o,cK as x,n as T,a1 as V}from"./index-B9yS4Bcc.js";const p=r({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,striped:{type:String,default:null,validator:e=>["even","odd"].includes(e)},...b(),...v(),...m(),...h()},"VTable"),P=c()({name:"VTable",props:p(),setup(e,d){let{slots:a,emit:k}=d;const{themeClasses:i}=u(e),{densityClasses:n}=f(e);return g(()=>y(e.tag,{class:T(["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!a.top,"v-table--has-bottom":!!a.bottom,"v-table--hover":e.hover,"v-table--striped-even":e.striped==="even","v-table--striped-odd":e.striped==="odd"},i.value,n.value,e.class]),style:V(e.style)},{default:()=>{var t,l,s;return[(t=a.top)==null?void 0:t.call(a),a.default?o("div",{class:"v-table__wrapper",style:{height:x(e.height)}},[o("table",null,[a.default()])]):(l=a.wrapper)==null?void 0:l.call(a),(s=a.bottom)==null?void 0:s.call(a)]}})),{}}});export{P as V,p as m};