forked from ccsens_fe/tall-mui-3
8 changed files with 92 additions and 64 deletions
@ -1,17 +1,17 @@ |
|||
export default { |
|||
timeUnits: [ |
|||
// 时间颗粒度
|
|||
{ id: 0, value: '毫秒', format: 'x', cycle: 'YY-M-D HH:mm:ss' }, |
|||
{ id: 1, value: '秒', format: 'x', cycle: 'YY-M-D HH:mm:ss' }, |
|||
{ id: 2, value: '分', format: 'ss', cycle: 'YY-M-D HH:mm' }, |
|||
{ id: 3, value: '时', format: 'mm', cycle: 'YY-M-D HH时' }, |
|||
{ id: 4, value: '天', format: 'D日 HH:mm', cycle: 'YY-M-D' }, |
|||
{ id: 5, value: '周', format: 'D日 HH:mm', cycle: '' }, |
|||
{ id: 6, value: '月', format: 'D日 H:m', cycle: 'YYYY年' }, |
|||
{ id: 7, value: '季度', format: '', cycle: 'YYYY年' }, |
|||
{ id: 8, value: '年', format: 'YYYY', cycle: '' }, |
|||
{ id: 9, value: '年代', format: '', cycle: '' }, |
|||
{ id: 10, value: '世纪', format: '', cycle: '' }, |
|||
{ id: 11, value: '千年', format: '', cycle: '' }, |
|||
{ id: 0, value: '毫秒', format: 'x', cycle: 'YY-M-D HH:mm:ss', granularity: 'millisecond' }, |
|||
{ id: 1, value: '秒', format: 'x', cycle: 'YY-M-D HH:mm:ss', granularity: 'second' }, |
|||
{ id: 2, value: '分', format: 'ss', cycle: 'YY-M-D HH:mm', granularity: 'minute' }, |
|||
{ id: 3, value: '时', format: 'mm', cycle: 'YY-M-D HH时', granularity: 'hour' }, |
|||
{ id: 4, value: '天', format: 'D日 HH:mm', cycle: 'YY-M-D', granularity: 'day' }, |
|||
{ id: 5, value: '周', format: 'D日 HH:mm', cycle: '', granularity: 'week' }, |
|||
{ id: 6, value: '月', format: 'D日 H:m', cycle: 'YYYY年', granularity: 'month' }, |
|||
{ id: 7, value: '季度', format: '', cycle: 'YYYY年', granularity: 'quarter' }, |
|||
{ id: 8, value: '年', format: 'YYYY', cycle: '', granularity: 'year' }, |
|||
{ id: 9, value: '年代', format: '', cycle: '', granularity: '' }, |
|||
{ id: 10, value: '世纪', format: '', cycle: '', granularity: '' }, |
|||
{ id: 11, value: '千年', format: '', cycle: '', granularity: '' }, |
|||
], |
|||
}; |
|||
|
Loading…
Reference in new issue