File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -1883,7 +1883,7 @@ export class ReminderPanel {
18831883
18841884 const countdownEl = document . createElement ( 'div' ) ;
18851885 countdownEl . className = 'reminder-countdown' ;
1886-
1886+
18871887 // 根据是否过期设置不同的样式和文本
18881888 if ( isOverdueEvent || daysDiff < 0 ) {
18891889 // 过期事件:红色样式
@@ -1897,10 +1897,10 @@ export class ReminderPanel {
18971897 padding: 2px 6px;
18981898 flex-shrink: 0;
18991899 ` ;
1900-
1900+
19011901 const overdueDays = Math . abs ( daysDiff ) ;
1902- countdownEl . textContent = overdueDays === 1 ?
1903- t ( "overdueBySingleDay" ) :
1902+ countdownEl . textContent = overdueDays === 1 ?
1903+ t ( "overdueBySingleDay" ) :
19041904 t ( "overdueByDays" , { days : overdueDays . toString ( ) } ) ;
19051905 } else {
19061906 // 未来事件:绿色样式
@@ -1921,17 +1921,17 @@ export class ReminderPanel {
19211921 compareDateStrings ( today , reminder . endDate ) <= 0 ;
19221922
19231923 if ( isInRange ) {
1924- countdownEl . textContent = daysDiff === 1 ?
1925- "还剩1天结束" :
1924+ countdownEl . textContent = daysDiff === 1 ?
1925+ "还剩1天结束" :
19261926 `还剩${ daysDiff } 天结束` ;
19271927 } else {
1928- countdownEl . textContent = daysDiff === 1 ?
1929- "还有1天开始" :
1928+ countdownEl . textContent = daysDiff === 1 ?
1929+ "还有1天开始" :
19301930 `还有${ daysDiff } 天开始` ;
19311931 }
19321932 } else {
1933- countdownEl . textContent = daysDiff === 1 ?
1934- t ( "daysLeftSingle" ) :
1933+ countdownEl . textContent = daysDiff === 1 ?
1934+ t ( "daysLeftSingle" ) :
19351935 t ( "daysLeftPlural" , { days : daysDiff . toString ( ) } ) ;
19361936 }
19371937 }
You can’t perform that action at this time.
0 commit comments