index.wxml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <wux-popup
  2. position="bottom"
  3. visible="{{ visible }}"
  4. hasHeader="{{ false }}"
  5. hasFooter="{{ false }}"
  6. mountOnEnter="{{ false }}"
  7. safeArea="bottom"
  8. bind:close="close"
  9. bind:closed="onClosed"
  10. >
  11. <view class="wux-class {{ classes.wrap }}" wx:if="{{ shouldRender }}">
  12. <view class="{{ classes.hd }}">
  13. <view class="{{ classes.toolbar }}" wx:if="{{ title || cancelText || confirmText }}" catchtouchmove="noop">
  14. <view class="{{ classes.inner }}">
  15. <view class="{{ classes.cancel }}" hover-class="{{ classes.hover }}" bindtap="onCancel" wx:if="{{ cancelText }}">{{ cancelText }}</view>
  16. <view class="{{ classes.title }}">{{ title }}</view>
  17. <view class="{{ classes.confirm }}" hover-class="{{ classes.hover }}" bindtap="onConfirm" wx:if="{{ confirmText }}">{{ confirmText }}</view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="{{ classes.bd }}">
  22. <wux-cascader-view
  23. id="wux-cascader-view"
  24. controlled="{{ controlled }}"
  25. defaultValue="{{ innerValue }}"
  26. value="{{ innerValue }}"
  27. options="{{ options }}"
  28. full="{{ full }}"
  29. height="{{ height }}"
  30. placeholder="{{ chooseTitle }}"
  31. defaultFieldNames="{{ defaultFieldNames }}"
  32. skipAnimation="{{ skipAnimation }}"
  33. bind:change="onChange"
  34. bind:load="onLoadOptions"
  35. bind:tabsChange="onTabsChange"
  36. />
  37. </view>
  38. </view>
  39. </wux-popup>