删除腾讯地图定位服务修复说明文档,更新CustomerList组件样式以支持离线用户状态,调整MessageList组件的加载状态管理,增强filter工具以支持XML格式位置消息的识别。
This commit is contained in:
@@ -47,6 +47,11 @@
|
||||
.active & {
|
||||
border-color: #1890ff;
|
||||
}
|
||||
|
||||
&.offline {
|
||||
filter: grayscale(100%);
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
.allUser {
|
||||
|
||||
@@ -89,7 +89,6 @@ const CustomerList: React.FC = () => {
|
||||
>
|
||||
<div className={styles.allUser}>全部</div>
|
||||
</Badge>
|
||||
<div className={`${styles.onlineIndicator} ${styles.online}`} />
|
||||
</div>
|
||||
{customerList.map(customer => (
|
||||
<div
|
||||
@@ -105,7 +104,7 @@ const CustomerList: React.FC = () => {
|
||||
<Avatar
|
||||
src={customer.avatar}
|
||||
size={50}
|
||||
className={styles.userAvatar}
|
||||
className={`${styles.userAvatar} ${!customer.isOnline ? styles.offline : ""}`}
|
||||
style={{
|
||||
backgroundColor: !customer.avatar ? "#1890ff" : undefined,
|
||||
}}
|
||||
@@ -113,9 +112,6 @@ const CustomerList: React.FC = () => {
|
||||
{!customer.avatar && customer.name.charAt(0)}
|
||||
</Avatar>
|
||||
</Badge>
|
||||
<div
|
||||
className={`${styles.onlineIndicator} ${customer.isOnline ? styles.online : styles.offline}`}
|
||||
/>
|
||||
</div>
|
||||
))}
|
||||
</>
|
||||
|
||||
@@ -383,7 +383,7 @@ const MessageList: React.FC<MessageListProps> = () => {
|
||||
const requestId = ++loadRequestRef.current;
|
||||
|
||||
const initializeSessions = async () => {
|
||||
setLoading(true);
|
||||
// setLoading(true);
|
||||
|
||||
try {
|
||||
const cachedSessions =
|
||||
@@ -416,7 +416,7 @@ const MessageList: React.FC<MessageListProps> = () => {
|
||||
}
|
||||
} finally {
|
||||
if (!isCancelled && loadRequestRef.current === requestId) {
|
||||
setLoading(false);
|
||||
// setLoading(false);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user