index.wxml 235B

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