24 lines
435 B
JavaScript
24 lines
435 B
JavaScript
'use strict'
|
|
|
|
var formatString = 'yyyy-MM-dd HH:mm:ss'
|
|
var setupDefaults = {
|
|
treeOptions: {
|
|
parentKey: 'parentId',
|
|
key: 'id',
|
|
children: 'children'
|
|
},
|
|
formatDate: formatString + '.SSSZ',
|
|
formatString: formatString,
|
|
dateDiffRules: [
|
|
['yyyy', 31536000000],
|
|
['MM', 2592000000],
|
|
['dd', 86400000],
|
|
['HH', 3600000],
|
|
['mm', 60000],
|
|
['ss', 1000],
|
|
['S', 0]
|
|
]
|
|
}
|
|
|
|
module.exports = setupDefaults
|