File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed
views/mall/promotion/kefu/components Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -56,11 +56,11 @@ export const defaultShortcuts = [
56
56
* 时间日期转换
57
57
* @param date 当前时间,new Date() 格式
58
58
* @param format 需要转换的时间格式字符串
59
- * @description format 字符串随意,如 `YYYY-mm、YYYY-mm-dd `
60
- * @description format 季度:"YYYY-mm-dd HH:MM:SS QQQQ"
61
- * @description format 星期:"YYYY-mm-dd HH:MM:SS WWW"
62
- * @description format 几周:"YYYY-mm-dd HH:MM:SS ZZZ"
63
- * @description format 季度 + 星期 + 几周:"YYYY-mm-dd HH:MM:SS WWW QQQQ ZZZ"
59
+ * @description format 字符串随意,如 `YYYY-mm、YYYY-MM-DD `
60
+ * @description format 季度:"YYYY-MM-DD HH:MM:SS QQQQ"
61
+ * @description format 星期:"YYYY-MM-DD HH:MM:SS WWW"
62
+ * @description format 几周:"YYYY-MM-DD HH:MM:SS ZZZ"
63
+ * @description format 季度 + 星期 + 几周:"YYYY-MM-DD HH:MM:SS WWW QQQQ ZZZ"
64
64
* @returns 返回拼接后的时间字符串
65
65
*/
66
66
export function formatDate ( date : Date , format ?: string ) : string {
@@ -110,7 +110,7 @@ export function getWeek(dateTime: Date): number {
110
110
* @description param 3天: 60 * 60* 24 * 1000 * 3
111
111
* @returns 返回拼接后的时间字符串
112
112
*/
113
- export function formatPast ( param : string | Date , format = 'YYYY-mm-dd HH:MM:SS' ) : string {
113
+ export function formatPast ( param : string | Date , format = 'YYYY-MM-DD HH:MM:SS' ) : string {
114
114
// 传入格式处理、存储转换值
115
115
let t : any , s : number
116
116
// 获取js 时间戳
Original file line number Diff line number Diff line change 23
23
<div class =" flex justify-between items-center w-100%" >
24
24
<span class =" username" >{{ item.userNickname }}</span >
25
25
<span class =" color-[#989EA6]" >
26
- {{ formatPast(item.lastMessageTime, 'YYYY-mm-dd ') }}
26
+ {{ formatPast(item.lastMessageTime, 'YYYY-MM-DD ') }}
27
27
</span >
28
28
</div >
29
29
<!-- 最后聊天内容 -->
@@ -186,26 +186,26 @@ watch(showRightMenu, (val) => {
186
186
transition : border-left 0.05s ease-in-out ; /* 设置过渡效果 */
187
187
188
188
.username {
189
- min-width : 0 ;
189
+ display : -webkit-box ;
190
190
max-width : 60% ;
191
+ min-width : 0 ;
191
192
overflow : hidden ;
192
193
text-overflow : ellipsis ;
193
- display : -webkit-box ;
194
194
-webkit-box-orient : vertical ;
195
195
-webkit-line-clamp : 1 ;
196
196
}
197
197
198
198
.last-message {
199
199
width : 200px ;
200
200
overflow : hidden ; // 隐藏超出的文本
201
- white-space : nowrap ; // 禁止换行
202
201
text-overflow : ellipsis ; // 添加省略号
202
+ white-space : nowrap ; // 禁止换行
203
203
}
204
204
}
205
205
206
206
.active {
207
- border-left : 5px #3271ff solid ;
208
207
background-color : #eff0f1 ;
208
+ border-left : 5px #3271ff solid ;
209
209
}
210
210
211
211
.pinned {
@@ -214,13 +214,13 @@ watch(showRightMenu, (val) => {
214
214
215
215
.right-menu-ul {
216
216
position : absolute ;
217
- background-color : #fff ;
217
+ width : 130 px ;
218
218
padding : 10px ;
219
219
margin : 0 ;
220
220
list-style-type : none ; /* 移除默认的项目符号 */
221
+ background-color : #fff ;
221
222
border-radius : 12px ;
222
- box-shadow : 0 2px 4px rgba (0 , 0 , 0 , 0.1 ); /* 阴影效果 */
223
- width : 130px ;
223
+ box-shadow : 0 2px 4px rgb (0 0 0 / 10% ); /* 阴影效果 */
224
224
225
225
li {
226
226
padding : 8px 16px ;
You can’t perform that action at this time.
0 commit comments