listpage-next 0.0.285 → 0.0.286
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -17,7 +17,7 @@ const ConversationDropdownMenu = (props)=>{
|
|
|
17
17
|
label: /*#__PURE__*/ jsxs(MenuItemLabel, {
|
|
18
18
|
children: [
|
|
19
19
|
/*#__PURE__*/ jsx("span", {
|
|
20
|
-
children: item.title ||
|
|
20
|
+
children: item.title || '新会话'
|
|
21
21
|
}),
|
|
22
22
|
/*#__PURE__*/ jsxs("div", {
|
|
23
23
|
className: "action-btns",
|
|
@@ -15,6 +15,7 @@ function getConversationsGroup(list) {
|
|
|
15
15
|
const week = [];
|
|
16
16
|
const month = [];
|
|
17
17
|
const year = [];
|
|
18
|
+
const older = [];
|
|
18
19
|
list.forEach((it)=>{
|
|
19
20
|
const t = getTime(it);
|
|
20
21
|
if (!t) return;
|
|
@@ -23,13 +24,15 @@ function getConversationsGroup(list) {
|
|
|
23
24
|
if (inWeek(t)) return void week.push(it);
|
|
24
25
|
if (inMonth(t)) return void month.push(it);
|
|
25
26
|
if (dayjs(t).isSame(now, 'year')) return void year.push(it);
|
|
27
|
+
older.push(it);
|
|
26
28
|
});
|
|
27
29
|
const groups = {
|
|
28
30
|
今天: today,
|
|
29
31
|
昨天: yesterday,
|
|
30
32
|
本周内: week,
|
|
31
33
|
本月内: month,
|
|
32
|
-
今年内: year
|
|
34
|
+
今年内: year,
|
|
35
|
+
更早: older
|
|
33
36
|
};
|
|
34
37
|
return groups;
|
|
35
38
|
}
|