index.wxml 627 B

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