index.wxml 295B

12345678910
  1. <wxs src="../wxs/utils.wxs" module="utils" />
  2. <view
  3. wx:if="{{ animated || inited }}"
  4. class="custom-class {{ utils.bem('tab__pane', { active, inactive: !active }) }}"
  5. style="{{ animated || active ? '' : 'display: none;' }} {{ width ? 'width:' + width + 'px;' : '' }}"
  6. >
  7. <slot />
  8. </view>