date-time-picker.wxml 862 B

1234567891011121314151617181920212223242526272829
  1. <wxs src="../common/utils.wxs" module="_" />
  2. <t-picker
  3. style="{{_._style([style, customStyle])}}"
  4. class="class {{prefix}}-class {{classPrefix}}"
  5. visible="{{visible}}"
  6. value="{{columnsValue}}"
  7. header="{{header}}"
  8. title="{{title}}"
  9. auto-close="{{autoClose}}"
  10. confirm-btn="{{confirmBtn || locale.confirm}}"
  11. cancel-btn="{{cancelBtn || locale.cancel}}"
  12. use-popup="{{usePopup}}"
  13. popup-props="{{ popupProps }}"
  14. bind:pick="onColumnChange"
  15. bind:change="onConfirm"
  16. bind:cancel="onCancel"
  17. bind:visible-change="onVisibleChange"
  18. bind:close="onClose"
  19. >
  20. <slot slot="header" name="header" />
  21. <t-picker-item
  22. wx:for="{{columns}}"
  23. wx:key="index"
  24. class="{{_.cls(classPrefix + '__item', [['roomly', columns.length > 5 && index == 0]])}}"
  25. options="{{item}}"
  26. index="index"
  27. />
  28. <slot slot="footer" name="footer" />
  29. </t-picker>