2 lines
579 B
JavaScript
2 lines
579 B
JavaScript
"use strict";const e=require("../../common/vendor.js"),n=e.defineComponent({__name:"hs-tabs",props:["current","list","no_space_between"],emits:["onChange"],setup(n,{emit:t}){const o=n;return(n,s)=>({a:e.f(null==o?void 0:o.list,((n,s,l)=>({a:e.t(null==n?void 0:n.label),b:e.n("label "+(s===(null==o?void 0:o.current)?"actives":"")),c:`item_${s}`,d:e.o((e=>{t("onChange",s,n)}),`item_${s}`)}))),b:e.s((null==o?void 0:o.no_space_between)?{"margin-left":"30rpx"}:{flex:1}),c:e.s((null==o?void 0:o.no_space_between)?"":{"justify-content":"space-between"})})}});wx.createComponent(n);
|