setupDefaults.js 435 B

1234567891011121314151617181920212223
  1. 'use strict'
  2. var formatString = 'yyyy-MM-dd HH:mm:ss'
  3. var setupDefaults = {
  4. treeOptions: {
  5. parentKey: 'parentId',
  6. key: 'id',
  7. children: 'children'
  8. },
  9. formatDate: formatString + '.SSSZ',
  10. formatString: formatString,
  11. dateDiffRules: [
  12. ['yyyy', 31536000000],
  13. ['MM', 2592000000],
  14. ['dd', 86400000],
  15. ['HH', 3600000],
  16. ['mm', 60000],
  17. ['ss', 1000],
  18. ['S', 0]
  19. ]
  20. }
  21. module.exports = setupDefaults