<wxs src="../wxs/utils.wxs" module="utils" /> <view class="custom-class {{ utils.bem('tab__pane', { active, inactive: !active }) }}" style="{{ shouldShow ? '' : 'display: none;' }}" > <slot wx:if="{{ shouldRender }}" /> </view>