date-time-picker.wxml 734 B

123456789101112131415161718192021222324252627
  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. bind:pick="onColumnChange"
  8. bind:change="onConfirm"
  9. bind:cancel="onCancel"
  10. bind:visible-change="onVisibleChange"
  11. bind:close="onClose"
  12. header="{{header}}"
  13. title="{{title}}"
  14. confirmBtn="{{confirmBtn || locale.confirm}}"
  15. cancelBtn="{{cancelBtn || locale.cancel}}"
  16. >
  17. <slot slot="header" name="header" />
  18. <t-picker-item
  19. wx:for="{{columns}}"
  20. wx:key="index"
  21. class="{{_.cls(classPrefix + '__item', [['roomly', columns.length > 5 && index == 0]])}}"
  22. options="{{item}}"
  23. index="index"
  24. />
  25. </t-picker>