index.wxml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <wux-popup
  2. position="bottom"
  3. visible="{{ popupVisible }}"
  4. hasHeader="{{ false }}"
  5. hasFooter="{{ false }}"
  6. mountOnEnter="{{ false }}"
  7. safeArea="bottom"
  8. bind:show="onShow"
  9. bind:close="close"
  10. bind:closed="onClosed"
  11. >
  12. <view class="{{ classes.wrap }}">
  13. <view class="{{ classes.toolbar }}" wx:if="{{ toolbar }}" catchtouchmove="noop">
  14. <view class="{{ classes.inner }}">
  15. <view class="{{ classes.cancel }}" hover-class="{{ classes.hover }}" bindtap="onCancel" wx:if="{{ toolbar.cancelText }}">{{ toolbar.cancelText }}</view>
  16. <view class="{{ classes.title }}">{{ toolbar.title }}</view>
  17. <block wx:if="{{ toolbar.confirmText }}">
  18. <view class="{{ classes.confirm }}" hover-class="{{ classes.hover }}" bindtap="onConfirm" wx:if="{{ !loading }}">{{ toolbar.confirmText }}</view>
  19. <view class="{{ classes.confirm + ' ' + classes.disabled }}" wx:else>{{ toolbar.confirmText }}</view>
  20. </block>
  21. </view>
  22. </view>
  23. <wux-cascader-picker-view
  24. id="wux-picker"
  25. prefixCls="{{ multiPickerPrefixCls }}"
  26. pickerPrefixCls="{{ pickerPrefixCls }}"
  27. value="{{ inputValue }}"
  28. itemHeight="{{ itemHeight }}"
  29. itemStyle="{{ itemStyle }}"
  30. indicatorStyle="{{ indicatorStyle }}"
  31. indicatorClass="{{ indicatorClass }}"
  32. maskStyle="{{ maskStyle }}"
  33. maskClass="{{ maskClass }}"
  34. labelAlign="{{ labelAlign }}"
  35. defaultFieldNames="{{ fieldNames }}"
  36. options="{{ options }}"
  37. loading="{{ loading }}"
  38. cols="{{ cols }}"
  39. bind:valueChange="onValueChange"
  40. wx:if="{{ cascade }}"
  41. />
  42. <wux-multi-picker-view
  43. id="wux-picker"
  44. prefixCls="{{ multiPickerPrefixCls }}"
  45. pickerPrefixCls="{{ pickerPrefixCls }}"
  46. value="{{ inputValue }}"
  47. itemHeight="{{ itemHeight }}"
  48. itemStyle="{{ itemStyle }}"
  49. indicatorStyle="{{ indicatorStyle }}"
  50. indicatorClass="{{ indicatorClass }}"
  51. maskStyle="{{ maskStyle }}"
  52. maskClass="{{ maskClass }}"
  53. labelAlign="{{ labelAlign }}"
  54. defaultFieldNames="{{ fieldNames }}"
  55. options="{{ options }}"
  56. loading="{{ loading }}"
  57. bind:valueChange="onValueChange"
  58. wx:else
  59. />
  60. </view>
  61. </wux-popup>
  62. <slot></slot>