feature: tiered sort

This commit is contained in:
2024-05-22 09:27:22 +08:00
parent a946012a33
commit 190e43c814
14 changed files with 254 additions and 147 deletions

View File

@ -50,12 +50,12 @@ export function toDateValue(dt, local) {
}
/**
* @private
* @param {Date} date
* @param {boolean} [utc=true]
* @returns {string}
* 获取日期格式器
* @param {Date} date - 待格式的日期
* @param {boolean} [utc=true] - 是否按 UTC 时间格式化
* @returns {any} 返回格式化工具对象
*/
function getFormatter(date, utc) {
export function getFormatter(date, utc) {
const prefix = utc !== false ? 'getUTC' : 'get';
const r = {
/**