index.wxml 545B

12345678910111213141516171819202122
  1. <wxs src="../wxs/utils.wxs" module="utils" />
  2. <wxs src="./index.wxs" module="computed" />
  3. <van-transition
  4. name="slide-down"
  5. show="{{ show }}"
  6. custom-class="van-notify__container"
  7. custom-style="{{ computed.rootStyle({ zIndex, top }) }}"
  8. bind:tap="onTap"
  9. >
  10. <view
  11. class="van-notify van-notify--{{ type }}"
  12. style="{{ computed.notifyStyle({ background, color }) }}"
  13. >
  14. <view
  15. wx:if="{{ safeAreaInsetTop }}"
  16. style="height: {{ statusBarHeight }}px"
  17. />
  18. <text>{{ message }}</text>
  19. </view>
  20. </van-transition>