index.wxml 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <wux-popup visible="{{ in }}" z-index="{{ zIndex }}" closable="{{ closable }}" mask="{{ mask }}" mask-closable="{{ maskClosable }}" bind:close="onClose" bind:closed="onClosed">
  2. <view slot="header">{{ title }}</view>
  3. <view>
  4. <text>{{ content }}</text>
  5. <view class="{{ classes.prompt }}" wx:if="{{ prompt }}">
  6. <label>
  7. <input
  8. type="{{ prompt.fieldtype }}"
  9. class="{{ classes.input }}"
  10. value="{{ prompt.response }}"
  11. password="{{ prompt.password }}"
  12. placeholder="{{ prompt.placeholder }}"
  13. maxlength="{{ maxlength }}"
  14. bindinput="bindinput"
  15. />
  16. </label>
  17. </view>
  18. </view>
  19. <view slot="footer" class="{{ classes.buttons }}">
  20. <block wx:for="{{ buttons }}" wx:for-item="button" wx:key="">
  21. <view
  22. class="{{ classes.button[index].wrap }}"
  23. hover-class="{{ classes.button[index].hover }}"
  24. data-index="{{ index }}"
  25. bindtap="buttonTapped"
  26. >
  27. {{ button.text }}
  28. </view>
  29. </block>
  30. </view>
  31. </wux-popup>