index.wxml 2.3 KB

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